/* ----- Overlays ----- */

#overlay {
  /* This creates the greyed out background */
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.4);
}
#overlay-content {
  /* This is the container on top
     of the greyed out background */
  position: fixed;
  top: var(--header-height);
  height: calc(90vh - var(--header-height));
  left: 5vh;
  width: 90vw;
  overflow-y: auto;
  background-color: whitesmoke;
  padding: 2rem;
  border-radius: 1em;
  animation-name: zoom;
  animation-duration: 0.4s;
  justify-content: center;
  align-items: center;
  transform: translate(-50%, -50%) scale(0); /* Start small and at the center */
  animation: zoom-in 0.5s ease-out forwards;
}

/*@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}
*/@keyframes zoom-in {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* The Close Button */
#btn-overlay-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color:#2980b9;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

#btn-overlay-close:hover,
#btn-overlay-close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}
