.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.2);
}

.modal-container {
  max-width: 600px;
  height: fit-content;
  margin: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background-color: white;
}

.modal button {
   max-width: 100%;
   text-align: center;
}

.modal-content {
    padding: 1em;
    text-align: center;
}

.show-modal {
  opacity: 1;
  display: block;
  animation: show 0.2s;
}

@keyframes show {
  from {
    opacity: 0;
    transform: scale(0);    
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hide-modal {
  opacity: 0;
  animation: hide .25s;
}

@keyframes hide {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0);
  }
}