/*
  using viewer.css as a base
*/
/*
  Include various font files and link them to the specific font-weights. Map to InDesign fonts from Bigy like:
    'Source Sans Pro Semibold' = { font-family: 'Source Sans Pro', sans-serif; font-weight:600; }
  This gives more graceful failover in the CSS if the fonts don't load.
  see .title-and-author for semibold example
*/
@font-face {
  font-family: 'Source Sans Pro';
  src: url('../fonts/SourceSansPro-Regular.otf');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Source Sans Pro';
  src: url('../fonts/SourceSansPro-Semibold.otf');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'Source Sans Pro';
  src: url('../fonts/SourceSansPro-Bold.otf');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-VariableFont_wght.ttf");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Montserrat Italic";
  src: url("../fonts/Montserrat-Italic-VariableFont_wght.ttf");
  font-weight: 600;
  font-style: oblique;
}

body {
  font-size:18px;  /* base font size */
}

#epub-reader-frame{
  display: inline-block;
  height: 100%;
  position: absolute;
  background-color: white;
  overflow: auto;
}

#bottom-bar {
  position: absolute;
  bottom:-110px;
  width: 100%;
  padding-bottom:18px;
  height:92px;
}
#bottom-bar hr {
  border: 1px solid #ccc;
}
#bottom-bar .percent-read {
  border: 1px solid #000044;
  position:absolute;
  margin-top: 0px;
  width:100px;
}

#about-dialog div{
  text-align: center;
}

/* .chrome-app */
.icon-annotations{
  display:none;
}

.about-message{
  margin: 20px 0px;
}

#about-dialog .version{
  margin-top: 10px;
  font-weight: bold;
}

#about-dialog .version-details{
  font-size: 0.8em;
}

#about-dialog .local-changes-alert{
  color: red;
}

#readium-toc-body{
  display: none;
  overflow: auto;
  background: #000044;
  position: absolute;
  bottom: 0px;
}

#readium-toc-body button.close{
  margin-right: 20px;
  margin-top: 5px;
  opacity: .8;

  border-radius: 50%;
  width: 25px;
  height: 25px;
  border: 2px black solid;
  color: gray;
  padding-left: 4px;
  padding-right: 4px;
  padding-bottom: 1px;
}

/*
#readium-toc-body *[dir=rtl]{
direction: rtl;
}
*/

#readium-toc-body ol{
  list-style-type: none;
  margin-top: 0px;
  padding-left: 20px;
}

/* some TOCs come across as just <li>s */
#readium-toc-body li{
  list-style: none;
}


.toc-visible #readium-toc-body{
  display: inline-block;
  width: 30%;
}

.toc-visible #reading-area{
  left: 30%;
}


/* toolbar */
.navbar .btn-group > .btn{
  border: none;
  border-radius: 0px;
  user-select:none;
  -webkit-user-select: none;
}

.navbar .btn-group > .btn:hover, .navbar .btn-group > .btn:active, .navbar .btn-group > .btn:focus{
  box-shadow: none;
}

.navbar .btn {
  color : #ddd;
  /* width: 48px; */
  height: 36px;
  background: no-repeat center center;
  padding-left:13px;
  padding-right:13px;
}

.navbar
{
  background: #000044;
  color: #FFF;
  height: 50px;
  padding-top:5px;
  box-sizing:border-box;
  position: fixed;
  top:0px;
  width:100%;
  z-index: 888;
  /* override bootstrap styling (may need to change class name) */
  border: 0;
  border-radius: 0px;
  margin-bottom: 0px;
}
.navbar-right
{
  /*
  min-height: 36px;
  overflow: visible;
  height: 0.4em;
  */
  background-color: transparent;
}
.navbar-left
{
  /* min-height: 36px; */
  padding-left: 12px;
}
.navbar-center {
  padding-left: 0px;
  padding-right: 0px;
}

.book-title-header{
  position: absolute;
  top: 0px;
  width: 100%;
  text-align: center;
  color: #999;
  font-weight: normal;
  font-size: 1.0em;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  margin: 15px 0px 0px 0px;
  z-index: -1;
  font-family: serif;
}

/* night theme turned off, but style preserved 
html[data-theme=night-theme] .book-title-header,
html[data-theme=night-theme] body,
html[data-theme=night-theme] #readium-toc-body
{
    background-color: #333333;
    color: white;
}

html[data-theme=night-theme] .modal
{
    color: black;
}
*/

