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

:root {
    --neon-blue: #00f3ff;
    --neon-pink: #ff00ff;
    --neon-green: #00ff00;
    --bg-color: #0a0a0a;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: #fff;
    font-family: 'Press Start 2P', cursive;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* CRT Scanline Effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.2));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 100;
    animation: scanline 10s linear infinite;
}

@keyframes scanline {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 100%;
    }
}

header {
    margin-top: 50px;
    text-align: center;
    text-transform: uppercase;
    text-shadow:
        0 0 5px var(--neon-blue),
        0 0 10px var(--neon-blue),
        0 0 20px var(--neon-blue),
        0 0 40px var(--neon-pink);
    animation: flicker 2s infinite alternate;
}

h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1rem;
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green);
}

@keyframes flicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        opacity: 1;
    }

    20%,
    24%,
    55% {
        opacity: 0.5;
    }
}

.arcade-cabinet {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    flex-wrap: wrap;
    padding: 20px;
}

.game-card {
    background: #1a1a1a;
    border: 4px solid var(--neon-blue);
    border-radius: 10px;
    width: 300px;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: white;
    position: relative;
    overflow: hidden;
}

.game-card:hover {
    transform: scale(1.05);
    box-shadow:
        0 0 20px var(--neon-blue),
        inset 0 0 20px var(--neon-blue);
}

.game-card.popcorn {
    border-color: var(--neon-pink);
}

.game-card.popcorn:hover {
    box-shadow:
        0 0 20px var(--neon-pink),
        inset 0 0 20px var(--neon-pink);
}

.game-preview {
    width: 100%;
    height: 200px;
    background-color: #000;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: transparent;
    /* Hide text */
    border-bottom: 4px solid var(--neon-blue);
}

.moonbase .game-preview {
    background-image: url('assets/moonbase-thumb.png');
}

.popcorn .game-preview {
    background-image: url('assets/popcorntime-thumb.png');
    border-bottom-color: var(--neon-pink);
}

.game-title {
    font-size: 1.5rem;
    text-align: center;
    margin-top: 20px;
}

.play-btn {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 10px 20px;
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: background 0.2s, color 0.2s;
}

.game-card:hover .play-btn {
    background: white;
    color: black;
    animation: blink 0.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

footer {
    margin-top: auto;
    padding: 20px;
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}