* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins";
}

body {
    background-color: #F1FEC6;
    color: #c21e08;
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #c21e08;
    padding: 1rem 2rem;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 2px solid rgba(194, 30, 8, 0.1);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    letter-spacing: -1px;
    font-weight: bold;
    color: #F1FEC6;
    font-family: cursive;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #F1FEC6;
    text-decoration: none;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    opacity: 0.7;
}

.hero {
    max-height: 100vh;
    display: flex;
    align-items: center;
    padding: 3rem 2rem;
    margin-top: 70px;
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: bold;
    letter-spacing: -0.1rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-text p {
    font-size: 1rem;
    margin-bottom: 2.5rem;
    color: #666;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.7s forwards;
    line-height: 1.5;
}

.cta-button {
    background-color: #c21e08;
    color: #F1FEC6;
    padding: 1rem 2rem;
    border: none;
    border-radius: 3px;
    font-size: 1rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.9s forwards;
    font-weight: 600;
}

.cta-button:hover {
    box-shadow: 0 10px 25px rgba(194, 30, 8, 0.3);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateX(50px);
    animation: fadeInRight 1s ease 1s forwards;
    padding-top: 50px;
}

.quiz-preview {
    background: white;
    padding: 2rem;
    border-radius: 3px;
    max-width: 400px;
    width: 100%;
}

.preview-question {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
    letter-spacing: 0.1px;
}

.preview-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preview-option {
    padding: 0.8rem;
    background: #F1FEC6;
    border: none;
    border-radius: 3px;
    transition: all 0.3s ease;
    text-align: left;
    border: 2px solid transparent;
}

.categories {
    padding-top: 7rem;
    padding-bottom: 4rem;
}

.categories-content {
    max-width: 700px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    letter-spacing: -0.4px;
    font-size: 2.5rem;
    color: #c21e08;
    font-weight: bold;
}

.section-subtitle {
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: -0.01rem;
    margin-bottom: 3rem;
    color: #666;
}

.categories-grid {
    display: grid;
    gap: 2rem;
}

.category-card {
    background: white;
    height: fit-content;
    padding: 2rem;
    border-radius: 3px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #c21e08;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-align: center;
    color: #c21e08;
}

.category-desc {
    color: #666;
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.category-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #999;
    padding-top: 1rem;
    border-top: 1px solid #F1FEC6;
}

.quiz-game {
    min-height: 100vh;
    padding: 5rem;
    display: none;
    background: #F1FEC6;
}

.quiz-container {
    max-width: fit-content;
    margin: 0 auto;
    background: white;
    border-radius: 3px;
    padding: 3rem;
    margin-top: 50px;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #F1FEC6;
}

.quiz-title {
    font-size: 1.5rem;
    color: #c21e08;
    font-weight: bold;
}

.quiz-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    width: 120px;
    height: 8px;
    background: #F1FEC6;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #c21e08, #e63946);
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 0%;
}

.question-section {
    margin-bottom: 2rem;
}

.question-text {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: #333;
    line-height: 1.5;
    font-weight: 500;
    background: #F1FEC6;
    padding: 0.8rem;
    border-radius: 3px;
    border-left: 3px solid #c21e08;
}

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

.option-btn {
    padding: 0.6rem;
    padding-left: 1.5rem;
    background: #F1FEC6;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 500;
    border: none;
}

.option-btn:hover:not(:disabled) {
    transform: translateX(2px);
}

.option-btn.correct {
    background: #28a745;
    color: white;
    transform: scale(1.02);
}

.option-btn.incorrect {
    background: #dc3545;
    color: white;
    transform: scale(0.98);
}

.option-btn:disabled {
    cursor: not-allowed;
}

.message-box {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: 3px;
    background: #000;
    color: #F1FEC6;
    font-size: 0.8rem;
    font-weight: 300;
}

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

.score-display {
    font-size: 1rem;
    font-weight: bold;
    color: #c21e08;
    background: #F1FEC6;
    padding: 1rem 1rem;
    border-radius: 3px;
}

.control-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.btn-primary,
.btn-secondary {
    background: #c21e08;
    color: #F1FEC6;
    box-shadow: 0 4px 10px rgba(194, 30, 8, 0.3);
}

.btn:hover:not(:disabled) {
    opacity: 0.8;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    gap: 1rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #F1FEC6;
    border-top: 3px solid #c21e08;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: #c21e08;
    font-size: 1rem;
    font-weight: 300;
}

.results-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.results-content {
    background: #c21e08;
    padding: 2rem;
    padding-bottom: 2.5rem;
    border-radius: 3px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    color: #F1FEC6;
}

.results-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.results-score {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.results-message {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.results-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.results-btn {
    padding: 1rem 1rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
    border: none;
    background: #F1FEC6;
    color: #c21e08;
    font-weight: bold;
    transition: all 0.3s ease;
}

.results-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(241, 254, 198, 0.2);
    background: white;
}

.hidden {
    display: none;
}

.vignette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    background: radial-gradient(ellipse at center,
            rgba(0, 0, 0, 0) 60%,
            rgba(0, 0, 0, 0.2) 100%);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 1000px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding-bottom: 55px;
    }

    .hero-text h1 {
        font-size: 2.7rem;
    }
}

@media (max-width: 768px) {
    .quiz-container {
        margin-top: 3rem;
        padding: 3rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .quiz-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .quiz-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .control-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .results-buttons {
        flex-direction: column;
        align-items: center;
    }

    .categories-content {
        max-width: 400px;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 550px) {
    .quiz-container {
        width: 90vw;
        max-width: none;
        margin: 0 auto;
        margin-top: 40px;
        padding: 1.7rem;
        transform: none;
        margin-left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 440px) {
    .nav-links {
        display: none;
    }

    .hero-text h1 {
        font-size: 2.3rem;
    }

    .hero-text p {
        font-size: 0.8rem;
    }

    .results-content {
        padding: 1.5rem;
        padding-bottom: 2.5rem;
    }

    .results-score {
        font-size: 2rem;
    }

    .btn {
        padding: 1rem 1rem;
        font-size: 0.8rem;
        font-weight: 300;
    }

    .categories-content {
        max-width: 280px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.6rem;
    }
}