#bookview-page {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#bookview .links a {
  color:#824214!important;
  text-decoration: none;
  display:block;
  transition: .7s ease background-position;
  background-position:-10px;
  counter-increment: section;
}

#bookview .links a:before {
  content: counter(section, upper-roman) ".";
  margin-top: 2px;
  margin-left: -1.2em;
  margin-right: 5px;
}

#bookview a:hover, #bookview .controls nav a:hover {
  color:#ffe5d0!important;
  background: url(../images/bookview/overlay.png) no-repeat;
  background-size:cover;
  background-position:left;
}

#bookview {
  font-family: "Martel";
  font-size:1.1em;
  background: #24170e;
  width: 100%;
  height: 100%;
  margin-top: 67px;
  overflow: hidden;
  counter-reset: article section;
  position: relative;
  background:url(../images/bookview/wood_bg.jpg);
}

#bookview .content {
  width: 100%;
  height: 100%;
  overflow: auto;
}

#bookview .controls nav {
  position: fixed;
  top: 15%;
  left: -300px;
  width: 325px;
  height: 550px;
  z-index: 1;
  display: block;
  padding: 15px;
  line-height: 1.3em;
  border: 1px solid #24170e;
  box-shadow: 35px 35px 25px rgba(0, 0, 0, 0.5);
  background: none;
  transition: left cubic-bezier(0.42, 0, 0.09, 0.99) 0.8s;
  pointer-events: all !important;
  animation: bookhide 1.5s 1;
}

@keyframes bookhide {
  0%, 50%{
    left: 0px;
  }
  100% {
    left: -300px;
  }
}


#bookview .controls nav:hover {
  left: 0px;
}

#bookview .controls nav::after {
  content: "";
  position: absolute;   
  left: 0px;
  top: -20px;
  z-index: -1;
  display: block;
  width: 386px;
  height: 600px;
  background: url(../images/bookview/book.png) no-repeat;
  background-size: contain;
}


#bookview .controls nav .links::-webkit-scrollbar-track {
	background-color: none;
}

#bookview .controls nav .links::-webkit-scrollbar {
	width: 15px;
	background-color: none;
}

#bookview .controls nav .links::-webkit-scrollbar-thumb{
  background-color: #312217;
  box-shadow: inset 0 0 0 1px rgb(0, 0, 0), inset 0 0 0 2px hsla(26, 90%, 92%, 0.35);
}


#bookview .controls nav .links {
  overflow-y: auto;
  width: 100%;
  height: 100%;
  border-top: 1px solid rgb(153, 92, 59);
  border-bottom: 1px solid rgb(153, 92, 59);
  border-right: 1px solid rgba(0, 0, 0, 0);
}

#bookview .controls nav a {
  padding: 7px 10px;
  padding-left: 2em;
  display: block;
  color: #24170e!important;
  font-weight: bold;
  font-family: 'Caudex';
  font-size: 1em;
}


#bookview header {
  font-family: "Caudex";
  font-size: 3em;
  font-weight: 300;
  text-align: center;
  padding-top: 140px;
  height: 290px;
  color:#ffa703;
  background:url(../images/bookview/header.png) no-repeat;
  background-size:cover;
  background-position:center ;
}

#bookview section {
  max-width: 1300px;
  margin: 0 auto;
}

#bookview section p {
    margin-bottom: 1em;
    font-family: "Martel"!important;
    font-size: 1.5em;
    line-height: 1.8em;
    color: #24170e;
    font-weight: normal !important;
    text-shadow: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    background: none;
    
}

#bookview section h2{
  color: #24170e;
  font-family: 'Caudex', sans-serif !important;
  margin: 0 0 15px 0;
  font-size: 2.4em !important;
  padding: 0;
  text-align: center;
  line-height: 1.1em!important;
  text-shadow: none;
}

#bookview section li {
  margin-left: 5px;
  margin-bottom: 20px;
  font-size: 1.6em;
  line-height: 1.6em;
  color: #24170e;
  list-style-image: url(../images/bookview/bullet.png)
}


span#subhead {
  font-size: 1.1em;
}


#bookview section ul {
  margin-left: 30px;
  margin-top: 10px;
  font-size: .6em;
}

#bookview section ul li{
  list-style: circle;
}


#bookview section .number li{
  list-style: decimal;
}

#bookview section .letter li{
  list-style: lower-alpha;
}


#bookview #black, black{
  font-weight: bold;
  color: black;
}

#bookview #red, red{
  font-weight: bold;
  color: red;
}

#bookview #purple, purple{
  font-weight: bold;
  color: purple;
}

#bookview #blue, blue{
  font-weight: bold;
  color: blue;
}

/* #bookview section:last-of-type {
  margin-bottom: 200px;
} */

#bookview article {
  margin: 0px 20px 100px 20px;
  padding: 80px 20%;
  min-height: 450px;
  background: url(../images/bookview/page2_10.png) repeat-y;
  background-size:contain;
  box-shadow: 2px 2px 3px #000;
  display:block;
  position:relative;
}

#bookview article::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 35px;
  background: url(../images/bookview/page-top.png) no-repeat;
  background-position: center top;
}

#bookview article::after {
  font-family: 'Caudex';
  font-size: 1.3em;
  color: #24170e;
  counter-increment: article;
  content: counter(article);
  display: block;
  text-align: center;
  position: absolute;
  width: 100%;
  left: 0;
  bottom: -8px;
  height: 75px;
  background: url(../images/bookview/page-bottom.png) no-repeat;
  background-position: center bottom;
}

