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

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Quicksand', sans-serif;
  background: linear-gradient(135deg, #1a0a1e 0%, #2d1b36 25%, #4a1942 50%, #2d1b36 75%, #1a0a1e 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  overflow: hidden;
  position: relative;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Floating Hearts Background */
.floating-hearts {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.heart {
  position: absolute;
  font-size: 20px;
  animation: floatUp 8s linear infinite;
  opacity: 0.6;
  filter: drop-shadow(0 0 5px rgba(255, 105, 180, 0.5));
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) rotate(0deg) scale(1);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.6;
  }

  100% {
    transform: translateY(-100px) rotate(720deg) scale(0.5);
    opacity: 0;
  }
}

/* Main Container */
.container {
  z-index: 10;
  padding: 20px;
}

.card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 50px 60px;
  text-align: center;
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.3),
    0 0 100px rgba(255, 105, 180, 0.2),
    inset 0 0 60px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: visible;
  max-width: 550px;
  animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent,
      rgba(255, 105, 180, 0.1),
      transparent);
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }

  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

/* Typography */
.title {
  font-family: 'Dancing Script', cursive;
  font-size: 4rem;
  color: #ff69b4;
  text-shadow:
    0 0 20px rgba(255, 105, 180, 0.8),
    0 0 40px rgba(255, 105, 180, 0.5),
    0 0 60px rgba(255, 105, 180, 0.3);
  margin-bottom: 20px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.message {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  line-height: 1.6;
}

.question {
  font-family: 'Dancing Script', cursive;
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 20px;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.5),
    0 0 30px rgba(255, 105, 180, 0.5);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow:
      0 0 10px rgba(255, 255, 255, 0.5),
      0 0 30px rgba(255, 105, 180, 0.5);
  }

  to {
    text-shadow:
      0 0 20px rgba(255, 255, 255, 0.8),
      0 0 50px rgba(255, 105, 180, 0.8),
      0 0 80px rgba(255, 105, 180, 0.5);
  }
}

.sub-message {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  font-style: italic;
}

/* Buttons Container */
.buttons-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  min-height: 120px;
  position: relative;
  width: 100%;
  padding: 20px 0;
}

/* Yes Button */
.btn-yes {
  background: linear-gradient(135deg, #ff69b4, #ff1493, #ff69b4);
  background-size: 200% 200%;
  color: white;
  border: none;
  padding: 18px 45px;
  font-size: 1.3rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow:
    0 10px 30px rgba(255, 20, 147, 0.4),
    0 0 30px rgba(255, 105, 180, 0.3);
  animation: yesButtonPulse 1.5s ease-in-out infinite;
  z-index: 5;
}

@keyframes yesButtonPulse {

  0%,
  100% {
    box-shadow:
      0 10px 30px rgba(255, 20, 147, 0.4),
      0 0 30px rgba(255, 105, 180, 0.3);
  }

  50% {
    box-shadow:
      0 15px 40px rgba(255, 20, 147, 0.6),
      0 0 50px rgba(255, 105, 180, 0.5),
      0 0 80px rgba(255, 105, 180, 0.3);
  }
}

.btn-yes:hover {
  transform: scale(1.1);
  background-position: 100% 0;
}

.btn-yes .glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent);
  animation: shine 2s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }

  50%,
  100% {
    left: 100%;
  }
}

/* Glow effect class for Yes button */
.btn-yes.super-glow {
  animation: superGlow 0.5s ease-in-out;
}

@keyframes superGlow {
  0% {
    box-shadow:
      0 0 20px rgba(255, 20, 147, 0.8),
      0 0 40px rgba(255, 105, 180, 0.6),
      0 0 60px rgba(255, 105, 180, 0.4);
  }

  50% {
    box-shadow:
      0 0 40px rgba(255, 20, 147, 1),
      0 0 80px rgba(255, 105, 180, 0.8),
      0 0 120px rgba(255, 105, 180, 0.6),
      0 0 160px rgba(255, 105, 180, 0.4);
  }

  100% {
    box-shadow:
      0 0 20px rgba(255, 20, 147, 0.8),
      0 0 40px rgba(255, 105, 180, 0.6),
      0 0 60px rgba(255, 105, 180, 0.4);
  }
}

/* No Button */
.btn-no {
  background: rgba(100, 100, 100, 0.3);
  color: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.4);
  padding: 15px 35px;
  font-size: 1rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  user-select: none;
}

.btn-no:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Hint text */
.hint {
  margin-top: 30px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  min-height: 25px;
  transition: all 0.3s ease;
}

/* Celebration Screen */
.celebration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff69b4, #ff1493, #c71585);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: celebrationBg 2s ease-in-out infinite alternate;
}

@keyframes celebrationBg {
  from {
    filter: hue-rotate(0deg);
  }

  to {
    filter: hue-rotate(30deg);
  }
}

.celebration.active {
  display: flex;
}

.celebration-content {
  text-align: center;
  color: white;
  animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.celebration-content h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 5rem;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  animation: celebratePulse 0.5s ease-in-out infinite alternate;
}

@keyframes celebratePulse {
  from {
    transform: scale(1) rotate(-2deg);
  }

  to {
    transform: scale(1.1) rotate(2deg);
  }
}

.celebration-content p {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.celebration-content .love-message {
  font-size: 2rem;
  margin-top: 30px;
  animation: lovePulse 1s ease-in-out infinite;
}

@keyframes lovePulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

/* Responsive */
@media (max-width: 600px) {
  .card {
    padding: 30px 25px;
    margin: 10px;
  }

  .title {
    font-size: 2.8rem;
  }

  .question {
    font-size: 2rem;
  }

  .buttons-container {
    flex-direction: column;
    gap: 20px;
  }

  .btn-yes {
    padding: 15px 35px;
    font-size: 1.1rem;
  }

  .celebration-content h1 {
    font-size: 3rem;
  }
}

/* Sparkle Effects */
.sparkle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  animation: sparkle 1s ease-out forwards;
}

@keyframes sparkle {
  0% {
    transform: scale(0);
    opacity: 1;
  }

  50% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(0);
    opacity: 0;
  }
}

/* Confetti */
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  pointer-events: none;
  animation: confettiFall 3s linear forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-100%) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Stitch Container */
.stitch-container {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: bounceIn 0.8s ease-out;
}

.stitch-image {
  width: 180px;
  height: auto;
  border-radius: 20px;
  filter: drop-shadow(0 0 20px rgba(65, 105, 225, 0.6));
  animation: stitchBounce 1s ease-in-out infinite;
}

@keyframes stitchBounce {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-10px) scale(1.05);
  }
}

.stitch-text {
  font-family: 'Dancing Script', cursive;
  font-size: 2.5rem;
  color: #4169E1;
  text-shadow: 0 0 15px rgba(65, 105, 225, 0.8),
    0 0 30px rgba(65, 105, 225, 0.5),
    2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-top: 15px;
  animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes textPulse {

  0%,
  100% {
    transform: scale(1);
    color: #4169E1;
  }

  50% {
    transform: scale(1.15);
    color: #1E90FF;
  }
}