/* MODAL-1 */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  z-index: 1000;

  .modal {
    position: relative;
    border-radius: 8px;
    transform: translateY(-100%);
    border: 1px solid var(--border);
  }
  .modal-1 {
    animation: slideIn 0.5s forwards;

    .modal-abs {
      position: sticky;
      width: 100%;
      top: 0;
      left: 0;
      display: flex;
      flex-direction: row;
      height: 3rem;
      padding-bottom: 1rem;
      background-color: var(--div);
      border-bottom: 1px solid var(--border);
      border-top-left-radius: 0.5rem;
      border-top-right-radius: 0.5rem;
    }
    .cross-btn {
      position: absolute;
      right: 1rem;
      top: 50%;
      transform: translateY(-50%);
      cursor: pointer;
      color: var(--sub-text);
      transition: all 0.3s ease;
    }
    .cross-btn:hover::after {
      content: "";
      position: absolute;
      width: 2rem;
      aspect-ratio: 1;
      background-color: #f44336;
      border-radius: 50%;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: -1;
      transition: all 0.3s ease;
    }
    .cross-btn:hover {
      color: var(--text);
      transition: all 0.3s ease;
    }

    .modal .main-content {
      position: relative;
      width: 100%;
      height: 90%;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      padding: 2rem 1.5rem;
      overflow-y: scroll;

      scrollbar-width: thin;
      scrollbar-color: var(--border) transparent;
      scroll-behavior: smooth;
      scroll-snap-type: mandatory;
      scroll-padding: 0.5rem;
      scroll-padding-top: 10px;
    }
  }
}
// JSU
.tb-divider {
  padding: 1rem 0;
}
.modal-out {
  animation: slideOut 0.5s forwards;
}
.modal-out1 {
  animation: slideOut 0.5s forwards;
}

.modal-close {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.modal-close:hover {
  background-color: #d32f2f;
}

@keyframes slideIn {
  0% {
    transform: translateY(-300%);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes slideOut {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-300%);
  }
}

@media screen and (max-width: 768px) {
  .modal {
    width: 95vw !important;
  }
}
