/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@400;600;700&family=Inter:wght@300;400;600&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    min-height: 100vh;
    background: linear-gradient(
        180deg,
        #1e40af 0%,
        #3b82f6 35%,
        #60a5fa 70%,
        #93c5fd 100%
    );
}

/* Cloud Styles */
.clouds-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.cloud {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
    will-change: transform;
}

.cloud1 {
    width: 300px;
    height: 200px;
    background-image: url('/static/images/cloud1.png');
}

.cloud2 {
    width: 400px;
    height: 250px;
    background-image: url('/static/images/cloud2.png');
}

.cloud3 {
    width: 350px;
    height: 220px;
    background-image: url('/static/images/cloud3.png');
}

.cloud4 {
    width: 280px;
    height: 180px;
    background-image: url('/static/images/cloud4.png');
}

.cloud5 {
    width: 450px;
    height: 300px;
    background-image: url('/static/images/cloud5.png');
}

/* Layout Containers */
.page-wrapper {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    position: relative;
}

.question-container {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    padding: 40px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 0 80px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(255, 255, 255, 0.3);
}

/* Question Styles */
.question-header {
    margin-bottom: 40px;
    text-align: center;
}

.question-title {
    font-family: 'Crimson Pro', serif;
    color: #003366;
    font-size: 2.2em;
    line-height: 1.4;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-bottom: 30px;
}

.question-number {
    color: #5b8ba3;
    font-weight: bold;
    margin-right: 10px;
}

/* Image Styles */
.question-image, .answer-image {
    margin: 20px 0;
    text-align: center;
    position: relative;
}

.question-image img, .answer-image img {
    max-width: 600px;
    max-height: 400px;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

/* Answer Styles */
.answers-section {
    margin: 30px 0;
}

.answer-list {
    list-style: none;
}

.answer-item {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.85) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.5);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.answer-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.1),
        0 0 10px rgba(255, 255, 255, 0.5);
}

.answer-text {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #2c3e50;
}

/* Button Styles */
.navigation-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
}

.button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
    background: linear-gradient(135deg, #0056b3, #0088ff);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 15px rgba(0, 86, 179, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.4);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.button-primary {
    background: linear-gradient(135deg, #0056b3, #0088ff);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
    background: linear-gradient(135deg, #0088ff, #40a3ff);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #0056b3;
    border: 2px solid #0088ff;
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.2);
}

/* Header and Footer Styles */
.site-header {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    min-height: 200px;
}

.site-title {
    font-family: 'Crimson Pro', serif;
    color: white;
    font-size: 3em;
    font-weight: 700;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(255, 255, 255, 0.3);
    margin: 0 auto;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.decorative-line {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    margin: 10px auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
        margin: 20px auto;
    }

    .question-container {
        padding: 20px;
    }

    .question-title {
        font-size: 1.8em;
    }

    .question-image img,
    .answer-image img {
        max-width: 100%;
        max-height: 300px;
    }

    .navigation-buttons {
        flex-direction: column;
    }

    .button {
        width: 100%;
        text-align: center;
    }

    .cloud {
        opacity: 0.6; /* Reduce cloud opacity on mobile */
    }
}

/* Geometric Background Elements */
.geometric-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.geometric-shape {
    position: absolute;
    opacity: 0.15;
    filter: blur(0.5px);
    background-repeat: no-repeat;
    background-size: contain;
}

/* DNA Helix */
.shape-dna {
    width: 100px;
    height: 300px;
    right: 5%;
    top: 20%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 300'%3E%3Cpath d='M50 0C20 75 80 225 50 300' stroke='white' fill='none' stroke-width='2'/%3E%3Cpath d='M50 0C80 75 20 225 50 300' stroke='white' fill='none' stroke-width='2'/%3E%3C/svg%3E");
    animation: float 15s infinite ease-in-out;
}

/* Compass */
.shape-compass {
    width: 150px;
    height: 150px;
    left: 8%;
    bottom: 15%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='45' stroke='white' fill='none' stroke-width='2'/%3E%3Cpath d='M50 5L50 95M5 50L95 50' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
    animation: rotate 20s infinite linear;
}

/* Mathematical Symbols Grid */
.math-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext x='10' y='50' fill='white' font-size='20'%3E∑%3C/text%3E%3Ctext x='40' y='50' fill='white' font-size='20'%3E∫%3C/text%3E%3Ctext x='70' y='50' fill='white' font-size='20'%3E∞%3C/text%3E%3C/svg%3E");
    background-size: 100px 100px;
    opacity: 0.1;
}

