#nav .holiday-theme-toggle {
    float: right;
    width: 44px;
    height: 44px;
    margin: 5px 6px 5px 0;
    padding: 0;
    border: 1px solid #58816f;
    border-radius: 8px;
    background: #e8f1eb;
    color: #12392e;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

#nav .holiday-theme-toggle[hidden], .holiday-snow, .holiday-garland {
    display: none;
}

@media (min-width: 768px) {
    #nav .navbar-header {
        float: right;
    }

    .holiday-theme .header .white-menu {
        background-size: 100% 60px;
        background-repeat: no-repeat;
    }
}

@media (max-width: 370px) {
    #nav .navbar-mobile-items {
        margin-right: 4px;
        padding-right: 5px;
        padding-left: 5px;
    }
}

html:has(> body.holiday-theme), body.holiday-theme {
    background: #e8f1eb;
}

body.holiday-theme:has(> .footer) {
    --holiday-footer-height: 68px;
    margin-bottom: calc(var(--holiday-footer-height) + 24px);
}

.holiday-theme .footer {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: var(--holiday-footer-height);
    padding: 4px 0 6px;
    background: transparent;
    text-shadow: 0 1px 2px #081f24, 0 0 5px #081f24, 0 0 8px #081f24;
}

.holiday-theme .footer::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url("../img/holiday-forest-panorama.png") center bottom / auto var(--holiday-footer-height) repeat-x;
    filter: brightness(1.2);
}

.holiday-theme .footer > .container-fluid {
    width: 100%;
}

.holiday-theme .header .white-menu {
    background-image: linear-gradient(#12392e, #12392e);
    background-color: transparent;
}

.holiday-theme .navbar-left .dropdown-menu {
    background: #12392e;
}

.holiday-theme #nav li > a, .holiday-theme #nav .notices {
    background: transparent;
    color: #f0fff6;
}

.holiday-theme #nav li > a:hover, .holiday-theme #nav li > a:focus,
.holiday-theme #nav .open > a {
    background: #245846;
}

.holiday-theme #nav .icon-bar {
    background: #f0fff6;
}

.holiday-theme #nav .holiday-theme-toggle[aria-pressed="true"] {
    background: #245846;
    border-color: #ffd579;
    color: #ffd579;
}

@media (max-width: 767px) {
    body.holiday-theme:has(> .footer) {
        --holiday-footer-height: 112px;
    }

    .holiday-theme .footer::before {
        background-position-x: 25%;
    }

    .holiday-theme .footer .row > div {
        text-align: center;
    }

    #nav .holiday-theme-toggle,
    .holiday-theme #nav .holiday-theme-toggle[aria-pressed="true"] {
        border: 0;
        background: transparent;
    }
}

.holiday-theme .holiday-garland {
    display: block;
    position: absolute;
    inset: 0 0 auto;
    height: 16px;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle 2px at 10px 8px, #fff7db 15%, transparent 100%),
        radial-gradient(circle 2px at 34px 8px, #ffe5e4 15%, transparent 100%),
        radial-gradient(circle 2px at 58px 8px, #e1fff0 15%, transparent 100%),
        radial-gradient(circle 6px at 12px 10px, #ffdf86 30%, #de931d 88%, transparent 100%),
        radial-gradient(circle 6px at 36px 10px, #ff9197 30%, #c6344b 88%, transparent 100%),
        radial-gradient(circle 6px at 60px 10px, #9cf2c5 30%, #2da477 88%, transparent 100%),
        linear-gradient(90deg, transparent 10px, #e5c071 10px 14px, transparent 14px) 0 2px / 24px 4px repeat-x,
        radial-gradient(ellipse 36px 5px at 50% 0, transparent 83%, #8ab3a4 92% 100%, transparent 115%);
    background-size: 72px 16px, 72px 16px, 72px 16px, 72px 16px, 72px 16px, 72px 16px, 24px 4px, 72px 16px;
}

@media (prefers-reduced-motion: no-preference) {
    .holiday-theme .holiday-garland::before,
    .holiday-theme .holiday-garland::after {
        content: "";
        position: absolute;
        inset: 0 0 -7px;
        background: radial-gradient(circle 10px at 12px 10px, #fff5cb 0%, #fff5cb55 55%, transparent 100%)
            0 0 / 48px 23px repeat-x;
        animation: holiday-garland-glow 2.8s ease-in-out infinite alternate;
    }

    .holiday-theme .holiday-garland::after {
        background-position-x: 24px;
        animation-direction: alternate-reverse;
    }

    .holiday-theme .holiday-snow {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 99990;
        pointer-events: none;
        opacity: .8;
        background:
            radial-gradient(circle at 21px 31px, white 1.5px, transparent 3px),
            radial-gradient(circle at 93px 112px, white 1px, transparent 2px),
            radial-gradient(circle at 165px 79px, white 2px, transparent 3px);
        background-size: 191px 173px, 211px 227px, 241px 257px;
        animation: holiday-snowfall 9s linear infinite;
    }
}

@keyframes holiday-garland-glow {
    from {
        opacity: .08;
    }
    to {
        opacity: .9;
    }
}

@keyframes holiday-snowfall {
    to {
        background-position: 0 173px, 0 454px, 0 257px;
    }
}
