body {
  font-family: verdana;
}
button {
  border: none;
  background: #ddd;
  padding: 10px;
  display: block;
  margin: 50px auto;
  cursor: pointer;
}
.modal h1 {
  font-size: 20px;
}
.modal button {
  margin: 0px auto;
  margin-top: 20px;
}
.modal {
  position: fixed;
  top: 0px;
  pointer-events: none;
  left: 0px;
  background: rgba(51, 51, 51, 0.9);
  width: 100vw;
  height: 100vh;
  z-index: 100;
  opacity: 0;
  transition: 0.3s;
}
.modal.active {
  opacity: 1;
  pointer-events: auto;
}
.modal.active .box {
  top: 50%;
}
.modal#success h1 {
  font-size: 1.5em;
}
.modal .close {
    position: absolute;
    top: -20px;
    border-radius: 10px;
    right: -20px;
    cursor: pointer;
    color: #fff;
    background: #00466d;
    font-size: 25px;
    width: 40px;
    height: 40px;
}
.modal .box {
  background: #fff;
  display: block;
  box-sizing: border-box;
  border-radius: 5px;
  text-align: center;
  padding: 20px;
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: 0.3s;
}