
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&display=swap');

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

body {
    font-family: 'Orbitron', sans-serif;
    background: radial-gradient(circle at center, #0a0a0a 0%, #050505 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Neon pulse background glow */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(18,255,84,0.08) 0%, transparent 70%);
    animation: pulse 6s infinite alternate ease-in-out;
    z-index: -1;
}

@keyframes pulse {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.2); }
}

/* 🎯 Game container */
#game-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 75vh;
    width: 75vh;
    background: rgba(20, 20, 20, 0.8);
    border: 3px solid #10ff7f;
    border-radius: 25px;
    box-shadow: 0 0 25px #10ff7f, inset 0 0 20px #057f3b;
    position: relative;
    transition: all 0.3s ease;
}

#game-container:hover {
    box-shadow: 0 0 35px #10ff7f, inset 0 0 25px #08c159;
}

/* Canvas styling */
canvas {
    border: 2px solid #10ff7f;
    box-shadow: 0 0 10px #10ff7f;
    border-radius: 10px;
}

/* Score container */
#score-container {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #00ffcc;
    font-size: 1.2rem;
    text-shadow: 0 0 10px #00ffcc;
}

/* Buttons */
#button-container {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

button {
    padding: 12px 20px;
    background: linear-gradient(90deg, #10ff7f, #00ffcc);
    color: #000;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    letter-spacing: 0.8px;
    box-shadow: 0 0 15px #00ffcc;
}

button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 25px #10ff7f;
}

#new-game-btn {
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    color: white;
    box-shadow: 0 0 15px #ff416c;
}

#new-game-btn:hover {
    box-shadow: 0 0 25px #ff4b2b;
}

/* Popups */
.popup-message,
#demo-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 10, 10, 0.95);
    color: #fff;
    border: 2px solid #10ff7f;
    border-radius: 10px;
    padding: 20px 30px;
    font-size: 18px;
    text-align: center;
    display: none;
    z-index: 1000;
    box-shadow: 0 0 25px #10ff7f;
}

#demo-popup img {
    max-width: 80%;
    height: auto;
    border-radius: 10px;
    border: 2px solid #00ffcc;
    margin-bottom: 10px;
}

/* Demo speed box */
#demo-speed {
    background-color: #1a1a1a;
    color: #10ff7f;
    border: 1px solid #10ff7f;
    border-radius: 5px;
    text-align: center;
    padding: 6px;
    width: 100px;
    transition: all 0.3s;
}

#demo-speed:focus {
    outline: none;
    border-color: #00ffcc;
    box-shadow: 0 0 8px #00ffcc;
}

/* Footer */
#footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    text-align: center;
    color: #00ffcc;
    font-size: 14px;
    padding: 10px 0;
    box-shadow: 0 0 20px rgba(0,255,204,0.2);
}

#footer a {
    color: #10ff7f;
    text-decoration: none;
}

#footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    #game-container {
        width: 90vw;
        height: 65vh;
    }

    #score-container {
        font-size: 1rem;
    }

    button {
        font-size: 12px;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    #game-container {
        width: 95vw;
        height: 60vh;
    }

    #score-container {
        font-size: 0.9rem;
    }

    button {
        font-size: 11px;
        padding: 8px 14px;
    }
}
/* ===== HERO SECTION ===== */
#hero-section {
    text-align: center;
    margin-top: 80px;
    margin-bottom: 60px;
    color: #00ffcc;
    text-shadow: 0 0 15px #00ffcc;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(90deg, #10ff7f, #00ffcc);
    color: #000;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px #00ffcc;
}

.hero-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px #10ff7f;
}

/* ===== CENTER GAME SECTION ===== */
#main-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    min-height: 90vh;
}

/* ===== FOOTER FIX ===== */
#footer {
    position: relative;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 15px 0;
    font-size: 14px;
    color: #00ffcc;
    background: rgba(10, 10, 10, 0.85);
    box-shadow: 0 0 25px rgba(0,255,204,0.15);
    margin-top: 50px;
}

