.modal {
  width: 100vw;
  max-width: 100%;
  height: 100vh;
  max-height: 100%;
}

.modal:has(.btn-close:checked) {
  display: none;
}

.modal-container {
  background-color: transparent;
  background-image: url('../images/TriangleBackgroundBlur.png');
  background-position: 50% 0%;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-clip: content-box;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.modal-content-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 0 auto;
}

.modal-btn-close-container-desktop {
  opacity: 0;
  animation-name: fadeIn;
  animation-duration: 0.5s;
  animation-delay: 2.1s;
  animation-iteration-count: 1;
  animation-timing-function: ease-in;
  animation-fill-mode: forwards;
  display: block;
}

.modal-btn-close-container-mobile {
  opacity: 0;
  animation-name: fadeIn;
  animation-duration: 0.5s;
  animation-delay: 2.1s;
  animation-iteration-count: 1;
  animation-timing-function: ease-in;
  animation-fill-mode: forwards;
  display: none;
}

@media all and (max-width: 800px) {
  .modal-btn-close-container-desktop {
    display: none;
  }

  .modal-btn-close-container-mobile {
    display: block;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.modal-btn-close {
  -webkit-appearance: none;
  appearance: none;
  /* Scale */
  transform: scale(0.7);
  animation-name: pulse;
  animation-duration: 1s;
  animation-delay: 2.1s;
  animation-direction: alternate;
  animation-iteration-count: infinite;
  animation-timing-function: ease-out;
}

@keyframes pulse {
  0% {
    transform: scale(0.7);
  }

  100% {
    transform: scale(1);
  }
}

.modal-text-container {
  display: flex;
  flex-direction: column;
}

.modal-typewriter-container {
  display: inline-block;
  margin: 0 auto;
}

.modal-typewriter {
  color: white;
  overflow: hidden;
  white-space: nowrap;
  font-size: 30pt;
  font-weight: 200;
  width: 0;
  animation-name: typing;
  animation-duration: 1s;
  animation-timing-function: steps(20, end);
  animation-fill-mode: forwards;
}

@media all and (max-width: 800px) {
  .modal-typewriter {
    font-size: 26pt;
    font-weight: 300;
  }
}

.modal-typewriter-2 {
  color: white;
  overflow: hidden;
  white-space: nowrap;
  font-size: 30pt;
  font-weight: 200;
  width: 0;
  animation-delay: 1s;
  animation-name: typing;
  animation-duration: 1s;
  animation-timing-function: steps(20, end);
  animation-fill-mode: forwards;
}

@media all and (max-width: 800px) {
  .modal-typewriter-2 {
    font-size: 26pt;
    font-weight: 300;
  }
}

@keyframes typing {
  from {
    width: 0
  }

  to {
    width: 100%
  }
}