html {
  margin: 0;
  padding: 0;
  height: 100%; }

body {
  overflow: hidden;
  background-color: #ffffff;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0; }

/*layout start*/
@media screen and (min-width: 320px) {
  html {
    font-size: 42.666666px; } }

@media screen and (min-width: 360px) {
  html {
    font-size: 48px; } }

@media screen and (min-width: 375px) {
  html {
    font-size: 50px; } }

@media screen and (min-width: 414px) {
  html {
    font-size: 55.2px; } }

@media screen and (min-width: 440px) {
  html {
    font-size: 58.666666px; } }

@media screen and (min-width: 480px) {
  html {
    font-size: 64px; } }

@media screen and (min-width: 640px) {
  html {
    font-size: 85.333333px; } }

@media screen and (min-width: 720px) {
  html {
    font-size: 96px; } }

@media screen and (min-width: 750px) {
  html {
    font-size: 100px; } }

/*layout end*/
.flipbook-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%; }

.flipbook-viewport .container {
  width: 100%;
  height: 100%; }

.flipbook-viewport .flipbook {
  width: 100%;
  height: 100%; }

.flipbook-viewport .page {
  width: 100%;
  height: 100%;
  background-color: #fff;
  background-repeat: no-repeat; }

.flipbook .page {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2); }

.flipbook-viewport .page img {
  -ms-user-select: none;
      user-select: none;
  margin: 0; }

.flipbook-viewport .shadow {
  transition: box-shadow 0.5s;
  box-shadow: 0 0 20px #ccc; }

@keyframes pageAmi {
  from {
    transform: scale(0.5); }
  to {
    transform: scale(1); } }

.page .pageNum {
  display: block;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 5vw;
  height: 4vw;
  background-size: cover;
  -webkit-background-size: cover;
  -ms-transform-origin: 100% 100%;
      transform-origin: 100% 100%;
  -webkit-transform-origin: 100% 100%;
  -ms-transform: scale(0.5);
      transform: scale(0.5);
  -webkit-transform: scale(0.5); }

.page.in .pageNum {
  animation: pageAmi 1s ease-in-out 0s infinite alternate;
  -webkit-animation: pageAmi 1s ease-in-out 0s infinite alternate; }

.page.last-page .pageNum {
  display: none; }

.book-page {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #fff;
  background-size: cover; }
  .book-page > img {
    display: inline-block;
    width: 100%;
    height: auto;
    max-height: 100%;
    max-width: 100%; }

#loading {
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
      transform: translate(-50%, -50%);
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
  -ms-flex-pack: center;
      justify-content: center;
  box-shadow: 0 0 20px black; }
  #loading .cover {
    height: auto;
    width: 100%; }
  #loading #loadnum {
    position: absolute;
    top: 61%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    color: #000;
    font-size: 20px; }

.book-container {
  position: fixed;
  left: 50%;
  top: 50%;
  -ms-transform: translate(-50%, -50%);
      transform: translate(-50%, -50%);
  display: none;
  -ms-flex-align: center;
      align-items: center;
  -ms-flex-pack: center;
      justify-content: center;
  width: 1200px;
  height: 900px;
  max-height: calc(100vh - 60px);
  max-width: calc(100vw - 60px);
  box-shadow: 0 0 20px black; }
  .book-container .p-temporal {
    position: relative;
    background-color: rgba(255, 255, 255, 0.6);
    background-size: cover;
    -ms-transform: scaleX(-1);
        transform: scaleX(-1); }
    .book-container .p-temporal:after {
      position: absolute;
      top: 0;
      left: 0;
      content: ' ';
      width: 100%;
      height: 100%;
      background-color: rgba(255, 255, 255, 0.8); }
  .book-container.double .book-page.left::after {
    position: absolute;
    content: ' ';
    right: -1px;
    top: 0;
    height: 100%;
    width: 100px;
    background-image: linear-gradient(to left, rgba(60, 60, 60, 0.4) 0%, rgba(50, 50, 50, 0.1) 54%, rgba(200, 200, 200, 0) 100%);
    z-index: 5; }
  .book-container.double .book-page.right::before {
    position: absolute;
    content: ' ';
    left: -1px;
    top: 0;
    height: 100%;
    width: 40px;
    z-index: 5;
    background-image: linear-gradient(to right, #353535 0%, rgba(53, 53, 53, 0.5) 1%, rgba(53, 53, 53, 0.2) 40%, rgba(53, 53, 53, 0.1) 60%, rgba(200, 200, 200, 0) 100%); }
  .book-container.single .book-page::before {
    position: absolute;
    content: ' ';
    left: 0;
    top: 0;
    height: 100%;
    width: 40px;
    z-index: 5;
    background-image: linear-gradient(to right, rgba(53, 53, 53, 0.5) 0%, rgba(53, 53, 53, 0.2) 40%, rgba(53, 53, 53, 0.1) 60%, rgba(200, 200, 200, 0) 100%); }

.background {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1; }
  .background > .left {
    position: absolute;
    top: 0;
    left: 0;
    width: 50vw;
    height: 100vh;
    background-image: url("../images/background-left.jpg");
    background-size: cover;
    background-position: 100% 0; }
  .background > .right {
    position: relative;
    top: 0;
    left: 50%;
    width: 50vw;
    height: 100vh;
    background-image: url("../images/background-right.jpg");
    background-size: cover;
    background-position: 0 0; }
