/* Modal container */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;

  background-color: white;
  display: none;
  align-items: center;
  justify-content: center;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animated div styling */
.slide-down {
  animation: slideDown 0.8s ease-out;
}
.slide-up {
  animation: slideUp 0.8s ease-in;
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-100%);
  }
}

/* Modal content */
.modal-content {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 900px;
}

.modal-content > div > a,
.modal-content > div > a:link,
.modal-content > div > a:visited,
.modal-content > div > a:hover,
.modal-content > div > a:active {
  text-decoration: none;
  color: var(--roxosecundario);
  font-family: "Fleur";
  font-size: 100px;
  letter-spacing: 2px;
  line-height: 24px;
  padding-left: 20px;
  padding-right: 20px;
  font-weight: bold;
  transition: all 0.4s ease-in-out;
}

.modal-content > div > a:hover {
  color: var(--rosaclaro);
  transition: all 0.4s ease-in-out;
}

.modal-content > div {
  opacity: 0;
  transform: translateY(50px); /* Start lower */
  transition: all 0.4s ease-in-out;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(0px);
  }
  to {
    opacity: 1;
    transform: translateY(50px);
  }
}

/* .modal-content > div:nth-child(1) {
  animation: fadeUp 0.7s ease-out forwards;
  animation-delay: 1.7s;
}
.modal-content > div:nth-child(2) {
  animation: fadeUp 0.7s ease-out forwards;
  animation-delay: 1.6s;
}
.modal-content > div:nth-child(3) {
  animation: fadeUp 0.7s ease-out forwards;
  animation-delay: 1.4s;
}
.modal-content > div:nth-child(4) {
  animation: fadeUp 0.7s ease-out forwards;
  animation-delay: 1.2s;
}
.modal-content > div:nth-child(4) {
  animation: fadeUp 0.7s ease-out forwards;
  animation-delay: 1s;
}
.modal-content > div:nth-child(5) {
  animation: fadeUp 0.7s ease-out forwards;
  animation-delay: 0.9s;
}
.modal-content > div:nth-child(6) {
  animation: fadeUp 0.7s ease-out forwards;
  animation-delay: 0.7s;
}
.modal-content > div:nth-child(7) {
  animation: fadeUp 0.7s ease-out forwards;
  animation-delay: 0.5s;
} */

.modal-content > div:nth-child(1) {
  animation: fadeUp 0.7s ease-out forwards;
  /* animation-delay: 1.7s; */
  animation-delay: 0.5s;
}
.modal-content > div:nth-child(2) {
  animation: fadeUp 0.7s ease-out forwards;
  /* animation-delay: 1.6s; */
  animation-delay: 0.7s;
}
.modal-content > div:nth-child(3) {
  animation: fadeUp 0.7s ease-out forwards;
  animation-delay: 0.9s;
}
.modal-content > div:nth-child(4) {
  animation: fadeUp 0.7s ease-out forwards;
  animation-delay: 1s;
}
.modal-content > div:nth-child(4) {
  animation: fadeUp 0.7s ease-out forwards;
  animation-delay: 1.2s;
}
.modal-content > div:nth-child(5) {
  animation: fadeUp 0.7s ease-out forwards;
  animation-delay: 1.4s;
}
.modal-content > div:nth-child(6) {
  animation: fadeUp 0.7s ease-out forwards;
  animation-delay: 1.6s;
}
.modal-content > div:nth-child(7) {
  animation: fadeUp 0.7s ease-out forwards;
  animation-delay: 1.8s;
}
.modal-content > div:nth-child(8) {
  animation: fadeUp 0.7s ease-out forwards;
  animation-delay: 1.9s;
}
.modal-content > div:nth-child(9) {
  animation: fadeUp 0.7s ease-out forwards;
  animation-delay: 2s;
}
.modal-content > div {
  font-size: 25px;
  letter-spacing: 2px;
  line-height: 30px;
}

.modal-content > div.arrow-container {
  margin-top: 30px;
  margin-bottom: 40px;
}

/* Close button */
.close {
  position: absolute;
  color: white;
  right: 10%;
  top: 5%;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
}

.arrow {
  width: 21px;
  height: 32px;
  object-fit: contain;
}

/* Button to open modal */
.open-modal-btn {
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

@media (max-width: 1440px) {
  .modal-content > div > a,
  .modal-content > div > a:link,
  .modal-content > div > a:visited,
  .modal-content > div > a:hover,
  .modal-content > div > a:active {
    font-size: 60px;
  }
}

@media (max-width: 1024px) {
  .modal-content > div > a,
  .modal-content > div > a:link,
  .modal-content > div > a:visited,
  .modal-content > div > a:hover,
  .modal-content > div > a:active {
    font-size: 60px;
    line-height: 40px;
  }
}

@media (max-width: 720px) {
  .modal-content > .segundo {
    margin-right: 36%;
  }

  .modal-content > .quarto {
    margin-left: 35%;
  }
  .modal-content > div > a,
  .modal-content > div > a:link,
  .modal-content > div > a:visited,
  .modal-content > div > a:hover,
  .modal-content > div > a:active {
    font-size: 50px;
    line-height: 10px;
  }

  .modal-content > div {
    font-size: 17px;
    padding-bottom: 5px;
    line-height: 30px;
  }

  .modal-content {
    margin-right: 30px;
    margin-left: 30px;
  }

  .arrow {
    width: 20px;
    height: 15px;
    object-fit: contain;
  }
}

@media (max-width: 480px) {
  .modal-content > div {
    font-size: 10px;
  }
  .modal-content > div > a,
  .modal-content > div > a:link,
  .modal-content > div > a:visited,
  .modal-content > div > a:hover,
  .modal-content > div > a:active {
    font-size: 50px;
    line-height: 20px;
  }

  .modal-content > div.arrow-container {
    margin-top: 5px;
    margin-bottom: 5px;
  }
}

.open-modal-btn {
  object-fit: contain;
  width: 35px;
  height: 36px;
}

.open-modal-btn.pages {
  height: 78px;
}

@media (max-width: 480px) {
  .open-modal-btn {
    object-fit: contain;
    width: 38px;
    height: 19px;
  }

  .open-modal-btn.pages {
    object-fit: contain;
    width: 38px;
    height: 19px;
    margin-top: 18px;
   }
}
