/* Overlay */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal.hidden {
  display: none;
  opacity: 0;
}

/* Box */
.modal-box {
  background: white;
  max-width: 60rem;
  width: 100%;
  padding: 0 2rem;
  border-radius: 0.5rem;
  transform: translateY(-50px);
  opacity: 0;
  transition: all 0.3s ease;
}

.modal-box.open {
  transform: translateY(0);
  opacity: 1;
}

/* Close button */
.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  position: absolute;
  top: .25rem;
  right: 1rem;
  cursor: pointer;
}

.modal-content {
  margin-top: 1rem;
  padding-right: 1rem;
  max-height: 80vh;
  overflow-y: auto;
}
