@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Courgette&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.main {
  font-family: "Inter Tight", sans-serif;
}

.page {
  width: 100%;
}

.bg-1 {
  background: #fcb0bd;
  background: linear-gradient(
    140deg,
    rgba(252, 176, 189, 1) 17%,
    rgba(255, 202, 228, 1) 69%,
    rgba(255, 201, 233, 1) 100%
  );
}

.bg-2 {
  background: #6873d9;
  background: linear-gradient(
    140deg,
    rgba(104, 115, 217, 1) 17%,
    rgba(112, 84, 173, 1) 100%
  );
}

.page.active {
  display: flex;
}

.wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
  min-height: 100svh;
}

.fade-in {
  opacity: 1;
}

.face-out {
  opacity: 0;
}

.bithday-wish {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bithday-wish h1 {
  font-family: "Great Vibes", cursive;
  font-size: 8rem;
  color: #914e53;
}

.bithday-wish h1 img {
  width: 6rem;
  height: 6rem;
  object-fit: contain;
  margin-left: 2rem;
}

.bithday-wish h4 {
  font-size: 1.8rem;
  font-weight: 400;
  color: #914e53;
  margin-top: 2rem;
}

.emoji-part {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 3em;
}

.emoji img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.button {
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: #fc8397;
  background: linear-gradient(
    140deg,
    rgba(252, 131, 151, 1) 17%,
    rgba(255, 94, 188, 1) 100%
  );
  text-decoration: none;
  color: #fff;
  border-radius: 5rem;
  margin-top: 3rem;
  cursor: pointer;
}

.background-bg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.background-bg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nd h1 {
  font-family: "Great Vibes", cursive;
  font-size: 10rem;
  color: #FF6196;
  text-align: center;
}

.background2-bg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.background2-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.letter-wrap{
  max-width: 80%;
  width: 80%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.photo{
  z-index: 2;
}


.photo img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 1px solid #00000052;
}

.letter{
  flex: 1;
  background-color: #9d84f894;
  backdrop-filter: blur(5px);
  height: 100%;
  border-radius: 2rem;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  justify-content: center;
}

.para{
  margin-top: 3rem;
   font-size: 1.3rem;
   line-height: 1.5;
   text-align: center;
}

.letter h1{
  font-family: "Courgette", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 3rem;
  color: #292929;
  text-align: center;
}

.tw{
  font-family: "Courgette", cursive;
  margin-top: auto;
   font-size: 1.5rem;
   line-height: 1.5;
   text-align: center;
   color: rgb(38, 0, 255);
}

.hert-icon{
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3em;
  width: 100%;
  justify-content: center;
}

.ic img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}


.z-1{
  z-index: 3;
}

.z-2{
  z-index: 2;
}

.z-3{
  z-index: 1;
}


.page {
  opacity: 1;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: translateY(0);
  display: block;
}

.page.page-exit {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.page.page-enter {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideIn 0.8s ease forwards;
  z-index: 3 !important;
}

/* Text fade-in with blur */
.nd h1, .letter h1, .para p, .tw {
  opacity: 0;
  filter: blur(8px);
  animation: textFadeIn 1s ease forwards;
  animation-delay: 0.6s;
}

.nd h1:nth-child(2) {
  animation-delay: 1.2s;
}

.para p:nth-child(2) {
  animation-delay: 1.4s;
}

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes textFadeIn {
  to {
    opacity: 1;
    filter: blur(0);
  }
}


@media (max-width: 768px) {
  .bithday-wish h1 {
    font-size: 3rem;
    text-align: center;
  }

  .bithday-wish h1 img {
    width: 2.5rem;
    height: 2.5rem;
    margin-left: 1rem;
  }

  .bithday-wish h4 {
    font-size: 1.2rem;
    text-align: center;
    margin-top: 1rem;
  }

  .emoji-part {
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
  }

  .emoji img {
    width: 2rem;
    height: 2rem;
  }

  .button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    gap: 0.5rem;
    margin-top: 2rem;
  }

  .nd h1 {
    font-size: 3rem;
  }

  .letter-wrap {
    flex-direction: column;
    width: 100%;
    gap: 1.5rem;
  }

  .photo img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
  }

  .letter {
    padding: 1.5rem;
  }

  .letter h1 {
    font-size: 2rem;
  }

  .para {
    font-size: 1rem;
    margin-top: 2rem;
  }

  .tw {
    font-size: 1.1rem;
  }

  .hert-icon {
    gap: 0.5rem;
    margin-top: 2rem;
  }

  .ic img {
    width: 2rem;
    height: 2rem;
  }
}

@media (max-width: 480px) {


  .letter-wrap{
    max-width: 100%;
    width: 100%;
  }
  .bithday-wish h1 {
    font-size: 2.5rem;
  }

  .nd h1 {
    font-size: 2.2rem;
  }

  .letter h1 {
    font-size: 1.8rem;
  }

  .para {
    font-size: 0.95rem;
  }

  .tw {
    font-size: 1rem;
  }
}
