* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.book-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform .2s ease-in-out;
}

.book-wrapper.zoom {
    justify-content: center !important;
}

.book-wrapper .swiper-button-full__screen {
    position: static !important;
    transform: translate(0) !important;

}

.flip-inner {
    transition: transform .2s linear;
    /* transform: rotate(-5deg); */
    z-index: 8;
}

.flip-inner.zoom {
    transform: scale(1.3);
}



#flipbook .page {
    -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    -ms-box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    -o-box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background-color: rgb(240, 240, 240);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

#flipbook .magazine-viewport .page img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    margin: 0;
}

#flipbook .page.hard {
    background: rgb(245, 245, 245);
}

#flipbook2 .page {
    -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    -ms-box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    -o-box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background-color: rgb(240, 240, 240);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

#flipbook2 .magazine-viewport .page img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    margin: 0;
}

#flipbook2 .page.hard {
    background: rgb(245, 245, 245);
}

.animated {
    -webkit-transition: margin-left 0.5s, transform 0.3s;
    -moz-transition: margin-left 0.5s, transform 0.3s;
    -ms-transition: margin-left 0.5s, transform 0.3s;
    -o-transition: margin-left 0.5s, transform 0.3s;
    transition: margin-left 0.5s, transform 0.3s;
}

#flipbook .gradient {
    pointer-events: none;
}

#flipbook .even .gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    user-select: none;
    pointer-events: none;

    background: -webkit-gradient(linear, left top, right top, color-stop(0.95, rgb(255 255 255 / 0%)), color-stop(1, rgb(255 255 255 / 20%)));
    background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0) 95%, rgb(76 76 76 / 15%) 100%);
    background-image: -moz-linear-gradient(left, rgba(0, 0, 0, 0) 95%, rgb(76 76 76 / 15%) 100%);
    background-image: -ms-linear-gradient(left, rgba(0, 0, 0, 0) 95%, rgb(76 76 76 / 15%) 100%);
    background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0) 95%, rgb(76 76 76 / 15%) 100%);
    background-image: linear-gradient(left, rgba(0, 0, 0, 0) 95%, rgb(76 76 76 / 15%) 100%);
}

#flipbook .odd .gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: -webkit-gradient(linear, right top, left top, color-stop(0.95, rgba(0, 0, 0, 0)), color-stop(1, rgba(0, 0, 0, 0.15)));
    background-image: -webkit-linear-gradient(right, rgba(0, 0, 0, 0) 73%, rgba(0, 0, 0, 0.12) 100%);
    background-image: -moz-linear-gradient(right, rgba(0, 0, 0, 0) 73%, rgba(0, 0, 0, 0.12) 100%);
    background-image: -ms-linear-gradient(right, rgba(0, 0, 0, 0) 73%, rgba(0, 0, 0, 0.12) 100%);
    background-image: -o-linear-gradient(right, rgba(0, 0, 0, 0) 73%, rgba(0, 0, 0, 0.12) 100%);
    background-image: linear-gradient(right, rgba(0, 0, 0, 0) 73%, rgba(0, 0, 0, 0.12) 100%);
}

#flipbook .shadow {
    -webkit-transition: -webkit-box-shadow 0.5s;
    -moz-transition: -moz-box-shadow 0.5s;
    -o-transition: -webkit-box-shadow 0.5s;
    -ms-transition: -ms-box-shadow 0.5s;
    -webkit-box-shadow: -18px 9px 8px -6px rgb(0 0 0 / 26%);
    -moz-box-shadow: -18px 9px 8px -6px rgb(0 0 0 / 26%);
    -o-box-shadow: -18px 9px 8px -6px rgb(0 0 0 / 26%);
    -ms-box-shadow: -18px 9px 8px -6px rgb(0 0 0 / 26%);
    box-shadow: -18px 9px 8px -6px rgb(0 0 0 / 26%);
}

#flipbook .page canvas {
    width: 100%;
}

#flipbook2 .gradient {
    pointer-events: none;
}

#flipbook2 .even .gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    user-select: none;
    pointer-events: none;

    background: -webkit-gradient(linear, left top, right top, color-stop(0.95, rgb(255 255 255 / 0%)), color-stop(1, rgb(255 255 255 / 20%)));
    background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0) 95%, rgb(76 76 76 / 15%) 100%);
    background-image: -moz-linear-gradient(left, rgba(0, 0, 0, 0) 95%, rgb(76 76 76 / 15%) 100%);
    background-image: -ms-linear-gradient(left, rgba(0, 0, 0, 0) 95%, rgb(76 76 76 / 15%) 100%);
    background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0) 95%, rgb(76 76 76 / 15%) 100%);
    background-image: linear-gradient(left, rgba(0, 0, 0, 0) 95%, rgb(76 76 76 / 15%) 100%);
}

