﻿/* InnKeeperWeb - Living Forest */

:root {
    --forest-position: 0px;
}

body {
    background: #07130f;
    isolation: isolate;
}

.living-forest {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.forest-layer {
    position: absolute;
    inset: -15% 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: translateY(var(--forest-position));
    transition: opacity 3s ease-in-out;
}

.forest-night {
    background-image: url("../images/innkeeper-forest-night.png");
    opacity: 1;
}

.forest-day {
    background-image: url("../images/innkeeper-forest-day.png");
    opacity: 0;
}

html[data-forest="day"] .forest-day {
    opacity: 1;
}

html[data-forest="day"] .forest-night {
    opacity: 0;
}

.living-forest::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(3, 15, 10, 0.25);
}

@media (prefers-reduced-motion: reduce) {
    .forest-layer {
        transform: none;
        transition: none;
    }
}
/* Disable the previous plaster background */

body::before,
body::after {
    display: none;
}
