@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Merriweather:wght@300;400;700&display=swap');

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

body {
  font-family: 'Merriweather', serif;
  background: linear-gradient(135deg, #0d2418, #1a472a);
  color: #f0f7f4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

.site-logo {
  display: block;
  margin: 0 auto 10px auto;
  width: 220px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
  border-radius: 10px;
  text-align: center;
}

/* Background Elements */
.bg-elements,
.snow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.bg-star {
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: twinkle 4s infinite alternate;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.snowflake {
  position: absolute;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  opacity: 0.8;
  animation: fall linear infinite;
}

@keyframes fall {
  to { transform: translateY(100vh); opacity: 0; }
}

/* Container */
.container {
  max-width: 880px;
  width: 90%;
  padding: 40px 20px;
  z-index: 2;
  position: relative;
  text-align: center;
}

.header { margin-bottom: 30px; }

/* ✨ Merry Christmas Title Glow Effect */
.main-title {
  font-family: 'Great Vibes', cursive;
  font-size: 3.2rem;
  color: #fff7d6;
  font-weight: 400;
  letter-spacing: 1px;
  text-shadow: 
    0 0 5px rgba(255, 215, 79, 0.8),
    0 0 15px rgba(255, 215, 79, 0.6),
    0 0 25px rgba(255, 215, 79, 0.4);
  margin-bottom: 5px;
  animation: shimmer 6s infinite ease-in-out alternate;
}

/* Soft shimmer animation for golden glow */
@keyframes shimmer {
  0% {
    text-shadow: 
      0 0 5px rgba(255, 215, 79, 0.6),
      0 0 10px rgba(255, 215, 79, 0.4),
      0 0 20px rgba(255, 215, 79, 0.2);
  }
  50% {
    text-shadow: 
      0 0 10px rgba(255, 215, 79, 0.9),
      0 0 25px rgba(255, 215, 79, 0.6),
      0 0 40px rgba(255, 215, 79, 0.5);
  }
  100% {
    text-shadow: 
      0 0 6px rgba(255, 215, 79, 0.7),
      0 0 20px rgba(255, 215, 79, 0.5),
      0 0 35px rgba(255, 215, 79, 0.3);
  }
}

.company-name {
  font-family: 'Merriweather', serif;
  font-size: 2.2rem;
  color: #ffd54f;
  margin-bottom: 20px;
  letter-spacing: 1.5px;
}

.header p {
  color: #d4edda;
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
  line-height: 1.6;
}

/* Separator */
.separator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 25px 0;
}
.separator::before,
.separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
}
.separator-icon {
  margin: 0 10px;
  font-size: 1.6rem;
  color: #ffd54f;
}

/* Card */
.card-container {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.card {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 3 / 2;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1.1s ease-in-out;
  cursor: pointer;
}

.card.flipped { transform: rotateY(180deg); }

.card-front, .card-back {
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 20px;
  backface-visibility: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 20px;
}

.card-front {
  background: linear-gradient(145deg, rgba(26,71,42,0.95), rgba(13,36,24,0.95));
}
.card-front h2 {
  font-family: 'Great Vibes', cursive;
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 10px;
}
.card-front p {
  color: #d4edda;
  font-size: 1rem;
  max-width: 500px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.ornaments-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}
.ornament {
  width: 75px; height: 75px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}
.ornament:hover { transform: scale(1.1); }
.ornament-joy { background: linear-gradient(135deg, #c62828, #e53935); }
.ornament-peace { background: linear-gradient(135deg, #2a623d, #388e3c); }
.ornament-love { background: linear-gradient(135deg, #f9a825, #ffb300); color: #333; }
.ornament-hope { background: linear-gradient(135deg, #1565c0, #1976d2); }

.click-hint {
  margin-top: 15px;
  color: #ffd54f;
  font-size: 0.95rem;
  animation: fade 3s infinite alternate;
}
@keyframes fade {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.card-back {
  background: linear-gradient(145deg, rgba(13,36,24,0.98), rgba(26,71,42,0.98));
  transform: rotateY(180deg);
}

.message-display {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 25px 20px;
  max-width: 90%;
  text-align: center;
  color: #333;
}

.wish-type {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1rem;
}

.message-title {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: #1a472a;
  margin-bottom: 10px;
}

.message-content {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 20px;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.btn {
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
}
.btn-flip { background: linear-gradient(135deg, #1a472a, #2a623d); color: #fff; }
.btn-share { background: linear-gradient(135deg, #c62828, #e53935); color: #fff; }
.btn:hover { transform: translateY(-2px); }

/* Footer */
.footer {
  margin-top: 40px;
  text-align: center;
  color: #d4edda;
  font-size: 1rem;
  padding-bottom: 40px;
}
.footer-logo {
  font-family: 'Great Vibes', cursive;
  color: #ffd54f;
  font-size: 2rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}
.footer a { color: #ffd54f; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Responsive Fixes */
@media (max-width: 768px) {
  .main-title { font-size: 2.7rem; }
  .company-name { font-size: 1.9rem; }
  .card { aspect-ratio: 4 / 3; }
}

@media (max-width: 480px) {
  .main-title { font-size: 2.2rem; }
  .company-name { font-size: 1.6rem; }
  .site-logo { width: 140px; }

  .card {
    width: 95%;
    max-width: 380px;
    height: auto;
    min-height: 440px;
  }

  .card-front,
  .card-back {
    padding: 20px 15px;
  }

  .ornaments-container {
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .ornament {
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 0.9rem;
    margin: 5px;
  }

  .card-front h2 {
    font-size: 1.7rem;
    margin-bottom: 10px;
  }

  .card-front p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .message-display {
    width: 100%;
    max-width: 320px;
    padding: 25px 15px;
  }

  .message-title {
    font-size: 1.7rem;
  }

  .message-content {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .action-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
    max-width: 260px;
    padding: 12px;
    font-size: 1rem;
  }

  .click-hint {
    font-size: 0.9rem;
    margin-top: 15px;
  }
}
