@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #ffb7c5, #ff6f91);
  color: #fff;
  overflow: hidden;
}

/* Center utility */
.center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

/* Headings */
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Buttons */
button {
  padding: 14px 34px;
  font-size: 18px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  margin: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* Primary button */
.btn-primary {
  background: #fff;
  color: #ff6f91;
}

.btn-primary:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(255,255,255,0.3);
}

/* Yes / No buttons */
#yesBtn {
  background: #fff;
  color: #ff4d6d;
}

#noBtn {
  background: rgba(0,0,0,0.25);
  color: #fff;
  position: relative;
}

/* Love message card */
.card {
  background: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  max-width: 450px;
  animation: fadeIn 1.2s ease;
}

/* 🌸 Spiral Gallery – CENTERED */
.spiral-wrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 70vh;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.spiral {
  position: relative;
  width: 320px;
  height: 320px;
  transform-origin: center center;
}

.spiral img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160px;
  height: 110px;
  transform-origin: center center;

  object-fit: contain; /* keeps portrait & landscape safe */
  background: rgba(255,255,255,0.15);
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);

  transition: transform 0.4s ease;
}

.spiral img:hover {
  z-index: 10;
}

/* 📱 Mobile Optimization */
@media (max-width: 600px) {
  .spiral {
    width: 260px;
    height: 260px;
  }

  .spiral img {
    width: 130px;
    height: 90px;
  }
}
.title{
    text-align: center;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* 🌸 Cherry Blossom Petals */
#petals-container {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -20px;
  background: radial-gradient(circle at 30% 30%, #fff, #ffb7c5);
  border-radius: 60% 40% 60% 40%;
  animation-name: fall;
  animation-timing-function: linear;
}

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
  }
}
