.modal {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.1);
  transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
}

.modal .modal-close {
  float: right;
  width: 1.5rem;
  border-radius: 0.25rem;
  line-height: 1.5rem;
  text-align: center;
  cursor: pointer;
  font-size: 2rem;
}

.modal .modal-close:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.modal .modal-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 80%;
  max-height: 80%;
  padding: 1rem;
  border-radius: 0.5rem;
  transform: translate(-50%, calc(-50% + 36px));
  background-color: white;
  overflow: auto;
}

@media (min-width: 750px) {
  .modal .modal-wrapper {
    min-width: 50%;
  }
}

.modal .modal-content {
  padding: 2rem;
}

.modal.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
}
