@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&family=Pacifico&display=swap');

:root {
  --primary-color: #ff4d6d;
  --secondary-color: #ff8fa3;
  --bg-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.5);
  --text-main: #590d22;
}

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

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg-gradient);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.container {
  text-align: center;
  background: var(--glass-bg);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  max-width: 90%;
  width: 500px;
  position: relative;
  transition: transform 0.3s ease;
  z-index: 10;
}

.container:hover {
  transform: translateY(-5px);
}

h1 {
  font-family: 'Pacifico', cursive;
  color: var(--primary-color);
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

p {
  color: var(--text-main);
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  font-weight: 700;
}

/* Image styling */
.couple-photo {
  width: 100%;
  max-width: 350px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  margin-top: 1.5rem;
  transform: rotate(-2deg);
  border: 5px solid white;
}

/* Button Group */
.buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  position: relative; /* Need relative to position No button initially if needed, but absolute is better for movement */
  min-height: 60px; /* Space for buttons */
}

.btn {
  padding: 12px 30px;
  font-size: 1.2rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-yes {
  background-color: var(--primary-color);
  color: white;
}

.btn-yes:hover {
  background-color: #d90429;
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--primary-color);
}

.btn-no {
  background-color: #e5e5e5;
  color: #333;
  /* position: absolute; REMOVED to let it flow naturally initially */
}

/* Confetti (Simple CSS animation) */
.heart {
  position: absolute;
  top: -10px;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  transform: rotate(45deg);
  animation: fall linear infinite;
  opacity: 0.6;
  z-index: 1;
}

.heart::before,
.heart::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
}

.heart::before {
  top: -10px;
  left: 0;
}

.heart::after {
  left: -10px;
  top: 0;
}

@keyframes fall {
  to {
    transform: translate(0, 100vh) rotate(45deg);
  }
}

/* Mobile Optimization (iPhone 15 Pro Max and others) */
@media (max-width: 600px) {
  .container {
    padding: 2rem 1.5rem;
    width: 90%;
  }

  h1 {
    font-size: 2.2rem; /* Smaller title */
  }

  p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }

  .buttons {
    flex-direction: column; /* Stack buttons on small screens */
    gap: 1rem;
    align-items: center;
  }

  .btn {
    width: 100%; /* Full width buttons */
    max-width: 200px;
    padding: 10px 20px;
    font-size: 1rem;
  }
  
  .couple-photo {
      max-width: 100%;
  }
}
