.quiz-container {
    max-width: 800px;
    margin: 3.5rem auto 2rem;
    padding: 1rem;
    position: relative;
}

.quiz-progress {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.progress-section {
    flex: 1;
    margin-right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: -0.7rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--sand-dark);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gambia-green);
    width: 0;
    transition: width 0.3s ease;
}

.score {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gambia-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--sand-light);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.score::before {
    content: '🎯';
    font-size: 1.2rem;
}

.question-count {
    margin-top: 0.2rem;
    font-size: 0.9rem;
    color: var(--gambia-blue);
    opacity: 0.8;
}

.quiz-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.question {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--gambia-blue);
    font-family: 'Playfair Display', serif;
}

.options {
    display: grid;
    gap: 1rem;
}

.option {
    width: 100%;
    padding: 1rem;
    margin: 0.5rem 0;
    border: 2px solid var(--gambia-blue);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.option.correct {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
    animation: pulse 0.5s;
}

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

.fact {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--sand-light);
    border-radius: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.fact.hidden {
    display: none;
}

.fact i {
    color: var(--gambia-blue);
    font-size: 1.5rem;
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--gambia-red);
    animation: fall 3s linear forwards;
}

.confetti:nth-child(2n) {
    background: var(--gambia-blue);
}

.confetti:nth-child(3n) {
    background: var(--gambia-green);
}

@keyframes fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

.shake {
    animation: shake 0.5s;
}

.end-screen {
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.end-screen button {
    margin: 1rem;
    padding: 1rem 2rem;
    background: var(--gambia-blue);
    color: white;
    border: none;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.end-screen button:hover {
    background: var(--gambia-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.end-screen button:first-of-type::before {
    content: '🔄';
}

.end-screen button:last-of-type::before {
    content: '📱';
}

.end-emoji {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: bounce 1s infinite;
}

.score-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
}

.score-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--gambia-blue);
}

.score-percent {
    font-size: 2.5rem;
    color: var(--gambia-green);
    font-weight: bold;
}

.score-message {
    font-size: 1.5rem;
    color: var(--gambia-blue);
    margin: 2rem 0;
}

.score-facts {
    text-align: left;
    margin-top: 2rem;
    padding: 1rem;
    background: var(--sand-light);
    border-radius: 0.5rem;
}

.score-facts ul {
    list-style: none;
    padding: 0;
}

.score-facts li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.difficulty-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.difficulty-badge.easy {
    background: #4CAF50;
    color: white;
}

.difficulty-badge.medium {
    background: #FF9800;
    color: white;
}

.difficulty-badge.hard {
    background: #F44336;
    color: white;
}

.milestone-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: slideIn 0.5s ease-out;
    z-index: 1000;
}

.milestone-message h3 {
    font-size: 2rem;
    color: var(--gambia-blue);
    margin: 0 0 0.5rem 0;
}

.milestone-message p {
    font-size: 1.2rem;
    color: var(--gambia-green);
    margin: 0;
    opacity: 0.8;
}

.milestone-message.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translate(-50%, -40%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
}

.timer-container {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.timer {
    height: 100%;
    background: var(--gambia-green);
    width: 100%;
    transition: width 0.1s linear;
}

/* When time is running low */
.timer.warning {
    background: var(--gambia-red);
}

.option:disabled {
    cursor: default;
    opacity: 0.7;
} 