@import url("../taglib/css/reset-html5-tag.css");
html {
  overflow-y: scroll;
}

body {
  font-family: "museo sans", "helvetica neue", arial, helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5em;
  background-color: #111;
  color: #fff;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: none;
}

a {
  color: #ff5e17;
}
a:hover {
  color: #ff5e17;
}

#ereader {
  width: auto;
  padding: 0;
  background-color: transparent;
  z-index: 100000;
  margin: 1.5em auto;
  width: 1004px;
  position: relative;
  overflow: hidden;
}
#ereader .close {
  z-index: 100000;
  margin-top: 1.5em;
}
#ereader .thumbnails-toggle {
  color: #aaa;
  cursor: pointer;
  -moz-transition: color 0.3s;
  -webkit-transition: color 0.3s;
  -ms-transition: color 0.3s;
  -o-transition: color 0.3s;
  transition: color 0.3s;
  margin-bottom: 0.75em;
}
#ereader .thumbnails-toggle:hover {
  color: #ff5e17;
}
#ereader .controls a {
  width: 200px;
  height: 200px;
  position: absolute;
  top: 50%;
  margin-top: -100px;
  background-color: #000;
  z-index: 8001;
  text-indent: -900em;
  opacity: 0;
  text-align: center;
}
#ereader .controls a.previous {
  left: 0;
  background: url("../images/bookflip/previous.png") no-repeat left center;
}
#ereader .controls a.next {
  right: 0;
  background: url("../images/bookflip/next.png") no-repeat right center;
}
#ereader .shadow {
  width: 50px;
  background-image: url("../images/bookflip/shadow.png");
  position: absolute;
  z-index: 5000;
  top: 23px;
  bottom: 0;
  display: none;
}
#ereader #shadow-left {
  background-position: left top;
}
#ereader #shadow-right {
  background-position: right top;
}
@media (max-width: 1000px) {
  #ereader {
    width: 90% !important;
  }
  #ereader #bookflip {
    width: 100% !important;
    height: auto !important;
  }
  #ereader #bookflip > div {
    width: 100% !important;
    height: auto !important;
  }
  #ereader #bookflip > div > div {
    width: 100% !important;
    height: auto !important;
  }
  #ereader #bookflip > div > div img {
    width: 100%;
  }
}
#ereader #thumbnails {
  position: fixed;
  display: none;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-x: scroll;
  overflow-y: hidden;
  background-color: rgba(0, 0, 0, 0.85);
}
#ereader #thumbnails ul {
  white-space: nowrap;
  list-style: none;
  margin: 0;
}
#ereader #thumbnails ul li {
  display: inline-block;
}
#ereader #thumbnails ul li a {
  padding: 1.5em 1.5em 0.75em;
  display: block;
  text-align: center;
  text-decoration: none;
  color: #aaa;
  -moz-transition: background-color 0.5s;
  -webkit-transition: background-color 0.5s;
  -ms-transition: background-color 0.5s;
  -o-transition: background-color 0.5s;
  transition: background-color 0.5s;
}
#ereader #thumbnails ul li a img {
  display: block;
  margin: 0 auto;
}
#ereader #thumbnails ul li a span {
  font-size: 0.9em;
  line-height: 1.66667em;
  margin-top: 0.41667em;
  margin-bottom: 0em;
  display: block;
}
#ereader #thumbnails ul li a:hover {
  background-color: #ff5e17;
  color: #fff;
}
