@font-face {
    font-family: 'VT323';
    src: url('https://fonts.googleapis.com/css2?family=VT323&display=swap');
}

body {
    background-color: #000;
    color: #00ff00;
    font-family: 'VT323', monospace;
    text-shadow: 0 0 5px #00ff00;
    margin: 0;
    padding: 20px;
}

.game-selection {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    font-size: 3em;
    margin-bottom: 40px;
    animation: flicker 1.5s infinite alternate;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px;
}

.game-card {
    border: 2px solid #00ff00;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    color: #00ff00;
    transition: all 0.3s ease;
    background: rgba(0, 255, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.game-card:hover {
    background: rgba(0, 255, 0, 0.2);
    transform: scale(1.05);
    box-shadow: 0 0 15px #00ff00;
}

.game-card img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    filter: brightness(0.8) sepia(100%) hue-rotate(70deg);
}

.game-card h2 {
    font-size: 1.8em;
    margin: 10px 0;
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 
            0 0 5px #00ff00,
            0 0 10px #00ff00,
            0 0 15px #00ff00;
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* Efecto de líneas de escáner */
.game-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        transparent,
        rgba(0, 255, 0, 0.1),
        transparent
    );
    animation: scan 2s linear infinite;
}

@keyframes scan {
    from {
        transform: translateY(-50%);
    }
    to {
        transform: translateY(50%);
    }
}