@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
    --primary-color: #00ff00;
    /* Green terminal default */
    --secondary-color: #ff00ff;
    --bg-color: #000000;
    --font-family: 'Press Start 2P', cursive;
}

body {
    margin: 0;
    padding: 0;
    background-color: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    font-family: var(--font-family);
    color: var(--primary-color);
}

#game-container {
    position: relative;
    width: 800px;
    height: 600px;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
    background-color: var(--bg-color);
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Let clicks pass through to canvas if needed, or toggle for menus */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Utility classes for UI */
.hidden {
    display: none !important;
}

.menu {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.85);
    padding: 2rem;
    border: 2px solid var(--primary-color);
    text-align: center;
    box-shadow: 0 0 20px var(--primary-color);
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {

    0%,
    100% {
        box-shadow: 0 0 10px var(--primary-color),
            0 0 20px var(--primary-color),
            0 0 30px var(--primary-color);
    }

    50% {
        box-shadow: 0 0 20px var(--primary-color),
            0 0 30px var(--primary-color),
            0 0 40px var(--primary-color),
            0 0 50px var(--primary-color);
    }
}

button {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    margin: 10px;
    font-family: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

button:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 10px var(--primary-color);
}