/* Used https://codepen.io/timothylong/pen/AJxrPR as reference for modal */
.modal-window {
  position: fixed;
  background-color: rgba(255, 255, 255, 0.788);
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  overflow-y: hidden;
}
.modal-window:target {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.modal-window > div {
  width: 350px;
  max-height: 550px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 2em;
  background: var(--light-accent);
  border: 3px solid var(--dark-accent);
  overflow-y: auto;
}
.modal-window header {
  font-weight: bold;
}
.modal-window h1 {
  font-size: 150%;
}
.modal-window h2 {
  font-size: 100%;
}
.modal-close {
  color: var(--dark-color);
  line-height: 60px;
  font-size: 100%;
  position: absolute;
  right: 0;
  text-align: center;
  top: 0;
  width: 80px;
  text-decoration: none;
  font-weight: bolder;
}
.modal-close:hover {
  color: black;
}
.modal-window > div {
  border-radius: 1rem;
}
.modal-window div:not(:last-of-type) {
  margin-bottom: 15px;
}