/*.icon-show-hide, .icon-show-hide:active{
  display: none;
}*/
/*.icon-annotations, .icon-annotations:active{
  background-image: url('../images/glyphicons_150_edit.png');
}
.icon-full-screen, .icon-full-screen:active{
  background-image: url('../images/glyphicons_215_resize_full.png');
}*/


/*.icon-settings, .icon-settings:active{
  background-image: url('../images/glyphicons_136_cogwheel.png');
}*/

.navbar .icon-logo, .navbar .icon-logo:active{
  background-image: url('../images/readium_logo.png');
  width: 130px; 
  background-size: auto 28px;
}


.icon-scale-down{
  text-align: right;
}

.clickable{
  user-select:none;
  -webkit-user-select: none;
  cursor: pointer;
}
.offscreen-text{
  display:none;
}



.page-switch-overlay-icon {

  overflow: hidden;
  display: block;
  position: absolute;

  top: 25%;
  bottom: 15%;

  opacity: 0.3;
  
  z-index: 98 !important;
  
  border: none !important;
  
  padding: 0;
  margin: 0;
  padding-top: 0.2em;
  padding-bottom: 0.44em;

  font-size: 40px;

  background-color: rgba(255,255,255,0.5);
    color: black;
}

/* 
html[data-theme=night-theme] .page-switch-overlay-icon {
  background-color: rgba(0,0,0,0.4);
    color: white;
}
*/
.page-switch-overlay-icon > span
{
    padding: 0;
    margin: 0;
    vertical-align: middle;
}

#left-page-btn {
  left: 0;
  border-top-right-radius: 0.3em;
  border-bottom-right-radius: 0.3em;
}

/* #left-page-btn:focus, */
#left-page-btn:hover
{
  opacity: 1.0;
  color: white;
  background-color: rgba(0,0,0,0.2);
}

/* //html[data-theme=night-theme] #left-page-btn:focus, 
html[data-theme=night-theme] #left-page-btn:hover
{
  color: black;
  background-color: rgba(255,255,255,0.2);
}
*/
#right-page-btn {
  right: 0;
  border-top-left-radius: 0.3em;
  border-bottom-left-radius: 0.3em;
}

/* #right-page-btn:focus, */
#right-page-btn:hover
{
  opacity: 1.0;
  color: white;
  background-color: rgba(0,0,0,0.2);
}
/* //html[data-theme=night-theme] #right-page-btn:focus, 
html[data-theme=night-theme] #right-page-btn:hover
{
  color: black;
  background-color: rgba(255,255,255,0.2);
}
*/

.chapter-switch-overlay-icon {
  overflow: hidden;
  display: block;
  position: absolute;

  top: 5%;
  bottom: 75%;

  opacity: 0.3;
  
  z-index: 99 !important;
  
  border: none !important;
  
  padding: 0;
  margin: 0;
  padding-top: 0.2em;
  padding-bottom: 0.44em;

  font-size: 40px;

  background-color: rgba(255,255,255,0.5);
  color: black;
}

/*
html[data-theme=night-theme] .chapter-switch-overlay-icon {
  background-color: rgba(0,0,0,0.4);
  color: white;
}
*/

.chapter-switch-overlay-icon > span
{
  padding: 0;
  margin: 0;
  vertical-align: middle;
}

#left-chapter-btn {
  left: 0;
  border-top-right-radius: 0.3em;
  border-bottom-right-radius: 0.3em;
}

/* #left-chapter-btn:focus, */
#left-chapter-btn:hover
{
  opacity: 1.0;
  color: white;
  background-color: rgba(0,0,0,0.2);
}

/* //html[data-theme=night-theme] #left-chapter-btn:focus,
html[data-theme=night-theme] #left-chapter-btn:hover
{
  color: black;
  background-color: rgba(255,255,255,0.2);
}
*/

#right-chapter-btn {
  right: 0;
  border-top-left-radius: 0.3em;
  border-bottom-left-radius: 0.3em;
}

/* #right-chapter-btn:focus, */
#right-chapter-btn:hover
{
  opacity: 1.0;
  color: white;
  background-color: rgba(0,0,0,0.2);
}
/* //html[data-theme=night-theme] #right-chapter-btn:focus,
html[data-theme=night-theme] #right-chapter-btn:hover
{
  color: black;
  background-color: rgba(255,255,255,0.2);
}
*/


