@import url('https://fonts.googleapis.com/css2?family=Zen+Dots&display=swap');

body {
    margin: 0;
    padding: 0;
    background-color: #050505;
    color: #fff;
    font-family: 'Zen Dots', cursive;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#score-container {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 24px;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

#health-container {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    color: #ff0055;
    text-shadow: 0 0 10px #ff0055;
}

#health-bar {
    width: 200px;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #ff0055;
    border-radius: 5px;
    overflow: hidden;
}

#health-fill {
    width: 100%;
    height: 100%;
    background: #ff0055;
    box-shadow: 0 0 10px #ff0055;
    transition: width 0.2s ease-out;
}

#start-screen,
#game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: auto;
}

h1,
h2 {
    font-size: 64px;
    margin: 0 0 20px 0;
    background: linear-gradient(to bottom, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    letter-spacing: 5px;
}

p {
    font-size: 24px;
    color: #aaa;
    animation: pulse 1.5s infinite;
}

.hidden {
    display: none !important;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}