:root {
   --book-height: 100vh;
   --book-width: 1000px;
   --e-global-color-primary: #016d38;
   --e-global-color-secondary: #016d38;
   --e-global-color-text: #212121;
   --e-global-color-accent: #004779;
   --e-global-color-ef4a463: #7d6b4f;
   --e-global-color-115fe4b: #FFFFFF;
   --e-global-color-2189ebb: #999999;
   --e-global-color-762f4f4: #00EDFF;
   --e-global-color-35fdcfb: #BDBDBD;
   --e-global-color-40478e7: #757575;
   --e-global-color-dc91e3b: #1FAE98;
   --e-global-color-0aa9de4: #EEEEEE;
   --e-global-color-0b60878: #E4E4E4;
   --e-global-color-25e7c52: #CEE2F0;
}

.book {
   transition: opacity 0.4s 0.2s;
   perspective: 250vw;
   /* margin-top: 40px; */
   margin-bottom: 40px;

   -webkit-user-select: none;
   -moz-user-select: none;
   -ms-user-select: none;
   user-select: none;
}

@media (max-width: 767px) {
   .book {
      margin-bottom: 0;
   }
}

.book .pages {
   min-height: var(--book-height);
   max-width: var(--book-width);
   width: 100%;
   margin-left: auto;
   margin-right: auto;
   position: relative;
   transform-style: preserve-3d;
   backface-visibility: hidden;
   border-radius: 4px;
}

.book .page {
   float: none;
   clear: none;
   margin: 0;
   position: absolute;
   top: 0;
   width: 50%;
   height: var(--book-height);
   min-height: 450px;
   max-height: 550px;
   transform-origin: 0 0;
   transition: transform 1.4s;
   backface-visibility: hidden;
   transform-style: preserve-3d;
   cursor: pointer;
   user-select: none;
   background-color: #d9d9d9;
}


@media (min-width: 768px) {
   :root {
      --book-height: 550px;
   }
}

@media (max-width: 660px) {
   .book .page {
      transform-origin: 0 100%;
      top: 0;
      height: 50%;
      min-height: auto;
      width: 100%;
   }
}

.book .page:nth-child(odd):before,
.book .page:nth-child(even):before {
      content: "";
    position: absolute;
    left: 30px;
    top: 30px;
    right: 30px;
    bottom: 30px;

}

.book .page:nth-child(even):before {
   /* border: 1px dashed #fff; */
}

.page:nth-child(even) {
   clear: both;
}

.book .page:nth-child(odd) {
   pointer-events: all;
   transform: rotateY(0deg);
   right: 0;
   border-radius: 0 4px 4px 0;
   background-image: linear-gradient(to right, rgba(0, 0, 0, 0.1) 0%, rgb(250 250 250 / 0.8) 10%);
   filter: drop-shadow(3px 3px 3px rgba(0, 0, 0, 0.02));
}

/* .book .page:nth-child(odd)>div{
   background-image: linear-gradient(to right, rgba(0, 0, 0, 0.2) 0%, rgb(250 250 250 / 80%) 10%),
   url(../img/bg-body.svg);
} */

@media (max-width: 660px) {
   .book .page:nth-child(odd) {
      transform: rotateX(0deg);
      border-radius: 0 0 4px 4px;
      background-image: linear-gradient(to top, rgba(0, 0, 0, 0.1) 0%, rgb(250 250 250 / 0.8) 10%);
   }

}

.book .page:nth-child(odd):hover {
   transform: rotateY(-15deg);
}

@media (max-width: 660px) {
   .book .page:nth-child(odd):hover {
      transform: rotateX(-15deg);
   }
}

.book .page:nth-child(even) {
   pointer-events: none;
   transform: rotateY(180deg);
   transform-origin: 100% 0;
   left: 0;
   border-radius: 4px 0 0 4px;
   border-color: black;

}

@media (max-width: 660px) {
   .book .page:nth-child(even) {
      transform: rotateX(180deg);
      transform-origin: 0 0;
      top: auto;
      bottom: 0;
      border-radius: 4px 4px 0 0;
      background-image: linear-gradient(to bottom, rgba(0, 0, 0, .12) 0%, rgb(250 250 250 / 0) 10%);
   }
}

