/* Styles pour le jeu de vocabulaire Quiz */
.vocabulary-quiz-container {
    background-color: #f0f8ff;
    border-radius: 10px;
    padding: 20px;
    margin-top: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.vocabulary-quiz-title {
    color: #4285f4;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.quiz-description {
    text-align: center;
    margin-bottom: 25px;
    color: #555;
}

.quiz-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.quiz-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.start-quiz-btn {
    background-color: #4285f4;
    color: white;
}

.start-quiz-btn:hover {
    background-color: #3367d6;
}

.reset-quiz-btn {
    background-color: #fbbc05;
    color: white;
}

.reset-quiz-btn:hover {
    background-color: #f9a825;
}

.quiz-mode-selector {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-right: 10px;
}

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

.quiz-question {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
    padding: 10px;
    background-color: #e8f0fe;
    border-radius: 5px;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.quiz-option {
    padding: 12px;
    background-color: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.quiz-option:hover {
    background-color: #e0e0e0;
}

.quiz-option.selected {
    background-color: #d0e8ff;
    border-color: #4285f4;
}

.quiz-option.correct {
    background-color: #d4edda;
    border-color: #28a745;
}

.quiz-option.incorrect {
    background-color: #f8d7da;
    border-color: #dc3545;
}

.quiz-feedback {
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
}

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

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

.quiz-progress {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.quiz-score {
    font-weight: bold;
    color: #4285f4;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.nav-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.prev-btn {
    background-color: #f1f3f4;
    color: #333;
}

.next-btn {
    background-color: #4285f4;
    color: white;
}

.prev-btn:hover {
    background-color: #e0e0e0;
}

.next-btn:hover {
    background-color: #3367d6;
}

.quiz-results {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background-color: #e8f0fe;
    border-radius: 8px;
    display: none;
}

.results-title {
    font-size: 1.5em;
    color: #4285f4;
    margin-bottom: 15px;
}

.results-score {
    font-size: 2em;
    font-weight: bold;
    color: #4285f4;
    margin-bottom: 15px;
}

.results-message {
    margin-bottom: 20px;
    color: #555;
}

.restart-btn {
    background-color: #4285f4;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.restart-btn:hover {
    background-color: #3367d6;
}

@media (max-width: 768px) {
    .quiz-options {
        grid-template-columns: 1fr;
    }
    
    .quiz-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-btn {
        width: 100%;
    }
}
