@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Merriweather:ital@0;1&display=swap');

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
}

h1 {
  font-family: 'Playfair Display', serif;
  text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
}

.parchment {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}

.parchment > div:last-child {
  font-family: 'Merriweather', serif;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.confetti {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.confetti::before,
.confetti::after {
  content: '🎉';
  position: absolute;
  font-size: 3rem;
  animation: confetti-fall 2s ease-out forwards;
}

.confetti::before {
  left: 20%;
  animation-delay: 0s;
}

.confetti::after {
  left: 80%;
  animation-delay: 0.5s;
  content: '✨';
}

@keyframes confetti-fall {
  0% {
    top: -10%;
    opacity: 1;
    transform: rotate(0deg);
  }
  100% {
    top: 100%;
    opacity: 0;
    transform: rotate(720deg);
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}