/* Add these keyframe animations */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


/* Add decorative corner elements to question container */
.question-container::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    opacity: 0.1;
    bottom: -20px;
    right: -20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M20 20l60 60M20 80l60-60' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
}

.question-container::before {
    top: -20px;
    left: -20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' stroke='%23000' fill='none' stroke-width='2'/%3E%3Cpath d='M50 10v80M10 50h80' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
    pointer-events: none;
}


/* Light Beam Effect */
.light-rays {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.light-ray {
    position: absolute;
    width: 200%;
    height: 200px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 45%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 55%,
        transparent 100%
    );
    transform: rotate(-45deg);
    animation: moveLight 12s infinite linear;
    transform-origin: 100% 0;
}

.light-ray:nth-child(2) {
    animation-delay: -4s;
}

.light-ray:nth-child(3) {
    animation-delay: -8s;
}

@keyframes moveLight {
    0% {
        transform: rotate(-45deg) translateX(-100%);
    }
    100% {
        transform: rotate(-45deg) translateX(100%);
    }
}

/* Particle Effect */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float-particle 20s infinite linear;
}

.particle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    filter: blur(1px);
}

@keyframes float-particle {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(100px, -100px) rotate(360deg);
    }
}

/* Glowing Orb Background Effect */
.glow-orb {
    position: absolute;
    /* Increase width and height for larger orbs */
    width: 600px;  /* Previously 300px */
    height: 600px; /* Previously 300px */
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.15) 0%,    /* Slightly increased opacity */
        rgba(255, 255, 255, 0.08) 30%,    /* Slightly increased opacity */
        transparent 70%
    );
    border-radius: 50%;
    animation: moveOrb 15s infinite ease-in-out;
    /* Increased blur for softer edges */
    filter: blur(60px);  /* Previously 40px */
}

/* You might want to adjust the movement animation for the larger orbs */
@keyframes moveOrb {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(150px, -75px); /* Increased movement range */
    }
}

/* If you want to give each orb a different size */
.glow-orb:nth-child(1) {
    width: 900px;
    height: 900px;
}

.glow-orb:nth-child(2) {
    width: 500px;
    height: 500px;
}

.glow-orb:nth-child(3) {
    width: 600px;
    height: 600px;
}


/* Glowing Text Effect for Headers */
@keyframes glowPulse {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.5),
            0 0 20px rgba(255, 255, 255, 0.3),
            0 0 30px rgba(255, 255, 255, 0.2);
    }
    50% {
        text-shadow: 
            0 0 15px rgba(255, 255, 255, 0.6),
            0 0 25px rgba(255, 255, 255, 0.4),
            0 0 35px rgba(255, 255, 255, 0.3);
    }
}

/* Animated Border Effect */
.answer-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
    animation: borderSlide 3s infinite;
}

@keyframes borderSlide {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

/* Decorative Line with Quill */
.decorative-line {
    width: 300px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    margin: 15px auto;
    position: relative;
}

.decorative-line::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Cpath d='M5,10 Q15,0 25,10' stroke='%23ffffff' fill='none' stroke-width='1'/%3E%3C/svg%3E");
    opacity: 0.8;
}

/* Book Stack Left */
.header-books-left {
    position: absolute;
    left: 20px;
    bottom: 0;
    width: 200px;
    height: 150px;
    background-image: url('/static/images/vintage-books-left.png');
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

/* Ivy Decoration */
.header-ivy {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/images/ivy-pattern.png');
    background-size: cover;
    opacity: 0.4;
    mask-image: linear-gradient(to bottom, 
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.8) 50%,
        rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, 
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.8) 50%,
        rgba(0,0,0,0) 100%);
}