/* epub container */
#reading-area {
  text-align: center;
  position: absolute;
  left: 0px;
  right: 0px;
  bottom: 0px;
  top: 50px;
}

#epub-reader-container {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  background-color:gray;
}

.display-header {
  font-size: 180%;
}

/* embedded mode styles */
.embedded .navbar .btn-group > .btn.icon-full-screen, .embedded .navbar .btn-group > .btn.icon-toc{
  display:inline-block;
  opacity: 1;
}

.hide-ui .navbar{
  -webkit-transition: all .2s ease-out;
  opacity:0;
}

.hide-ui #left-page-btn, 
.hide-ui #right-page-btn,
.hide-ui #left-chapter-btn,
.hide-ui #right-chapter-btn,
.embedded .toc-visible #left-page-btn, 
.embedded .toc-visible #right-page-btn,
.embedded .toc-visible #left-chapter-btn,
.embedded .toc-visible #right-chapter-btn{
  -webkit-transition: opacity .2s ease-out;
  opacity: 0
}

.embedded .navbar .btn-group > .btn.icon-full-screen{
  float: right;
}

/*
.embedded .navbar .btn-group > .btn, .embedded .navbar .btn-group > .btn:hover, .embedded .navbar .btn-group > .btn:active, .embedded .navbar .btn-group > .btn:focus{
  background-color: rgba(0,0,0,0.2);
}
*/

.embedded .navbar{
  position: absolute;
  top: 0px;
  z-index: 2;
  margin: 0px;
  padding: 2px 5px 2px 5px;
  width: 100%;
  min-height:0px;
  border-radius: 0px;
}

/*.embedded .navbar.user-displayed{
  background-color: rgba(0,0,0,0.8);
}

.embedded .navbar.user-displayed .btn-group > .btn {
  display: block;
  background-color: transparent;
}*/

.embedded #app-container #reading-area{
  top: 10px;
  left: 0px;
  right: 0px;
  bottom: 0px;
}
.embedded #reflowable-content-frame{
  margin: 20px;
}
.embedded .navbar .btn {
  width: 24px;
  height: 24px;
  display: none;
}
.embedded .navbar .btn-group > .btn{
  border-radius: 4px !important;
}
/*
.embedded .icon-show-hide, .embedded .icon-show-hide:active{
  background-image: url('../images/white-more.png');
  background-size: 16px 4px;
  display: block;
}*/

/*.embedded .navbar.user-displayed .btn-group .icon-show-hide{
  background-image: url('../images/white-remove.png');
  background-size: 16px 16px;
}*/

.embedded .icon-full-screen, .embedded .icon-full-screen:active{
  background-image: url('../images/white-resize-full.png');
  background-size: 16px 16px;
}

.embedded .icon-full-screen:-webkit-full-screen-document{
  background-image: url('../images/white-resize-small.png');
}
.embedded .icon-full-screen:-moz-full-screen{
  background-image: url('../images/white-resize-small.png');
}
.embedded .icon-full-screen:fullscreen{
  background-image: url('../images/white-resize-small.png');
}

/*
.embedded .icon-settings, .embedded .icon-settings:active{
  background-image: url('../images/white-cogwheel.png');
  background-size: 16px 16px;
}
*/

.embedded .navbar .btn-group > .btn{
  display:none;
}

.embedded .icon-toc, .embedded .icon-toc:active{
  background-image: url('../images/white-list.png');
  background-size: 16px 16px;
}
.embedded #readium-toc-body{
  top: -100%;
  -webkit-transition: top .3s ease-out;
  -moz-transition: -moz-transform .3s ease-out;
  -o-transition: -o-transform .3s ease-out;
  transition: transform .3s ease-out;
  display: block;
  position: absolute;
  z-index: 2;
  width: 100%;
  background-color: rgba(0,0,0,.7);
  color: white;
  
}
.embedded .toc-visible #readium-toc-body{
  top: 0%;
  -webkit-transition: top .3s ease-out;
  /*-moz-transition: -moz-transform .3s ease-out, background-color .3s step-end, color .3s step-end, z-index .3s step-end, position .3s step-end;
  -o-transition: -o-transform .3s ease-out, background-color .3s step-end, color .3s step-end, z-index .3s step-end, position .3s step-end;
  transition: transform .3s ease-out, background-color .3s step-end, color .3s step-end, z-index .3s step-end, position .3s step-end;*/
  
}

