/* Multiple Choice Quiz Styles */
#quiz-container { 
    max-width: 800px; 
    margin: 0 auto; 
    padding: 20px; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
}

.quiz-header { 
    text-align: center; 
    margin-bottom: 30px; 
    padding-bottom: 20px; 
    border-bottom: 2px solid #e9ecef; 
}

.quiz-header h2 { 
    color: #2c3e50; 
    margin-bottom: 10px; 
    font-size: 2.2em; 
}

.quiz-description { 
    color: #6c757d; 
    font-size: 1.1em; 
    margin-bottom: 15px; 
    font-style: italic; 
}

.quiz-progress { 
    background: #f8f9fa; 
    padding: 8px 16px; 
    border-radius: 20px; 
    display: inline-block; 
    font-weight: 500; 
    color: #495057; 
    border: 1px solid #dee2e6; 
}

.question { 
    background: #ffffff; 
    padding: 25px; 
    border-radius: 10px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    margin-bottom: 25px; 
    border-left: 4px solid #007cba; 
}

.question h3 { 
    color: #2c3e50; 
    font-size: 1.4em; 
    margin: 0; 
    font-weight: 600; 
}

.options { 
    margin: 25px 0; 
}

.option-label { 
    display: block; 
    background: #f8f9fa; 
    margin-bottom: 12px; 
    padding: 15px 20px; 
    border-radius: 8px; 
    border: 2px solid #e9ecef; 
    cursor: pointer; 
    transition: all 0.3s ease; 
}

.option-label:hover { 
    background: #e3f2fd; 
    border-color: #007cba; 
    transform: translateX(5px); 
}

.option-label input[type="radio"] { 
    margin-right: 12px; 
}

.quiz-button { 
    background: #007cba; 
    color: white; 
    border: none; 
    padding: 12px 30px; 
    font-size: 1.1em; 
    font-weight: 600; 
    border-radius: 6px; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    text-decoration: none; 
    display: inline-block; 
    margin-top: 20px; 
}

.quiz-button:hover { 
    background: #005a8b; 
}

.result { 
    padding: 20px; 
    border-radius: 8px; 
    margin-bottom: 25px; 
    border-left: 4px solid; 
}

.result.correct { 
    background: #d4edda; 
    color: #155724; 
    border-left-color: #28a745; 
}

.result.incorrect { 
    background: #f8d7da; 
    color: #721c24; 
    border-left-color: #dc3545; 
}

.result h3 { 
    margin: 0 0 15px 0; 
    font-size: 1.3em; 
    font-weight: 600; 
}

.options-display { 
    margin: 20px 0; 
}

.options-display .option { 
    padding: 12px 18px; 
    margin-bottom: 8px; 
    border-radius: 6px; 
    background: #f8f9fa; 
    border: 1px solid #e9ecef; 
}

.correct-answer { 
    background: #ffc107 !important; 
    color: #212529 !important; 
    font-weight: 600; 
    padding: 2px 6px; 
    border-radius: 4px; 
}

.quiz-results { 
    text-align: center; 
    background: #ffffff; 
    padding: 40px; 
    border-radius: 12px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.1); 
}

.quiz-results h3 { 
    color: #2c3e50; 
    font-size: 2.2em; 
    margin-bottom: 25px; 
}

.score-display { 
    margin: 30px 0; 
    padding: 20px; 
    background: #f8f9fa; 
    border-radius: 10px; 
}

.score-number { 
    font-size: 1.8em; 
    font-weight: bold; 
    color: #007cba; 
}

.performance { 
    font-size: 1.2em; 
    font-weight: 600; 
    margin: 20px 0; 
    padding: 15px; 
    border-radius: 8px; 
}

.performance.excellent { 
    background: #d4edda; 
    color: #155724; 
}

.performance.good { 
    background: #cce5ff; 
    color: #004085; 
}

.performance.average { 
    background: #fff3cd; 
    color: #856404; 
}

.performance.needs-work { 
    background: #f8d7da; 
    color: #721c24; 
}

.quiz-message { 
    text-align: center; 
    padding: 40px; 
    background: #ffffff; 
    border-radius: 10px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
}

