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

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #0b1d3a;
    overflow: hidden;
    font-family: 'Press Start 2P', 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 100%;
    max-height: 800px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    background: linear-gradient(to bottom, var(--sky-top, #0b1d3a), var(--sky-bottom, #1a4282));
    overflow: hidden;
    transition: background 0.5s ease;
}

#hud {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    color: white;
    text-shadow: 3px 3px 0px #000;
    z-index: 10;
    font-size: 16px;
    pointer-events: none;
}

#parachute-status {
    color: #ff3333; /* Default closed color */
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated; /* Essential for retro pixel art look */
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#overlay.active {
    opacity: 1;
    pointer-events: auto;
}

h1 {
    font-size: 40px;
    margin-bottom: 30px;
    color: #ffcc00;
    text-shadow: 5px 5px 0px #aa2200;
    line-height: 1.5;
}

p {
    font-size: 14px;
    line-height: 2;
    text-shadow: 2px 2px 0px #000;
}