.embedded .toc-visible #reading-area{
  left: 0%;
}

.embedded #readium-toc-body a{
  color: white;
}

.embedded .toc-visible button.close{
  color: transparent;
  text-shadow: none;
  position: fixed;
  width: 16px;
  background: url('../images/white-chevron-up.png') no-repeat;
  background-size: 16px 11px;
  left: 9px;
  top: 5px;
}

/*
.embedded .navbar-left{
  float: left!important;
}
*/
.embedded .navbar-right{
  float: none!important;
  clear: left;
  width: 100%;
}
.embedded .btn-group{
  display: block;
}

.embedded #annotations-highlight{
  display:none;
}

button,
input[type="radio"] + label,
input[type="range"],
input[type="text"]
{
  outline: 0 !important;
}

input[type="text"]
{
  -webkit-appearance: none !important;
}

body.keyboard button:focus,
body.keyboard input[type="radio"]:focus + label,
body.keyboard input[type="range"]:focus
{
  box-shadow: 0px 0px 5px #6fb5f1 !important;
  outline: #6fb5f1 dotted 1px !important;
}
body.keyboard input[type="text"]:focus
{
  background: #fff;
  box-shadow: 0px 0px 5px #6fb5f1 !important;
  outline: #6fb5f1 dotted 1px !important;
}

body.keyboard #app-navbar button:focus,
body.keyboard #app-navbar input[type="radio"]:focus + label,
body.keyboard #app-navbar input[type="range"]:focus
{
  box-shadow: 0px 0px 5px #6fb5f1 !important;
  outline: #6fb5f1 dotted 1px !important;
}
body.keyboard #app-navbar input[type="text"]:focus
{
  background: #fff;
  box-shadow: 0px 0px 5px #6fb5f1 !important;
  outline: #6fb5f1 dotted 1px !important;
}

input[type="range"]
{
  padding: 0;
}

/*
#scroll-default-radio ~ label,
#scroll-doc-radio ~ label,
#scroll-continuous-radio ~ label,
#spread-default-radio ~ label,
#single-page-radio ~ label,
#double-page-radio ~ label
*/
.underlinedLabel
{
    border-bottom: 2px solid transparent;
}

/*
#scroll-default-radio:checked ~ label,
#scroll-doc-radio:checked ~ label,
#scroll-continuous-radio:checked ~ label,
#spread-default-radio:checked ~ label,
#single-page-radio:checked ~ label,
#double-page-radio:checked ~ label
*/
input:checked ~ .underlinedLabel
{
    border-bottom: 2px solid #333333;
}

ul.nav-tabs li button
{
  padding: 0.7em !important;
  margin: 0.2em !important;
  margin-bottom: 0 !important;

  font-weight: bold !important;
  font-size: 110% !important;

  background:none !important;

  border:0 !important;
  border: 1px solid transparent !important;
  border-bottom: 2px solid transparent !important;

  color: #888888 !important;
}

ul.nav-tabs li.active button
{
  border: 1px solid silver !important;
  border-bottom: 2px solid white !important;
  border-radius: 0.5em !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;

  color: black !important;
}

ul.nav-tabs li:not(.active) button:hover
{
  background: #dddddd !important;
  color: #003366 !important;

  border-radius: 0.5em !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}


.zoom-wrapper{
  /* display: inline-block; */
  display: none;
  float: left;
  padding: 6px 12px;
}

.zoom-wrapper input{
  border: none;
  width: 3em;
  text-align: right;
}
.zoom-wrapper input[disabled]{
  background-color: #4d4d4d;
  color: #ddd;
}

.zoom-wrapper a{
  color: #ddd;
}

#zoom-menu .glyphicon-ok{
  display: none;
}

#zoom-menu .active-zoom .glyphicon-ok{
  display: inline-block;
}

#showtoc {
  padding:4px;
  font-size:120%;
  width:25%;
}
#showtoc:hover{
  opacity: 1.0;
  background-color: rgba(0,0,0,0.2);
  cursor:pointer;
}

