body {
  margin: 0;
  background: #fafafa;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #333;

  /* height: 100%; */
  width: 100%;
  position:absolute;
  /* min-height: 800px; */
  height: 85vh;
  box-sizing: box-border;
  line-height: 3px;
  
  }
	#titlecontainer{
		width: 100%;
		margin: auto;
	}
  #title {
    /* width: 900px; */
    width: 100%;
    min-height: 18px;
    margin: 10px auto;
    text-align: center;
    font-size: 16px;
    color: #E2E2E2;
    font-weight: 400;
  }
  
  #title:hover {
    color: #777;
  }
  
  #viewer.spreads {
    width: 92%;
    margin: auto;
    height: 100%;
    box-shadow: 0 0 4px #aaa;
    border-radius: 5px;
    padding: 0;
    position: relative;
    /* margin: 15px auto; */
    background: white url('ajax-loader.gif') center center no-repeat;
    
    box-sizing: border-box;
    transform-origin: left top;
    /* top: calc(50vh - 400px); */
  }
  
  #viewer.spreads .epub-view > iframe {
      background: white;
  }
  
  #viewer.scrolled {
    overflow: hidden;
    width: 800px;
    margin: 0 auto;
    position: relative;
    background: url('ajax-loader.gif') center center no-repeat;
    box-shadow: 0 0 4px #ccc;
    padding: 20px;
    background: white;
  }
  
  #viewer.scrolled .epub-view > iframe {
      background: white;
  }
  
  #prev {
    left: 0.5rem;
  }
  
  #next {
    right: 0.5rem;
  }
  
  #toc {
    display: block;
    margin: 10px auto;
  }
  
  @media (min-width: 1000px) {
    #viewer.spreads.reflow:after {
      position: absolute;
      width: 1px;
      border-right: 1px #000 solid;
      height: 90%;
      z-index: 1;
      left: 50%;
      /* margin-left: -1px; */
      top: 5%;
      opacity: .15;
      box-shadow: -2px 0 15px rgba(0, 0, 0, 1);
      content:  "";
    }
  
    #viewer.spreads.single:after {
      display: none;
    }
  
    #prev {
      left: 4rem;
      padding-left: 0.2rem;
    }
  
    #next {
      right: 4rem;
      padding-right: 0.2rem;
    }
  }
  
  .arrow {
    position: fixed;
    top: 55%;
    margin-top: -32px;
    font-size: 64px;
    /* color: #E2E2E2; */
    color: #222;
    font-family: arial, sans-serif;
    font-weight: bold;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    text-decoration: none;
	  /* padding: 0 0.5rem; */
      opacity: 0.9;
      z-index: 1;
  }
  
  .navlink {
    margin: 14px;
    display: block;
    text-align: center;
    text-decoration: none;
    color: #ccc;
  }
  
  .arrow:hover, .navlink:hover {
    color: #000;
    opacity: 1;
  }
  
  .arrow:active, .navlink:hover {
    color: #000;
    opacity: 1;
  }
  
  #book-wrapper {
    width: 480px;
    height: 640px;
    overflow: hidden;
    border: 1px solid #ccc;
    margin: 28px auto;
    background: #fff;
    border-radius: 0 5px 5px 0;
    position: absolute;
  }
  
  #book-viewer {
    width: 480px;
    height: 660px;
    margin: -30px auto;
    -moz-box-shadow:      inset 10px 0 20px rgba(0,0,0,.1);
    -webkit-box-shadow:   inset 10px 0 20px rgba(0,0,0,.1);
    box-shadow:           inset 10px 0 20px rgba(0,0,0,.1);
  }
  
  /*#book-viewer iframe {
     padding: 40px 40px; 
  }*/
  
  #controls {
    position: fixed;
    bottom: 0.5rem;
    left: 25%;
    width: 50%;
    /*margin-left: -200px;*/
    text-align: center;
    /* display: none; */
    display: flex;
    vertical-align: baseline;
  }
  
  #controls > input[type=range] {
      width: 100%;
  }
  
  #navigation {
    width: 400px;
    height: 100vh;
    position: absolute;
    overflow: auto;
    top: 0;
    right: 3.5rem;
    background: #777;
    -webkit-transition: -webkit-transform .25s ease-out;
    -moz-transition: -moz-transform .25s ease-out;
    -ms-transition: -moz-transform .25s ease-out;
    transition: transform .25s ease-out;
    z-index: 1;
    transition: 0.5s;
  }
  
  #navigation.fixed {
    position: fixed;
  }
  
  #navigation h1 {
    width: 200px;
    font-size: 16px;
    font-weight: normal;
    color: #fff;
    margin-bottom: 10px;
  }
  
  #navigation h2 {
    font-size: 14px;
    font-weight: normal;
    color: #B0B0B0;
    margin-bottom: 20px;
  }
  
  #navigation ul {
    padding-left: 36px;
    margin-left: 0;
    margin-top: 12px;
    margin-bottom: 12px;
    width: 340px;
  }
  
  #navigation ul li {
    list-style: decimal;
    margin-bottom: 10px;
    color: #cccddd;
    font-size: 12px;
    padding-left: 0;
    margin-left: 0;
  }
  
  #navigation ul li a {
    color: #ccc;
    text-decoration: none;
  }
  
  #navigation ul li a:hover {
    color: #fff;
    text-decoration: underline;
  }
  
  #navigation ul li a.active {
    color: #fff;
  }
  
  #navigation #cover {
    display: block;
    margin: 24px auto;
  }
  
  #navigation #closer {
    position: absolute;
    top: 0;
    right: 0;
    padding: 12px;
    color: #cccddd;
    width: 24px;
  }
  
  #navigation.closed {
    /* -webkit-transform: translate(-400px, 0);
    -moz-transform: translate(-400px, 0);
    -ms-transform: translate(-400px, 0);
    transform: translate(-400px, 0); */
    /* -webkit-transform: translate(0, 0);
    -moz-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    transform: translate(0, 0); */
    width: 0;
  }
  
  svg {
    display: block;
  }
  
  .close-x {
    stroke: #cccddd;
    fill: transparent;
    stroke-linecap: round;
    stroke-width: 5;
  }
  
  .close-x:hover {
    stroke: #fff;
  }
  
  #opener {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px;
    stroke: #E2E2E2;
    fill: #E2E2E2;
    z-index: 10;
  }
  
  #opener:hover {
    stroke: #777;
    fill: #777;
  }
  

  #hamburger{
    background-color: cornflowerblue;
  }

  #current-percent{
    border: solid 3px orangered;
    border-radius: 3px;
    text-align: center;
  }

  #current-percent:focus{
    outline: none !important;
  }

