@font-face {
  font-family: "SourceSerifMedium";
  src: url("fonts/SourceSerif4_18pt-Medium.ttf") format("truetype");
  font-weight: medium;
  font-style: medium;
}

@font-face {
  font-family: "SourceSerifBold";
  src: url("SourceSerif4_18pt-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: bold;
}

body,
html {
  height: 100%;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════
   🎄 CHRISTMAS ANIMATIONS & EFFECTS
   ═══════════════════════════════════════════════════════════ */

/* Bouncy entrance animation for categories */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-50px);
  }

  50% {
    transform: scale(1.08) translateY(0);
  }

  70% {
    transform: scale(0.95);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Continuous subtle bounce on hover */
@keyframes jelly {

  0%,
  100% {
    transform: scale(1, 1);
  }

  25% {
    transform: scale(0.95, 1.05);
  }

  50% {
    transform: scale(1.05, 0.95);
  }

  75% {
    transform: scale(0.98, 1.02);
  }
}

/* Floating animation */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Sparkle/twinkle effect */
@keyframes sparkle {

  0%,
  100% {
    opacity: 1;
    filter: brightness(1);
  }

  50% {
    opacity: 0.8;
    filter: brightness(1.3);
  }
}

/* Glow pulse for Christmas feel */
@keyframes christmasGlow {

  0%,
  100% {
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.3),
      0 0 10px rgba(255, 0, 0, 0.2);
  }

  50% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6),
      0 0 30px rgba(255, 0, 0, 0.4),
      0 0 40px rgba(0, 128, 0, 0.2);
  }
}

/* Snow drift for background elements */
@keyframes snowDrift {

  0%,
  100% {
    background-position: 0% 0%, 50% 50%;
  }

  50% {
    background-position: 2% 3%, 48% 52%;
  }
}

/* ═══════════════════════════════════════════════════════════
   🎅 CATEGORY BUTTONS - BOUNCY & PLAYFUL
   ═══════════════════════════════════════════════════════════ */

/* Category image containers */
.col-xxl-2.text-center a,
.col-xl-3.text-center a,
.col-md-3.text-center a,
.col-sm-6.text-center a {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Staggered bounce-in entrance */
.col-xxl-2:nth-child(2) a img,
.col-xl-3:nth-child(2) a img {
  animation: bounceIn 0.8s ease-out 0.1s both, float 4s ease-in-out 1s infinite;
}

.col-xxl-2:nth-child(3) a img,
.col-xl-3:nth-child(3) a img {
  animation: bounceIn 0.8s ease-out 0.25s both, float 4s ease-in-out 1.2s infinite;
}

.col-xxl-2:nth-child(4) a img,
.col-xl-3:nth-child(4) a img {
  animation: bounceIn 0.8s ease-out 0.4s both, float 4s ease-in-out 1.4s infinite;
}

.col-xxl-2:nth-child(5) a img,
.col-xl-3:nth-child(5) a img {
  animation: bounceIn 0.8s ease-out 0.55s both, float 4s ease-in-out 1.6s infinite;
}

/* Bouncy hover effect on category images - using transform instead of animation override */
.col-xxl-2 a img,
.col-xl-3 a img,
.col-md-3 a img,
.col-sm-6 a img {
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55),
    filter 0.3s ease;
  cursor: pointer;
}

.col-xxl-2 a:hover img,
.col-xl-3 a:hover img,
.col-md-3 a:hover img,
.col-sm-6 a:hover img {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5)) drop-shadow(0 0 25px rgba(255, 0, 0, 0.3));
}

/* Category images base styling */
.img-rounded {
  border-radius: 15px;
}

/* ═══════════════════════════════════════════════════════════
   🌟 PARALLAX BACKGROUND
   ═══════════════════════════════════════════════════════════ */

body {
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  /* This creates the parallax effect */
  background-position: center center;
  position: relative;
}

/* Parallax container for more control */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  transform: translateZ(-1px) scale(1.5);
  will-change: transform;
}