.quiz-error { 
    background: #f8d7da; 
    color: #721c24; 
    padding: 15px; 
    border-radius: 6px; 
    text-align: center; 
}

/* Matching Game Styles */
.simple-matching-game-container { 
    max-width: 800px; 
    margin: 20px auto; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
}

.simple-matching-game-area { 
    display: flex; 
    justify-content: space-between; 
    margin: 20px 0; 
}

.simple-matching-game-column.left-column { 
    width: 28%; 
}

.simple-matching-game-column.right-column { 
    width: 68%; 
}

.simple-matching-item { 
    border: 2px solid #ddd; 
    border-radius: 5px; 
    padding: 12px; 
    margin-bottom: 10px; 
    cursor: pointer; 
    background-color: #f9f9f9; 
    transition: background-color 0.2s; 
}

.simple-matching-item:hover { 
    background-color: #f0f0f0; 
}

.simple-matching-item.selected-0 { 
    background-color: #fceff5; 
    border-color: #e91e63; 
}

.simple-matching-item.selected-1 { 
    background-color: #f5edfb; 
    border-color: #9c27b0; 
}

.simple-matching-item.selected-2 { 
    background-color: #eef0fa; 
    border-color: #3f51b5; 
}

.simple-matching-item.selected-3 { 
    background-color: #eaf6fe; 
    border-color: #2196f3; 
}

.simple-matching-item.selected-4 { 
    background-color: #e7f5f4; 
    border-color: #009688; 
}

.simple-matching-game-controls { 
    text-align: center; 
    margin: 20px 0; 
}

.simple-matching-submit-btn, 
.simple-matching-nav-btn, 
.simple-matching-reset-btn { 
    background-color: #4CAF50; 
    color: white; 
    padding: 10px 20px; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    font-size: 16px; 
    text-decoration: none; 
    display: inline-block; 
}

.simple-matching-submit-btn:hover,
.simple-matching-nav-btn:hover,
.simple-matching-reset-btn:hover { 
    background-color: #45a049; 
}

.simple-matching-game-score { 
    text-align: center; 
    font-size: 18px; 
    margin: 20px 0; 
    padding: 15px; 
    background-color: #f2f2f2; 
    border-radius: 5px; 
}

.simple-matching-game-navigation,
.simple-matching-game-reset { 
    text-align: center; 
    margin: 30px 0; 
}

.simple-matching-game-final-score { 
    text-align: center; 
    padding: 20px; 
    margin: 20px 0; 
    background-color: #e8f5e9; 
    border-radius: 5px; 
}

.simple-matching-game-detailed-results { 
    margin: 25px 0; 
    padding: 15px; 
    background-color: #f9f9f9; 
    border-radius: 5px; 
    border: 1px solid #eee; 
}

.simple-matching-results-table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-bottom: 10px; 
}

.simple-matching-results-table th, 
.simple-matching-results-table td { 
    padding: 10px; 
    text-align: left; 
    border-bottom: 1px solid #ddd; 
}

.simple-matching-results-table th { 
    background-color: #f2f2f2; 
    font-weight: bold; 
}

.simple-matching-results-table tr.correct-match { 
    background-color: #f0f8f0; 
}

.simple-matching-results-table tr.incorrect-match { 
    background-color: #fff0f0; 
}

.simple-matching-results-table span.correct { 
    color: #4CAF50; 
    font-weight: bold; 
}

.simple-matching-results-table span.incorrect { 
    color: #f44336; 
    font-weight: bold; 
}

@media (max-width: 768px) {
    #quiz-container, 
    .simple-matching-game-container { 
        padding: 15px; 
        margin: 0 10px; 
    }
    
    .quiz-header h2 { 
        font-size: 1.8em; 
    }
    
    .question { 
        padding: 20px 15px; 
    }
    
    .option-label { 
        padding: 12px 15px; 
    }
    
    .option-label:hover { 
        transform: none; 
    }
    
    .simple-matching-game-area { 
        flex-direction: column; 
    }
    
    .simple-matching-game-column.left-column, 
    .simple-matching-game-column.right-column { 
        width: 100%; 
    }
}