body {
  margin: 0;
  background: #ffe6f0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: 'Playfair Display', serif;
  flex-direction: column;
}

.card {
  width: 300px;
  height: 180px;
  background: #ffc0cb;
  position: relative;
  border: 2px solid #d28ea0;
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: opacity 0.5s ease;
}

.flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 180px;
  background: #ff99aa;
  clip-path: polygon(0 0, 100% 0, 50% 60%);
  z-index: 1;
}

.body {
  z-index: 2;
  font-size: 24px;
  color: #a00055;
  text-align: center;
  padding: 10px;
}

.heart-container {
  display: none;
  margin-top: 20px;
}

.heart-shape {
  width: 320px;
  height: 290px;
  background: red;
  position: relative;
  transform: rotate(-45deg);
  animation: pulse 1.2s infinite;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

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

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

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

.heart-text {
  transform: rotate(45deg);
  color: white;
  font-size: 18px;
  text-align: center;
  line-height: 1.5;
  width: 240px;
  z-index: 2;
  padding: 20px 10px 5px 10px;
  font-family: 'Playfair Display', serif;
  margin-top: 20px;
}

.text-link {
  color: #ffd6e9;
  text-decoration: none;
  font-weight: bold;
}

.text-link:hover {
  text-decoration: underline;
}

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

@media (max-width: 480px) {
  .card, .flap {
    width: 260px;
    height: 160px;
  }

  .heart-shape, .heart-shape::before, .heart-shape::after {
    width: 260px;
    height: 240px;
  }

  .heart-shape::before {
    top: -130px;
  }

  .heart-shape::after {
    left: 130px;
  }

  .heart-text {
    font-size: 16px;
    width: 200px;
  }
}

@media (max-width: 768px) {
  .heart-text {
    font-size: 17px;
  }
}