#readium-toc-body {
}
#tocdiv {
}
.searchtextholder {
  padding: 20px 18px;
  border-top: 1px solid gray;
  border-bottom: 1px solid gray;
}
#searchdiv {
  padding-bottom:10px;
  background: #eeeeee;
  color: #333;
}
#searchdiv input{
  border: 0px;
  background-color: rgba(255, 255, 255, 0);
  color:white;
  padding-left:8px;
  width: 75%;
  font-family:'Source Sans Pro', sans-serif;
}
#searchtext {
}
.searchclick {
  background-color: rgba(255, 255, 255, 0);
  border: 0px;
}
#searchresults {
  color: gray;
  padding: 20px;
}
#searchresults .searchcount {
  padding-bottom: 20px;
  color: gray;
  font-family:'Source Sans Pro', sans-serif;
}
#searchresults hr {
  display: none;
}
#searchresults .chap_name {
  color:#aaa;
  font-weight: 600;
  font-family:'Source Sans Pro', sans-serif;
}
.search_result {
  color:#aaa;
  margin-bottom: 10px;
  padding:5px;
  font-family:'Source Sans Pro', sans-serif;
}

.search_result:hover {
  background-color: #464697;
  cursor: pointer;
}

.search_result b {
  color: rgb(171, 197, 218);
  font-size:100%;
  font-weight:700;
  font-family:'Source Sans Pro', sans-serif;
}

#tocdiv {
  padding: 20px;
  color:#66d;
}
#tocdiv a {
  color:#aaa;
}
.modal-body {
  padding: 30px 35px
}
.modal-content {
  box-shadow: 0;
  border: 0;
  border-radius: 0;
  background-clip: 0;
}
.modal-dialog {
  margin: 50px auto;
}
.preview-text {
  width: 100%;
  margin: 10px 0px;
  border: 1px solid rgb(215, 215, 215);
  padding: 8px;
}
.modal-footer {
  border-top: 1px dashed #e5e5e5
}
.has-border {
  border: 1px solid rgb(215, 215, 215);
  height:60px;
}
.display-header {
  font-size: 150%;
}
.title-and-author {
  margin-left: 0;
  padding-top: 5px;
  box-sizing: content-box;
  height: 1.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-family: 'Montserrat','Open Sans',sans-serif;
  font-weight: 600;
  text-align: center;
  font-style: normal;
  font-size: 19px;
  line-height: 27px;
}
#font-size-increment:hover, #font-size-decrement:hover {
  cursor: pointer;
}

.reading-area-nav {
  z-index: 100;
  position: absolute;
  font-size: 18px;
  font-weight: bold;
  opacity: 0.85;
}
.reading-area-nav:hover {
  opacity: 1.0;
  background: #545454;
  color: #cccccc;
}
.prevpage {
  left: 20px;
}

.nextpage {
  right: 20px;
}

.reading-area-nav-top {
  top: 30px;
}

.reading-area-nav-bottom {
  bottom: 30px;
}

/* width-sensitive stying for smaller viewports */
@media (max-width:900px) {
  .navbar-left {
    text-overflow:ellipsis;
    white-space:nowrap;
    overflow:hidden;
    max-width:76%;
  }
}
@media (max-width:768px) {
  .navbar .btn-group > .btn.icon-full-screen {
    display:none;
  }
  .title-and-author {
    display:none;
  }
  .navbar-left {
    text-overflow:ellipsis;
    white-space:nowrap;
    overflow:hidden;
    max-width:67%;
  }
  .navbar-right {
    float: right !important;
  }
}
@media (max-width:600px) {
  .navbar-left {
    text-overflow:ellipsis;
    white-space:nowrap;
    overflow:hidden;
    max-width:56%;
  }
}
@media (max-width:440px) {
  /* for topnav */
  #buttPrevChapter {
    display:none;
  }
  #buttNextChapter {
    display:none;
  }
  .navbar {
    text-align:center;
  }
  .navbar-left {
    float:left;
    text-overflow:ellipsis;
    white-space:nowrap;
    overflow:hidden;
    max-width:56%;
  }
  .navbar-right {
    float:right;
    display:inline;
    position:relative;
    padding-right:0px;
  }
  .navbar-center {
    float:none;
    display: inline-block;
    padding-left:0px;
    margin: auto;
    width: 125px;
    height: 36px;
  }
  .btn {
    padding-left:10px;
    padding-right:10px;
  }
  #reflowable-book-frame {
    bottom: 65px;
    top: 25px;
  }
}
@media (max-width:380px) {
  .navbar-left {
    float:left;
    text-overflow:ellipsis;
    white-space:nowrap;
    overflow:hidden;
    max-width:50%;
  }
}
@media (max-width:330px) {
  .navbar-left {
    float:left;
    text-overflow:ellipsis;
    white-space:nowrap;
    overflow:hidden;
    max-width:42%;
  }
}
@media (max-width:280px) {
  .navbar-left {
    float:left;
    text-overflow:ellipsis;
    white-space:nowrap;
    overflow:hidden;
    max-width:32%;
  }
}
@media (max-width:240px) {
  .navbar-left {
    float:left;
    text-overflow:ellipsis;
    white-space:nowrap;
    overflow:hidden;
    max-width:19%;
  }
}
@media (max-width:200px) {
  .navbar-left {
    display:none;
  }
}

