/* Thanksgiving theme. Loaded only during the seasonal date range. */

/* Palette: burnt orange, deep brown, harvest gold, cream */
html:root {
  --color-default: #2b1a10;
  --color-primary: #c2571a;
  --color-secondary: #4a2511;
  --tg-gold: #e0a030;
  --tg-cream: #fff6e6;
  --tg-brown: #3b1f0e;
}

/* Landing page hero: gradient replaces the video */
html .hero_notloggedin,
html .hero_loggedin {
  background-image: linear-gradient(135deg, #3b1f0e 0%, #8a3b12 45%, #c2571a 75%, #e0a030 100%);
  background-size: cover;
  background-position: center;
}
.hero_notloggedin .tg-greeting {
  color: var(--tg-gold);
  font-family: var(--font-secondary, "Poppins", sans-serif);
  font-weight: 700;
  font-size: 2.2rem;
  margin-bottom: .25rem;
}

/* Bootstrap blue -> orange */
html .btn-primary {
  background-color: #c2571a;
  border-color: #c2571a;
  color: #fff;
}
html .btn-primary:hover,
html .btn-primary:focus,
html .btn-primary:active {
  background-color: #8a3b12;
  border-color: #8a3b12;
}
html .text-primary { color: #c2571a !important; }
html .bg-primary { background-color: #c2571a !important; }
html a { color: #b24d14; }
html a:hover { color: #8a3b12; }

/* Results pages (default skin) */
html #hero:not(.hero) {
  background: linear-gradient(180deg, var(--tg-cream) 0%, #ffe8c2 100%);
  border-bottom: 3px solid var(--tg-gold);
}
html #hero:not(.hero) h1 { color: var(--tg-brown); }
html #hero:not(.hero) h2 { color: #8a3b12; }
html #hero:not(.hero)::before {
  content: "Happy Thanksgiving \1F983";
  display: block;
  position: relative;
  top: 8px;
  color: #b24d14;
  font-weight: 600;
  letter-spacing: .05em;
}
html #hero:not(.hero) .btn-get-started:hover { background: #8a3b12; }

/* Falling leaves */
.tg-leaves {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 9999;
}
.tg-leaf {
  position: absolute;
  top: -40px;
  font-size: 24px;
  opacity: .85;
  animation: tg-fall linear infinite, tg-sway ease-in-out infinite alternate;
}
@keyframes tg-fall {
  to { transform: translateY(110vh) rotate(360deg); }
}
@keyframes tg-sway {
  from { margin-left: -25px; }
  to   { margin-left: 25px; }
}
.tg-leaf-1  { left:  4%; animation-duration: 14s, 3s; animation-delay:  0s, 0s; }
.tg-leaf-2  { left: 12%; animation-duration: 18s, 4s; animation-delay:  3s, 1s; font-size: 20px; }
.tg-leaf-3  { left: 21%; animation-duration: 16s, 3.5s; animation-delay: 7s, 0s; }
.tg-leaf-4  { left: 30%; animation-duration: 20s, 4.5s; animation-delay: 1s, 2s; font-size: 28px; }
.tg-leaf-5  { left: 38%; animation-duration: 15s, 3s; animation-delay: 9s, 1s; font-size: 18px; }
.tg-leaf-6  { left: 47%; animation-duration: 19s, 5s; animation-delay: 4s, 0s; }
.tg-leaf-7  { left: 55%; animation-duration: 17s, 3.5s; animation-delay: 11s, 2s; font-size: 22px; }
.tg-leaf-8  { left: 63%; animation-duration: 21s, 4s; animation-delay: 2s, 1s; font-size: 28px; }
.tg-leaf-9  { left: 72%; animation-duration: 14s, 3s; animation-delay: 6s, 0s; font-size: 20px; }
.tg-leaf-10 { left: 80%; animation-duration: 18s, 4.5s; animation-delay: 10s, 2s; }
.tg-leaf-11 { left: 88%; animation-duration: 16s, 3.5s; animation-delay: 5s, 1s; font-size: 18px; }
.tg-leaf-12 { left: 95%; animation-duration: 20s, 4s; animation-delay: 8s, 0s; }

@media (prefers-reduced-motion: reduce) {
  .tg-leaves { display: none; }
}
@media print {
  .tg-leaves, html #hero:not(.hero)::before { display: none; }
}