/* Book Stack Right */
.header-books-right {
    position: absolute;
    right: 20px;
    bottom: 0;
    width: 200px;
    height: 150px;
    background-image: url('/static/images/vintage-books-right.png');
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

/* Celestial Elements Container */
.header-celestial {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* Orbit Ring */
.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 60px;
    transform: translate(-50%, -50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 60'%3E%3Cellipse cx='150' cy='30' rx='140' ry='25' fill='none' stroke='rgba(255,255,255,0.3)' stroke-width='0.5'/%3E%3Ccircle cx='40' cy='30' r='3' fill='rgba(255,255,255,0.8)'/%3E%3Ccircle cx='260' cy='30' r='3' fill='rgba(255,255,255,0.8)'/%3E%3C/svg%3E");
    animation: rotateOrbit 20s linear infinite;
}

/* Stars */
.star-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 10% 10%, white 100%, transparent),
        radial-gradient(1px 1px at 20% 50%, white 100%, transparent),
        radial-gradient(1px 1px at 30% 30%, white 100%, transparent),
        radial-gradient(1px 1px at 40% 70%, white 100%, transparent),
        radial-gradient(1px 1px at 70% 20%, white 100%, transparent),
        radial-gradient(1px 1px at 80% 50%, white 100%, transparent),
        radial-gradient(1px 1px at 90% 30%, white 100%, transparent);
    opacity: 0.3;
}


@keyframes rotateOrbit {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotateGalaxy {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}



/* Modal styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 95vw;  /* 95% of viewport width */
    height: 95vh; /* 95% of viewport height */
    max-width: none;  /* Remove max-width restriction */
    overflow: auto;
    z-index: 1001;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px;
}

.modal-close:hover {
    color: #000;
}

.modal-image {
    max-width: 95vw;  /* 95% of viewport width */
    max-height: 90vh; /* 90% of viewport height */
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.modal-text {
    font-size: 2em;
    line-height: 1.6;
    color: #333;
    padding: 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.modal-content.text-modal {
    /* Center the text vertically */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Add some padding for comfort */
    padding: 40px;
}

/* Make images and answers clickable */
.question-image img:hover, 
.answer-image img:hover,
.answer-item:hover {
    transform: scale(1.02);
}

/* Answer Bank Styles */
.answer-bank {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer; /* Make it look clickable */
    transition: transform 0.2s ease;
}

.answer-bank:hover {
    transform: scale(1.02);
}

.answer-bank-title {
    font-family: 'Crimson Pro', serif;
    color: #2c3e50;
    font-size: 1.4em;
    margin-bottom: 15px;
    text-align: center;
}

.answer-bank-content {
    font-size: 1.3em;
    line-height: 1.6;
    color: #2c3e50;
    /* Style for list items if your answer bank contains lists */
    ul, ol {
        margin: 10px 0;
        padding-left: 20px;
    }
    li {
        margin: 5px 0;
    }
}

/* Modal specific styling for answer bank */
.modal-answer-bank {
    font-size: 2em;  /* Even bigger in modal */
    line-height: 1.6;
    color: #333;
    padding: 30px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.modal-answer-bank .answer-bank-title {
    font-size: 1.4em;
    margin-bottom: 30px;
    color: #2c3e50;
}

.answer-explanation {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    font-size: 1.1em;
}

.answer-explanation strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 8px;
}

.answer-explanation p {
    margin: 0;
    color: #34495e;
}

/* Game List Styles */
.games-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.games-header {
    text-align: center;
    margin-bottom: 50px;
}

.games-title {
    font-family: 'Crimson Pro', serif;
    font-size: 3em;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.games-subtitle {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
    margin-top: 40px;
}

.game-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    height: 200px;
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.1),
        0 6px 6px rgba(0, 0, 0, 0.1);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.15),
        0 10px 10px rgba(0, 0, 0, 0.1);
}

