/* --- Global & Base Styles --- */
:root {
    /* 🌟 FUTURISTIC NEON COLORS 🌟 */
    --color-bg-dark: #0a0a1a; /* Dark Space Blue */
    --color-primary-neon: #00e0ff; /* Main HUD Blue/Cyan */
    --color-secondary-neon: #ff00ff; /* Accent HUD Pink/Magenta */
    --color-danger: #ff3333; /* For hearts/danger */
    --color-success: #00cc00; /* For correct answers */
    --color-border-dark: #003355; /* Dark border color */
    --color-panel-bg: rgba(10, 10, 30, 0.95); /* Near-solid Dark Panel Background */
    
    --pixel-border: 4px; /* Used for spacing/sizing */
    --spacing-unit: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Press Start 2P', 'Courier New', monospace; 
    background-color: var(--color-bg-dark);
    color: white;
    /* Allow scrolling */
    overflow-y: auto; 
    
    /* Make body a vertical flex container */
    display: flex;
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: center;
    min-height: 100vh;
    
    /* Ensure no extra padding is forcing content down */
    padding: 0; 
}



/* 🚨 DELETING #page-frame-wrapper - we'll style #app-container instead 🚨 */

/* --- App Container (Main HUD Frame) & Screens --- */
#app-container {
    /* Layout & Positioning */
    position: relative;
    width: 100%;
    max-width: 900px; /* Max width for the main console */
    
    /* Flexbox for Content Alignment */
    display: flex;
    flex-direction: column; /* Changed to column to better handle flow inside */
    justify-content: center;
    align-items: center;
    
    /* Sizing */
    height: auto; /* Height determined by content */
    min-height: 70vh; /* Minimum height for centering on short screens */
    
    /* Spacing & Layering */
    padding: var(--spacing-unit);
    z-index: 10; 
    
    /* Crucial for pushing footer/content to bottom if this is inside a main flex container */
    flex-grow: 1; 

    /* 🌟 FUTURISTIC FRAME STYLE 🌟 */
    background-color: var(--color-panel-bg);
    border: 2px solid var(--color-primary-neon);
    border-radius: 8px;
    box-shadow: 
        0 0 25px var(--color-primary-neon), /* Main blue glow */
        0 0 50px rgba(255, 0, 255, 0.3) inset; /* Inner pink glow for depth */
    
    /* Animation for a 'live' screen effect */
    animation: neon-pulse 5s infinite alternate;
}

@keyframes neon-pulse {
    from { box-shadow: 0 0 20px var(--color-primary-neon), 0 0 40px rgba(255, 0, 255, 0.2) inset; }
    to { box-shadow: 0 0 30px var(--color-primary-neon), 0 0 60px rgba(255, 0, 255, 0.4) inset; }
}

.screen {
    width: 100%;
    /* No height: 100%; here to allow it to be determined by content within the flex column */
    
    /* Screen Layout */
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* Spacing & Transition */
    padding: var(--spacing-unit);
    transition: opacity 0.3s ease-in-out;
}

.screen.active {
    display: flex;
}

/* --- Futuristic Styling: Panel & Buttons (Renamed for Clarity) --- */

/* Main Panel Style */
.mc-panel, .hud-panel { 
    background-color: rgba(10, 10, 30, 0.7); /* Lighter panel background */
    border: 1px solid var(--color-primary-neon);
    border-radius: 4px;
    padding: calc(var(--spacing-unit) * 1.5);
    box-shadow: 0 0 15px rgba(0, 224, 255, 0.5); /* Blue glow effect */
}

/* Main Button Style */
.mc-button, .hud-button { 
    font-family: inherit;
    font-size: 1.2rem;
    color: var(--color-primary-neon); /* Neon text */
    background-color: var(--color-panel-bg); /* Dark background */
    border: 2px solid var(--color-primary-neon);
    padding: 10px 20px;
    margin: 8px 0;
    cursor: pointer;
    text-shadow: 0 0 8px var(--color-primary-neon); /* Neon text glow */
    transition: background-color 0.1s, transform 0.1s, box-shadow 0.1s;
    box-shadow: 0 0 15px rgba(0, 224, 255, 0.4); /* Neon button glow */
    border-radius: 4px;
}

.mc-button:hover, .hud-button:hover {
    background-color: rgba(0, 224, 255, 0.1); /* Light glow on hover */
    box-shadow: 0 0 20px var(--color-primary-neon), 0 0 30px var(--color-secondary-neon);
}

.mc-button:active, .hud-button:active {
    transform: translateY(1px);
    box-shadow: 0 0 10px var(--color-primary-neon);
}


