@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap");

* {
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #ffb199, #ff0844);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 15px;
}

.hearts::before {
  content: "💖 💕 💘 💝 💗 💓";
  position: absolute;
  width: 100%;
  height: 100%;
  font-size: 2rem;
  opacity: 0.3;
  animation: float 20s linear infinite;
}

@keyframes float {
  from { transform: translateY(100%); }
  to { transform: translateY(-100%); }
}

.card {
  background: linear-gradient(135deg, #fff1eb, #7883f8);
  padding: 30px;
  border-radius: 20px;
  width: 320px;
  max-width: 100%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: pop 1s ease;
}

@keyframes pop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.card h1 { color: #aa3449; font-size: 1.5rem; }

.teddies {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.teddies img {
  width: 100px;
  height: 120px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.teddies img:hover { transform: scale(1.1) rotate(5deg); }

.buttons { margin-top: 15px; }

button {
  border: none;
  padding: 10px 22px;
  margin: 8px;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s ease;
  white-space: nowrap; /* Prevents text wrapping on small buttons */
}

#yes { background: #ff4d6d; color: white; }
#yes:hover { background: #ff1f4b; transform: scale(1.1); }
#no { background: #c85b5b; }
#no:hover { background: #d52525; }

.popup {
  position: fixed;
  inset: 0;
  background: rgba(208, 18, 72, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: 0.4s;
  padding: 15px;
}

.popup.show { visibility: visible; opacity: 1; pointer-events: auto; }

.popup-content {
  background: rgb(233, 82, 173);
  padding: 25px;
  border-radius: 20px;
  text-align: center;
  animation: pop 0.5s ease;
  max-width: 90%;
}

.popup-content img {
  width: 150px;
  max-width: 100%;
  border-radius: 12px;
  margin: 10px 0;
}

#close { background: #f3627c; color: white; }

@media (max-width: 480px) {
  .card { padding: 20px; }
  .card h1 { font-size: 1.25rem; }
  .teddies img { width: 80px; height: 100px; }
  button { font-size: 0.9rem; padding: 9px 18px; }
}

@media (max-width: 360px) {
  .teddies img { width: 70px; height: 90px; }
  button { width: 100%; margin: 6px 0; touch-action: manipulation; }
  .popup { pointer-events: none; }
}