/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.trix-content ul,
trix-editor ul {
    list-style-type: disc;
}

.trix-content ol,
trix-editor ol {
    list-style-type: decimal;
}

html {
    scrollbar-gutter: stable;
}

body:has(dialog[open]) {
    overflow-y: hidden;
    touch-action: none;
}

.christmas-lights {
    position: fixed;
    z-index: 20;
    top: 3.7rem;
    left: 0;
    right: 0;
    height: 4.5rem;
    pointer-events: none;
}

.christmas-garland-wire {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4.5rem;
}

.christmas-light-loop {
    position: absolute;
    top: 0;
    left: calc(var(--loop-index) * 25%);
    display: flex;
    width: 25%;
    height: 4.5rem;
    justify-content: space-around;
    padding: 0 0.15rem;
}

.christmas-light-loop span {
    position: relative;
    top: var(--bulb-drop);
    width: 0.8rem;
    height: 1.05rem;
    flex: 0 0 0.8rem;
    border: 1px solid rgb(36 55 42 / 50%);
    border-radius: 45% 45% 50% 50%;
    background: #e34a3d;
    box-shadow: 0 0 0.8rem rgb(227 74 61 / 70%);
    animation: christmas-twinkle 1.8s ease-in-out var(--twinkle-delay) infinite;
}

.christmas-light-loop span::before {
    position: absolute;
    top: -0.32rem;
    left: 0.2rem;
    width: 0.23rem;
    height: 0.35rem;
    border-radius: 0.12rem 0.12rem 0 0;
    background: #315f43;
    content: "";
}

.christmas-light-loop span:nth-child(5n + 1) {
    background: #f5c842;
    box-shadow: 0 0 0.8rem rgb(245 200 66 / 75%);
}

.christmas-light-loop span:nth-child(5n + 2) {
    background: #53b875;
    box-shadow: 0 0 0.8rem rgb(83 184 117 / 75%);
}

.christmas-light-loop span:nth-child(5n + 3) {
    background: #72c8ea;
    box-shadow: 0 0 0.8rem rgb(114 200 234 / 75%);
}

.christmas-corner-scene {
    position: fixed;
    z-index: 5;
    left: 50%;
    bottom: 0;
    width: 100vw;
    max-width: none;
    height: auto;
    transform: translateX(-50%);
    pointer-events: none;
}

.christmas-content {
    padding-top: 6rem;
}

.christmas-snowfall {
    position: fixed;
    z-index: 30;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.christmas-snowflake {
    position: absolute;
    top: -0.75rem;
    width: var(--snow-size);
    height: var(--snow-size);
    border-radius: 50%;
    border: 1px solid rgb(255 255 255 / 90%);
    background: radial-gradient(circle at 35% 30%, #fff 0 22%, #a9d8ef 45% 100%);
    box-shadow: 0 0 0.55rem rgb(101 177 216 / 75%);
    animation: christmas-snowfall var(--snow-duration) linear forwards;
}

@keyframes christmas-twinkle {
    0%, 100% { opacity: 0.78; filter: brightness(0.8); transform: scale(0.94); }
    45% { opacity: 1; filter: brightness(1.5); transform: scale(1.12); }
    65% { opacity: 0.85; filter: brightness(0.95); transform: scale(0.98); }
}

@keyframes christmas-snowfall {
    to { transform: translate3d(2rem, 105vh, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .christmas-light-loop span {
        animation: none;
    }
}
