* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f4ecd8;
    color: #2c2c2c;
    font-family: 'Times New Roman', serif;
    line-height: 1.6;
    -webkit-user-select: none; 
    -ms-user-select: none;      
    user-select: none;  
}

.top-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: #800000;
    border-bottom: 4px solid #d4af37;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px;
    gap: 10px;
}

.logo {
    font-size: 28px;
    color: #d4af37;
    font-weight: bold;
    letter-spacing: 4px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    gap: 15px;
    padding: 0;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: white;
    text-transform: uppercase;
    font-size: 15px;
    transition: 0.3s;
    padding: 5px;
}

.nav-links a:hover {
    color: #d4af37;
}

.hero-header {
    height: 60vh;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('game.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 105px;
    padding: 0 20px;
    text-align: center;
}

.hero-header h1 {
    color: #f4ecd8;
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.7);
    margin: 0;
    text-align: center;
}

.content-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

h2 {
    color: #800000;
    border-bottom: 2px solid #d4af37;
    display: inline-block;
    padding-right: 20px;
    margin-top: 30px;
    font-size: 1.8rem;
}

.quiz-container {
    border: 8px double #800000;
    padding: 20px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.q-progress { font-style: italic; color: #555; margin: 0; }
.question-display { font-size: 20px; margin: 25px 0; color: #1a1a1a; }
.timer-container { width: 100%; height: 6px; background-color: #f0f0f0; margin: 15px 0; border-radius: 3px; overflow: hidden; }

#timer-bar {
    height: 100%;
    width: 100%;
    background-color: #d4af37;
    transition: none;
}

.options-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }

.quiz-btn {
    background-color: white;
    border: 1px solid #800000;
    color: #800000;
    padding: 15px;
    font-size: 14px;
    font-family: 'Times New Roman', serif;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    width: 100%;
}

.quiz-btn:hover { background-color: #800000; color: #f4ecd8; }
.correct { background-color: #2e7d32 !important; color: white !important; }
.wrong { background-color: #800000 !important; color: white !important; }

#feedback { margin-top: 25px; font-weight: bold; text-align: center; height: 25px; }

.review-area { margin-top: 40px; border-top: 2px solid #d4af37; padding-top: 20px; text-align: left; }
.review-item { margin-bottom: 15px; padding: 10px; background: #f9f9f9; border-left: 5px solid #800000; }
.review-item p { margin: 5px 0; }
.text-correct { color: #2e7d32; font-weight: bold; }
.text-wrong { color: #800000; font-weight: bold; }

.hidden { display: none; }
.no-border { border: none !important; }
.final-score-text { font-size: 24px; text-align: center; color: #2c2c2c; }

@media screen and (min-width: 768px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }

    .logo {
        font-size: 35px;
    }

    .nav-links {
        gap: 30px;
    }

    .nav-links a {
        font-size: 18px;
    }

    .hero-header {
        margin-top: 60px;
    }

    .hero-header h1 {
        font-size: 4rem;
        letter-spacing: 8px;
    }

    h2 {
        font-size: 2rem;
        margin-top: 40px;
    }

    .quiz-container {
        padding: 40px;
    }

    .question-display {
        font-size: 26px;
    }

    .options-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .quiz-btn {
        padding: 18px;
        font-size: 16px;
    }

    .final-score-text {
        font-size: 32px;
    }
}
