/* preloader */
#preloader {
  position: absolute;
  width: 300px;
  height: 100px;
  top: 40%;
  left: 50%;
  margin-left: -150px;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}
#preloader p {
  margin-top: 50px;
  text-align: center;
  color: #FFF;
}

/* book buttons */
.book-button {
  text-align: center;
  background: #F0D7B5;
  border-radius: 6px;
  padding: 10px;
}

/* top controls */
.top-controls{
  position: absolute;
  height: 60px;
  width: 100%;
  z-index: 1;
}
.top-controls h3 {
  color: #FFF;
  font-size: 15px;
  text-align: center;
}
#refresh-button {
  position: absolute;
  left: 20px;
  top: 10px;
  width: 40px;
  z-index: 9999999;
}

/* book controls */
#book-controls {
  position: absolute;
  margin-top: -100px;
  height: 100px;
  width: 100%;
}
@media only screen and ( max-width: 768px ) { /* mobile landscape */
  #book-controls {
    margin-top: -60px;
  } 
}
@media only screen and ( max-width: 480px ) { /* mobile portrait */
  #book-controls {
    margin-top: -130px;
  } 
}
#book-start,
#book-end,
#book-open {
  position: absolute;
  display: block;
  top: 15px;
  font-size: 14px;
}
@media only screen and ( max-width: 768px ) { /* mobile landscape */
  #book-start,
  #book-end,
  #book-open {
    font-size: 10px;
    padding: 8px;
    top: 10px;
  }
}
#book-start {
  left: 50%;
  margin-left: -150px;
}
@media only screen and ( max-width: 768px ) { /* mobile landscape */
  #book-start {
    margin-left: -100px;
  }
}
#book-end {
  right: 50%;
  margin-right: -150px;
}
@media only screen and ( max-width: 768px ) { /* mobile landscape */
  #book-end {
    margin-right:-100px;
  }
}
#book-open {
  position: relative;
  /*height: 30px;*/
  display: block;
  width: 80px;
  left: 50%;
  margin-top: -100px;
  margin-left: -25px;
}
@media only screen and ( max-width: 768px ) { /* mobile landscape */
  #book-open {
    margin-left: -40px;
  }
}
#book-prev,
#book-next {
  position: absolute;
  width: 60px;
}
@media only screen and ( max-width: 768px ) { /* mobile landscape */
  #book-prev,
  #book-next {
    width: 30px;
  }
}
#book-prev {
  left: 50%;
  margin-left:-500px;
}
@media only screen and ( max-width: 768px ) { /* mobile landscape */
  #book-prev {
    margin-left:-140px;
  }
}
#book-next {
  right: 50%;
  margin-right:-500px;
}
@media only screen and ( max-width: 768px ) { /* mobile landscape */
  #book-next {
    right: 50%;
    margin-right:-140px;
  }
}
#book-pagenumbers {
  position: absolute;
  width: 100px;
  left: 50%;
  top: 20px;
  margin-left: -50px;
  text-align: center;
  color: #FFF;
  font-size: 17px;
}
@media only screen and ( max-width: 768px ) { /* mobile landscape */
  #book-pagenumbers {
    font-size: 12px;
  }
}
#book-gotopage {
  position: absolute;
  width: 150px;
  top: 50px;
  left: 50%;
  text-align: center;
  margin-left: -75px;
}

/* page content */
.page-content {
  text-align: center;
}

/* Pageflip Overrides */
div.pf-right-side,div.pf-left-side{
  background: none;
}

/* hotspots */
.hotspot{
  position: absolute;
  overflow: hidden;
  cursor: pointer;
}

/* modals */
div.modal-dialog {
  background: url('../assets/blank-page-overlay.png') no-repeat;
  background-size: 100%;
  position: relative;
}
.translations .modal-dialog{
  /*width: 100%;*/
  margin: 0;
  width: 100%;
  height: 100%;
}
div.modal-left,div.modal-right,.modal-content{
  background: url('../assets/blank-page-overlay.png') no-repeat;
  background-size: 100%;
}
div.modal-left .modal-dialog,div.modal-right .modal-dialog {
  background: none;
}
div.modal {
  height: 129vw;
}
@media only screen and ( min-width: 980px ) { /* desktop */
  div.modal-left,div.modal-right{
    /*width: 480px;
    height: 600px;*/
    width: 58vh;
    height: 74vh;
    margin-top: 6%;
  }
  div.modal-right {
    left: 50%;
    margin-left: -59vh;
  }
  div.modal-left {
    left: 50%;
  }
}

.translations .modal-content{
  /*width: 95%;*/
  /*height: 80%;*/
  margin: 0;
  background: none;
  box-shadow: none;
  border: none;
  position: absolute;
  top: 20px;
  left: 20px;
  bottom: 20px;
  right: 20px;
  overflow-y: hidden;
  overflow-x: hidden;
}
.modal-header a.close {
  opacity: 1;
  width: 40px;
}
.modal-body {
  height: 100%;
}
.modal-right .modal-header a.close {
  float: right;
}
div.modal-header,div.modal-footer {
  border: none;
}
.modal .dynamic-content {
  overflow-y: auto;
  height: 90%;
}
.modal .dynamic-content a {
  color: #911b12;  
  font-weight: bold;
  margin-right: 10px;
}
.modal .dynamic-content a::before{
  display: inline-block;
  width: 30px;
  height: 30px;
  content: "";
  background: url('../assets/magnifying-glass.png');
  background-repeat: no-repeat;
  background-size: 75%;
  background-position: center center;
}
.modal .dynamic-content p,
.modal .modal-body{
  font-size: 19px;
  line-height: 1.8em;
}
@media only screen and ( max-width: 768px ) { /* mobile landscape */
  .modal .dynamic-content p,
  .modal .modal-body{
    font-size: 12px;
    line-height: 1.8em;
  }
}