/* Christmas theme - remove the include in a-h.php / a-f.php to disable */
#xmas-snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999998; }

#xmas-bar {
    position: relative; z-index: 1000; text-align: center; padding: 7px 10px;
    background: repeating-linear-gradient(45deg, #b3121f 0 20px, #8e0e18 20px 40px);
    color: #fff; font-weight: 600; letter-spacing: .5px; font-size: 14px;
    border-bottom: 3px solid #1e7a3c;
}
#xmas-bar span { color: #ffd54a; }

/* Light string under the top bar */
#xmas-lights {
    position: relative; z-index: 1000; height: 26px; margin: 0; padding: 0; list-style: none;
    overflow: hidden; white-space: nowrap; text-align: center; line-height: 0;
}
#xmas-lights li {
    display: inline-block; width: 12px; height: 18px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    margin: 4px 22px; position: relative; animation: xmas-glow 1.6s infinite alternate;
}
#xmas-lights li::before {
    content: ""; position: absolute; top: -5px; left: 3px; width: 6px; height: 6px; background: #444; border-radius: 1px;
}
#xmas-lights li:nth-child(4n+1) { background: #e53935; box-shadow: 0 0 12px 3px #e53935; }
#xmas-lights li:nth-child(4n+2) { background: #43a047; box-shadow: 0 0 12px 3px #43a047; animation-delay: .4s; }
#xmas-lights li:nth-child(4n+3) { background: #ffd54a; box-shadow: 0 0 12px 3px #ffd54a; animation-delay: .8s; }
#xmas-lights li:nth-child(4n+4) { background: #1e88e5; box-shadow: 0 0 12px 3px #1e88e5; animation-delay: 1.2s; }
@keyframes xmas-glow { from { opacity: .45; } to { opacity: 1; } }

/* Festive accents */
.nav-bar { border-bottom: 3px solid #b3121f; }
.btn-default:hover, .btn-default:focus { background: #b3121f !important; border-color: #b3121f !important; color: #fff !important; }
footer, .footer-main-block { border-top: 4px solid #b3121f; }

/* Santa hat on the logo */
.nav-bar .logo:not(.tlc-logo) > a:first-child, .footer-logo { position: relative; display: inline-block; }
.nav-bar .logo:not(.tlc-logo) > a:first-child::after, .footer-logo::after {
    content: ""; position: absolute; top: -11px; right: -4px; left: auto; width: 58px; height: 58px; transform: rotate(16deg);
    background: url("../img/cap.png") no-repeat center / contain;
    pointer-events: none; z-index: 5;
}

.footer-logo::after { right: -8px; top: -12px; width: 48px; height: 48px; }

/* Santa on a sleigh, parked on the right side of the header */
#xmas-santa {
    position: absolute; right: 8px; top: 50%; width: 150px; height: auto; margin-top: -38px; z-index: 6;
    pointer-events: none; filter: drop-shadow(0 6px 6px rgba(0,0,0,.25));
    animation: xmas-hover 3s ease-in-out infinite; transform-origin: center;
}
@keyframes xmas-hover { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(1deg); } }
/* narrower desktops: header gutter is small, so tuck Santa into the top-right corner */
@media (min-width: 992px) and (max-width: 1399px) { #xmas-santa { width: 118px; right: 6px; top: -56px; margin-top: 0; } }
@media (max-width: 991px) { #xmas-santa { width: 120px; right: 10px; top: 8px; margin-top: 0; } }
@media (prefers-reduced-motion: reduce) { #xmas-santa { animation: none; } }

/* Music toggle */
#xmas-music {
    position: fixed; left: 14px; bottom: 14px; z-index: 9999999; width: 46px; height: 46px; border-radius: 50%;
    border: 2px solid #fff; background: #b3121f; color: #fff; font-size: 22px; cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.35); line-height: 1; padding: 0;
}
#xmas-music.on { background: #1e7a3c; animation: xmas-pulse 1s infinite alternate; }
@keyframes xmas-pulse { to { transform: scale(1.12); } }
