:root {
            --primary: #6c5ce7;
            --secondary: #a29bfe;
            --accent: #413f59;
            --dark: #2d3436;
            --score:  #7ac69a;
            --light: #f5f6fa;
            --correct: #00b894;
            --wrong: #d63031;
            --loading-bg: #2d3436;
            --timer: #00cec9;
            --progressbar: #a29bfe;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            color: var(--light);
        }

        /* Loading Screen */
        .loading-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--loading-bg);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 100;
            transition: opacity 0.5s;
        }

        .loading-screen.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .logo {
            width: 150px;
            height: 150px;
            margin-bottom: 30px;
            background-color: var(--accent);
            border-radius: 30px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 3rem;
            font-weight: bold;
            color: white;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }

        .loading-text {
            font-size: 1.5rem;
            margin-bottom: 20px;
        }

        .loading-bar {
            width: 200px;
            height: 10px;
            background-color: rgba(255, 255, 255, 0.2);
            border-radius: 5px;
            overflow: hidden;
        }

        .loading-progress {
            height: 100%;
            width: 0%;
            background-color: var(--accent);
            transition: width 0.3s;
        }

        /* Start Screen */
        .start-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 50;
            transition: opacity 0.5s;
        }

        .start-screen.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .game-title {
            font-size: 3rem;
            margin-bottom: 20px;
            text-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
        }

        .game-description {
            font-size: 1.2rem;
            margin-bottom: 40px;
            text-align: center;
            max-width: 80%;
            line-height: 1.5;
        }

        .mode-buttons {
            display: flex;
            flex-direction: column;
            gap: 20px;
            width: 80%;
            max-width: 300px;
        }

        .mode-button {
            background-color: var(--accent);
            color: white;
            border: none;
            padding: 15px 40px;
            font-size: 1.3rem;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .mode-button:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        }

        /* Game Container */
        .game-container {
            background-color: rgba(45, 52, 54, 0.9);
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            width: 90%;
            max-width: 500px;
            padding: 30px;
            text-align: center;
            position: relative;
            overflow: hidden;
            opacity: 0;
            transform: scale(0.9);
            transition: all 0.5s;
        }

        .game-container.active {
            opacity: 1;
            transform: scale(1);
        }

        .header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 30px;
            font-size: 1.2rem;
            position: relative;
        }

        .home-button {
            position: absolute;
            left: 0;
            top: 0;
            background: none;
            border: none;
            color: var(--secondary);
            font-size: 1.5rem;
            cursor: pointer;
            transition: color 0.3s;
        }

        .home-button:hover {
            color: var(--accent);
        }

        .score {
            color: var(--score);
            font-weight: bold;
            margin-left: 30px;
        }

        .question-number {
            color: var(--secondary);
        }

        .timer-container {
            color: var(--timer);
            font-weight: bold;
            font-size: 1.2rem;
            margin-bottom: 10px;
            height: 30px;
        }

        .question {
            font-size: 2.5rem;
            margin: 20px 0;
            min-height: 80px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

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

        .option {
            background-color: var(--dark);
            border: 2px solid var(--secondary);
            border-radius: 10px;
            padding: 15px;
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.3s;
        }

        .option:hover {
            background-color: var(--primary);
            transform: translateY(-3px);
        }

        .feedback {
            height: 30px;
            font-size: 1.2rem;
            margin-bottom: 10px;
            font-weight: bold;
        }

        .correct {
            color: var(--correct);
        }

        .wrong {
            color: var(--wrong);
        }

        .progress-bar {
            height: 8px;
            background-color: var(--dark);
            border-radius: 4px;
            margin-top: 20px;
            overflow: hidden;
        }

        .progress {
            height: 100%;
            background-color: var(--progressbar);
            width: 0%;
            transition: width 0.3s;
        }

        /* Ad Screen */
        .ad-screen {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 10;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.5s;
        }

        .ad-screen.active {
            opacity: 1;
            pointer-events: all;
        }

        .ad-content {
            background-color: var(--dark);
            padding: 20px;
            border-radius: 15px;
            text-align: center;
            max-width: 80%;
        }

        .ad-title {
            color: var(--accent);
            font-size: 1.5rem;
            margin-bottom: 20px;
        }

        .ad-message {
            margin-bottom: 30px;
            font-size: 1.1rem;
        }

        .ad-timer {
            color: var(--secondary);
            font-size: 1.2rem;
            margin-bottom: 20px;
        }

        .close-ad {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1rem;
            transition: background-color 0.3s;
        }

        .close-ad:hover {
            background-color: var(--accent);
        }

        /* Game Over Screen */
        .game-over {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 10;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.5s;
        }

        .game-over.active {
            opacity: 1;
            pointer-events: all;
        }

        .game-over h2 {
            color: var(--accent);
            font-size: 2rem;
            margin-bottom: 20px;
        }

        .final-score {
            font-size: 1.5rem;
            margin-bottom: 30px;
        }

        .restart {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 10px;
            cursor: pointer;
            font-size: 1.2rem;
            transition: all 0.3s;
        }

        .restart:hover {
            background-color: var(--accent);
            transform: scale(1.05);
        }

        @media (max-width: 500px) {
            .game-title {
                font-size: 2.5rem;
            }
            
            .question {
                font-size: 2rem;
            }
            
            .options {
                grid-template-columns: 1fr;
            }
            
            .mode-buttons {
                width: 90%;
            }
            
            .home-button {
                font-size: 1.2rem;
            }
            
            .score {
                margin-left: 25px;
            }
        }