body {
    font-family: 'Segoe UI', sans-serif;
    background: #f5f5fa;
    display: flex;
    justify-content: center;
    padding: 30px;
}

.container {
    max-width: 800px;
    width: 100%;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.container {
    min-height: 600px; /* Adjust as needed */
    display: inline-block;
    padding: 20px;
}


textarea {
    width: 100%;
    height: 300px;
    font-size: 1.2em;
    padding: 10px;
    margin-bottom: 15px;
}

.controls button, .controls select {
    padding: 10px;
    margin-right: 10px;
    font-size: 1em;
}

.controls button {
    /*padding: 10px 16px;*/
    margin: 5px 5px 5px 0;
    border: none;
    border-radius: 12px;
    background-color: #f1eeee;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}

.controls button:hover {
    background-color: #e0e0e0;
}


#mic-indicator {
    color: red;
    font-weight: bold;
    margin-left: 10px;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.hidden {
    display: none;
}

#response {
    color: green;
    font-weight: bold;
    transition: opacity 0.5s ease-in-out;
}

#response.hidden {
    opacity: 0;
    visibility: hidden;
}

label {
    margin-right: 8px;
    font-weight: 500;
}

#voiceSelect, #rateSlider {
    margin-bottom: 10px;
}

#stopSpeaking {
    background-color: #ffe5e5;
    color: #900;
}

