@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    text-align: center;
    font-family: 'Roboto', Arial, sans-serif;
    background: linear-gradient(to bottom, #e0f7fa, #80deea);
    margin: 0;
    padding: 20px;
}

h1 {
    color: #00796b;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

table {
    margin: 0 auto;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 1200px;
}

td {
    padding: 10px;
    text-align: center;
    vertical-align: top;
}

.word, .image, .result {
    width: 100px;
    margin: 0 auto;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.word {
    height: 50px;
    line-height: 50px;
    background: #ffca28;
    color: #424242;
    cursor: move;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.word:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    background: #00ff00;
}

.image {
    height: 100px;
    background: #eceff1;
    border: 2px solid #b0bec5;
}

.image img {
    border-radius: 8px;
}

.image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.result {
    height: 50px;
    line-height: 50px;
    background: #eceff1;
    border: 2px solid #b0bec5;
    margin-top: 5px;
    color: #424242;
    cursor: pointer;
}

.filled {
    background: #fff9c4;
    border-color: #b0bec5;
}

.correct {
    background: #4caf50;
    color: white;
    border-color: #388e3c;
}

.incorrect {
    background: #d32f2f;
    color: white;
    border-color: #b71c1c;
}

.answer-row {
    display: none;
}

.answer-row.show {
    display: table-row;
}

.check-button, .reset-button, .upload-btn, .sample-btn, .start-button, .toggle-button {
    margin: 10px 5px;
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-block;
}

.check-button {
    background: #0288d1;
}

.check-button:hover {
    background: #0277bd;
}

.check-button:disabled {
    background: #b0bec5;
    cursor: not-allowed;
}

.reset-button {
    background: #f57c00;
    display: none;
}

.reset-button:hover {
    background: #ef6c00;
}

.upload-btn {
    background: #4caf50;
}

.upload-btn:hover {
    background: #388e3c;
}

.sample-btn {
    background: #0288d1;
}

.sample-btn:hover {
    background: #0277bd;
}

.start-button {
    background: #0288d1;
}

.start-button:hover {
    background: #0277bd;
}

.toggle-button {
    background: #00796b;
}

.toggle-button:hover {
    background: #00695c;
}

.select-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0;
    flex-wrap: wrap;
}

select {
    margin: 5px 10px;
    padding: 10px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    border: 2px solid #b0bec5;
    border-radius: 8px;
    background: #e0f7fa;
    color: #424242;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

select:hover {
    background: #b2ebf2;
    border-color: #80deea;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

select:focus {
    outline: none;
    border-color: #0288d1;
    background: #ffffff;
}

label {
    font-size: 16px;
    color: #00796b;
    font-weight: bold;
    margin: 5px 5px 5px 10px;
}

#score-display {
    margin: 10px;
    font-size: 18px;
    color: #00796b;
    font-weight: bold;
}

.upload-section {
    margin: 20px 0;
}

.instructions {
    font-size: 14px;
    color: #424242;
    margin-top: 10px;
}

.error-message {
    color: #d32f2f;
    margin-top: 10px;
}

.success-message {
    color: #4caf50;
    margin-top: 10px;
}

#audio-container {
    display: none;
}

#settings-section {
    margin: 20px auto;
    max-width: 800px;
}

#settings-content {
    display: block;
}

#settings-content.collapsed {
    display: none;
}