/* height-sensitive styling for smaller viewports

Note: height styling is also applied at the same width so the UI is always proportionally smaller for smaller screens.
To size the height of the top navbar, #reading-area { top: [xx]px } should match .navbar { height: [xx]px }
To size the padding above the epub display area, change the top: [xx]px to fix where it will be displayed inside the full white area (#reading-area)
To size the height of the bottom hr and it's padding,
  -the <hr> (in #bottom-bar)is fixed "inside" #reflowable-book-frame, -110px below the bottom of that box (or whatever number of px below)
  -the height of #bottom-bar should be the same or less than the number of pixels of the amount below the bottom of the #reflowable-book-frame where it is fixed
  -the bottom of #reflowable-book-frame is the bottom of the text display area
  -adding padding to <hr>?
*/
@media (max-width:768px) {
  .modal-dialog {
    margin-bottom:0px;
  }
  .modal {
    padding-left:0px !important;
  }
}
@media (max-width:650px), (max-height:650px) {
  #reading-area {
    top:65px;
  }
  .modal-dialog {
    margin-top:65px;
  }
  #reflowable-book-frame {
    bottom: 95px;
    top: 45px;
  }
  #bottom-bar {
    bottom:-90px;
    height:90px;
  }
  .btn {
    padding-top: 1px;
    padding-bottom: 1px;
  }
  .reading-area-nav-top {
    top: 20px;
  }
  .reading-area-nav-bottom {
    bottom: 20px;
  }
}
@media (max-width:550px), (max-height:550px) {
  #reading-area {
    top:55px;
  }
  .modal-dialog {
    margin-top:55px;
  }
}
@media (max-width:440px), (max-height:440px) {
  .navbar {
    height: 50px;
    min-height: 40px;
  }
  #reading-area {
    top:45px;
  }
  .modal-dialog {
    margin-top:45px;
  }
  #bottom-bar hr {
    margin-top:25px;
    margin-bottom:5px;
  }
  #bottom-bar {
    bottom: -65px;
    height: 65px;
  }
  #reflowable-book-frame {
    bottom: 65px;
    top: 25px;
  }
  .navbar .btn-group > button {
    padding: 1px 5px;
  }
  .reading-area-nav-top {
    top: 10px;
  }
  .reading-area-nav-bottom {
    display:none;
  }
  .prevpage {
    left: 10px;
  }
  .nextpage {
    right: 10px;
  }
}

/* styling for items inside readium-toc-body for when it occupies the full screen */
@media (max-width:650px) {
  .toc-visible #readium-toc-body {
    width:100%;
    position:absolute;
    z-index:200;
    margin:0px;
  }
}

#first-display {
  width:100%;
  position: absolute;
  top:90px;
  text-align: center;
}
#first-display > div {
  width: 300px;
  margin:auto;
}
button.close {
  border-radius: 50%;
  width: 25px;
  height: 25px;
  border: 2px black solid;
}

.btn-group > button {
  width: 55px;
}
#buttPrevChapter {
  width: 40px;
}
#buttNextChapter {
  width: 40px;
}
#bottmsg {
  position: absolute;
  bottom: 0px;
  background-color: lightgoldenrodyellow;
  padding: 20px;
  width: 100%;
}

.err-overlay-img {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
  margin-top: 30px;
  max-height: 200px;
  max-width: 200px;
}
.err-overlay-img img {
  max-height: 200px;
  max-width: 200px;
}
.modal-title {
  font-size: 24px;
  padding-left:15px;
}
.modal-body {
  padding-top: 20px;
}