@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: #e0e5ec;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    padding: 10px;
}

.container {
    background: #e0e5ec;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 8px 8px 16px #b8babe, -8px -8px 16px #ffffff;
    text-align: center;
    width: 90%;
    max-width: 800px;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
}

.tagline {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

/* Language selection */
#languageSelect {
    margin-bottom: 20px;
}

#languageSelect select {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #b8babe;
    font-size: 14px;
    outline: none;
    background: #fff;
    box-shadow: 4px 4px 8px #b8babe, -4px -4px 8px #ffffff;
}

/* Speech Recognition Box */
#dropZone {
    padding: 20px;
    border: 2px dashed #b8babe;
    border-radius: 10px;
    background: #e0e5ec;
    box-shadow: inset 4px 4px 8px #b8babe, inset -4px -4px 8px #ffffff;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 20px;
}

#dropZone p {
    font-size: 16px;
    color: #2c3e50;
}

#textOutput {
    width: 100%;
    height: 150px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: #fff;
    box-shadow: inset 4px 4px 8px #b8babe, inset -4px -4px 8px #ffffff;
    font-size: 14px;
    resize: none;
    outline: none;
}

/* Buttons */
.buttons {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 20px;
}

button {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    background: #e0e5ec;
    box-shadow: 4px 4px 8px #b8babe, -4px -4px 8px #ffffff;
    cursor: pointer;
    color: #2c3e50;
    transition: all 0.3s ease-in-out;
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 6px 6px 12px #b8babe, -6px -6px 12px #ffffff;
}

@media (max-width: 600px) {
    .buttons {
        grid-template-columns: repeat(1, 1fr);
    }
}

#timerDisplay {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin: 10px 0;
}
#textOutput {
    width: 100%;
    height: 150px;
    padding: 10px 2px;  /* Added padding to both left and right */
    border: none;
    border-radius: 10px;
    background: #fff;
    box-shadow: inset 4px 4px 8px #b8babe, inset -4px -4px 8px #ffffff;
    font-size: 14px;
    resize: none;
    outline: none;
}
