/* css/styles.css */

/*
 * Orbitron font is used in MenuScene canvas rendering (js/scenes/menu-scene.js)
 * DO NOT REMOVE - even though it's not used in HTML/CSS directly
 */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&display=swap');

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

body {
    background: #111;
    color: white;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    min-height: 100vh;
}

/* Game Container */
.game-container {
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

/* Canvas layers - stacked on top of each other */
#bgCanvas, #gameCanvas {
    display: block;
    border: 2px solid #444;
    border-radius: 22px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

#bgCanvas {
    position: relative;
    z-index: 1;
    background: #000;
}

#gameCanvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    background: transparent;
    pointer-events: auto;  /* gameCanvas receives all mouse events */
}

/* Responsive adjustments */
@media (max-width: 640px) {
    body {
        padding: 10px;
    }

    .game-container {
        max-width: 100%;
    }

    #bgCanvas, #gameCanvas {
        max-width: 100%;
        height: auto;
    }
}