body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(-45deg, #ffd6e8, #ffe6f0, #fff0f6, #fdeff9);
  background-size: 400% 400%;
  animation: gradientFlow 12s ease infinite;
  overflow: hidden;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* PAGE TRANSITION */
.page {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(40px);
}

.visible {
  opacity: 1;
  transform: translateX(0);
}

/* CARD */
.card {
  background: rgba(255,255,255,0.95);
  padding: 35px;
  border-radius: 24px;
  text-align: center;
  width: 90%;
  max-width: 380px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}


h1, h2 { color: #e91e63; }

.about{
  color: #e91e63; 
  font-style: italic;
  /* color:#0c4754; */
  font-weight: 500;
}

.pageHeadingTxt{color:blue;
}
.pageHeading{
  color:blue;
  margin-bottom:50px;
  text-transform: capitalize;
}
/* input {
  width: 90%;
  padding: 14px;
  margin-top: 20px;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 16px;
  text-align: center;
} */
input {
  width: 60%;
  padding: 14px;
  margin-top: 20px;
  border-radius: 30px;
  border: 2px solid #ff8fab;
  font-size: 16px;
  text-align: center;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 143, 171, 0.2);
  color:#0e4147;
  /* font-weight:550; */
}

input::placeholder {
  color: #ff8fab;
  opacity: 0.8;
}

input:focus {
  border-color: #ff477e;
  box-shadow: 0 0 15px rgba(255, 71, 126, 0.5);
  transform: scale(1.03);
}
button {
  margin-top: 25px;
  padding: 12px 34px;
  border: none;
  border-radius: 30px;
  /* background: linear-gradient(135deg, #b42f4f, #e05e97); */
      background: linear-gradient(135deg,#6A1B2E, #ad1457 );

  color: white;
  font-size: 16px;
  cursor: pointer;
}

button:hover { 
    background: #d81b60; 
    /* background: linear-gradient(135deg,#6A1B2E, #ad1457 ); */
}
#hugBtn{
    background: #d81b60; 

}
#hugBtn:hover{
   background: linear-gradient(135deg,#6A1B2E, #ad1457 );
 
}
.msg {
  margin-top: 15px;
  font-size: 16px;
}

/* 🧸 HUG PAGE */
/* #hugPage {
  background: rgba(255,255,255,0.9);
} */

.hug-wrapper {
  width: 40%;
  height: 50%;
}

.hug-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  /* box-shadow: 0 0 30px rgba(255, 182, 193, 0.4); */
}

.hug-bottom {
  margin-top: 50px;
  text-align: center;
}

#hugText {
  font-size: 20px;
  /* color: #8B1E3F; */
  color:#671e34 ;
  font-style: italic;
  font-weight: 500;
  margin-bottom: 10px;
}

/* 💌 FINAL PAGE */
#finalPage {
  background: linear-gradient(135deg, #ffe6f0, #fff);
}

.final-container {
  display: flex;
  width: 80%;
  /* max-width: 900px; */
  background: #fffdf7;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}

/* IMAGE SIDE */
.final-image {
  width: 50%;
}

.final-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* LETTER SIDE */
.final-letter {
  width: 50%;
  padding: 40px;
  font-family: 'Playfair Display', serif;
   
  font-size: 20px;
  font-style: oblique;
  color: #c2185b;
  line-height: 1.6;
  /* display: flex; */
  align-items: center;
  justify-content: center;
      /* flex-direction: column; */

  text-align: center;
display: block;
  overflow-y: auto; 
}
.final-letter::-webkit-scrollbar {
  width: 6px;
}

.final-letter::-webkit-scrollbar-thumb {
  background: #f8a1c4;
  border-radius: 10px;
}
.final-letter {
  text-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.finalLeterTitle{
  font-weight: bold;
  font-size: 23px;
}

/* 💖 HEARTS */
.heart {
  position: absolute;
  bottom: -20px;
  font-size: 24px;
  animation: floatUp 6s linear infinite;
  opacity: 0.8;
}

@keyframes floatUp {
  from { transform: translateY(0) scale(1); opacity: 1; }
  to { transform: translateY(-110vh) scale(1.6); opacity: 0; }
}

/* 📱 MOBILE */
@media (max-width: 768px) {
  .final-container {
    flex-direction: column;
  }
  .final-image, .final-letter {
    width: 100%;
  }
  .final-letter {
    font-size: 26px;
    padding: 30px;
  }
}
#welcomePage {
  background-image: url("images/loveImage.jpg");
  background-size: cover;
  background-position: center;
  /* background-repeat: no-repeat; */
  min-height: 100vh;
}


.pageHeadingTxt {
    color: #8B1E3F;
  text-shadow: 0 2px 6px rgba(0,0,0,0.15);
  font-size: 40px;
}

#questionPage 
 {
  background: linear-gradient(135deg, #fff5e6, #f7d9c4, #f3c6d3);
  /* background: linear-gradient(135deg, #ffd1b3, #f7d9c4, #f3c6d3); */



  min-height: 100vh;
}
#hugPage {
background:linear-gradient(135deg, #f7c4d9, #e1d2ba, #ffd9e4)  ;min-height: 100vh;
}
/* #hugText::after {
  content: "|";
  animation: blink 1s infinite;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
} */



.final-letter {
  opacity: 0;
  transform: scale(0.8);
  animation: revealLetter 1.5s ease-out forwards;
}

@keyframes revealLetter {
  to {
    opacity: 1;
    transform: scale(1);
  }
}