.game-card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.game-name {
    font-family: 'Crimson Pro', serif;
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.game-icon {
    width: 60px;
    height: 60px;
    color: #5b8ba3;
    transition: all 0.3s ease;
}

.game-svg {
    width: 100%;
    height: 100%;
}

.game-card-hover {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0056b3, #0088ff);
    color: white;
    text-align: center;
    padding: 10px;
    transition: all 0.3s ease;
    opacity: 0;
}

.game-card:hover .game-card-hover {
    bottom: 0;
    opacity: 1;
}

.game-card:hover .game-name {
    transform: translateY(-10px);
}

.game-card:hover .game-icon {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .games-container {
        margin: 20px auto;
    }
    
    .games-title {
        font-size: 2.5em;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .game-card {
        height: 180px;
    }
}

/* Game Selection Page Specific Styles */
.game-selection-page {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    background-image: 
        linear-gradient(135deg, rgba(26, 54, 93, 0.97) 0%, rgba(45, 55, 72, 0.97) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.game-selection-header {
    text-align: center;
    padding: 60px 20px;
    background: transparent;
}

.game-selection-header .header-content {
    max-width: 800px;
    margin: 0 auto;
}

.game-selection-header .header-title {
    font-family: 'Crimson Pro', serif;
    font-size: 4em;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.3),
        2px 2px 4px rgba(0, 0, 0, 0.3);
}

.game-selection-header .header-subtitle {
    font-size: 1.5em;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

/* Navigation Bar Styles */
.navigation-bar {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-left, .nav-right {
    flex: 1;
}

.nav-center {
    flex: 2;
    text-align: center;
}

/* Round Selector */
.round-selector {
    padding: 8px 15px;
    border: 1px solid #d1e8f2;
    border-radius: 6px;
    background: white;
    font-size: 1em;
    color: #2c3e50;
    cursor: pointer;
    min-width: 150px;
}

/* Question Navigator */
.question-navigator {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.question-nav-button {
    width: 36px;
    height: 36px;
    border: 1px solid #d1e8f2;
    border-radius: 50%;
    background: white;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.2s ease;
}

.question-nav-button:hover {
    background: #f0f7fa;
}

.question-nav-button.active {
    background: #5b8ba3;
    color: white;
    border-color: #5b8ba3;
}

/* View Toggle Button */
.view-toggle-button {
    padding: 8px 15px;
    border: 1px solid #5b8ba3;
    border-radius: 6px;
    background: white;
    color: #5b8ba3;
    cursor: pointer;
    transition: all 0.2s ease;
    float: right;
}

.view-toggle-button:hover {
    background: #5b8ba3;
    color: white;
}


/* Game Overview Styles */
.game-overview-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

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

.game-title {
    font-family: 'Crimson Pro', serif;
    font-size: 3em;
    color: white;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.description-container {
    margin: 1rem 0;
    width: 100%;
}

.game-description {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.game-stats {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stats-summary {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 1.1em;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
}

.rounds-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.round-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.round-title {
    font-family: 'Crimson Pro', serif;
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.round-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
}

.round-description {
    color: #666;
    font-size: 1.1em;
    line-height: 1.4;
}

.game-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.start-game {
    font-size: 0.9em;
    padding: 15px 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rounds-overview {
        grid-template-columns: 1fr;
    }
    
    .game-title {
        font-size: 2.5em;
    }
}

.password-verification-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alert-error {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Video Styles */
.question-video, .answer-video {
    margin: 20px 0;
    text-align: center;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.responsive-video {
    max-width: 100%;
    max-height: 400px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
    object-fit: contain; /* This ensures the entire video is visible */
}

/* Modal video styles */
.modal-video {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

/* Make videos clickable like images */
.question-video video:hover, 
.answer-video video:hover {
    transform: scale(1.02);
    cursor: pointer;
}

/* Responsive design for videos */
@media (max-width: 768px) {
    .responsive-video {
        max-width: 100%;
        max-height: 300px;
    }
}