body {
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom right, #ff99cc, #ffe6f0);
  font-family: 'Comic Sans MS', cursive;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.container {
  text-align: center;
  color: #fff;
  animation: fadeIn 2s ease-in-out;
  z-index: 2;
}

.heart {
  width: 100px;
  height: 100px;
  background-color: red;
  position: relative;
  transform: rotate(-45deg);
  animation: heartbeat 1s infinite;
  margin: 0 auto;
}

.heart::before,
.heart::after {
  content: "";
  width: 100px;
  height: 100px;
  background-color: red;
  border-radius: 50%;
  position: absolute;
}

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

.heart::after {
  left: 50px;
  top: 0;
}

h1 {
  margin-top: 30px;
  font-size: 36px;
  text-shadow: 2px 2px 4px #c90076;
  animation: glow 2s infinite alternate;
}

.sparkles {
  font-size: 25px;
  margin-top: 20px;
  animation: sparkle 2s infinite alternate;
}

button {
  margin-top: 15px;
  margin-right: 10px;
  padding: 10px 20px;
  font-size: 18px;
  background-color: #ff66a3;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  box-shadow: 0 0 10px #ff66a3;
  transition: transform 0.3s ease;
}

button:hover {
  transform: scale(1.1);
  background-color: #e05590;
}

.poem {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 10px;
  font-size: 18px;
  line-height: 1.6;
  color: white;
  text-shadow: 1px 1px 2px #000;
  animation: fadeIn 1s ease forwards;
}

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

.floating-heart {
  position: absolute;
  color: #ff3366;
  animation: floatHeart 6s linear infinite;
  font-size: 20px;
  opacity: 0.8;
}

@keyframes floatHeart {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) scale(1.5);
    opacity: 0;
  }
}

@keyframes sparkle {
  from { opacity: 0.5; transform: scale(1); }
  to { opacity: 1; transform: scale(1.2); }
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px #fff, 0 0 20px #ff66cc, 0 0 30px #ff66cc;
  }
  to {
    text-shadow: 0 0 20px #fff, 0 0 30px #ff3399, 0 0 40px #ff3399;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1) rotate(-45deg);
  }
  50% {
    transform: scale(1.2) rotate(-45deg);
  }
}