/* --------------------------------------------------
   GLOBAL
-------------------------------------------------- */
body {
    margin: 0;
    background: #87ceeb;
    font-family: Verdana, sans-serif;
}

/* --------------------------------------------------
   PRELOADER
-------------------------------------------------- */
#preloader {
    position: fixed;
    inset: 0;
    background: #001f33;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
    transition: opacity 0.8s ease;
}

#preloader-box {
    text-align: center;
    padding: 30px 50px;
    border: 2px solid #00c8ff;
    border-radius: 10px;
    box-shadow: 0 0 20px #00c8ff;
}

#preloader h1 {
    margin: 0 0 10px 0;
    font-size: 42px;
    text-shadow: 0 0 10px #00c8ff;
}

#preloader p {
    margin: 5px 0;
    font-size: 18px;
}

.click-to-start {
    margin-top: 20px;
    font-size: 20px;
    animation: pulse 1.2s infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

#preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* --------------------------------------------------
   LAYOUT (HUD + GAME)
-------------------------------------------------- */
#layout {
    display: flex;
    flex-direction: row;
    height: 100vh;
}

#hud {
    width: 180px;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.25);
    color: #000;
    font-size: 20px;       /* bigger text */
    font-weight: bold;     /* clearer */
    display: flex;
    flex-direction: column;
    gap: 10px;
}


#game-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --------------------------------------------------
   GAME WRAPPER + CANVAS
-------------------------------------------------- */
#game-wrapper {
    position: relative;
    width: 900px;
    height: 600px;
}

#gameCanvas {
    border: 2px solid #000;
    background: #87ceeb;
    display: block;
    width: 900px;
    height: 600px;
}