#bookview figure{
  border: 5px solid rgba(161, 124, 100, 0.51);
  position: relative;
}

#bookview figure.left {
  float: left;
  width: 35%;
  margin: 15px 15px 0px 0px;
}

#bookview figure.center{
  width: 100%;
  margin: 15px 0px;
}

#bookview figure.right{
  float: right;
  width: 35%;
  margin: 15px 0px 0px 15px;
}

#bookview figure img {
  width: 100%;
  margin-bottom: -10px;
}

#bookview figcaption {
  color: #f3e2d3;
  bottom: 0px;
  left: 0px;
  padding: 0px 5px;
  background: #2d1f14;
  margin: 0;
}

#bookview .nextSection, #bookview .prevSection {
  position: fixed;
  z-index: 11;
  bottom: 10px;
  padding: 10px 30px 10px 30px;
  color: #b7784a;
  background: rgba(36, 23, 14, 0.85);
  width: 250px;
  height: 40px;
  text-align: center;
  overflow: hidden;
  transition: .5s ease;
}

#bookview .nextSection {
  right: 40px;
  padding-left: 5px;
  pointer-events: all !important;
}


#bookview .prevSection {
  left: 40px;
  padding-right: 5px;
  pointer-events: all !important;
}

#bookview .prevSection::before {
  content: "";
  position: absolute; 
  top: 9px;
  left: 0px;
  z-index: 2;
  width: 25px;
  height: 25px;
  display: block;
  background: url(../images/bookview/page2_19.png) repeat-x;  
}

#bookview .nextSection::before {
  content: "";
  position: absolute; 
  top: 9px;
  right: 0px;
  z-index: 2;
  width: 25px;
  height: 25px;
  display: block;
  background: url(../images/bookview/page2_16.png) repeat-x;  
}

#bookview .nextSection::after, #bookview .prevSection::after {
  content: "";
  position: absolute; 
  top: 0;
  left: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 0 1px rgb(0, 0, 0), inset 0 0 0 2px hsla(41, 64%, 61%, 0.78);
}

#bookview .prevSection:hover, #bookview .nextSection:hover{
  color: #fdecdf;
  background: rgb(36, 23, 14);
}

#bookview .hidden {
  visibility: hidden;
}

#bookview .pageNav {
  position: fixed;
  z-index: 10;
  bottom: 0px;
  height: 100px;
  padding-top: 50px;
  width: 100%;
  text-align: center;
  background: url(../images/bookview/page2_14.png) repeat-x;  
  background-position: top center;
  pointer-events: all !important;
}

#bookview .pageNav input{
  font-family: 'Caudex';
  padding: 5px 0px 5px 10px;
  font-size: 1em;
  width: 51px;
  text-align: center;
  background: rgba(61, 45, 32, 0.54);
  color: #f3dfcf;
  border: none;
  pointer-events: all !important;
}
 
#bookview .pageNav{
  font-family: 'Caudex';
}

#bookview .pageNav span{
  margin-left: 5px;
  color: #24170e;
  font-size: 1.3em;
  position: absolute;
}

#bookview .black {
  background-color: black;
}

#bookview .controls {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  pointer-events: none;
}

#bookview footer {
  padding-top: 10px;
  height: 1000px;
  background-image: none;
  box-shadow: 0px -30px 90px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.5);
}

#bookview footer a:hover {
  background:none;
}

#bookview .separator-cse {
  background-image: none;
}

@media (max-width: 900px) {

  #bookview a {
    font-size: 1.1em;
  }

  #bookview .nextSection, #bookview .prevSection {
    width: 80px;
    height: 40px;
    font-size: 0.6em;
    line-height: 16px;    
    padding-top: 5px;
  }

  #bookview figure.left, #bookview figure.right {
    width: 100%;
    font-size: 0.6em;
    line-height: 16px;
  }

  #bookview .prevSection {
    left:10px;
  }

  #bookview .nextSection {
    right:10px;
  }

  #bookview .controls nav {
    width: 240px;
    height: 400px;
    box-shadow: 15px 15px 25px rgba(0, 0, 0, 0.5);
    left: -220px;
  }
  
  @keyframes bookhide {
    0%, 50%{
      left: 0px;
    }
    100% {
      left: -220px;
    }
  }

  
  #bookview .controls nav::after {
    width: 270px;
    height: 450px;
    top: -15px;
  }

  #bookview .pageNav{
    z-index: 1;
    height: 80px;
    padding-top: 35px;
    
  }

  #bookview article{
    padding: 10% 10%;
    margin: 35px 0px;
  }


  #bookview article::before{    
    top: -6px;
    background-size: 230px;
  }
  
  #bookview article::after {
    bottom: -5px;
    background-size: 300px;
  }

  #bookview header {
    font-size: 2em;
    padding-top: 20px;
    height: 70px;
    line-height: 1.5em;
  }

  #bookview section {
    padding-left: 40px;
    font-size:.8em;
  }
  
  #bookview article::after{
    height: 50px;
  }
  #bookview section li{
    font-size: 16px;
  }
}

@media only screen and (max-width: 479px) {
  #bookview section img {
      max-width: 100%;
  }
}