

#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 9999;

  /* smooth fade */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

#overlay.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

#overlay.active .modal-content {
  transform: scale(1);
}

.modal-content {

  text-align: center;

  background: #fff;
  padding: none;
  border-radius: 18px;
  min-width: 150px;
  /*width: 500px;*/
  max-width: 400px;
  box-shadow: 6px 6px 30px rgba(0,0,0,0.75);

  transform: scale(0.95);
  transition: transform 0.25s ease;

  border: 1px black;

  background: rgba(255, 255, 255, 0.94);
}

.modal-content p {

  margin:0 30px .75em 30px;
  padding: none;

  font-family: lato;
  font-weight: bold;
  text-align: center;
  font-size: 1.5rem;
}

a {
  color: #006b3f;
  text-decoration: underline;
  font-weight: normal;
}

a:hover {
  color: #003821;
  font-weight: normal;
}

a.close {

  display: block;
  font-family: lato;
  text-decoration: none;

  font-size: .75rem;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
  margin:1rem 30px 30px 30px;
}

.modal-content > div.popup-header {

  border: 1px black;

              display: flex;
            justify-content: center;
            align-items: center;

  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  
  max-height: 80px;
  /* used to be 70 max and 60 height. Change for Board request.*/
  height: 80px;
  /*    border-bottom: 1px solid black;*/
  width: 100%;
  background-color: #006b3f;
  /*box-shadow: 0 0px 1px 0px #111;*/
  /*z-index: 1;*/
  margin-bottom: 30px;
}


div.popup-header img {
  margin: 6px 0 6px 0;
  padding: none;
}