div.modal-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 60%);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  /* pointer-events: none; */
  visibility: hidden;
  z-index: 999;
}

div.modal-background[status="opened"] {
  animation: fade-in 0.5s ease forwards;
}

div.modal-background[status="opened"] .modal {
  animation: pop-in 0.5s ease forwards;
}

div.modal-background[status="closed"] {
  animation: fade-out 0.5s ease forwards;
}

div.modal-background[status="closed"] .modal {
  animation: slide-up 0.5s ease forwards;
}

div.modal {
  width: 90vw;
  height: 80vh;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  background-color: var(--primary-color);
  border-radius: var(--small-round);
  overflow: hidden;
}

div.modal.small {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  display: flex;
  padding: var(--margin-6);
  overflow-y: auto;
  justify-content: center;
  align-items: center;
  gap: var(--margin-3);
}

div.header {
  font-weight: 600;
  font-size: var(--font-size-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--margin-4) var(--margin-6);
  /* background-color: var(--secondary-color); */
}

div.body {
  flex: 1;
  padding: var(--margin-4) var(--margin-6);
}

div.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--margin-1);
  padding-bottom: var(--margin-4);
}

div.small div.footer {
  padding: 0;
}
