.overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  background: grey;
  opacity: .6;
  display: none;
  z-index: 0;
  top: 0;
  left: 0;
  right: 0;
  overflow: scroll;
}

.modal {
  width: 70%;
  height: 70%;
  border: 1px solid #fff;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  display: none;
  overflow: scroll;
}

.modal p {
  position: absolute;
  top: 20%;
  left: 20%;
  text-align: center;
  transform: translate(-20%, -20%);
  z-index: 10;
  font-size: 14px;
  overflow: scroll;
}

.modal-close__wrap {
  position: absolute;
  right: 10px;
  top: 10px;
}

.modal-close {
  background: transparent;
  border-color: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  width: 28px;
  display: block;
  height: 28px;
  overflow: scroll;
}

.modal-close span {
  position: relative;
  width: 100%;
  height: 1px;
  background: black;
  display: block;
}

.modal-close span:nth-child(1) {
  transform: rotate(45deg);
}

.modal-close span:nth-child(2) {
  transform: rotate(-45deg);
}

.modal-open {
  cursor: pointer;
  background: #fff;
  border: #fff;
  color: #fff;
  padding: 0px 0px;
}


.overlay.open {
  display: block;
}

.modal.open {
  display: block;
}