/* Overall Styling */
body {
    font-family: 'Roboto', sans-serif;  
    background-color: #00695c;   /* Darker teal */
    color: #fff; 
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Containers */
.options-container, #input-container, #output-container {
    display: flex;
    flex-direction: column;
    gap: 10px; 
    width: 90%;
    max-width: 400px; 
    margin-bottom: 15px; 
    padding: 15px;    
    background-color: #1abc9c;   /* White background for containers */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
}

.key-options, .button-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Text Areas */
textarea {
    background-color: #f5f5f5; /* Light gray background for text areas */
    color: #333;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    font-family: inherit;
    resize: vertical;
    transition: box-shadow 0.3s ease;
    width: 100%; 
    box-sizing: border-box;
    max-height: 100px; 
}

textarea:focus {
    outline: none;
    border-color: #00695c;
    box-shadow: 0 0 5px #00695c;
}

/* Key Checkbox and Input */
.key-options label {
    margin-right: 10px; 
    flex-shrink: 0; 
}

.key-options input[type="text"] {
    flex-grow: 1; 
    min-width: 0; 
    margin-right: 10px; 
}

/* Character Count */
#inputCount, #outputCount {
    font-size: 0.8em;
    color: #777;
    margin-top: 5px;
    text-align: right; 
}

/* Buttons */
button {
    background-color: #00695c;  
    color: #fff;
    padding: 10px 10px; 
    border: none;
    border-radius: 25px; 
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
    margin-bottom: 10px;
    flex: 1 1 45%; 
}

button:hover {
    background-color: #004d40; 
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2); 
    transform: translateY(-1px); 
}

/* Responsive design for smaller screens */
@media (max-width: 600px) {
    .options-container, #input-container, #output-container {
        flex-direction: column; 
    }

    .key-options, .button-container {
        flex-direction: column; 
        align-items: stretch; 
    }

    button {
        padding: 10px 18px; 
        width: 100%; 
    }
}
