

.modal {
  position: fixed;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
}
.modal.open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
  padding: 1rem;
}
.modal-bg {
  position: absolute;
  background: rgba(0,0,0,.8);
  width: 100%;
  height: 100%;
}
.modal-container {
  border-radius: .2rem;
  background: #fff;
  position: relative;
  padding: 1.5rem;
  width: 100%;
  max-height: 80%;
overflow-y: auto;
}
.modal-close {
  position: absolute;
right: .2rem;
top: .2rem;
outline: none;
appearance: none;
color: #fff;
background: #222;
border: 0px;
font-weight: bold;
cursor: pointer;
padding: .1rem .3rem;
border-radius: .2rem;
}

@media(min-width: 700px) {
  .modal-container {
  width: auto;
  max-width: 75%;
  }
}