body, html {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #31312c;
}

.container {
    position: relative;
    width: 80%;
    max-width: 600px;
    margin: 50px auto;
    padding: 25px;
    background-color: #a19f90;
    box-sizing: border-box;
    border-radius: 10px;
}

textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #888;
    border-radius: 5px;
    height: 60vh;
    box-sizing: border-box;
    resize: none;
    background-color: #f9f7e7;
    font-size: 16px;
}

button {
    padding: 7px 10px;
    background-color: #f9f7e7;
    border: 2px solid #888;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
    color: #31312c;
    font-size: 16px;
}

button:hover {
    background-color: #ebe9d7;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

button:focus {
    outline: none;
    border-color: #52514a;
}

button:disabled{
  border: 1px solid #52514a;
  background-color: #cccccc;
  cursor: not-allowed;
  opacity: 0.5;
}

#textInput:focus {
    outline: none !important;
    border:2px solid #31312c;
}

#qrCodeContainer {
    display: flex;
    justify-content: center;
    align-items: center;
}

#qrCode {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
    background-color: white;
}

#qr-video {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 25px;
}

#textCounter {
    text-align: right;
    font-size: 16px;
    color: #31312c;
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        margin: 20px auto;
        padding: 10px;
    }
}