
.modal-window {
  position: fixed;
  /* background-color: rgba(255, 255, 255, 0.25); */
  background-color: rgba(0,0,0,0.65);
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  overflow: visible;
}
.modal-window:target {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.modal-window > div {
  width: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  padding: 1.5em 1em 1em 1em;
  background: #ffffff;
  border: solid 1px #001A72;
}
.modal-window header {
  font-weight: bold;
}
.modal-window h1 {
  font-size: 150%;
  margin: 0 0 15px;
}

.modal-close {
  color: #aaa;
  line-height: 50px;
  font-size: 80%;
  position: absolute;
  right: 0;
  text-align: center;
  top: 0;
  width: 70px;
  text-decoration: none;
}
.modal-close:hover {
  color: black;
}

.modal-window div:not(:last-of-type) {
  margin-bottom: 15px;
}

small {
  color: #aaa;
}

.btn i {
  padding-right: 0.3em;
}

/* ******** Starts Popup for presidents' books**** */
.hoverSec:hover .popBox {
  /* NEW */
  display: block;
  opacity: 1;
  height: auto;
}

.popBox {
  display: none;
  /* NEW */
  background: #C8C8C8;
  margin-left: 55px;
  margin-top: -20px;
  padding: 8px;
  position: absolute;
  z-index: 1000;
  width: 170px;
  height: 0;
  
  opacity: 0;
  -webkit-transition: all 500ms ease-in-out;
  -moz-transition: all 500ms ease-in-out;
  -ms-transition: all 500ms ease-in-out;
  -o-transition: all 500ms ease-in-out;
  transition: all 500ms ease-in-out;
}

.popBox a{
  line-height: 25px;
}

.hoverSec {
   transition: all 1s;
}

/* ******** Ends Popup for presidents' books**** */


/*#moreshow{*/
  /* DON'T USE DISPLAY NONE/BLOCK! Instead: */
/*  transition: all 0.4s ease;*/
/*  opacity: 0;*/
/*}*/
/*.appear { opacity: 1; }*/


@media only screen and (max-width: 768px) and (max-aspect-ratio: 1/1) {
  .modal-window > div {
    width: 95%;
    top: 40%;
  }
}