.book .page.grabbing {
   transition: none;
}

.book .page.flipped:nth-child(odd) {
   pointer-events: none;
   transform: rotateY(-180deg);
}

@media (max-width: 660px) {
   .book .page.flipped:nth-child(odd) {
      transform: rotateX(-180deg);
   }
}

.book .page.flipped:nth-child(even) {
   pointer-events: all;
   transform: rotateY(0deg);
}

@media (max-width: 660px) {
   .book .page.flipped:nth-child(even) {
      transform: rotateX(0deg);
   }
}

.book .page.flipped:nth-child(even):hover {
   transform: rotateY(15deg);
}

@media (max-width: 660px) {
   .book .page.flipped:nth-child(even):hover {
      transform: rotateX(15deg);
   }
}

.page:nth-child(odd) {
   background-position: right top;
}

.custom {
   height: 100%;
   padding: 10px;
   position: relative;
}

.custom img {
   border-radius: 5px;
}

.custom img.mix {
   mix-blend-mode: multiply;
}

.mt-1 {
   margin-top: 10px;
}

.mt-2 {
   margin-top: 20px;
}

.mb-1 {
   margin-bottom: 10px;
}

.mb-2 {
   margin-bottom: 20px;
}

img.sz0 {
   max-width: 200px;
   width: 100%;
}

img.szxs {
   max-width: 90%;
   width: 100%;
}

img.sz1 {
   max-width: 345px;
   width: 100%;
}

img.sz2 {
   max-width: 300px;
   width: 100%;
}

img.sz2-5 {
   max-width: 350px;
   width: 100%;
}

img.sz3 {
   max-width: 380px;
   width: 100%;
   margin-bottom: 10px;
}

.footerImg {
   font-weight: bold;
   text-align: center;
   font-style: italic;
   font-size: 0.8rem;
   line-height: 1.2;
}

.custom img.fondo {
   max-width: 100%;
   max-height: 100%;
   mix-blend-mode: multiply;
   position: absolute;
   height: 100%;
   width: 100%;
   object-fit: cover;
   object-position: center center;
}

.custom span.fuente {
   position: absolute;
   bottom: 0;
   background: #757575;
   width: 100%;
   text-align: center;
   color: #ffffff;
   font-style: italic;
   font-size: 14px;
   padding: 2px;
}

.textContainer {
   /* position: absolute; */
   padding: 15px  30px;
   height: calc(100% - 40px);
   /* top: 5%; */
   overflow-y: auto;
   width: 100%;
   /* left: 5%; */
   display: flex;
   align-items: center;
   justify-content:center;
   flex-direction: column;
}



@media (max-width: 767px) {
   .textContainer {
      padding: 20px 15px;
   }
}

/*.longText{
   overflow-y: scroll;
   width: 90%;
   left: 5%;
}*/

/*Scrollbar styles*/
.textContainer::-webkit-scrollbar {
   width: 8px;
   /* Tamaño del scroll en vertical */
   height: 8px;
   /* Tamaño del scroll en horizontal */
   right: 10px;
   /*display: none;  /* Ocultar scroll */
}

.textContainer::-webkit-scrollbar-thumb {
   border-radius: 4px;
   background: rgba(255, 255, 255, .3);
}

.textContainer::-webkit-scrollbar-thumb:hover {
   background: rgba(255, 255, 255, .7);
   box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2);
}

.textContainer::-webkit-scrollbar-thumb:active {
   background-color: #ffffff;
}

/* Ponemos un color de fondo y redondeamos las esquinas del track */
.textContainer::-webkit-scrollbar-track {
   background: rgba(0, 0, 0, 0.3);
   ;
   border-radius: 4px;
}

/* Cambiamos el fondo cuando esté en active o hover */
/*.textContainer::-webkit-scrollbar-track:hover,
.textContainer::-webkit-scrollbar-track:active {
   background: rgb(255, 255, 255);
}*/
/*Scrollbar styles*/

.textpag {
    margin-bottom: 10px;
    width: 100%;
    font-size: 12px;
    color: #000;
    text-align: right;
}

.textpag1 {
    margin-bottom: 10px;
    width: 100%;
    font-size: 12px;
    color: #ffffff;
    text-align: right;
}

