body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: Arial, sans-serif;
    background-color: #000000;
    background-image: url('outer_background.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: fixed;
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
}

/* Outer background image */
.outer-background {
    display: none;
}

/* Button container for side-by-side layout */
.button-container {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    margin-top: -85px;
    margin-left: -40px;
}

canvas {
    border: 2px solid #000;
    background-color: #fff;
    max-width: 100%;
    height: auto;
    display: block;
}

.game-container {
    position: relative;
    width: 1440px;
    height: 900px;
    margin: 0 auto; /* center container so absolute coordinates align with canvas */
    transform: translate(-6px, -2px); /* move left 6px and up 2px */
}

#fullscreenBtn {
    padding: 0;
    width: 186px;
    height: 29px;
    font-size: 16px;
    cursor: pointer;
    background-image: url('fullscreen_button.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    border-radius: 5px;
    text-indent: -9999px;
}

#fullscreenBtn:hover {
    filter: brightness(1.1);
}

#homeBtn {
    padding: 0;
    width: 85px;
    height: 29px;
    font-size: 16px;
    cursor: pointer;
    background-image: url('home_button.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    border-radius: 5px;
    text-indent: -9999px;
}

#homeBtn:hover {
    filter: brightness(1.1);
}

#musicBtn {
    padding: 0;
    width: 100px;
    height: 29px;
    font-size: 16px;
    cursor: pointer;
    background-image: url('music_button_off.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    border-radius: 5px;
    text-indent: -9999px;
}

#musicBtn:hover {
    filter: brightness(1.1);
}

#musicBtn.music-on {
    background-image: url('music_button_on.png');
}

/* Fullscreen support */
canvas:fullscreen {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    background-color: #000;
}

canvas:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    background-color: #000;
}

#score {
    font-size: 24px;
    margin-top: 10px;
}

#startBtn {
    position: absolute;
    width: 319px;
    height: 93px;
    background-image: url('start_button.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 100;
    text-indent: -9999px;

    /* Explicit coordinates relative to .game-container (canvas)
       Centered horizontally on canvas: left = (1440 - 319) / 2 = 560
       Vertical position near bottom: top = 727 (900 - 80 - 93)
       You can change these values to move the button. */
    left: 560px;
    top: 657px;
}

#startBtn:hover {
    filter: brightness(1.1);
}