body {
    background-color: #000;
    padding: 0;
    overflow: hidden;
}

.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.background-media.active {
    opacity: 1;
}

.content-layer {
    position: relative;
    z-index: 2;
    height: 100%;
    transition: filter 0.8s ease;
}

body.theme-lidar .content-layer {
    filter: grayscale(100%);
}
body.theme-mushroom #mushroom,
body.theme-mushroom #mushroom .content-panel {
    border-color: #D2B48C; 
}
body.theme-mushroom #mushroom .content-panel h2,
body.theme-mushroom #mushroom .content-panel p {
    color: #F5DEB3;
}
body.theme-mindscape .content-layer {
    filter: grayscale(100%);
}

.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

.game-section {
    height: 100vh;
    width: 100vw;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.content-panel {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 30px 40px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    max-width: 600px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.content-panel h2 {
    font-family: 'Indie Flower', cursive;
    font-size: 4rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.content-panel p {
    font-family: 'Gaegu', cursive;
    font-size: 1.8rem;
    line-height: 1.6;
}


.back-button-container {
    position: fixed;
    top: 40px;
    left: 40px;
    z-index: 100;
    background-color: transparent;
    border: none;
    padding: 0;
}

.back-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #414833;
    color: #FFE8D6;
    text-decoration: none;
    border-radius: 15px; 
    border: 2px solid #CB997E;
    font-family: 'Gaegu', cursive;
    font-size: 1.6rem;
    transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.back-button:hover {
    background-color: #515a41;
    transform: scale(1.05);
    color: white; 
    border-color: #FFE8D6;
}

#play-button {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    padding: 15px 30px;
    font-family: 'Indie Flower', cursive;
    font-size: 2rem;
    color: #FFE8D6;
    background-color: #414833;
    border: 2px solid #CB997E;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#play-button:hover {
    background-color: #515a41;
    color: white;
    border-color: #FFE8D6;
}

@media (max-width: 768px) {
    .side-menu {
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        box-sizing: border-box;
        position: fixed;
    }
    .content-panel {
        width: 80%;
        padding: 20px;
    }
    .content-panel h2 {
        font-size: 2.5rem;
    }
    .content-panel p {
        font-size: 1.2rem;
    }
}