@media (orientation: landscape) {
	#viewer.spreads {
    	width: 900px;
		/* padding: 0 2rem; */
		box-sizing: box-border;
	}
	#titlecontainer{
		width: 900px;
		margin: auto;
	}
}

@media (orientation: portrait) {
	#viewer.spreads {
    	width: 100%;
		margin: 0;
	}
	#controls {
		left: 10%;
		width: 80%;
	}
}

.epub-container{
	margin: auto;
}


#navigation ul li {
  list-style: decimal;
  margin-bottom: 10px;
  color: #cccddd;
  font-size: 18px !important;
  padding-left: 0;
  margin-left: 0;
  line-height: 24px !important;
}

/* edited */
#mobilenavbar{
  display: none;
  top: 1.5rem;
  right: 0.5rem;
  position: fixed;
  z-index: 100;
  box-shadow: 10px 10px 10px #ccc;
  background: white;
  /* border: solid 1px #ccc; */
  border-radius: 5px;
  justify-content: center;
  align-items: center;
}

/*sidebar*/
.sidebar {
  font-family: Lato, sans-serif;
  width: auto;
  height:100%;
  position: fixed;
  z-index: 2;
  top: 0;
  right: 0;
  background-color: #fff;
  overflow-x: hidden;
  padding-top: 16px;
}

.sidebar ul{
  list-style-type: none;
  padding: 0;
  margin-top: 2rem;
}

.sidebar li *{
  margin : 0;
}

.sidebar li p, .sidebar li img{
  padding: 0.7rem 0;
}

.sidebar>ul> li {
  padding: 0.1rem 0rem;
  text-decoration: none;
  color: #000;
  font-size: 1.2rem;
  font-weight: 400;
  display: block;
  text-align: center;
  margin: auto;
  border-bottom: solid 1px #ccc;
  border-top: solid 1px #ccc;
  box-shadow: 1px 1px 15px #ccc;
  border-radius: 10px;
  margin: 0.2rem;
}

.sidebar a:hover {
  color: #f1f1f1;
}

@media screen and (max-height: 450px) {
  .sidebar {padding-top: 1rem;}
  .sidebar a {font-size: 1rem;}
}
/**/

.test:after {
  content: '\2807';
  font-size: 1.7rem;
}
/**/

@media screen and (max-width: 768px){
  .sidebar{
    visibility: hidden;
    opacity:0;
    transition:visibility 0.3s linear,opacity 0.3s linear;
  }
  #mobilenavbar{
    display: flex;
    transition: transform .5s ease-out;
  }
}
.sidebaropen{
  visibility: visible;
  opacity: 1;
}

.setting_div {
  padding: 0.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 0.5rem;
  align-items: center;
}