/* Author: Saurav Kumar */

body {
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url('image3.jpg') no-repeat center center/cover;
  font-family: Arial, sans-serif;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}
h2{
  color: rgb(223, 44, 74);
  font-weight: bold;
}
.glass-card {
  position: relative;
  background: none;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  width: 300px;
  height: 200px;
}

.buttons {
  position: relative;
  margin-top: 20px;
}

button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 20px 10px;
  transition: all 0.3s ease;
}

#yesButton {
  background-color: #4caf50;
  color: white;
  
}

#yesButton:hover {
  background-color: #45a049;
}

#noButton {
  background-color: #f44336;
  color: white;
}

#noButton:hover {
  background-color: #e57373;
}

#heartPattern {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.heart {
  position: absolute;
  font-size: 2rem;
  opacity: 1;
  animation: fly 1.5s ease-out forwards;
}

.love-text {
  position: absolute;
    font-family: 'Sacramento', 'Great Vibes', cursive, Arial, sans-serif;

  font-size: 2rem;
  font-weight: bold;
  color: white;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  animation: bounce 1s ease-in-out infinite; /* Bounce animation */
  top: 50%;  /* Center vertically */
  left: 50%; /* Center horizontally */
  transform: translate(-50%, -50%); /* Final centering adjustment */
}

@keyframes fly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50px + 100px * var(--randomX)), calc(-50px + 100px * var(--randomY))) scale(0);
  }
}

@keyframes bounce {
  0% {
    transform: translate(-50%, -50%) translateY(0);
  }
  25% {
    transform: translate(-50%, -50%) translateY(-10px);
  }
  50% {
    transform: translate(-50%, -50%) translateY(0);
  }
  75% {
    transform: translate(-50%, -50%) translateY(-5px);
  }
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }
}
