* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Courier New', monospace;
    color: #fff;
    overflow: hidden;
}

#game-container {
    position: relative;
    width: 800px;
    height: 600px;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
}

#game-canvas {
    width: 100%;
    height: 100%;
    background: #000;
    cursor: crosshair;
}

#hud {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75px;
    padding: 0;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 50%, #0a0a0a 100%);
    border-top: 4px solid #666666;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.1),
        inset 0 -2px 0 rgba(0, 0, 0, 0.5),
        0 -4px 20px rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    font-family: 'Press Start 2P', monospace;
}

#hud-stats {
    width: 75%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.hud-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex: 1;
}

#hud-weapon {
    width: 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 6px;
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 50%, #1a1a1a 100%);
    border-left: 3px solid #666666;
    box-shadow:
        inset 2px 0 0 rgba(255, 255, 255, 0.1),
        inset -2px 0 0 rgba(0, 0, 0, 0.5);
}

#weapon-icon-container {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #999999;
    border: 2px solid #444444;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 -1px 2px rgba(255, 255, 255, 0.2);
}

#weapon-icon {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 4px rgba(255, 255, 0, 0.3));
}

.hud-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    position: relative;
    flex: 1;
    justify-content: center;
}

.stat-label {
    color: #888888;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow:
        1px 1px 0 #000000,
        -1px -1px 0 rgba(255, 255, 255, 0.1);
}

.stat-value {
    color: #FFFF00;
    font-size: 14px;
    text-shadow:
        2px 2px 0 #000000,
        0 0 10px rgba(255, 255, 0, 0.5);
    min-width: 40px;
    text-align: right;
}

.health-bar {
    width: 70px;
    height: 14px;
    background: #1a1a1a;
    border: 2px solid #444444;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.8),
        inset 0 -1px 2px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.health-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(180deg, #00FF00 0%, #00CC00 50%, #009900 100%);
    transition: width 0.3s ease;
    box-shadow:
        inset 0 2px 2px rgba(255, 255, 255, 0.3),
        inset 0 -2px 2px rgba(0, 0, 0, 0.3);
}

/* Responsive for smaller screens */
@media (max-width: 850px) {
    #game-container {
        width: 100vw;
        height: 100vh;
    }
} 