body {display: flex; flex-direction: column; height: 99.9dvh; overflow: hidden; background-color: #1F1F1F;touch-action: pan-y;}
.container {position: relative; flex-grow: 1; display: flex; align-items: center; justify-content: center;}
.bookBox { display: flex; align-items: center; justify-content: center; flex-direction: column; height: calc(100dvh - 45px); padding: 35px 0 55px;}
#flipbook { opacity: 0; height: 100%; margin-left: -43%!important; aspect-ratio: auto 4/2.83 !important; background-color: #1F1F1F; z-index: 1; -webkit-transition:margin-left 0.2s ease-in-out; -moz-transition:margin-left 0.2s ease-in-out; -o-transition:margin-left 0.2s ease-in-out; -ms-transition:margin-left 0.2s ease-in-out; transition:margin-left 0.2s ease-in-out;}
#flipbook.load {animation: opacity .3s .3s;animation-fill-mode: forwards; }
#flipbook.start {margin-left: 0 !important;}
#flipbook.end {margin-left: 50% !important;}

.page-wrapper {width: 50% !important; height: 100% !important;}
.page-wrapper > div {height: 100%;}

#flipbook .hard {height: 100%;background-color: white;}
#flipbook .hard img {width: 100%;}
#flipbook .page { height: 100%; background-color: white;}
#flipbook .page img {width: 100%;}

#flipbook .hard .left-page-overlay::after {content: ''; position: absolute; width: 100%; height: 100%; top: 0; left: 0; background:linear-gradient(90deg, rgba(0, 0, 0, 0) 68.55%, rgb(0 0 0 / 20%) 97.76%, rgb(0 0 0 / 53%) 100%)}
#flipbook .hard .right-page-overlay::after {content: ''; position: absolute; width: 100%; height: 100%; top: 0; left: 0; background:linear-gradient(270deg, rgba(0, 0, 0, 0) 68.55%, rgb(0 0 0 / 20%) 97.76%, rgb(0 0 0 / 53%) 100%)}

#flipbook .hard.pageinner .left-page-overlay::after {content: ''; position: absolute; width: 100%; height: 100%; top: 0; left: 0; background:linear-gradient(90deg, rgba(0, 0, 0, 0) 96%, rgb(0 0 0 / 14%) 101%)}
#flipbook .hard.pageinner .right-page-overlay::after {content: ''; position: absolute; width: 100%; height: 100%; top: 0; left: 0; background:linear-gradient(270deg, rgba(0, 0, 0, 0) 96%, rgb(0 0 0 / 14%) 101%)}

#flipbook .shadow {transition: 0.3s;box-shadow:0 0 20px #888;}

@keyframes opacity {
    0% {opacity: 0;}
    100% {opacity: 1;}
}


.left-page-overlay,
.right-page-overlay { position: absolute; width: 100%; height: 100%; z-index: 1; pointer-events: none;}
.left-page-overlay::after {content: ''; position: absolute; width: 100%; height: 100%; top: 0; left: 0; background:linear-gradient(90deg, rgba(0, 0, 0, 0) 96%, rgb(0 0 0 / 14%) 101%)}
.right-page-overlay::after {content: ''; position: absolute; width: 100%; height: 100%; top: 0; left: 0; background:linear-gradient(270deg, rgba(0, 0, 0, 0) 96%, rgb(0 0 0 / 14%) 101%)}

.sideNav {position: absolute; top: 0; left: -100%; transition: left .3s; width: 150px; height: calc(100dvh - 45px); padding: 50px 25px; background-color: #000000; z-index: 10;}
.sideNav .swiper { width: 100%; height: 100%; }
.sideNav .swiper-slide {width: 100%; height: 100%; color: white;}
.sideNav .swiper-slide img {width: 100%; height: 100%; object-fit: contain;}
.sideNav .swiper-slide span {display: block; text-align: center; margin-top: 5px; font-size: 14px; font-weight: 300; color: white;}
.sideNav .swiper-slide-active .imgBox {position: relative;}
.sideNav .swiper-slide-active .imgBox::after {content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 6px solid #284E80;}
.sideNav .swiper-button-next, 
.sideNav .swiper-button-prev {width: 20px; height: 20px; margin-top: 0; background-position: center center; background-repeat: no-repeat; background-size: 100% 100%;}
.sideNav .swiper-button-next { top: auto; bottom: 17px; right: 36%; background-image: url(/historika_arv/img/ico_next.png); transform: rotate(180deg) translateX(50%); }
.sideNav .swiper-button-prev { top: 17px; left: 50%; background-image: url(/historika_arv/img/ico_next.png); transform: translateX(-50%); }
.sideNav .swiper-button-next:after, 
.sideNav .swiper-button-prev:after {display: none;}
.sideNav.on {left: 0;}

.bottom {display: flex; align-items: center; justify-content: space-between; height: 45px; padding: 0 20px; background-color: #000000;}
.bottom .left {display: flex; align-items: center;}
.bottom .left .ham {margin-right: 20px; width: 27px; height: 27px; background: url(/historika_arv/img/ico_ham.png) no-repeat center center / 100%;}
.bottom .left .ham.on {background-image: url(/historika_arv/img/ico_close.png);}
.bottom .left p { font-size: 15px; font-weight: 300; font-family: 'VolvoAntikva'; color: white;}
.bottom .right {font-size: 15px; color: white;}
.bottom .right span {color: white;}



/* Overlays */
.turnjs-slider {width:775px;height:10px;background:rgba(225,225,225, 0.15);border-radius:30px;margin:18px auto 0;}
.turnjs-slider .ui-slider-handle{position: absolute;z-index:0;width:80px;height: 10px;cursor: default;border-radius:5px;background-color:white;display:block;}
.turnjs-slider .ui-widget-overlay {position: absolute;top: 0;left: 0;width: 100%;height: 100%;}
.turnjs-slider .ui-slider {position: relative;text-align: left;}
.turnjs-slider .ui-slider-horizontal {height: 10px;width:695px;margin-left:39px;}
.turnjs-slider .ui-slider-horizontal .ui-slider-handle {margin-left:-40px;margin-top:-1px;}
.turnjs-slider .thumbnail {width:115px;height:80px;position:absolute;background:rgba(0,0,0, 0.5);z-index:10000;top:-100px;left:-17px;display:none;transform:translate3d(0px, 50px, 0px) scale(0.1, 0.1);transition:all 0.2s;border-radius:5px;}
.turnjs-slider .thumbnail div{width:100px;margin:7px;height:73px;background-color:black; background-repeat: no-repeat; background-size: 110px auto;}
.turnjs-slider .ui-state-hover .thumbnail{display:block;opacity:0;}
.turnjs-slider .ui-state-active .thumbnail{display:block;opacity:1;transform:scale(1, 1);}


@media (min-width:2000px) {
    #flipbook {margin-left: -30.5vw !important;}
}

@media (max-width:900px) {
    .bookBox { height: 80vw !important;}
    #flipbook {height: 100% !important; margin-left: -48vw !important;}
    #flipbook.end {margin-left: 48vw !important;}
    #flipbook .shadow {height: 100% !important;}
    
    .turnjs-slider {width: 500px;}
    .turnjs-slider .ui-slider-horizontal {width: 420px;}
}

