#flipbook2 .odd .gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: -webkit-gradient(linear, right top, left top, color-stop(0.95, rgba(0, 0, 0, 0)), color-stop(1, rgba(0, 0, 0, 0.15)));
    background-image: -webkit-linear-gradient(right, rgba(0, 0, 0, 0) 73%, rgba(0, 0, 0, 0.12) 100%);
    background-image: -moz-linear-gradient(right, rgba(0, 0, 0, 0) 73%, rgba(0, 0, 0, 0.12) 100%);
    background-image: -ms-linear-gradient(right, rgba(0, 0, 0, 0) 73%, rgba(0, 0, 0, 0.12) 100%);
    background-image: -o-linear-gradient(right, rgba(0, 0, 0, 0) 73%, rgba(0, 0, 0, 0.12) 100%);
    background-image: linear-gradient(right, rgba(0, 0, 0, 0) 73%, rgba(0, 0, 0, 0.12) 100%);
}

#flipbook2 .shadow {
    -webkit-transition: -webkit-box-shadow 0.5s;
    -moz-transition: -moz-box-shadow 0.5s;
    -o-transition: -webkit-box-shadow 0.5s;
    -ms-transition: -ms-box-shadow 0.5s;
    -webkit-box-shadow: -18px 9px 8px -6px rgb(0 0 0 / 26%);
    -moz-box-shadow: -18px 9px 8px -6px rgb(0 0 0 / 26%);
    -o-box-shadow: -18px 9px 8px -6px rgb(0 0 0 / 26%);
    -ms-box-shadow: -18px 9px 8px -6px rgb(0 0 0 / 26%);
    box-shadow: -18px 9px 8px -6px rgb(0 0 0 / 26%);
}

#flipbook2 .page canvas {
    width: 100%;
}

.flip-btn {
    position: relative;
    height: 500px;
    width: 30px;
    background: none;
    border: none;
    z-index: 9;
    cursor: pointer;
}

.flip-btn:focus {
    outline: none;
}


#flipbook {
    width: 826px;
    height: 585px;

}

#flipbook2 {
    width: 826px;
    height: 585px;

}


.book-wrapper:has(#flipbook[style="position: relative; width: 1076px; height: 759px; margin-left: 538px;"]) #prevBtn {
    left: 560px;
}

.book-wrapper:has(#flipbook[style="position: relative; width: 1076px; height: 759px; margin-left: 538px;"]) #nextBtn {
    right: 560px;
}

.book-wrapper:has(#flipbook2[style="position: relative; width: 1076px; height: 759px; margin-left: 538px;"]) #prevBtn {
    left: 560px;
}

.book-wrapper:has(#flipbook2[style="position: relative; width: 1076px; height: 759px; margin-left: 538px;"]) #nextBtn {
    right: 560px;
}

.book-wrapper .close-btn {
    position: absolute;
    right: 0;
    top: 0;
    transform: translate(50%, -50%);
    z-index: 99;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: none;
}

.book-wrapper .close-btn img {
    width: 100%;
    height: auto;
}

.swiper-button-next__customized {
    position: absolute;
    right: -40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 1000;
    outline: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.swiper-button-prev__customized {
    position: absolute;
    left: -40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 1000;
    outline: none;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.swiper-button-prev__customized.swiper-button-disabled,.swiper-button-next__customized.swiper-button-disabled {
    opacity: .3;
}

.swiper-button-next__customized .swiper-button-next__customized-line {
    background-color: #fff;
    width: 20px ;
    height: 3px;
    transform: translateX(50%);
    transform: rotate(-45deg);
    transform-origin: right;
    border-radius: 999px;
    position: relative;
    bottom: 4px;
}

.swiper-button-prev__customized .swiper-button-prev__customized-line {
    background-color: #fff;
    width: 20px ;
    height: 3px;
    transform: translateX(50%);
    transform: rotate(45deg);
    transform-origin: left;
    border-radius: 999px;
    position: relative;
    bottom: 4px;
}

.swiper-button-next__customized .swiper-button-next__customized-line:nth-child(1) {
    transform: rotate(45deg);
    bottom: -1px;
}

.swiper-button-prev__customized .swiper-button-prev__customized-line:nth-child(1) {
    transform: rotate(-45deg);
    bottom: -1px;
}

.swiper-button-full__screen {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    position: absolute;
    bottom: -40px;
    right: 50%;
    transform: translate(75%, 50%);

}

.swiper-button-full__screen button {
    background: transparent;
    outline: none;
    border: 0;
    cursor: pointer;
}

.swiper-button-full__screen button svg {
    font-size: 1.8em;
}
