:root {
    --bg-color: #0d1117;
    --panel-bg: #161b22;
    --neon-blue: #00f0ff;
    --neon-yellow: #fce205;
    --neon-red: #ff003c;
    --text-main: #c9d1d9;
}

body {
    margin: 0;
    padding: 0;
    color: var(--text-main);
    font-family: 'Courier New', Courier, monospace; /* Gives a terminal/tech vibe */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: 
        linear-gradient(rgba(5, 10, 25, 0.4), rgba(5, 10, 25, 0.6)),
        url("pixel-art-space-game-level-260nw-2544510599.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    filter: brightness(1.2) contrast(1.1);
}

.game-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.header h1 {
    font-size: 2rem;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.header span {
    color: var(--neon-blue);
}

.game-container {
    display: flex;
    gap: 30px;
    background: var(--panel-bg);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #30363d;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

canvas {
    background-color: #000;
    border: 2px solid var(--neon-blue);
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.ui-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 250px;
}

.stat-box {
    background: var(--bg-color);
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid var(--neon-blue);
}

.stat-box h3 {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    color: #8b949e;
}

.stat-box p {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--neon-blue);
}

.status #statusDisplay.overcharge {
    color: var(--neon-yellow);
    animation: pulse 1s infinite;
}

.instructions {
    margin-top: auto;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #8b949e;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; text-shadow: 0 0 10px var(--neon-yellow); }
    100% { opacity: 1; }
}
/* Add to existing style.css */
.game-container {
    position: relative; /* Crucial for absolute overlays */
}

.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 600px; /* Matches canvas width */
    height: 600px;
    background: rgba(13, 17, 23, 0.95);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 5px;
    text-align: center;
}

.overlay.active {
    display: flex;
}

.overlay h2 {
    color: var(--neon-blue);
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.blink {
    animation: blinker 1s linear infinite;
    color: var(--neon-yellow);
}

@keyframes blinker {
    50% { opacity: 0; }
}

ul#menuList {
    list-style: none;
    padding: 0;
    font-size: 1.5rem;
}

ul#menuList li {
    margin: 15px 0;
    color: #8b949e;
    transition: all 0.2s;
}

ul#menuList li.selected {
    color: var(--neon-yellow);
    text-shadow: 0 0 10px var(--neon-yellow);
    transform: scale(1.1);
}

ul#menuList li.selected::before {
    content: "> ";
}

ul#menuList li.disabled {
    opacity: 0.3;
}

/* Update these sections in your existing style.css */

.menu-body {
    background-image: 
        linear-gradient(rgba(5, 10, 25, 0.4), rgba(5, 10, 25, 0.6)),
        url("pixel-art-space-game-level-260nw-2544510599.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    filter: brightness(1.2) contrast(1.1);
}

.menu-container {
    width: 600px;
    height: 400px;
    position: relative;
    background: var(--panel-bg);
    border: 1px solid #30363d;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
    overflow: hidden;
}

ul#menuList li a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    width: 100%;
}

.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13, 17, 23, 0.95);
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    text-align: center;
}
/* Ensure active overlays show up */
.overlay.active {
    display: flex; 
}