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

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Arial', sans-serif;
  overflow: hidden;
}

.container {
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  position: relative;
  z-index: 2;
}

h1 {
  color: #ff6b9d;
  font-size: 2.5em;
  margin-bottom: 20px;
  animation: heartbeat 1.5s ease-in-out infinite;
}

.message {
  color: #333;
  font-size: 1.2em;
  line-height: 1.8;
  margin: 30px 0;
  animation: fadeIn 1s ease-in;
}

p{
  color: inherit;
}

.flower {
  display: inline-block;
  margin: 0 10px;
  animation: float 3s ease-in-out infinite;
}

.heart {
  color: #ff6b9d;
  display: inline-block;
  animation: pulse 1s ease-in-out infinite;
}

/* Animations */
@keyframes heartbeat {
  0%, 100% {
      transform: scale(1);
  }
  50% {
      transform: scale(1.1);
  }
}

@keyframes float {
  0%, 100% {
      transform: translateY(0px);
  }
  50% {
      transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
      transform: scale(1);
  }
  50% {
      transform: scale(1.2);
  }
}

@keyframes fadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}

/* Falling hearts and flowers */
.falling-item {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  font-size: 2em;
}

.falling-heart {
  animation: fall linear infinite;
  color: #ff6b9d;
}

.falling-flower {
  animation: fall linear infinite;
}

@keyframes fall {
  to {
      transform: translateY(100vh) rotate(360deg);
      opacity: 0;
  }
}

button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 1.1em;
  border-radius: 50px;
  cursor: pointer;
  margin-top: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

button:active {
  transform: scale(0.98);
}

/* Popup Styles */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-in;
}

.popup-overlay.show {
  display: flex;
}

.popup-content {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  text-align: center;
  position: relative;
  animation: popupBounce 0.5s ease-out;
}

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

.popup-content h2 {
  color: #ff6b9d;
  font-size: 2em;
  margin-bottom: 20px;
  animation: heartbeat 1.5s ease-in-out infinite;
}

.popup-content p {
  color: #333;
  font-size: 1.1em;
  margin: 15px 0;
  line-height: 1.6;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2em;
  cursor: pointer;
  color: #ff6b9d;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  box-shadow: none;
  transition: transform 0.2s ease;
}

.close-btn:hover {
  transform: scale(1.2);
}

.popup-hearts {
  margin: 20px 0;
  font-size: 1.5em;
}

.popup-hearts span {
  display: inline-block;
  margin: 0 8px;
  animation: float 3s ease-in-out infinite;
}

.popup-hearts span:nth-child(1) { animation-delay: 0s; }
.popup-hearts span:nth-child(2) { animation-delay: 0.3s; }
.popup-hearts span:nth-child(3) { animation-delay: 0.6s; }
.popup-hearts span:nth-child(4) { animation-delay: 0.9s; }
.popup-hearts span:nth-child(5) { animation-delay: 1.2s; }

.popup-btn {
  background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
  margin-top: 20px;
  padding: 12px 30px;
  font-size: 1em;
}

.popup-btn:hover {
  box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}