/* styles.css */

/* General body styling */
body {
  font-family: 'Indie Flower', cursive;
  font-size: 1.5rem;
  text-align: center;
  background: #ffe6e6;
  margin: 0;
  padding: 1.25rem;
  transition: opacity 0.5s ease; /* For fade-out transition */
}

/* Fade-out state for page transitions */
.fade-out {
  opacity: 0;
}

/* Main page container */
#container {
  margin-top: 50px;
}

/* Heading styling */
h1 {
  color: #ff3366;
  margin-bottom: 2.5rem; /* 40px equivalent */
}

/* Styling for the "please" GIF */
.please-gif {
  width: 200px;
  max-width: 100%;
  margin-bottom: 20px;
}

/* Button styling */
.button {
  font-family: 'Indie Flower', cursive;
  padding: 15px 30px;
  font-size: 1.25rem;
  margin: 1.25rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.button:hover {
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}

#yes-btn {
  background-color: #ff6699;
  color: white;
}

#no-btn {
  background-color: #cccccc;
  color: #333;
  position: relative; /* For repositioning */
}

/* Celebration page styling */
#celebration-container {
  margin-top: 50px;
}

.dancing-gif {
  width: 300px;
  max-width: 90%;
}

h2 {
  color: #ff3366;
}

/* Corner message styling */
.corner-message {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.8);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 1.2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.heart {
  color: #e74c3c;
}

/* Sad Dudu image styling */
.sad-dudu {
  position: fixed;
  width: 200px; /* Adjust size as needed */
  pointer-events: none;
  z-index: 999;
}

/* Falling animation for sad Dudu */
@keyframes fall {
  0% {
    top: -60px;
    opacity: 1;
  }
  100% {
    top: 100vh;
    opacity: 0;
  }
}

.sad-dudu.fall {
  animation: fall 3s linear forwards;
}

/* Rolling animation for sad Dudu */
@keyframes roll {
  0% {
    left: -60px;
    bottom: 30px;
    opacity: 1;
    transform: rotate(0deg);
  }
  100% {
    left: 100vw;
    bottom: 30px;
    opacity: 0;
    transform: rotate(360deg);
  }
}

.sad-dudu.roll {
  animation: roll 4s linear forwards;
}

/* Floating heart styling */
.floating-heart {
  position: fixed;
  bottom: -50px;
  color: #ff3366;
  font-size: 24px;
  pointer-events: none;
  user-select: none;
  z-index: 999;
  animation: floatUp linear forwards;
}

/* Animation for floating hearts */
@keyframes floatUp {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) scale(1.5);
    opacity: 0;
  }
}
