
        .header {
            text-align: center;
            color: white;
            
            padding: 20px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            backdrop-filter: blur(10px);
        }

        .header h1 {
            font-size: 5em;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .screen {
            display: none;
            background: rgb(173 158 158);
            border-radius: 205px;
            padding: 120px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.2);
            margin-bottom: 20px;

        }

        .screen.active {
            display: block;
        
        }

        .login-screen {
            background-color: #cec7c7;
             box-shadow: inset -6px -9px 30px 30px rgba(0, 0, 0.1, 0.2);
             padding: 30px;
            text-align: center;
            max-width: 400px;
            margin: 0 auto;
            background: border-box;
        }

        .auth-form {
            margin: 20px 0;
        }

        .form-group {
            margin: 15px 0;
        }

        .form-group input {
            width: 100%;
            padding: 12px;
            border: 2px solid #ddd;
            border-radius: 8px;
            font-size: 16px;
            transition: border-color 0.3s;
        }

        .form-group input:focus {
            outline: none;
            border-color: #667eea;
         box-shadow: 100 90px 80px rgba(0, 0, 0.1, 0.2);

        }

        .btn {
            background: #242731;
            color: rgb(105, 11, 11);
            border: none;
            padding: 30px 50px;
            border-radius: 8px;
            font-size: 16px;

            cursor: pointer;

            
            transition: all 0.3s;
            margin: 10px 5px;
            display: inline-block;
            text-decoration: none;
            background: border-box;
        }

        .btn:hover {
            background: #5a6fd8;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            transform: skew(10deg);
        }

        .btn-secondary {
            background: #6c757d;
        }

        .btn-secondary:hover {
            background: #5a6268;
        }

        .btn-danger {
            background: #dc3545;
        }

        .btn-danger:hover {
            background: #c82333;
        }

        .google-signin {
            margin: 20px 0;
        }

        .main-menu {
            text-align: center;
        }

        .menu-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
            margin-top: 30px;
        }

        .timer-selection {
            text-align: center;
        }

        .timer-options {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin: 30px 0;
            flex-wrap: wrap;
        }

        .timer-btn {
            background: #28a745;
            color: white;
            border: none;
            padding: 40px 80px;
            border-radius: 15px;
            font-size: 18px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .timer-btn:hover {
            background: #218838;
            transform: scale(1.05);
        }

        .game-area {
            position: relative;
            padding: 30px;
            background: #f8f9fa;
            border-radius: 15px;
            margin: 20px 0;
        }

        .game-controls {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 20px;
        }

        .story-container {
            font-size: 20px;
            line-height: 1.8;
            margin: 30px 0;
            padding: 30px;
            background: white;
            border-radius: 10px;
            border: 3px solid #dee2e6;
            min-height: 200px;
        }

        .char {
            transition: all 0.2s;
        }

        .char.correct {
            background-color: #d4edda;
            color: #155724;
        }

        .char.incorrect {
            background-color: #f8d7da;
            color: #721c24;
        }

        .char.current {
            background-color: #667eea;
            color: white;
            animation: blink 1s infinite;
        }

        @keyframes blink {
            0%, 50% { opacity: 1; }
            51%, 100% { opacity: 0.3; }
        }

        .car-track {
            position: relative;
            width: 100%;
            height: 100px;
            background: #6c757d;
            border-radius: 50px;
            margin: 20px 0;
            overflow: hidden;
        }

        .car {
            position: absolute;
            left: 0%;
            top: 50%;
            transform: translateY(-50%);
            width: 60px;
            height:120px;
            background-image: url('./assets/logo/car.jpg');
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            transition: left 0.3s ease;
            z-index: 10;
            border-radius: 5px;
        }

        .track-line {
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 2px;
            background: white;
            opacity: 0.5;
        }

        .timer-display {
            text-align: center;
            font-size: 2em;
            color: #dc3545;
            margin: 20px 0;
            font-weight: bold;
        }

        .progress-bar {
            width: 100%;
            height: 20px;
            background: #e9ecef;
            border-radius: 10px;
            overflow: hidden;
            margin: 20px 0;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #28a745, #20c997);
            width: 0%;
            transition: width 0.3s ease;
        }

        .results-screen {
            text-align: center;
        }

        .results-stats {
            display: grid;
            /* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
            gap: 20px;
            margin: 30px 0;
            background: url('../../result.jpg') no-repeat center center/cover; /* 🔹 Your image */
           max-width: 500px;
          border: 4px solid #555;
           border-radius: 15px;
           text-align: center;

        }
    /* .results {
    display: none;
    background: url('../../result.jpg') no-repeat center center/cover; /* 🔹 Your image */
    /* border: 4px solid #555;
    border-radius: 15px;
    padding: 30px 25px;
    margin: 20px auto;
    max-width: 500px;
    color: white;
    text-align: center;
    box-shadow: 0 0 25px rgba(0,0,0,0.9);
    font-family: Arial, sans-serif;
    color: white; */
*/

        .stat-card {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 10px;
            border: 2px solid #dee2e6;
            padding: 30px 25px;
            margin: 20px auto;
           padding: 30px 25px;
        }

        .stat-value {
            font-size: 2.5em;
            font-weight: bold;
            color: #667eea;
            
        }

        .stat-label {
            font-size: 1.2em;
            color: #6c757d;
            margin-top: 10px;
            
        }

        .user-profile {
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 20px 0;
            gap: 15px;
        }

        .profile-picture {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            border: 3px solid #667eea;
        }

        .profile-info h3 {
            margin: 0;
            color: #343a40;
        }

        .profile-info p {
            margin: 5px 0 0 0;
            color: #6c757d;
        }

        .admin-panel {
            max-width: 600px;
            margin: 0 auto;
        }

        .admin-section {
            margin: 30px 0;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 10px;
        }

        .admin-section h3 {
            margin-bottom: 15px;
            color: #343a40;
        }

        .color-picker {
            width: 50px;
            height: 50px;
            border: none;
            border-radius: 25px;
            cursor: pointer;
        }


        .help-section {
            margin-bottom: 20px;
        }

        .help-section h3 {
            margin-bottom: 15px;
            color: #667eea;
        }

        .help-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
        }

        .help-item {
            background: rgba(255, 255, 255, 0.1);
            padding: 15px;
            border-radius: 8px;
        }

        .help-item h4 {
            margin-bottom: 8px;
            color: #ffd700;
        }

        .shake {
            animation: shake 0.5s;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
            20%, 40%, 60%, 80% { transform: translateX(10px); }
        }

        .certificate {
            width: 800px;
            height: 600px;
            background-image: url('images/english.png');
            background-size: cover;
            background-position: center;
            position: relative;
            margin: 20px auto;
            display: none;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }

        .certificate-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            color: #333;
            width: 90%;
        }

        .certificate h2 {
            font-size: 2.5em;
            margin-bottom: 20px;
            color: #2c3e50;
        }

        .certificate h3 {
            font-size: 2em;
            margin: 15px 0;
            color: #667eea;
        }

        .certificate p {
            font-size: 1.3em;
            margin: 10px 0;
            color: #555;
        }

        .signature {
            position: absolute;
            bottom: 50px;
            right: 100px;
            width: 150px;
            height: 75px;
            background-image: url('../../signature.jpg');
            background-size: contain;
            background-repeat: no-repeat;
        }

        @media (max-width: 768px) {
            .container {
                padding: 10px;
            }
            
            .header h1 {
                font-size: 2em;
            }
            
            .menu-buttons {
                flex-direction: column;
                align-items: center;
            }
            
            .timer-options {
                flex-direction: column;
                align-items: center;
            }
            
            .story-container {
                font-size: 18px;
                padding: 20px;
            }
            
            .results-stats {
                grid-template-columns: 1fr;
            }
            
            .help-grid {
                grid-template-columns: 1fr;
            }
            
            .certificate {
                width: 100%;
                max-width: 400px;
                height: 300px;
            }
            
            .certificate h2 {
                font-size: 1.5em;
            }
            
            .certificate h3 {
                font-size: 1.3em;
            }
            
            .certificate p {
                font-size: 1em;
            }
        }

        .hidden {
            display: none !important;
        }

        .loading {
            text-align: center;
            padding: 50px;
        }

        .spinner {
            border: 4px solid #f3f3f3;
            border-top: 4px solid #667eea;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            animation: spin 1s linear infinite;
            margin: 20px auto;
        }

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


