/* Quiz-specific styles */

.quiz-screen {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.quiz-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.quiz-card {
    background-color: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-card:hover {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.quiz-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.quiz-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.question-container {
    text-align: center;
}

.question-container h3 {
    font-size: 1.3rem;
    color: #34495e;
    margin-bottom: 2rem;
}

.hanzi-display {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.hanzi-display-small {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.choices-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.choice-btn {
    background-color: white;
    border: 2px solid #34495e;
    border-radius: 10px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.choice-btn:hover {
    background-color: #ecf0f1;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.choice-btn.correct {
    background-color: #27ae60;
    color: white;
    border-color: #27ae60;
}

.choice-btn.wrong {
    background-color: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.choice-btn.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.choice-indonesian {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.choice-pinyin {
    color: #3498db;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.3rem;
}

.choice-btn.correct .choice-pinyin,
.choice-btn.wrong .choice-pinyin {
    color: rgba(255, 255, 255, 0.9);
}

.choice-zhuyin {
    color: #27ae60;
    font-size: 1rem;
    display: block;
}

.choice-btn.correct .choice-zhuyin,
.choice-btn.wrong .choice-zhuyin {
    color: rgba(255, 255, 255, 0.9);
}

.feedback-message {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.feedback-message.correct {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #27ae60;
}

.feedback-message.wrong {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #e74c3c;
}

.review-container {
    text-align: center;
}

.review-container h3 {
    font-size: 1.3rem;
    color: #34495e;
    margin-bottom: 1rem;
}

.review-answer {
    background-color: #f9f9f9;
    border: 2px solid #3498db;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 500px;
}

.review-answer .choice-indonesian {
    font-size: 1.3rem;
    color: #2c3e50;
}

.review-answer .choice-pinyin {
    font-size: 1.1rem;
    color: #3498db;
}

.review-answer .choice-zhuyin {
    font-size: 1.2rem;
    color: #27ae60;
}

.btn-primary {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

@media (max-width: 768px) {
    .quiz-list {
        grid-template-columns: 1fr;
    }

    .choices-container {
        grid-template-columns: 1fr;
    }

    .quiz-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hanzi-display {
        min-height: 150px;
    }
}
