.modal_bg {
  display: none;
  background: #3939b3;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 99999;
  animation: fadeInRight;
  animation-duration: 1s;
}
.modal_bg {
  overflow-y: scroll;
}
.modal_bg-display {
  display: block;
}

#modal_close {
  margin-top: 20px;
  margin-right: 120px;
  font-size: 30px;
  cursor: pointer;
  position: absolute;
  right: 0;
  transition: all 0.6s;
  box-sizing: content-box;
}

#modal_close:hover {
  color: var(--white);
  transform: rotate(180deg);
}

.modal_content {
  margin: 20px auto;
  max-width: 41%;
}

.modal_content div {
  text-align: justify;
}

.modal__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal__text div {
  font-size: 24px;
  line-height: 122.1%;
}

.modal__text h1 {
  font-size: 24px;
  font-weight: bold;
}

@media (min-width: 1920px) {
  .modal_content {
    margin: 150px auto;
    max-width: 41%;
  }
}

@media (max-width: 768px) {
  .modal_content {
    max-width: 70%;
  }
  .modal__text div {
    font-size: 18px;
  }

  .modal__text h1 {
    font-size: 18px;
  }
  #modal_close {
    margin-right: 40px;
    font-size: 24px;
  }
}

@media (max-width: 425px) {
  .modal_content {
    max-width: 70%;
  }

  .modal__text div {
    font-size: 16px;
  }

  .modal__text h1 {
    font-size: 16px;
  }
  #modal_close {
    margin-right: 15px;
    font-size: 22px;
  }
}
