@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
    font-family: 'Press Start 2P', cursive;
    background-color: #000;
    color: #fff;
}

#tron-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: tron-scroll 10s linear infinite;
    z-index: 1;
}

@keyframes tron-scroll {
    from { background-position: 0 0; }
    to { background-position: 0 -100px; }
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.text-neon-pink {
    color: #ff00ff;
    text-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 40px #ff00ff;
}

.text-neon-blue {
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff, 0 0 20px #00ffff;
}

.text-neon-purple {
    color: #A020F0;
    text-shadow: 0 0 5px #A020F0, 0 0 10px #A020F0, 0 0 20px #A020F0;
}

.text-neon-green {
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00, 0 0 20px #00ff00;
}

.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.5) 0, rgba(0,0,0,0.5) 1px, transparent 1px, transparent 2px);
    pointer-events: none;
    z-index: 9999;
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.6; }
}

.game-card {
    border: 2px solid #00ff00;
    box-shadow: 0 0 10px #00ff00;
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #00ff00;
}

.bg-neon-pink {
    background-color: #ff00ff;
}

.glitch-icon {
    animation: glitch 1.5s infinite alternate;
}

@keyframes glitch {
    0% {
        transform: translate(0);
        clip-path: inset(0 0 0 0);
    }
    20% {
        transform: translate(-2px, 2px);
        clip-path: inset(5% 0 10% 0);
    }
    40% {
        transform: translate(-5px, -5px);
        clip-path: inset(10% 0 5% 0);
    }
    60% {
        transform: translate(5px, 5px);
        clip-path: inset(2% 0 15% 0);
    }
    80% {
        transform: translate(2px, -2px);
        clip-path: inset(12% 0 3% 0);
    }
    100% {
        transform: translate(0);
        clip-path: inset(0 0 0 0);
    }
}

@media (max-width: 767px) {
    header h1 {
        font-size: 3rem;
    }

    header h2 {
        font-size: 1rem; /* Reduced font size for subheader on mobile */
    }
}