@import url("https://fonts.googleapis.com/css2?family=Pacifico&display=swap");

.background-img {
  margin: 0;
  padding: 0;
  background-image: url("../images/background.jpg"); /* Update this path to your actual image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  transition: background-image 1s ease-out;
  min-height: -webkit-fill-available; /* Soluciona el corte en iOS */
  height: 100vh;
  width: 100vw;
}
/* Asegurar que el contenedor principal sea responsivo */
.container-index {
  display: grid;
  align-content: center;
  place-items: center;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
  box-sizing: border-box;
}

.invitation-instructions {
  padding-top: 4em; /* Reducido de 8em */
  text-align: center;
  color: #333;
  width: 90%;
  margin: 0 auto;
}

.invitation-instructions h3 {
  margin: 0;
  font-family: "Pacifico", cursive;
  font-size: calc(2em + 1vw);
  margin-bottom: 15px;
  font-weight: 100;
  color: #0b2f47;
  text-shadow: 2px 2px 2px rgb(231, 231, 231);
  text-transform: capitalize;
}

.invitation-instructions p {
  font-size: calc(1em + 0.5vw); /* Tamaño responsivo */
  line-height: 1.5;
  font-family: "Times New Roman", Times, serif;
  font-style: oblique;
  font-weight: 500;
}

.center,
.envelope-wrapper .letter,
.container-index {
  place-items: center;
}

.envelope-wrapper {
  position: relative;
  cursor: pointer;
  outline: none;
  border-radius: 16px;
  box-sizing: border-box;
}

.envelope-wrapper .envelope {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  box-sizing: border-box;
}

.envelope-wrapper .opened-envelope {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  box-sizing: border-box;
}

.envelope-wrapper .letter {
  position: absolute;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.fade-transition {
  transition: opacity 1s ease-out;
}

#index-content,
#invitation-content {
  transition: opacity 1s ease-in-out;
}

#invitation-content {
  visibility: hidden;
  opacity: 0;
}