.textBook {
   margin-bottom: 10px;
   width: 100%;
}

.textBook,
.textContainer ol li {
   font-size: 20px;
   /*color: #fff;*/
   text-align: left;
   line-height: 1.2;
   text-shadow: 4px 3px 2px rgba(0, 0, 0, .1);
}

.textContainer ol li {
   text-align: left;
}

.textContainer ol {
   margin-bottom: 0;
   margin-left: -1rem;
}

.textContainer h3 {
   width: 100%;
   text-align: center;
}

/*.longText{
   font-size: 14px;
}*/
/* 
@media (max-width: 992px) {

   .textBook,
   .textContainer ol li {
      font-size: 23px;
   }
}

@media (max-width: 660px) {

   .textBook,
   .textContainer ol li {
      font-size: 22px;
      margin-bottom: 0;
   }
} */

@media (max-width: 576px) {

   .textBook {
      font-size: 18px;
      line-height: 1.2;
   }

   .textContainer ol li {
      font-size: 18px;
      line-height: 1.2;
   }
}

.pageno {
   top: 0;
   position: absolute;
   width: 50%;
   height: var(--book-height);
   display: flex;
   flex-direction: column;
   justify-content: flex-end;
   align-items: center;
   font-size: 1rem;
}

.custom.coverPage__portada,
.coverPage__contraportada {
   display: flex;
   flex-flow: column;
   /* justify-content: space-evenly; */
   background-image: url(../../img/libro/fondo.png);
   background-size: auto 100%;
   background-position: bottom right;
   background-repeat: no-repeat;
   justify-content: center;
   align-items: center;
}

.custom.coverPage__portada h2 {
    margin: 0;
   text-align: center;
    font-weight: bold;
    margin: 5px 60px;
    margin-bottom: 280px;
    padding: 10px 29px;
    color: #016d38;
    font-size: 38px;
    display: inline-block;
    /* font-style: italic; */
    line-height: 1;
    /* text-shadow: 2px 2px 0 #828282; */
    background: #fadc5dc9;
    border-radius: 10px;
}

.custom.coverPage__portada img {
   max-width: 100%;
}

.custom.coverPage__portada img.tituloRedi {
   margin-top: 10px;
}

@media (max-width:660px) {
   .custom.coverPage__portada img {
      max-height: 60%;
   }

   .custom.coverPage__portada h2 {
      font-size: 30px;
      max-width: max-content;
      border-radius: 10px;
      padding: 5px;
   }

   .custom.coverPage__portada img.tituloRedi {
      margin-top: 0;
      max-width: 200px;
   }
}



.coverPage {
   background-image: url(../../img/libro/bg-body.svg);
   background-repeat: repeat;
   /*background-position: left top;*/
   background-size: 500px;
   background-blend-mode: multiply;
}

.coverPage1 {
   background-color: #FADC5D;

}

.coverPage2 {
   background-color: #016D38;
   color: #fff;
}

.reinit {
   background-color: #FADC5D;
   border: none;
   padding: 10px;
   border-radius: 7px;
   color: #016D38;
   font-size: 25px;
   font-weight: bold;
   margin-top: 50px;
}

.reinit img {
   width: 40px;
   margin-right: 10px;
}


.referencias {
   padding: 20px;
   text-align: center;
   background: rgba(255, 255, 255, 0.2);
   border-radius: 10px;
   margin-top: 20px;
}

.referencias p {
   margin-bottom: 10px;
   font-weight: bold;
   font-size: 18px;
}

.referencias span {
   display: block;
   font-size: 16px;
   text-align: left;
}

.book .page:nth-child(even) .textContainer {
   height: 100%;
   justify-content: space-evenly;
}

@media (max-width: 1080px) {
   .book .page:nth-child(even) .textContainer {
      justify-content: flex-start;
   }
}

.navegacion__audio__libro {
   position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 5px 10px;
    max-width: 95%;
    margin: 10px;
    border-radius: 20px;
    border: solid 2px #016d38;
}

.navegacion__audio__libro audio {
   width: 100%;
   height: 25px;
   border-radius: 2rem;
   display: flex;
   margin: 0 auto;
}