* {
    margin: 0;
    padding: 0;
}

body,
html {
    height: 100%;
    /* Make the body and html take up the full height of the viewport */
    display: flex;
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically */
}

body {
    background-color: midnightblue;
    background-size: 100% 100%;
}

.instructies {
    text-align: center;
    font-size: 24px;
}

#counter {
    color: white;
}

#highscore {
    color: white;
}

#lifes {
    color: white;
}

#hart {
    position: relative;
    width: 20px;
    z-index: 30;
}

#waves {
    color: white;
}

#gameContainer {
    position: relative;
    /* Make this container relative */
    width: 800px;
    /* Match the canvas width */
    height: 600px;
    /* Match the canvas height */
}

#explosie {
    display: none;
    /* Initially hidden */
    position: absolute;
    /* Position it absolutely */
    z-index: 10;
    /* Ensure it is above other elements */

}

#startScreen {
    position: absolute;
    top: 0;
    left: 0%;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    /* Semi-transparent background */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
    /* Ensure it is above the game canvas */
}

#startButton {
    padding: 10px 20px;
    font-size: 20px;
    cursor: pointer;
}

#game {
    height: 75vh;
    width: 1000px;
    /* Set a fixed width for the canvas */
    border: solid 1px black;
    background-image: url(assets/Loop-Space.gif);
    background-size: cover;
    /* Ensure the background image covers the canvas */
}

#gameOverScreen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}