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

@keyframes heartbeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.1); }
  50% { transform: scale(1); }
  75% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(-45deg, #ff758c, #ff7eb3, #ff7eb3, #ff758c);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  font-family: 'Playfair Display', serif;
}

.container {
  text-align: center;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(255, 123, 137, 0.3);
  position: relative;
  width: 400px;
  min-height: 300px;
  backdrop-filter: blur(5px);
}

.rose-border {
  position: relative;
  padding: 20px;
  border: 2px solid #ff7eb3;
  border-radius: 15px;
}

.rose-border::before {
  content: '🌹';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 0 10px;
  font-size: 1.5rem;
}

#question-container {
  position: relative;
  padding: 20px;
}

h1 {
  font-family: 'Dancing Script', cursive;
  color: #ff5c8a;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.button-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 2.5rem;
  min-height: 60px;
}

button {
  padding: 15px 35px;
  font-size: 1.2rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Playfair Display', serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.yes-btn {
  background: linear-gradient(45deg, #ff5c8a, #ff7eb3);
  color: white;
  z-index: 2;
}

.yes-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 7px 20px rgba(255, 92, 138, 0.3);
}

.no-btn {
  background: #f8f9fa;
  color: #ff5c8a;
  border: 2px solid #ff5c8a;
  transition: all 0.3s ease;
}

.no-btn.moving {
  position: absolute;
}

.no-btn:hover {
  background: #fff0f3;
}

.fade-out {
  opacity: 0;
  transform: scale(0);
  transition: all 0.5s ease-out;
}

.hidden {
  display: none;
}

#success-message h1 {
  animation: heartbeat 1.5s infinite;
}

#success-message p {
  font-size: 1.2rem;
  color: #ff5c8a;
  line-height: 1.6;
  margin: 1.5rem 0;
}

.hearts-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.heart {
  position: absolute;
  font-size: 1.5rem;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% {
      transform: translateY(100vh) scale(0) rotate(0deg);
      opacity: 1;
  }
  100% {
      transform: translateY(-100px) scale(1) rotate(360deg);
      opacity: 0;
  }
}

.shake {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}