body {
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column; 
    background-image: url('/Minecraft-Stone-Block.jpg'); 
    background-size: cover; 
    background-repeat: repeat; 
    color: white; 
    font-family: 'Arial', sans-serif; 
    overflow: hidden; 
    justify-content: flex-end; 
}

#level-indicator { 
    position: absolute;
    top: 15px;
    left: 15px;
    font-family: 'Press Start 2P', monospace;
    font-size: 20px;
    color: white;
    text-shadow: 2px 2px #000000;
    z-index: 101; 
}

#mute-button {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 101;
    image-rendering: pixelated;
}

#ground {
    width: 100%;
    height: 25vh; 
    background-image: url('/lava.webp');
    background-size: cover; 
    background-position: center bottom; 
    border-top: 5px solid #ff4500; 
}

#obby-elements-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none; 
}

.obby-platform {
    position: absolute;
    /* width: 150px; */ 
    height: 40px;
    background-image: url('/s189772745713394276_p3856_i147_w640.jpeg');
    background-size: cover;
    image-rendering: pixelated; 
    border: 3px solid #654321; 
    box-shadow: 0px 5px 0px #3e2712; 
    pointer-events: auto; 
    box-sizing: border-box;
}

#character {
    position: absolute;
    width: 75px; 
    height: 105px; 
    z-index: 10; 
}

#boss {
    position: absolute;
    top: 5%; 
    left: 50%;
    transform: translateX(-50%);
    width: 150px; 
    height: auto; 
    z-index: 5; 
    display: none; 
    image-rendering: pixelated; 
}

.enemy-fish { 
    position: absolute;
    image-rendering: pixelated;
    z-index: 5; 
}

.boss-projectile {
    position: absolute;
    image-rendering: pixelated;
    z-index: 6; 
    /* Width and height will be set by JS */
}

.warning-laser {
    position: absolute;
    background-color: rgba(255, 0, 0, 0.6); /* Semi-transparent red */
    box-shadow: 0 0 5px rgba(255,0,0,0.8);
    z-index: 4; /* Below most interactive elements but visible */
    pointer-events: none; /* Should not interfere with clicks */
}

.potato-chip {
    position: absolute;
    image-rendering: pixelated;
    z-index: 7; /* Above enemies, boss projectiles, on par with player layer */
    pointer-events: none;
}

#next-level-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 100; 
    image-rendering: pixelated; 
}

#next-level-content {
    background-color: #1a1a1a; 
    padding: 40px;
    border: 4px solid #4d4d4d; 
    box-shadow: 0 0 20px rgba(0,0,0,0.5); 
    text-align: center;
    border-radius: 8px; 
}

#next-level-image {
    width: 96px;  
    height: 96px; 
    image-rendering: pixelated; 
    margin-bottom: 25px; 
}

#next-level-text {
    font-family: 'Press Start 2P', monospace; 
    font-size: 28px; 
    color: #39FF14; 
    margin: 0;
    text-shadow: 2px 2px #000000; 
}