* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.word-display {
    text-align: center;
    margin-bottom: 2rem;
}

.play-button {
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.play-button:hover {
    background-color: #2980b9;
}

.definition {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 5px;
    font-style: italic;
}

.input-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

#spelling-input {
    flex: 1;
    padding: 0.5rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
}

#check-spelling {
    padding: 0.5rem 1rem;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#check-spelling:hover {
    background-color: #27ae60;
}

.feedback {
    text-align: center;
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 5px;
}

.feedback.correct {
    background-color: #d4edda;
    color: #155724;
}

.feedback.incorrect {
    background-color: #f8d7da;
    color: #721c24;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

.stats p {
    font-size: 1.1rem;
    font-weight: bold;
}

.difficulty-controls {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.difficulty-controls h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.2rem;
}

.difficulty-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.difficulty-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #3498db;
    background-color: white;
    color: #3498db;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.difficulty-btn.active {
    background-color: #3498db;
    color: white;
}

.difficulty-info {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.difficulty-info p {
    margin: 0.2rem 0;
}

.current-difficulty {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.voice-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

#voice-select {
    padding: 0.3rem 0.5rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.progress {
    font-weight: bold;
    color: #2c3e50;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.progress.completed {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.clear-progress-btn {
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.clear-progress-btn:hover {
    background-color: #c82333;
}

.clear-progress-btn:active {
    background-color: #bd2130;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.settings-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.settings-button:hover {
    background-color: #f0f0f0;
}

.settings-menu {
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.settings-menu h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.setting-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.setting-item label {
    min-width: 100px;
    color: #2c3e50;
}

.setting-item input[type="range"] {
    flex: 1;
    margin: 0 10px;
}

#speed-value {
    min-width: 40px;
    text-align: right;
    color: #666;
}

.hidden {
    display: none !important;
}

.confirmation-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.confirmation-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.confirmation-content h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.confirmation-content p {
    margin: 0 0 20px 0;
    color: #666;
}

.confirmation-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.confirm-btn {
    padding: 8px 20px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.confirm-btn:hover {
    background-color: #c82333;
}

.cancel-btn {
    padding: 8px 20px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.cancel-btn:hover {
    background-color: #5a6268;
} 
