@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --primary-rose: #be3a55;
  --secondary-rose: #91273c;
  --soft-pink: #fde8ed;
  --light-blush: #fff5f7;
  --card-bg: #ffffff;
  --accent-gold: #d4a373;
  --text-dark: #372328;
  --text-muted: #7d656b;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-dark);
  background-color: #f7edee;
  background-image: 
    radial-gradient(#eac6ce 0.75px, transparent 0.75px), 
    radial-gradient(#eac6ce 0.75px, #f7edee 0.75px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.font-script {
  font-family: 'Alex Brush', cursive;
}

.font-serif-title {
  font-family: 'Playfair Display', serif;
}

/* Custom Scrollbar for container */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #fff5f7;
}
::-webkit-scrollbar-thumb {
  background: #e598a9;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #be3a55;
}

/* Animations */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin-slow {
  animation: spinSlow 12s linear infinite;
}

@keyframes floatGentle {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(2deg); }
}

.animate-float {
  animation: floatGentle 4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(190, 58, 85, 0.25);
  }
  50% {
    box-shadow: 0 0 25px rgba(190, 58, 85, 0.5);
  }
}

.animate-pulse-glow {
  animation: pulseGlow 2.5s infinite;
}

/* Ribbon Banner Banner Shape */
.ribbon-banner {
  position: relative;
  background: linear-gradient(135deg, #f7ccd5, #f3abbb);
  border-top: 1.5px solid #e17992;
  border-bottom: 1.5px solid #e17992;
  box-shadow: 0 4px 10px rgba(190, 58, 85, 0.15);
}

.ribbon-banner::before,
.ribbon-banner::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
}

.ribbon-banner::before {
  left: -12px;
  border-width: 14px 12px 14px 0;
  border-color: transparent #e17992 transparent transparent;
}

.ribbon-banner::after {
  right: -12px;
  border-width: 14px 0 14px 12px;
  border-color: transparent transparent transparent #e17992;
}

/* Arch Photo Frame */
.arch-frame {
  border-top-left-radius: 120px;
  border-top-right-radius: 120px;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(190, 58, 85, 0.15);
  border: 4px solid #fff;
  outline: 1.5px solid #f3abbb;
}

/* Falling Petals Canvas */
#petals-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 60;
}

/* Cover Overlay Transition */
#cover-overlay {
  transition: transform 0.85s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.85s ease;
}

#cover-overlay.opened {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Toast Message */
.toast-msg {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(55, 35, 40, 0.92);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 0.875rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}