/* --- Game Logo (No major changes needed here) --- */
/* wrapper center alignment */
.logo-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* big visible logo */
.game-logo {
  width: 250px !important;
  height: auto !important;
  display: block;
  margin: 0 auto -40px auto;
}

/* app name styling (if used) */
.app-name {
  font-size: 48px;
  font-weight: bold;
  color: #222;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
}

/* --- Quiz Screen HUD --- */
.game-hud {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 20px);
    padding: 10px;
    z-index: 20;
}

.score-container {
    font-size: 1.2rem;
    padding: 8px 12px;
    background-color: var(--color-panel-bg);
    border: 2px solid var(--color-primary-neon);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 224, 255, 0.3);
}

/* --- Hearts System (Kept mostly the same, using danger color) --- */
.hearts-container {
    display: flex;
    gap: 2px;
    order: 2;
    margin-right: auto;
    margin-left: 10px;
}

.heart-icon {
    width: 24px;
    height: 24px;
    /* Keeping the heart shape for recognition, but coloring it via filter */
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="%23FF3333" d="M8 0a4 4 0 00-4 4c0 4 4 8 4 8s4-4 4-8a4 4 0 00-4-4z"/></svg>') no-repeat center center / contain;
    filter: grayscale(100%) brightness(0.2); /* Dim/empty state */
    transition: all 0.2s ease;
}

.heart-icon.glowing {
    filter: none; /* Full brightness */
    box-shadow: 0 0 8px var(--color-danger); /* Red glow effect */
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

.heart-icon.restoring {
    filter: brightness(1.5);
    transform: scale(1.3);
}

/* --- Circular Timer --- */
.timer-container {
    width: 50px;
    height: 50px;
    order: 3;
}

.circular-chart {
    display: block;
    margin: 0 auto;
}

.circle-bg {
    fill: none;
    stroke: var(--color-border-dark);
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke: var(--color-danger);
    stroke-width: 3.8;
    stroke-linecap: round;
    transition: stroke-dasharray 0.5s linear;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.percentage {
    fill: white;
    font-size: 0.7em;
    text-anchor: middle;
}

.timer-running .circle {
    animation: timer-flash 0.5s infinite alternate;
}

/* --- Quiz Content --- */
.quiz-content {
    width: 100%;
    max-width: 600px;
    padding: var(--spacing-unit);
    margin-top: 60px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-text {
    font-size: clamp(1rem, 4vw, 1.5rem);
    min-height: 80px;
    text-align: center;
    background-color: var(--color-panel-bg);
    border: 2px solid var(--color-primary-neon);
    padding: var(--spacing-unit);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 224, 255, 0.4);
}

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

.option-button {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    text-align: left;
    padding: 12px 20px;
}

/* Correct/Wrong Answer Feedback */
.option-button.correct {
    background-color: var(--color-success);
    box-shadow: 0 0 10px var(--color-success);
    color: var(--color-bg-dark); /* Dark text on bright background */
    animation: flash-correct 0.3s ease-in-out;
}

.option-button.wrong {
    background-color: var(--color-danger);
    box-shadow: 0 0 10px var(--color-danger);
    color: var(--color-bg-dark);
    animation: shake 0.3s ease-in-out;
}

/* Animations are fine to keep */
@keyframes flash-correct {
    0% { background-color: var(--color-success); }
    50% { background-color: #33ff33; }
    100% { background-color: var(--color-success); }
}

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

.quit-button {
    background-color: #8b0000;
    box-shadow: 0 0 10px #ff0000;
}

.quit-button:hover {
    background-color: #a00000;
}

/* --- Result Screen --- */
.result-title {
    font-size: clamp(2rem, 8vw, 3rem);
    color: var(--color-secondary-neon); /* Pink/Magenta Title */
    text-shadow: 0 0 10px var(--color-secondary-neon);
    margin-bottom: 20px;
}

.result-details {
    width: clamp(250px, 80%, 400px);
    margin-bottom: 30px;
    text-align: left;
}

.result-details p {
    font-size: 1.1rem;
    padding: 5px 0;
    border-bottom: 1px dashed rgba(0, 224, 255, 0.2); /* Neon dashed line */
}

.result-details span {
    float: right;
    color: var(--color-primary-neon);
}

.result-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: clamp(200px, 70%, 350px);
}

/* --- Rules Modal --- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-backdrop.hidden {
    display: none;
}

.modal-content {
    width: clamp(300px, 80vw, 500px);
    max-height: 90vh;
    /* Applying new panel styling */
    background-color: rgba(10, 10, 30, 0.95);
    border: 2px solid var(--color-secondary-neon);
    padding: calc(var(--spacing-unit) * 1.5);
    border-radius: 8px;
    box-shadow: 0 0 20px var(--color-secondary-neon);
    transform: scale(1);
    transition: transform 0.3s ease-out;
    text-align: left;
}

.modal-title {
    color: var(--color-primary-neon);
    text-align: center;
    margin-bottom: 15px;
    font-size: clamp(1.5rem, 5vw, 2rem);
    text-shadow: 0 0 5px var(--color-primary-neon);
}

.rules-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.rules-list li {
    margin-bottom: 10px;
}

.rule-title {
    color: var(--color-secondary-neon); /* Pink for emphasis */
    font-weight: bold;
    display: inline-block;
    min-width: 80px;
}

.close-button {
    display: block;
    margin: 20px auto 0;
    width: 50%;
    text-align: center;
}

/* --- Mobile Responsiveness Adjustments (Kept largely the same) --- */
@media (max-width: 600px) {
    #app-container {
        padding: 8px;
    }

    .game-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        padding: 10px 0 20px;
    }

    .game-logo {
        width: 100px;
    }

    .game-hud {
        flex-wrap: wrap;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 5px;
        justify-content: space-around;
        gap: 5px;
    }

    .score-container,
    .hearts-container,
    .timer-container {
        order: 1;
        margin: 0;
    }

    .score-container {
        font-size: 1rem;
        padding: 6px 10px;
    }

    .heart-icon {
        width: 20px;
        height: 20px;
    }

    .timer-container {
        width: 40px;
        height: 40px;
    }

    .quiz-content {
        margin-top: 70px;
    }

    .options-container {
        grid-template-columns: 1fr;
    }

    .option-button {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .modal-content {
        width: clamp(280px, 90vw, 400px);
        padding: var(--spacing-unit);
    }

    .modal-title {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }

    .rules-list {
        font-size: 0.8rem;
    }
}
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}
/* --- Optimized Footer Styling for Mobile Readability --- */
#main-footer {
    /* Base Frame & Positioning */
    width: 100%;
    max-width: 900px; 
    margin-top: 0; /* Ensures it joins the app container */
    padding: var(--spacing-unit); /* Increased padding for better vertical spacing */
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Minimal Style - CHANGED TO WHITE BACKGROUND */
    background-color: #ffffff; /* WHITE BACKGROUND */
    border-top: 1px solid rgba(0, 0, 0, 0.1); /* Lighter border for white background */
    border-radius: 0; 
    box-shadow: none; 
    
    /* Text Styling - CHANGED TO DARK TEXT */
    color: rgba(0, 0, 0, 0.6); /* Darker text for readability on white */
    font-size: 0.8rem;
    z-index: 5; 
}

