html {
    font-family: 'Trebuchet MS', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.form-container {
    width: 40%;
    padding: 20px;
    border-radius: 8px;
}

button {
    background-color: #1A202C;
    /* Teal */
    color: #f0f0f0;
    /* Dark Gray */
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.1s ease-in-out;
}

input {
    padding: 8px 16px;
    width: 100%;
}

button {
    display: block;
    width: 100%;
}

button:hover {
    background-color: #38B2AC;
    /* Darker Teal */
}

audio {
    display: block;
    width: 100%;
    accent-color: #38B2AC;
}

.loader {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#toggle-container {
    display: flex;
    justify-content: center;
}

#textToSpeechForm {
    z-index: 9;
    /* position: absolute; */
}

.toggle-btn {
    background-color: rgba(229, 231, 235, 1);
    color: #1A202C;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

.toggle-btn:not(:last-child) {
    border-right: none; /* Remove the right border to make the buttons look joined */
}

.toggle-btn {
    border-radius: 0px 0px 0px 0px
}

.toggle-btn:last-child {
    border-radius: 0px 10px 10px 0px
}

.toggle-btn:first-child {
    border-radius: 10px 0px 0px 10px
}

.toggle-btn:hover {
    background-color: #1A202C;
    color: rgba(229, 231, 235, 1);
}

.selected {
    background-color: #1A202C;
    color: rgba(229, 231, 235, 1);
}

.popup {
    top: 10%;
    margin: 20px auto;
    display: none;
    z-index: 10;
}

.close {
    float: right;
    font-size: 28px;
    cursor: pointer;
}