#magazineViewButtonContainer button span, #magazineViewButtonContainer .toolbarButton {
    width: auto;
    height: auto;
    margin-left: -50%;
}

#viewerContainer{
    visibility:hidden;
}

#magazineContainer {
    padding-top: 10px;
    text-align: center;
    overflow: hidden;
}

#magazine {
    margin: 0 auto !important;
    text-align: center;
}

#magazine .page {
    cursor:pointer;
    background-color: #fff;
}

#magazine .page-wrapper{
    /*background: url(pics/loader.gif) center no-repeat #fff;*/
}

#magazineContainer .zoom-in .next-button,
#magazineContainer .zoom-in .previous-button {
    display: none;
}

#mainContainer {
    overflow: hidden;
}

.flipbook-toolbar{
    width: 100%;
    height: 30px;
    z-index: 15;
    padding-left: 45%;
    background:#ededed;
    position:absolute;
}


.flipbook-toolbar input{
    float:left;
    margin-top:5px;
    width:50px;
}

.flipbook-toolbar .next, .flipbook-toolbar .prev, .flipbook-toolbar .download {display: block;width:30px;height:30px;float:left;background-repeat: no-repeat;margin-top:8px;margin-left:10px}
.flipbook-toolbar .next{background-image: url(pics/alt-next.png)}
.flipbook-toolbar .prev {background-image: url(pics/alt-prev.png)}
.flipbook-toolbar .download {background-image: url(pics/download-png.png);margin-top:5px;}

.directions{
    visibility: visible;
}

.directions a{
    position: absolute;
    top: 50%;
    margin-top: -16px;
    outline: 0;
    width: 45px;
    height: 45px;
    text-indent: -9999px;
    z-index: 9999;
}

.directions a.prev-button{
    left: 0;
    background: #f7f6f6 url(pics/alt-prev.png) no-repeat center center;
}


.directions a.next-button{
    right: 0;
    background: #f7f6f6 url(pics/alt-next.png) no-repeat center center;
}

.noTurnTool{
    display: none !important;
}

#outerContainer.sidebarOpen #sidebarContainer{
    z-index: 1000;
}

/**/
#pdfDocumentContainerOverlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    background: #956376;
    opacity: 0.5;
    display: none;
    z-index: 1000;
  }

  #pdfDocumentContainer {
    position: fixed;
    width: calc(100% - 30px);
    margin: 0 auto;
    top: 15px;
    bottom: 15px;
    left: 15px;
    right: 15px;
    border: solid 1px #ccc;
    background: #ddd;
    display: none;
    border-radius: 15px;
    padding-top: 30px;
    z-index: 1001;
  }
  
  #pdfMagazineDirections{
  	display:none;
  }

  .pdfClose {
    position: absolute;
    right: 18px;
    top: 7px;
    width: 16px;
    height: 16px;
    opacity: 0.3;
  }

  .pdfClose:hover {
    opacity: 1;
  }

  .pdfClose:before,
  .pdfClose:after {
    position: absolute;
    left: 15px;
    content: ' ';
    height: 16px;
    width: 2px;
    background-color: #333;
  }

  .pdfClose:before {
    transform: rotate(45deg);
  }

  .pdfClose:after {
    transform: rotate(-45deg);
  }

  /*spinner*/
  .spinner{
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(131, 131, 131);
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    background-color: #fff;
  }
  .lds-ripple {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
  }
  .lds-ripple div {
    position: absolute;
    border: 4px solid #8c737d;
    opacity: 1;
    border-radius: 50%;
    animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
  }
  .lds-ripple div:nth-child(2) {
    animation-delay: -0.5s;
  }
  @keyframes lds-ripple {
    0% {
      top: 36px;
      left: 36px;
      width: 0;
      height: 0;
      opacity: 1;
    }
    100% {
      top: 0px;
      left: 0px;
      width: 72px;
      height: 72px;
      opacity: 0;
    }
  }

@media all and (max-width: 600px) {
    #viewerContainer{
        visibility:visible;
    }
    #magazineContainer{
        visibility:hidden;
    }
    .directions{
        visibility:hidden;
    }
    #viewerContainer {
        display:block !important;
    }
    #viewer{
        display:block !important;
    }
}