/* Overlay for depth and Christmas ambiance */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background:
    radial-gradient(ellipse at top, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(139, 0, 0, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   ❄️ SNOWFALL CANVAS
   ═══════════════════════════════════════════════════════════ */

canvas#snowCanvas {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════
   🎁 CATEGORY LABELS - Gift tag / ribbon style
   ═══════════════════════════════════════════════════════════ */

.category_label {
  background-color: aliceblue;
  font-family: "SourceSerifMedium", sans-serif;
  font-weight: 600;
  max-width: 17rem;
  margin-left: 0;
  padding: 0.5rem 1.5rem 0.5rem 1rem;
  border-radius: 0 30px 30px 0;
  position: relative;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
}

/* Small decorative circle "hole" like a gift tag */
.category_label::before {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: #a30011;
  border-radius: 50%;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════════════════════════
   🎄 ARTICLE CARDS - ENHANCED INTERACTIONS
   ═══════════════════════════════════════════════════════════ */

.custom_card {
  position: inherit;
  height: 40vh;
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.custom_card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(255, 215, 0, 0.2);
}

.custom_card_container {
  position: relative;
  bottom: 0%;
}

.custom_card_title {
  font-family: "SourceSerifMedium", sans-serif;
  position: absolute;
  width: 100%;
  height: 6rem;
  color: aliceblue;
  font-size: 0.9rem;
  padding-top: 26vh;
  padding-left: 1vw;
  z-index: 1;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.custom_card_text {
  font-family: "SourceSerifMedium", sans-serif;
  position: absolute;
  width: 100%;
  height: 6rem;
  color: aliceblue;
  font-size: 0.9rem;
  padding: 1rem;
  padding-top: 30%;
  z-index: 1;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.custom_card_textbgcolor {
  position: absolute;
  background: linear-gradient(135deg, #d9471e 0%, #a30011 100%);
  height: 100vh;
  width: 100%;
  opacity: 0.85;
  margin-top: 24vh;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════════
   🔔 HEADER STYLING
   ═══════════════════════════════════════════════════════════ */

.site-header {
  border-bottom: 3px solid #e60000;
  position: relative;
  display: flex;
  justify-content: space-between;
  height: 70px;
  background: transparent;
  z-index: 100;
}

.ingr {
  display: block;
  position: relative;
  height: 80%;
}

.ingr>img {
  content: url(imgs/ingr_logo.png);
  max-height: 100%;
}

.social_chunk {
  display: flex;
  flex-direction: row;
  height: 100%;
  align-items: center;
}

#fb_logo,
#x_logo,
#ig_logo {
  display: block;
  position: relative;
  height: 30%;
  margin-right: 14px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

#fb_logo:hover,
#x_logo:hover,
#ig_logo:hover {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
}

#fb_logo>img {
  content: url(imgs/fb_logo.png);
  max-height: 100%;
}

#x_logo>img {
  content: url(imgs/x_logo.png);
  max-height: 100%;
}

#ig_logo>img {
  content: url(imgs/ig_logo.png);
  max-height: 100%;
}

/* ═══════════════════════════════════════════════════════════
   🎊 HERO IMAGE - FESTIVE ENTRANCE
   ═══════════════════════════════════════════════════════════ */

.col-xxl-4 img,
.col-xl-12 img.img-fluid:first-of-type {
  animation: bounceIn 1s ease-out;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

/* ═══════════════════════════════════════════════════════════
   📱 RESPONSIVE STYLES
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 575.98px) {
  .col-xs-6 {
    max-width: 50%;
    padding: 0.4rem;
  }

  /* Reduce animation intensity on mobile for performance */
  .col-xxl-2 a img,
  .col-xl-3 a img,
  .col-sm-6 a img {
    animation: bounceIn 0.6s ease-out both !important;
  }
}

@media (min-width: 1px) {
  .sponsorship {
    flex: 0 0 auto;
    width: 100%;
    flex-direction: row;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .sponsorship_img {
    height: 50px;
  }

  body {
    background-color: #a30011;
    background-image: url("./imgs/412x915px_background-xmas-guide.jpg");
  }

  .article_text {
    z-index: 1;
  }

  .down_arrow {
    display: none;
    position: relative;
    top: 90vh;
    left: 0;
    right: 0;
    color: #fd6f28;
    height: 50px;
    width: 50px;
    animation: float 2s ease-in-out infinite;
  }

  .mask_img {
    position: absolute;
    bottom: 0;
    height: 30%;
    opacity: 0.8;
  }

  .custom_card_img {
    max-width: 100%;
  }
}

@media (min-width: 768px) {
  .sponsorship_img {
    height: 60px;
  }

  body {
    background-image: url("./imgs/1200x800px_background-xmas-guide.jpg");
  }

  html {
    font-size: 1.2rem;
  }

  .mask {
    display: block;
    background-color: rgba(0, 0, 0, 0.6);
    width: 20vw;
    height: 30vh;
    border-radius: 25px;
  }

  .down_arrow {
    position: relative;
    top: 90vh;
    left: 0;
    right: 0;
    color: #fd6f28;
    height: 100px;
    width: 100px;
  }
}

@media (min-width: 992px) {
  html {
    font-size: 1.4rem;
  }

  .myhero {
    width: 100vw;
    height: 36%;
  }

  .custom_card:hover .custom_card_text {
    opacity: 1;
  }

  .custom_card:hover .custom_card_title {
    opacity: 0;
  }

  .custom_card:hover .custom_card_textbgcolor {
    margin-top: 0vh;
  }
}

@media (min-width: 1400px) {
  .myhero {
    width: 100vw;
    height: 56%;
  }
}

@media (min-width: 1920px) {
  body {
    background-image: url("./imgs/1920x1080px_background-xmas-guide.jpg");
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Link styling for cards */
a.col-lg-3 {
  text-decoration: none;
  display: block;
}