.modal {
  animation: fade-in 0.25s ease-out forwards;
}

.modal.closing {
  animation: fade-out 0.25s ease-out forwards;
}

.modal {
  /* display */
  /* positioning */
  /* box-model */
  background-color: var(--light-text);
  border-radius: 2em;
  border: 1px solid var(--theme-secondary-color);
  max-width: calc(100vw - 4rem);
  max-height: calc(100vh - 4rem);
  margin: auto;
  inset: 0;

  /* typography */
  /* manipulation */
  /* misc */
}

.modal .modal-contents {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  gap: 1em;

  padding: 2rem;
}

.modal h1 {
  font-weight: 300;
  font-size: 1.5em;
  color: var(--theme-primary-color);
}

.modal h2 {
  font: inherit;
  font-size: 1.4em;
  color: var(--theme-primary-color);
}

.modal .modal-contents .user-list.empty {
  display: none;
}

.modal .modal-contents form {
  display: contents;
}

.modal .modal-contents .button-row {
  display: grid;
  grid-auto-flow: column;
  justify-content: center;
  gap: 1em;
  width: 100%;
  place-items: center;

  width: 100%;
}
