:root {
    --black: #000;
    --white: rgb(255, 255, 255);
    --dull-white: #e5e5e5;
    --accent-color: #5353ca;
    --accent-color-lighter: #e9e9ff;
    --accent-color-darker: #1f1f4e;
  
    --header-heights: 2.25rem;
    --title-height: 8vh;
    --container-border-radius: 7.5px;
  
    --cover-image-height:270px;
    --cover-image-offset:-85px;
  
    --anim-slow: 0.75s;
    --anim-fast: 0.5s;
  }
  @font-face {
    font-family: book-text-font;
    src: url(../fonts/archivoRegular.ttf);
  }
  @font-face {
    font-family: book-text-font-bold;
    src: url(../fonts/archivoMedium.ttf);
  }
  @font-face {
    font-family: accordion-text-font;
    src: url(../fonts/archivoMedium.ttf);
  }
  ::-webkit-scrollbar {
    width: 0px!important;
  }
  *{
      font-family: book-text-font;
  }
  body::-webkit-scrollbar,.foot-note-text::-webkit-scrollbar,.foot-note-container::-webkit-scrollbar {
    display: none;
}
body {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.book-content,.content-library,.foot-note-text,.foot-note-container{
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
  *{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: 0px;
  }
  
  html,
  body {
    height: 122.5vh;
    width: 100vw;
  
    font-family: "Poppins", ariel;
    overflow: hidden;
  }
  
  body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  
    background-color: var(--dull-white);
    color: var(--black);
    font-size: 16px;
  }
  .wrapper{
    height: 100%;
    width: 100%;
    overflow: hidden;
  }
  h1,
  .h1,
  h2,
  .h2 {
    margin: 0;
    margin-bottom: 1rem;
  }
  h3,
  .h3,
  h4,
  .h4,
  h5,
  .h5 {
    margin-bottom: 0.5rem;
  }
  h1,
  .h1 {
    font-size: 2rem;
  }
  h2,
  .h2 {
    font-size: 1.75rem;
  }
  h3,
  .h3 {
    font-size: 1.5rem;
  }
  h4,
  .h4 {
    font-size: 1.25rem;
  }
  .h5,
  h5 {
    font-size: 1.1rem;
  }
  img {
    max-width: 100%;
  }
  
  body::before {
    content: "";
    width: 100%;
    height: 50%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--accent-color-darker);
    z-index: -1;
  }
  .title-container {
    z-index: 11;
  
    width: 100%;
    height: var(--title-height);
    padding: 1em 0em;
  
    display: flex;
    justify-content: center;
    align-items: center;
  
    background-color: #5353ca;
    color: var(--white);
  
    position: fixed;
    top: 0;
  
    transition: height 0.5s ease-in;
  
  }
  .chapter-cover-small{
    width: 35px;
    object-fit: cover;
    position: absolute;
    left: 10%;
  }
  .title-container .chapter-title{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 5px;
    opacity:0;
  }
  .menu-btn{
    display: none;
  }
  .chapter-shutter-button{
    display: none;
  }
  
  .content-container {
    margin: 0 auto;
    height: 100%;
    padding: 2em;
    padding-top: calc(var(--title-height) + 2em) ;
  
    display: flex;
    justify-content: center;
    align-items: center;
  
    gap: 1em;
  }
  
  .content-container > * {
    z-index: 10;
    height: 100%;
  }
  .content-library-container {
    width: 32.5%;
    max-width: 420px;
    border-radius: var(--container-border-radius);
  
    overflow: hidden;
  }
  .chapter-cover {
    width: 190px;
    height: var(--cover-image-height);
    margin: 0 auto;
    margin-bottom: var(--cover-image-offset);
    transition: height 1s ease-in-out;
  
  }
  .chapter-cover img {
    height: 100%;
    width: 100%;
    box-shadow: 2px 5px 5px rgb(0 0 0 / 30%);
  }
  .sub-container-cb {
    background-color: var(--white);
    height: calc(100% - (var(--cover-image-height) + var(--cover-image-offset)));
    border-radius: var(--container-border-radius);
  
    padding-top: calc(var(--cover-image-offset)*-1);
  
    transition: height 1s ease-in-out;
  
  }
  .book-info {
    display: flex;
    justify-content: center;
    align-items:center;
    margin: 0 0.75em;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    padding: 1em 0em;
  }
  .book-info p {
    width: 70%;
  }
  .border-line {
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    width: 100%;
  }
  .read-chapters{
    width: 100%;
    align-self: flex-start;
    padding:1em 1.75em ;
  }
  .content-library {
    height: 80%;
    overflow: scroll;
    overflow-x: hidden;
  }
  .accordion {
    width: 100%;
  }
  .accordion-item{
    position: relative;
    transition:all 0.5s ease;
    font-weight: bold;
    overflow: hidden;
  }
  .accordion-item .accordion-preview,
  .accordion-item .accordion-button {
    font-size: 17px;
    font-weight: 600;
    padding: 1em 1.75em;
    font-family:accordion-text-font;
  }
  .accordion-item .accordion-preview {
    position: relative;
  
    width: 100%;
    color: var(--accordion-item-color);
    transition:all 0.5s ease;
    border: 0;
    border-radius: 0;
    cursor: pointer;
  }
  .current-chapter .accordion-preview {
      transition:all 0.5s ease-out;
    background-color: var(--accent-color-lighter);
    /* border-radius: 10px; */
  }
  .accordion-item .accordion-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 1em 1.5em;
    padding-top: 0;
  }
  .accordion-item.with-sub-chapters .accordion-body {
    padding-right: 0;
  }
  .accordion-item .logged-out {
    margin: 0 auto;
    width: 100%;
    max-width: 400px;
  }
  .accordion-item .accordion-body .chapter-mini-intro {
    font-size: 0.85rem;
  }
  .accordion-item .accordion-body .payment-prompt {
    font-size: 1rem;
    text-align: center;
    margin: 0.5em 0em;
  }
  .accordion-item .accordion-body .payment-gateway {
    border: 1px solid var(--black);
    /* border-radius: 5px; */
    width: 95%;
    height: 150px;
    align-self: center;
  }
  .accordion-item .accordion-body .login-button {
    margin: 0.5em 0;
    padding: 0.5em;
    background: none;
    background-color: var(--accent-color-lighter);
    border: none;
    border-radius: 5px;
    align-self: center;
  }
  .corner-ribbon {
    z-index: 9;
    width: 100px;
    font-size: 0.52em;
    background: var(--accent-color);
    position: absolute;
    top: 10px;
    left: -32.5px;
    text-align: center;
    line-height: 15px;
    letter-spacing: 1px;
    color: var(--white);
    transform: rotate(-45deg);
    overflow: hidden;
  }
  .main-book {
    width: 67.5%;
    max-width: 850px;
    position: relative;
    overflow: hidden;
    border-radius: var(--container-border-radius);
  }
  .header{
    transition: height 1s ease-in-out;
  
    height:calc( var(--cover-image-height) + var(--cover-image-offset));
  }
  .sub-container-mb{
    height: calc(100% - (var(--cover-image-height) + var(--cover-image-offset)));
    background-color: var(--white);
    border-radius: var(--container-border-radius);
    overflow: hidden;
  
    transition: height 1s ease-in-out;
  }
  .header{
    width: 80%;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }
  .book-content {
    height: 100%;
    position: relative;
    overflow-y: scroll;
    overflow-x: hidden;
    font-family: book-text-font;
    font-size: 18px;
    transition: transform var(--anim-slow) ease-in;
    border-radius: var(--container-border-radius);
  }
  .chapters {
    width: 100%;
    line-height: 23px;
    padding: 1em;
    border-radius: var(--container-border-radius);
    font-weight: 300;
  
  }
  .chapters:first-of-type{
    padding-top:calc(var(--header-heights) + calc(0.5em));
  }
  .footer {
    width: 100%;
    height: var(--header-heights);
  
    display: flex;
    justify-content: space-evenly;
    align-items: center;
  
    background-color: var(--accent-color);
    color: var(--white);
  
    position: absolute;
    bottom: 0;
  
    transition: transform var(--anim-fast) ease-in-out;
  }
  .arrows > * {
    cursor: pointer;
    flex: 1;
    text-align: center;
  }
  .reading .footer {
    transform: translateY(var(--header-heights));
  }
  .chapters,
  .foot-note-container {
    text-align: justify;
    background-color: var(--white);
    line-height: 23px;
    font-size: 18px;
  }
  .chapters h3{
      font-weight: bold;
  }
  .chapters .footnote {
    cursor: pointer;
    text-decoration: none;
    vertical-align: super;
    padding:0px 2px;
    display: inline-block;
    font-size:16px!important;
  }
  .is-hidden {
    display: none;
  }
  .opacity-sheet-footnote {
    display: none;
    position: fixed;
    top:0;
    left:0;
    right:0;
    bottom:0;
    height: 100vh;
    width: 100vw;
    justify-content: center;
    align-items: center;
    width: 100vw;
    z-index: 15;
  
    background-color: rgba(0, 0, 0, 0.3);
  }
  .foot-note-container {
    display: none;
  
    width: 85%;
    height: 40%;
    max-width: 550px;
    max-height: 300px;
  
    position: absolute;
    border-radius: 15px;
    overflow: visible;
  
    display: flex;
    align-items: center;
    flex-direction: column;
  
    padding: 1em 1.25em;
  }
  
  .close-footnote {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    align-self: flex-end;
    background-color: var(--white);
    cursor: pointer;
  
    position: absolute;
    right: -7%;
    top: -15%;
  
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .fn-header{
    width: 100%;
    height: 50px;
    position: absolute;
    top: 0;
    padding: 0em 1.25em;
    font-size:18px;
    padding-top: 1em;
    background-color: var(--white);
    border-radius: 15px 15PX 0px 0px;
  
  
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
  
    /* background-color: var(--white); */
  }
  
  .foot-note-text{
    width: 100%;
    height: 100%;
    overflow: scroll;
    overflow-x: hidden;
    padding-top: calc(50px);
  }
  
  .chapters p{
    margin:1rem 1rem!important;
  }
  .chapter-title
  {
      width: 100%;
      overflow:hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
  }
  .chapter-title-header{
    position: absolute;
    max-width:45vw;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .book-name{
    position: absolute;
  }
  @media (max-width: 768px),(max-width:896px) and (orientation: landscape){
    *{
       --container-border-radius: 0px;
       --header-heights:5vh
    }
  
  
    html, body {
      height: 100%;
      width: 100vw;
      font-family: "Poppins", ariel;
      overflow: hidden;
  }
  .wrapper{
    height: 100%;
    width: 100%;
    overflow: hidden;
  }
    .title-container{
      position: absolute;
      top: 0;
      transition: transform var(--anim-fast) ease-in-out;
  
      width: 100%;
      height: var(--header-heights);
      z-index: 13;
      background-color: #1B224C;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .title-container .book-name{
      display: none;
    }
    .title-container .chapter-title{
      opacity: 1 !important;
      width: 72.5%;
        
      text-align: center;
      white-space: nowrap;
      overflow: hidden !important;
      text-overflow: ellipsis;
      transition: opacity 0.5s ease
    }
    h2.chapter-title{
        font-weight: bold!important;
    }
    .open .chapter-title{
      opacity: 0 !important;
    }
    .reading .title-container{
      transform: translateY(calc(var(--header-heights)*-1));
    }
  
    .menu-btn {
      position: absolute;
      left: 0.5em;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }
  
    .content-container::before{
      display: none;
    }
    .content-container{
      height: 100%;
      display: block;
      padding: 0;
      position: relative;
    }
    .content-library-container{
      padding-top: var(--header-heights);
      width: 100%;
      max-width: none;
    }
    .menu-btn>*>*{
        fill: var(--white);
    }
    .chapter-cover{
      position: fixed;
  
      top: 0;
      left: 0;
      bottom: 0;
      right: 0;
  
      height: 100%;
      width: 100%;
      object-fit: cover;
  
      z-index: 15;
      border-radius:0 ;
  
      transition: all 1s ease;
    }
    .chapter-cover.open{
      transform: translateY(-100%);
    }
    .chapter-shutter-button{
      display:block;
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      bottom: 7.5%;
  
      height: 50px;
      width: 50px;
      background-color: var(--white);
      border-radius: 50%;
  
      z-index: 16;
  
      cursor: pointer;
  
      display: flex;
      justify-content: center;
      align-items: center;
  
      box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.4);
    }
  
    .sub-container-cb{
      height: 100%;
      padding-top: 0;
    }
    .book-info{
      font-size: 1rem;
      font-weight: 500;
      padding: 1em 1.75em;
    }
    .content-library{
      height:87.5%
    }
    .main-book{
      width: 100%;
      max-width: none;
      z-index: 9;
  
      transition: all var(--anim-fast) ease-in;
  
      position: absolute;
      top: 0;
      right: -100%;
    }
    .main-book.closed{
      right: 0%;
    }
    .sub-container-mb{
      height: 100%;
    }
    .header{
      display: none;
    }
    .chapters{
      padding-bottom: 0;
    }
  
    
  }
    /* .title-container {
      width: 100%;
      height: 8vh;
      padding: 1em 0em;
  
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
  
      background-color: #5353ca;
      color: var(--white);
    }
    .content-container {
      width: 100%;
      height: 92vh;
      padding: 2em 0em;
  
      display: flex;
      justify-content: center;
      align-items: flex-end;
  
      gap: 1em;
    }
  
    .content-container > * {
      z-index: 10;
      height: 100%;
    }
  
    .content-library-container {
      width: 30%;
      max-width: 400px;
      border-radius: var(--container-border-radius);
  
      overflow: hidden;
    }
    .chapter-cover {
      height: 30%;
      display: flex;
      justify-content: center;
      align-items: center;
  
      position: relative;
    }
    .chapter-cover img {
      height: 120%;
      /* max-height: 260px; 
      box-shadow: 2px 5px 5px rgb(0 0 0 / 30%);
      border-radius: 12px;
  
      position: absolute;
      top: 0;
    }
    .sub-container-cb {
      height: 70%;
      background-color: var(--white);
      border-radius: var(--container-border-radius);
    }
    .book-info {
      height: 30%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
      padding: 3.75em 1.75em;
      padding-bottom: 0.5em;
    }
    .border-line {
      border-bottom: 1px solid rgba(0, 0, 0, 0.3);
      width: 100%;
    }
    .book-info p {
      width: 100%;
      align-self: flex-start;
  
      /* margin-top: 1em;
      padding-top: 1em; */
   
  /*
  .footer .controls {
    width: 100%;
  }
  .footnote-open .footer {
    top: calc(var(--height-big) / 2) !important;
  }
  .controls .arrows,
  .controls .close-footnote {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
  .controls .arrows span {
    cursor: pointer;
    width: 50%;
    text-align: center;
  }
  .reading .containers .footer {
    top: var(--height-big);
  }
  .chapters,
  .foot-notes {
    text-align: justify;
    background-color: var(--white);
    line-height: 2rem;
  }
  .chapters .footnote {
    cursor: pointer;
    text-decoration: none;
    vertical-align: super;
    font-size: 0.85rem;
  }
  .foot-notes {
    height: calc(var(--height-big) / 2;);
    overflow: scroll;
    padding: 1em;
  }
  .with-sub-chapters {
    padding: 0;
  } */
  
  /* #accordion-cover,
  #main-book,
  .containers,
  .book-cover,
  .book-content {
    height: 100%;
  }
  #accordion-cover {
    font-family: accordion-text-font;
    transition: all var(--anim-slow) ease;
  }
  #main-book {
    font-family: accordion-tex-font;
  }
  
  .book-cover {
    background: url(./Assets/book-cover.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-color: var(--accent-color-light);
  
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
  }
  .preview-button {
    height: 15%;
    width: 45%;
    max-height: 200px;
    max-width: 200px;
  
    display: flex;
    justify-content: center;
    align-items: center;
  
    cursor: pointer;
  }
  .variable-height-class {
    transform: translateY(-100%);
  }
  
  .content-library {
    height: 100%;
    width: 100%;
  
    position: relative;
  
    overflow: scroll;
  }
  .go-back > svg {
    transform: rotate(90deg);
    transition: all 0.5s ease;
    scale: 0.8;
    cursor: pointer;
  }
  .fixed > svg {
    transform: rotate(270deg);
  }
  .content-library,
  .accordion-item,
  .accordion-item .accordion-preview,
  .accordion-item .accordion-button {
    background-color: var(--white);
  }
  
  
  #main-book {
    font-family: book-text-font;
    z-index: 13;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 100%;
  
    transition: all var(--anim-slow) ease;
  }
  .slide-main-book-in {
    left: 0 !important;
  }
  
  
  @media (min-width: 800px) {
    /* body {
      background-color: var(--accent-color-light);
      background-image: url(./Assets/book-cover.jpg);
      background-position: center;
      background-size: cover;
      background-repeat: no-repeat;
    }
    body::after {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
      height: 100%;
      width: 100%;
      background-color: black;
      opacity: 0.7;
      z-index: -1;
    } 
    .large-device-console {
      max-height: var(--height-small-forbig);
      max-width: 800px;
      position: relative;
  
      /* border-radius: 10px; 
  
      box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.224);
    }
  
    .footer {
      height: calc(var(--height-small-forbig) / 2);
  
      top: calc(var(--height-small-forbig) - var(--header-heights));
    }
    .footer.open {
      top: calc(var(--height-small-forbig) / 2);
    }
    .go-back {
      top: var(--height-small-forbig);
    }
    .foot-notes {
      height: calc(var(--height-small-forbig) / 2;);
    }
  }
  @media (max-width: 450px) {
    html,
    body,
    .large-device-console {
      height: var(--height-small);
    }
    .footer {
      top: calc(var(--height-small) - var(--header-heights));
    }
    .footer.open {
      top: calc(var(--height-small) / 2);
    }
    .go-back {
      top: var(--height-small);
    }
    .foot-notes {
      height: calc(var(--height-small) / 2;);
    }
  } */
  