body {
  font-family: 'Comic Sans MS', cursive, sans-serif;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.9) 2px, transparent 2px),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.8) 1px, transparent 1px),
    radial-gradient(circle at 40% 40%, rgba(255,255,255,0.7) 1px, transparent 1px),
    linear-gradient(135deg, #87ceeb 0%, #b0e0e6 30%, #f0f8ff 70%, #e6f3ff 100%);
  background-size: 100px 100px, 150px 150px, 200px 200px, 100% 100%;
  animation: snowfall 20s linear infinite;
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  text-align: center;
  color: #2c3e50;
}

@keyframes snowfall {
  0% {
    background-position: 0px 0px, 0px 0px, 0px 0px, 0px 0px;
  }
  100% {
    background-position: 100px 100px, 150px 150px, 200px 200px, 0px 0px;
  }
}

h1 {
  font-size: 2.5em;
  margin: 60px 0 20px 0;
  text-shadow: 2px 2px 4px rgba(255,255,255,0.8), 0 0 10px rgba(135,206,235,0.5);
  color: #1e3a8a;
}

p {
  font-size: 1.2em;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
  color: #374151;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.calendar-day {
  background: linear-gradient(145deg, #ffffff, #e6e6e6);
  border: none;
  border-radius: 15px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    5px 5px 10px rgba(0,0,0,0.2),
    -5px -5px 10px rgba(255,255,255,0.7),
    inset 0 0 0 transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 80px;
  position: relative;
  overflow: hidden;
}

.calendar-day:hover {
  transform: translateY(-3px);
  box-shadow: 
    8px 8px 20px rgba(0,0,0,0.3),
    -8px -8px 20px rgba(255,255,255,0.8),
    inset 0 0 0 transparent;
  background: linear-gradient(145deg, #f0f8ff, #e0e6ff);
}

.calendar-day:active {
  transform: scale(0.95);
  box-shadow: 
    inset 3px 3px 6px rgba(0,0,0,0.2),
    inset -3px -3px 6px rgba(255,255,255,0.7);
}

.day-number {
  font-size: 1.5em;
  font-weight: bold;
  color: #333;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.day-emoji {
  font-size: 2em;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

/* Special styling for day 24 (Christmas) */
.calendar-day:nth-child(24) {
  background: linear-gradient(145deg, #ffecec, #ffe0e0);
  border: 2px solid gold;
}

.calendar-day:nth-child(24):hover {
  background: linear-gradient(145deg, #fff5f5, #ffefef);
  border-color: #ffd700;
}

/* Responsive design */
@media (max-width: 600px) {
  .calendar-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 10px;
  }
  
  .calendar-day {
    padding: 15px;
    min-height: 60px;
  }
  
  .day-number {
    font-size: 1.2em;
  }
  
  .day-emoji {
    font-size: 1.5em;
  }
  
  h1 {
    font-size: 2em;
  }
  
  p {
    font-size: 1em;
  }
}

@media (max-width: 400px) {
  .calendar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gift-box {
  background: none;
  border: none;
  border-radius: 15px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  min-height: 110px;
  width: 100%;
  overflow: visible;
  perspective: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
}

.gift-box::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 8px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.3) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
}

.gift-wrapper {
  background: linear-gradient(135deg, #dc143c 0%, #b71c1c 50%, #8b0000 100%);
  border-radius: 8px;
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.6s ease;
  transform-style: preserve-3d;
  box-shadow: 
    inset 0 0 0 2px #a91414,
    0 4px 8px rgba(0,0,0,0.3);
}

.gift-box.opened .gift-wrapper {
  transform: rotateY(-180deg);
}

.gift-ribbon-vertical {
  position: absolute;
  background: linear-gradient(90deg, #2e7d32 0%, #4caf50 50%, #1b5e20 100%);
  width: 12px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  border-radius: 2px;
  box-shadow: 
    inset 0 0 0 1px rgba(255,255,255,0.2),
    2px 0 4px rgba(0,0,0,0.3);
}

.gift-ribbon-horizontal {
  position: absolute;
  background: linear-gradient(180deg, #2e7d32 0%, #4caf50 50%, #1b5e20 100%);
  height: 12px;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  border-radius: 2px;
  box-shadow: 
    inset 0 0 0 1px rgba(255,255,255,0.2),
    0 2px 4px rgba(0,0,0,0.3);
}

.gift-bow {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2em;
  z-index: 3;
  filter: drop-shadow(2px 2px 6px rgba(0,0,0,0.4));
  color: #2e7d32;
  text-shadow: 
    0 0 0 #4caf50,
    1px 1px 0 #1b5e20,
    2px 2px 0 #0d4b14;
}

.day-number {
  font-size: 1.2em;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  z-index: 4;
  position: relative;
}

.gift-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease 0.3s;
  z-index: 10;
}

.gift-box.opened .gift-content {
  opacity: 1;
}

/* Opened gift box styling */
.gift-box.opened .gift-wrapper {
  transform: none;
  background: none;
  box-shadow: none;
}

.gift-box.opened .gift-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #8b4513 0%, #d2691e 50%, #a0522d 100%);
  border-radius: 8px;
  box-shadow: 
    inset 0 0 10px rgba(0,0,0,0.3),
    0 2px 4px rgba(0,0,0,0.2);
}

.gift-box.opened .gift-wrapper::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  background: linear-gradient(145deg, #f5f5dc 0%, #fff8dc 50%, #f0e68c 100%);
  border-radius: 4px;
  box-shadow: 
    inset 0 0 8px rgba(0,0,0,0.1),
    inset 0 2px 4px rgba(255,255,255,0.8);
}

.gift-box.opened .gift-ribbon-vertical,
.gift-box.opened .gift-ribbon-horizontal,
.gift-box.opened .gift-bow,
.gift-box.opened .day-number {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.poo-emoji {
  font-size: 2.5em;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
  animation: pooWiggle 0.5s ease-in-out 4;
}

@keyframes pooWiggle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-5deg) scale(1.1); }
  75% { transform: rotate(5deg) scale(1.1); }
}

.gift-box:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 8px 8px 20px rgba(0,0,0,0.3);
}

.gift-box:active {
  transform: scale(0.95);
}

body.fart-playing .gift-box:not(.opened) {
  cursor: not-allowed;
}

body.fart-playing .gift-box:not(.opened):hover {
  transform: none;
  box-shadow: none;
}
.gift-box.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.gift-box.disabled .gift-wrapper {
  filter: grayscale(50%) brightness(0.7);
}

.gift-box.disabled .gift-bow {
  filter: grayscale(70%) brightness(0.6);
}

.error-container {
  max-width: 600px;
  margin: 50px auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  text-align: center;
}

.error-emoji {
  font-size: 4em;
  margin-bottom: 20px;
  display: block;
}

.error-title {
  font-size: 2em;
  margin-bottom: 20px;
  color: #ff6b6b;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.error-message {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
}

.home-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(145deg, #ffffff, #e6e6e6);
  border: none;
  border-radius: 15px;
  color: #333;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.home-button:hover {
  transform: translateY(-3px);
  box-shadow: 8px 8px 20px rgba(0,0,0,0.3);
}

.countdown-container {
  max-width: 600px;
  margin: 50px auto;
  padding: 60px 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  backdrop-filter: blur(10px);
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.countdown-emoji {
  font-size: 5em;
  margin-bottom: 20px;
  display: block;
  animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

.countdown-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #1e3a8a;
  text-shadow: 2px 2px 4px rgba(255,255,255,0.8);
}

.countdown-display {
  margin: 40px 0;
  padding: 30px;
  background: linear-gradient(145deg, #ffffff, #e6e6e6);
  border-radius: 20px;
  box-shadow: 
    inset 5px 5px 10px rgba(0,0,0,0.1),
    inset -5px -5px 10px rgba(255,255,255,0.8);
}

.countdown-number {
  font-size: 4em;
  font-weight: bold;
  color: #dc143c;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  display: block;
  margin-bottom: 10px;
}

.countdown-text {
  font-size: 1.5em;
  color: #374151;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.countdown-message {
  font-size: 1.3em;
  line-height: 1.6;
  color: #374151;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
  margin-top: 30px;
}

/* Responsive design for countdown */
@media (max-width: 600px) {
  .countdown-container {
    margin: 20px;
    padding: 40px 20px;
  }
  
  .countdown-emoji {
    font-size: 4em;
  }
  
  .countdown-title {
    font-size: 2em;
  }
  
  .countdown-number {
    font-size: 3em;
  }
  
  .countdown-text {
    font-size: 1.2em;
  }
  
  .countdown-message {
    font-size: 1.1em;
  }
}