/**
 * Modal
 */
/* The background overlay */
.modal {
  display: none; /* Hidden by default */
  z-index: 1001; /* Sit on top */
  flex-direction: column; /* display: flex; rule added through JS */
  justify-content: center;
  align-items: center;
  /* position: fixed; Stay in place */
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  width: 100vw; /* Full width */
  height: 100vh; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.6); /* Black w/ opacity */
}

/* The modal content */
.modal-content {
  position: relative;
  background-color: var(--global-palette9);
  margin: 20px auto;
  padding: 50px 90px;
  /* border: 1px solid #888; */
  width: 1080px; /* Width of the modal */
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s;
}

.modal-content p {
  margin-top: 0;
}

/* Close button */
.close-button {
  color: #555;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 0;
  right: 15px;
  padding: 15px;
}

@media screen and (max-width: 991px) {
  .modal-content {
    padding: 50px 30px 30px 30px;
  }
  .close-button {
    right: 0;
  }
}

@media screen and (max-width: 767px) {
  .modal-content {
    padding: 30px;
  }
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Add animation */
@-webkit-keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

/* Responsive design */
@media only screen and (max-width: 1080px) {
  .modal-content {
    width: 100%;
    margin: 10% auto;
  }
}
