body {
    margin: 0;
    padding: 0;
    background-color: black; /* Makes the surrounding bars look like part of the game */
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center;     /* Centers vertically */
    height: 100vh;           /* Takes up the full height of the browser window */
    overflow: hidden;        /* Prevents scrollbars from appearing */
}

canvas {
    border: 2px solid #333;  /* Optional: adds a slight border so you can see the edges */
    image-rendering: pixelated; /* Keeps your pixel art sharp */
}

#container {
    position: relative;
    display: inline-block;
}

#startScreen {
    position: absolute;
    inset: 0;
    background: black /* url('./img/main.png') */ center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

#startScreen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 0;
}

#startScreen.hidden {
    display: none;
}

#startCard {
    color: white;
    text-align: center;
    font-family: monospace;
    position: relative;
    z-index: 1;
}

#startButton {
    margin-top: 12px;
    padding: 10px 18px;
    font-size: 16px;
    font-family: monospace;
    background: white;
    border: none;
    cursor: pointer;
}

#fade {
    background-color: black;
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

#audioControls {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-family: monospace;
    z-index: 1;
}

#audioControls label {
    font-size: 12px;
}

#muteButton {
    background: white;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    font-family: monospace;
}
