.sc-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: -50px;
  width: 100%;
  height: calc(100% + 100px);
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
}

.sc-modal-content {
  background-color: #fff;
  padding: 20px;
  border: 1px solid #888;
  width: clamp(100px, 90%, 600px);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 1;
  animation-fill-mode: forwards;
}

.sc-modal.sc-fade-in {
  animation: fadeIn 0.4s, slideDown 0.4s;
}

.sc-modal.sc-fade-out {
  animation: fadeOut 0.4s, slideUp 0.4s;
}

@keyframes fadeIn {
  from {
    background-color: rgba(0, 0, 0, 0);
  }
  to {
    background-color: rgba(0, 0, 0, 0.4);
  }
}

@keyframes fadeOut {
  from {
    background-color: rgba(0, 0, 0, 0.4);
  }
  to {
    background-color: rgba(0, 0, 0, 0);
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-50px);
    opacity: 0;
  }
}
