body {
  background-color: #fff0f6;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  flex-direction: column;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.heart-button {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  margin-bottom: 40px;
  transition: transform 0.2s ease;
}

.heart-icon {
  width: 160px;
  height: 160px;
}

.heart-fill {
  transform: translateY(100%);
  transition: transform 1.2s ease;
}

.heart-outline {
  fill: none;
  stroke: #ff4f88;
  stroke-width: 2;
}

.heart-button.active .heart-fill {
  transform: translateY(0%);
}

.heart-button.active {
  animation: pulse 0.6s ease;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* الصور */
.images {
  position: relative;
  width: 300px;
  height: 150px;
}

.images img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  position: absolute;
  top: 0;
  transition: all 1.2s ease;
}

/* الصورة اليسار */
.left-img {
  left: 0;
}

/* الصورة اليمين */
.right-img {
  right: 0;
}

/* لما يمتلي القلب → الصور تلتقي */
.heart-button.active ~ .images .left-img {
  left: 60px;
  transform: rotate(-10deg);
}

.heart-button.active ~ .images .right-img {
  right: 60px;
  transform: rotate(10deg);
}
/* قلوب صغيرة تطير فوق */
.small-heart {
  position: absolute;
  bottom: 160px;
  font-size: 20px;
  color: #ff4f88;
  animation: floatUp 2s ease-out forwards;
  opacity: 0;
}

.small-heart::before {
  content: '❤️';
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-180px) scale(1.5);
    opacity: 0;
  }
}
.love-gif {
  display: block;
  width: 100px;
  height: auto;
  object-fit: cover;
  margin: 20px 0 20px auto; /* auto على اليسار يعني يمين */
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(255, 150, 200, 0.4);
  animation: fadeIn 2s ease forwards;
}