@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #050505;
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    user-select: none;
    -webkit-user-select: none;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a1a2e 0%, #000000 100%);
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* UI Overlay */
#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hud-panel {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
    pointer-events: none;
}

.hud-item {
    font-size: 24px;
    color: #00ffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hud-label {
    font-size: 14px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hud-value {
    font-weight: 700;
}

#health-bar-container {
    width: 200px;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #00ffff;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

#health-bar-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #ff0000, #ffff00, #00ff00);
    transition: width 0.2s ease-out;
    box-shadow: 0 0 10px #00ff00;
}

/* Screens */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    backdrop-filter: blur(5px);
    z-index: 10;
    transition: opacity 0.5s;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

h1 {
    font-size: 64px;
    margin-bottom: 20px;
    background: linear-gradient(to bottom, #fff, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 10px;
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.5));
    animation: pulse 2s infinite;
    text-align: center;
}

h2 {
    font-size: 32px;
    color: #ff0055;
    text-shadow: 0 0 10px #ff0055;
    margin-bottom: 40px;
}

.btn {
    padding: 15px 40px;
    font-size: 24px;
    font-family: 'Orbitron', sans-serif;
    color: #00ffff;
    background: transparent;
    border: 2px solid #00ffff;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 3px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    margin: 10px;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: #00ffff;
    color: #000;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
    transform: scale(1.05);
}

.btn:active {
    transform: scale(0.95);
}

.instructions {
    margin-top: 30px;
    color: #888;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    max-width: 600px;
}

.key {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid #666;
    border-radius: 4px;
    color: #fff;
    background: #222;
    margin: 0 2px;
}

@keyframes pulse {
    0% {
        filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 40px rgba(0, 255, 255, 0.8));
    }

    100% {
        filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.5));
    }
}

/* Level Notification */
#level-notification {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    color: #fff;
    text-shadow: 0 0 20px #00ffff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s, transform 0.5s;
    z-index: 5;
}

#level-notification.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

/* Weapon Notification */
#weapon-notification {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translate(-50%, 0);
    font-size: 24px;
    color: #ffff00;
    text-shadow: 0 0 10px #ff0000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 5;
}

#weapon-notification.show {
    opacity: 1;
    transform: translate(-50%, -20px);
}