/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a472a 0%, #0d2818 100%);
  overflow: hidden;
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Snow */
.snowflake {
  position: absolute;
  top: -10px;
  color: white;
  opacity: 0.8;
  animation: fall linear infinite;
  z-index: 1;
}

@keyframes fall {
  to {
    transform: translateY(100vh) rotate(360deg);
  }
}

.container {
  text-align: center;
  z-index: 10;
  position: relative;
}

h1 {
  font-size: 4.5em;
  color: #fff;
  text-shadow: 0 0 20px #ff0000, 0 0 40px #ff0000;
  animation: glow 2s infinite;
}

@keyframes glow {
  0%,
  100% {
    text-shadow: 0 0 20px #ff0000, 0 0 40px #ff0000;
  }
  50% {
    text-shadow: 0 0 30px #ff7777, 0 0 60px #ff7777;
  }
}

.tree {
  font-size: 3em;
  margin: 20px 0;
}

.message {
  font-size: 2em;
  color: #ffd700;
  margin: 20px 0;
  font-family: "Noto Sans Khmer", sans-serif;
  animation: fadeIn 1s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Image Style */
.image-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.celebrate-img {
  display: none;
  width: 300px;
  max-width: 80vw;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.7), 0 0 40px rgba(255, 0, 0, 0.5);
  animation: float 3s ease-in-out infinite;
}

.celebrate-img.popup {
  animation: giftPopup 1s ease-out, float 3s ease-in-out infinite 1s;
}

@keyframes giftPopup {
  0% {
    opacity: 0;
    transform: translateY(150px) scale(0.2) rotate(-15deg);
  }
  60% {
    transform: translateY(-30px) scale(1.1) rotate(5deg);
  }
  80% {
    transform: translateY(10px) scale(0.95) rotate(-2deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.gift {
  font-size: 3em;
  margin-top: 10px;
  animation: bounce 2s infinite;
  transition: transform 0.3s ease;
}

.gift.shake {
  animation: shake 0.5s ease;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-10px) rotate(-5deg);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(10px) rotate(5deg);
  }
}

button {
  margin-top: 25px;
  padding: 15px 40px;
  font-size: 1.2em;
  background: linear-gradient(45deg, #ff0000, #cc0000);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
  transition: transform 0.3s;
}

button:hover {
  transform: scale(1.1);
}

.tree-wrapper {
  position: absolute;
  left: 40px;
  bottom: 40px;
  width: 260px;
}

.tree-img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 0 25px #9aff00);
}

/* 🎇 Light dots */
.bulb {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  animation: blink 1.6s infinite;
  box-shadow: 0 0 15px currentColor;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

.lights {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

/* 🎄 Christmas Trees */
.christmas-tree,
.christmas-tree-right {
  font-size: 200px;
  animation: treeGlow 3s infinite;
  z-index: 5;
}

.christmas-tree {
  left: 40px;
  bottom: 40px;
  position: absolute;
}
.christmas-tree-right {
  right: 40px;
  bottom: 40px;
  position: absolute;
}

@keyframes treeGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 10px #00ff99);
  }
  50% {
    filter: drop-shadow(0 0 25px #ffff00);
  }
}

/* ====== Responsive ====== */
@media screen and (max-width: 1024px) {
  h1 {
    font-size: 3.5em;
  }
  .message {
    font-size: 1.5em;
  }
  .celebrate-img {
    width: 250px;
  }
  .christmas-tree,
  .christmas-tree-right {
    font-size: 150px;
  }
  .tree-wrapper {
    width: 200px;
    left: 20px;
    bottom: 20px;
  }
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 2.5em;
  }
  .message {
    font-size: 1.2em;
  }
  .celebrate-img {
    width: 200px;
  }
  .christmas-tree,
  .christmas-tree-right {
    font-size: 120px;
  }
  .tree-wrapper {
    width: 160px;
    left: 15px;
    bottom: 15px;
  }
  button {
    padding: 12px 30px;
    font-size: 1em;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 1.8em;
  }
  .message {
    font-size: 1em;
  }
  .celebrate-img {
    width: 150px;
  }
  .christmas-tree,
  .christmas-tree-right {
    font-size: 90px;
  }
  .tree-wrapper {
    width: 120px;
    left: 10px;
    bottom: 10px;
  }
  button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}