/* ✅ Base styles (your original remain unchanged) */

/* 📱 Tablet (max 1024px) */
@media (max-width: 1024px) {
    .header h1 {
        font-size: 3em;
    }

    .screen {
        border-radius: 50px;
        padding: 60px;
    }

    .btn {
        padding: 20px 35px;
        font-size: 15px;
    }

    .timer-btn {
        padding: 30px 60px;
        font-size: 16px;
    }

    .story-container {
        font-size: 18px;
        padding: 20px;
    }

    .certificate {
        width: 600px;
        height: 450px;
    }

    .certificate h2 {
        font-size: 2em;
    }
}

/* 📱 Mobile large (max 768px) */
@media (max-width: 768px) {
    .header {
        padding: 15px;
    }

    .header h1 {
        font-size: 2.2em;
    }

    .screen {
        padding: 40px;
        border-radius: 30px;
    }

    .btn {
        padding: 15px 25px;
        font-size: 14px;
        width: 100%;
    }

    .menu-buttons, .timer-options {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .timer-btn {
        padding: 20px 40px;
        font-size: 15px;
        width: 100%;
    }

    .story-container {
        font-size: 16px;
        padding: 15px;
    }

    .car {
        width: 40px;
        height: 80px;
    }

    .certificate {
        width: 100%;
        max-width: 400px;
        height: 300px;
    }

    .certificate h2 {
        font-size: 1.5em;
    }

    .certificate h3 {
        font-size: 1.2em;
    }

    .certificate p {
        font-size: 0.9em;
    }
}

/* 📱 Mobile medium (max 480px) */
@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8em;
    }

    .screen {
        padding: 20px;
        border-radius: 20px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 13px;
    }

    .timer-btn {
        padding: 15px 25px;
        font-size: 14px;
    }

    .story-container {
        font-size: 15px;
        padding: 12px;
    }

    .results-stats {
        gap: 15px;
    }

    .car-track {
        height: 70px;
    }

    .car {
        width: 30px;
        height: 60px;
    }

    .certificate {
        max-width: 320px;
        height: 220px;
    }
}

/* 📱 Mobile small (max 320px) */
@media (max-width: 320px) {
    .header h1 {
        font-size: 1.5em;
    }

    .btn {
        padding: 10px 15px;
        font-size: 12px;
    }

    .timer-btn {
        padding: 12px 20px;
        font-size: 12px;
    }

    .story-container {
        font-size: 14px;
        padding: 10px;
    }

    .car-track {
        height: 60px;
    }

    .car {
        width: 25px;
        height: 50px;
    }

    .certificate {
        max-width: 280px;
        height: 200px;
    }

    .certificate h2 {
        font-size: 1.2em;
    }

    .certificate h3 {
        font-size: 1em;
    }

    .certificate p {
        font-size: 0.8em;
    }
}