/* Quiz-specific styles */
.quiz-container {
    max-width: 800px;
    margin: 80px auto 40px;
    padding: 20px;
}

.quiz-header {
    text-align: center;
    margin-bottom: 40px;
}

.quiz-header h1 {
    color: #8b4589;
    font-size: 2.5em;
    font-family: 'Chicle', cursive;
    margin-bottom: 10px;
}

.quiz-header p {
    color: #6b5b4f;
    font-size: 1.2em;
}

.score-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5em;
    font-weight: bold;
}

.score-display .stars {
    font-size: 2em;
    margin-top: 10px;
}

.question-card {
    background: linear-gradient(to right, 
        #fefefe 0%, 
        #fefefe 10px, 
        #f8f8f0 10px, 
        #f8f8f0 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #d4c4b0;
}

.question-card.answered-correct {
    border: 3px solid #4CAF50;
    background: linear-gradient(to right, 
        #e8f5e9 0%, 
        #e8f5e9 10px, 
        #c8e6c9 10px, 
        #c8e6c9 100%);
}

.question-card.answered-wrong {
    border: 3px solid #f44336;
    background: linear-gradient(to right, 
        #ffebee 0%, 
        #ffebee 10px, 
        #ffcdd2 10px, 
        #ffcdd2 100%);
}

.question-number {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    line-height: 50px;
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    margin-right: 15px;
    vertical-align: middle;
}

.question-text {
    display: inline-block;
    font-size: 1.5em;
    color: #8b4589;
    font-family: 'Chicle', cursive;
    margin-bottom: 20px;
    line-height: 1.4;
    vertical-align: middle;
    max-width: calc(100% - 70px);
}

.choices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.choice-btn {
    background: white;
    border: 3px solid #8b4589;
    border-radius: 15px;
    padding: 20px;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-family: 'Fira Sans', sans-serif;
    color: #2c2c2c;
}

.choice-btn:hover:not(.correct):not(.wrong):not(.disabled) {
    background: #f5f1e8;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(139, 69, 137, 0.3);
}

.choice-btn.correct {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
    animation: celebrate 0.5s ease;
}

.choice-btn.wrong {
    background: #f44336;
    color: white;
    border-color: #f44336;
    animation: shake 0.5s ease;
}

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

@keyframes celebrate {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1) rotate(5deg); }
    75% { transform: scale(1.1) rotate(-5deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.feedback {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.3em;
    text-align: center;
    font-weight: bold;
    display: none;
}

.feedback.correct {
    background: #4CAF50;
    color: white;
    display: block;
}

.feedback.wrong {
    background: #f44336;
    color: white;
    display: block;
}

.results-section {
    display: none;
    text-align: center;
    padding: 40px;
    background: linear-gradient(to right, 
        #fefefe 0%, 
        #fefefe 10px, 
        #f8f8f0 10px, 
        #f8f8f0 100%);
    border-radius: 20px;
    margin-top: 30px;
}

.results-section h2 {
    color: #8b4589;
    font-size: 2.5em;
    font-family: 'Chicle', cursive;
    margin-bottom: 20px;
}

.final-score {
    font-size: 3em;
    color: #667eea;
    font-weight: bold;
    margin: 20px 0;
}

.emoji-celebration {
    font-size: 5em;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.retry-btn, .story-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 25px;
    cursor: pointer;
    margin: 10px;
    transition: transform 0.3s;
}

.retry-btn:hover, .story-btn:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .quiz-header h1 {
        font-size: 2em;
    }

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

    .question-text {
        font-size: 1.2em;
    }
}