/* Inner content wrapper for proper alignment */
.footer-content {
    width: 100%;
    max-width: 900px;
    
    /* 🌟 CRITICAL FIX: Change to column layout on mobile 🌟 */
    display: flex;
    flex-direction: column; /* Stack all items vertically */
    align-items: flex-start; /* Align content to the left (like in your squished screenshot, but clean) */
    gap: 10px; /* Space between each stacked item (copyright, links, UID) */
}

/* Grouping for links and social icons (This needs to be flex-row for links) */
.footer-links {
    display: flex;
    gap: 15px; /* Spacing between "About Us" and "Contact Us" */
    align-items: center;
    width: 100%; /* Take full width */
    justify-content: flex-start; /* Align links to the left */
}

.footer-social {
    display: flex;
    align-items: center;
    /* Optional: If you want the icon next to the links, remove this separate selector */
}

/* Reset default margins for better control */
#main-footer p, #main-footer div {
    margin: 0;
    padding: 0;
}

/* Style for links - CHANGED TO DARK LINKS */
#main-footer a {
    color: rgba(0, 0, 0, 0.8); /* Darker links */
    text-decoration: none;
    transition: color 0.1s;
}

#main-footer a:hover {
    color: var(--color-primary-neon, #007bff); /* Use a good primary color or blue for hover */
    text-decoration: underline;
}

/* Style for social icons */
.footer-social i {
    font-size: 1.2rem;
    line-height: 1; /* Fixes alignment issues with text */
}

.scarfall-uid {
    white-space: nowrap; 
    font-weight: normal;
    opacity: 0.8;
}






Is css ko bahot jyada professional kardo kuch jyada hi lights ho gaye hain neon jyada ho gaya hai ui badal do bus  aur all functions work karne chahiye
