.modal {
  display: none;
  position: fixed;
  justify-content: center;
  align-items: center;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  transition: opacity 0.3s, padding-top 0.3s;
}

.modal-content {
  background-color: #fefefe;
  display: flex;
  border-radius: 40px;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 20px;
  border: 1px solid #888;
  width: 95%;
  height: 95%;
  animation: modal-slide-up 0.3s;
}

@keyframes modalopen {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.close {
  color: #aaa;
  position: absolute;
  top: 2%;
  right: 2%;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

@media screen and (min-width: 1450px) {
  .modal-content {
    width: 55%;
    height: 65%;
  }
}

@keyframes modal-slide-up {
  0% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(0);
  }
}
