
.d-flex {
    display: flex;
}

.justify-content-center {
    justify-content: center;
}

.align-content-center {
    align-items: center;
}

.book {
    width: 300px;
    height: 300px;
    background-image: url("../images/1.jpg");
    background-position: center;
    background-size: cover;
}

.book:hover {
    animation-name: book!important;
    animation-duration: .3s!important;
    animation-direction: alternate!important;
    -webkit-animation-fill-mode: forwards!important;
    animation-fill-mode: forwards!important;
    -moz-animation-fill-mode: forwards!important;
    -o-animation-fill-mode: forwards!important;
}

.book2 {
    width: 340px;
    height: 411px;
    background-image: url("../images/1.jpg");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    animation-name: book2;
    animation-duration: .3s;
    animation-direction: alternate;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
    -moz-animation-fill-mode: forwards;
    -o-animation-fill-mode: forwards;
}
.depreze{
    pointer-events: none;
}
.pages.active{
    background-color: #dcdcdc;
    width: 100vw;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 100px;
    transition: background-color 3s;
}
.pages-book.active .close{
    width: 30px;
    height: 30px;
    position: absolute;
    right: 20px;
    top: 20px;
    transition: height 3s, width 3s;
    z-index: 1;
    opacity: 0.5;
}
.close{
    width: 0;
    height: 0;
}
.page {
    width: 300px;
    height: 400px;
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.page img {
    width: 100%;
}

.view {
    width: 500px;
    height: 400px;
    margin: 10px;
    float: left;
    top: -8px;
    left: 86px;
    transform: scale(1.15);
    position: relative;
    /* box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05); */
    -webkit-perspective: 500px;
    -moz-perspective: 500px;
    -o-perspective: 500px;
    -ms-perspective: 500px;
    perspective: 500px;
}

.view .slice {
    width: 60px;
    height: 100%;
    z-index: 100;
    border-left: none;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -o-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;

    -webkit-transform-origin: left center;
    -moz-transform-origin: left center;
    -o-transform-origin: left center;
    -ms-transform-origin: left center;
    transform-origin: left center;

    -webkit-transition: -webkit-transform 150ms ease-in-out;
    -moz-transition: -moz-transform 150ms ease-in-out;
    -o-transition: -o-transform 150ms ease-in-out;
    -ms-transition: -ms-transform 150ms ease-in-out;
    transition: transform 150ms ease-in-out;

    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -o-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;

}

.view div.view-back {
    width: 50%;
    height: 100%;
    position: absolute;
    right: 0;
    background: #666;
    z-index: 0;
}

.view-back span {
    display: block;
    float: right;
    padding: 5px 20px 5px;
    width: 100%;
    text-align: right;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.view-back span:first-child {
    padding-top: 20px;
}

.view-back a {
    display: block;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.4);
    position: absolute;
    right: 15px;
    bottom: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 22px;
    text-align: center;
    font-weight: 700;
}

.view-back a:hover {
    color: #fff;
    border-color: #fff;
}

.view-back span[data-icon]:before {
    content: attr(data-icon);
    font-family: 'icons';
    color: #aaa;
    color: rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.2);
    padding-right: 5px;
}

.view .s2,
.view .s3,
.view .s4,
.view .s5 {
    -webkit-transform: translate3d(60px, 0, 0);
    -moz-transform: translate3d(60px, 0, 0);
    -o-transform: translate3d(60px, 0, 0);
    -ms-transform: translate3d(60px, 0, 0);
    transform: translate3d(59px, 0, 0);
}

.view .s1 {
    background-position: 0px 0px;
    box-shadow: -4px 6px 5px -2px rgba(0, 0, 0, 0.05);
}

.view .s2 {
    background-position: -60px 0px;
}

.view .s3 {
    background-position: -120px 0px;
}

.view .s4 {
    background-position: -180px 0px;
}

.view .s5 {
    background-position: -240px 0px;
    box-shadow: 4px 6px 5px -2px rgba(0, 0, 0, 0.05);
}

.view .overlay {
    width: 60px;
    height: 100%;
    opacity: 0;
    position: absolute;
    -webkit-transition: opacity 150ms ease-in-out;
    -moz-transition: opacity 150ms ease-in-out;
    -o-transition: opacity 150ms ease-in-out;
    -ms-transition: opacity 150ms ease-in-out;
    transition: opacity 150ms ease-in-out;
}

.view:hover .overlay {
    opacity: 1;
}

.view img {
    position: absolute;
    z-index: 0;
    -webkit-transition: left 0.3s ease-in-out;
    -o-transition: left 0.3s ease-in-out;
    -moz-transition: left 0.3s ease-in-out;
    -ms-transition: left 0.3s ease-in-out;
    transition: left 0.3s ease-in-out;
}


.view {
    -webkit-perspective: 800px;
    -moz-perspective: 800px;
    -o-perspective: 800px;
    -ms-perspective: 800px;
    perspective: 800px;
}

.view .slice {
    -webkit-backface-visibility: visible;
    -moz-backface-visibility: visible;
    -o-backface-visibility: visible;
    -ms-backface-visibility: visible;
    backface-visibility: visible;
}

/*.view:hover*/
.s11 {
    animation: mymove1 1.8s forwards;
    transition: all 1.5s ease-in-out;
}

/*.view:hover */
.s22 {
    animation: mymove2 1.6s forwards;
    transition: all 1.5s ease-in-out;
}

/*.view:hover*/
.s33 {
    animation: mymove3 1.4s forwards;
    transition: all 1.5s ease-in-out;

}

/*.view:hover*/
.s44 {
    animation: mymove4 1.2s forwards;
    transition: all 1.5s ease-in-out;
}

/*.view:hover */
.s55 {
    animation: mymove5 1s forwards;
    transition: all 1.5s ease-in-out;

}

.view-hover {
    padding-left: 215px;
    transition: all 1s ease-in-out;
    z-index: 1;
    opacity: 1;
}
.book .view-hover:first-of-type {
    padding-left: 0;
    padding-right: 10px;
    transform: scale(0.90);
}
.book .view-hover:nth-child(2) {
    padding-left: 105px;
    transform: scale(0.95);
}

@keyframes mymove1 {
    0% {
        -webkit-transform: translate3d(60px, 0, 0);
        -moz-transform: translate3d(60px, 0, 0);
        -o-transform: translate3d(60px, 0, 0);
        -ms-transform: translate3d(60px, 0, 0);
        transform: translate3d(60px, 0, 0);
    }

    100% {
        -webkit-transform: translate3d(60px, 0, 0) rotate3d(0, 1, 0, -180deg);
        -moz-transform: translate3d(60px, 0, 0) rotate3d(0, 1, 0, -180deg);
        -o-transform: translate3d(60px, 0, 0) rotate3d(0, 1, 0, -180deg);
        -ms-transform: translate3d(60px, 0, 0) rotate3d(0, 1, 0, -180deg);
        transform: translate3d(60px, 0, 0) rotate3d(0, 1, 0, -180deg);
    }
}

@keyframes mymove2 {
    0% {
        -webkit-transform: translate3d(60px, 0, 0);
        -moz-transform: translate3d(60px, 0, 0);
        -o-transform: translate3d(60px, 0, 0);
        -ms-transform: translate3d(60px, 0, 0);
        transform: translate3d(60px, 0, 0);
    }
    25% {


        -webkit-transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, -25deg);
        -moz-transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, -25deg);
        -o-transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, -25deg);
        -ms-transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, -25deg);
        transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, -25deg);
    }


    100% {
        /* -webkit-transition-delay: 50ms;
         -moz-transition-delay: 50ms;
         -o-transition-delay: 50ms;
         -ms-transition-delay: 50ms;
         transition-delay: 50ms;*/
        -webkit-transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, -5deg);
        -moz-transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, -5deg);
        -o-transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, -5deg);
        -ms-transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, -5deg);
        transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, 0deg);
    }

}


@keyframes mymove3 {
    0% {
        -webkit-transform: translate3d(60px, 0, 0);
        -moz-transform: translate3d(60px, 0, 0);
        -o-transform: translate3d(60px, 0, 0);
        -ms-transform: translate3d(60px, 0, 0);
        transform: translate3d(60px, 0, 0);
    }
    25% {
        -webkit-transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, -25deg);
        -moz-transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, -25deg);
        -o-transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, -25deg);
        -ms-transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, -25deg);
        transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, -25deg);
    }


    100% {
        /*  -webkit-transition-delay: 10ms;
          -moz-transition-delay: 10ms;
          -o-transition-delay: 10ms;
          -ms-transition-delay: 100ms;
          transition-delay: 100ms;*/
        -webkit-transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, 10deg);
        -moz-transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, 10deg);
        -o-transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, 10deg);
        -ms-transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, 10deg);
        transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, 1deg);
    }
}

@keyframes mymove4 {
    0% {
        -webkit-transform: translate3d(60px, 0, 0);
        -moz-transform: translate3d(60px, 0, 0);
        -o-transform: translate3d(60px, 0, 0);
        -ms-transform: translate3d(60px, 0, 0);
        transform: translate3d(60px, 0, 0);
    }
    25% {

        -webkit-transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, -15deg);
        -moz-transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, -15deg);
        -o-transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, -15deg);
        -ms-transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, -15deg);
        transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, -15deg);
    }


    100% {
        /* -webkit-transition-delay: 200ms;
         -moz-transition-delay: 200ms;
         -o-transition-delay: 150ms;
         -ms-transition-delay: 200ms;
         transition-delay: 200ms;*/

        -webkit-transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, 0deg);
        -moz-transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, 0deg);
        -o-transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, 0deg);
        -ms-transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, 0deg);
        transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, 0deg);
    }

}

@keyframes mymove5 {
    0% {
        -webkit-transform: translate3d(60px, 0, 0) rotate3d(0, 1, 0, -40deg);;
        -moz-transform: translate3d(60px, 0, 0) rotate3d(0, 1, 0, -40deg);;
        -o-transform: translate3d(60px, 0, 0) rotate3d(0, 1, 0, -40deg);;
        -ms-transform: translate3d(60px, 0, 0) rotate3d(0, 1, 0, -40deg);;
        transform: translate3d(60px, 0, 0) rotate3d(0, 1, 0, -40deg);;
    }
    25% {
        -webkit-transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, -20deg);
        -moz-transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, -20deg);
        -o-transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, 20deg);
        -ms-transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, -20deg);
        transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, -20deg);
    }


    100% {
        /* -webkit-transition-delay: 200ms;
         -moz-transition-delay: 200ms;
         -o-transition-delay: 200ms;
         -ms-transition-delay: 200ms;
         transition-delay: 200ms;*/
        -webkit-transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, -5deg);
        -moz-transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, -5deg);
        -o-transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, -5deg);
        -ms-transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, -5deg);
        transform: translate3d(59px, 0, 0) rotate3d(0, 1, 0, 0deg);
    }

}

/*@-webkit-keyframes flip-2-ver-right-fwd {
	0% {
		-webkit-transform: translateX(0) translateZ(0) rotateY(0);
		transform: translateX(0) translateZ(0) rotateY(0);
		-webkit-transform-origin: 100% 50%;
		transform-origin: 100% 50%;
	}
	100% {
		-webkit-transform: translateX(100%) translateZ(160px) rotateY(180deg);
		transform: translateX(100%) translateZ(160px) rotateY(180deg);
		-webkit-transform-origin: 0% 50%;
		transform-origin: 0% 50%;
	}
}*/
@keyframes book {
    0% {
        background-image: url("../images/1.png");
    }
    7.7% {
        background-image: url("../images/1a.png");
    }
    15.4% {
        background-image: url("../images/2.png");
    }
    23.1% {
        background-image: url("../images/2a.png");
    }
    30.8% {
        background-image: url("../images/3.png");
    }
    38.5% {
        background-image: url("../images/3a.png");
    }
    46.2% {
        background-image: url("../images/4.png");
    }
    53.9% {
        background-image: url("../images/4a.png");
    }
    61.6% {
        background-image: url("../images/5.png");
    }
    69.3% {
        background-image: url("../images/5a.png");
    }
    77% {
        background-image: url("../images/6.png");
    }
    84.7% {
        background-image: url("../images/6a.png");
    }
    100% {
        background-image: url("../images/7.png");
    }
}

@keyframes book2 {
    0% {
        background-image: url("../images/7.png");
    }
    7.7% {
        background-image: url("../images/6a.png");
    }
    15.4% {
        background-image: url("../images/6.png");
    }
    23.1% {
        background-image: url("../images/5a.png");
    }
    30.8% {
        background-image: url("../images/5.png");
    }
    38.5% {
        background-image: url("../images/4a.png");
    }
    46.2% {
        background-image: url("../images/4.png");
    }
    53.9% {
        background-image: url("../images/3a.png");
    }
    61.6% {
        background-image: url("../images/3.png");
    }
    69.3% {
        background-image: url("../images/2a.png");
    }
    77% {
        background-image: url("../images/2.png");
    }
    84.7% {
        background-image: url("../images/1a.png");
    }
    100% {
        background-image: url("../images/1.png");
    }
}

.flip-card-back{
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
}

.flip-card-back .view {
    position: absolute;
    transform: rotateY(180deg) scale(1.15);
    left: -479px;
    top: -9px;
}
.flip-card-1 {
    width: 60px;
    height: 100%;
    position: absolute;
    background-position: -240px 0px;
    transform: scaleX(-1);
}
.flip-card-2{
    width: 60px;
    height: 100%;
    position: absolute;
    background-position: -180px 0px;
    transform: scaleX(-1);
}
.flip-card-3{
    width: 60px;
    height: 100%;
    position: absolute;
    background-position: -120px 0px;
    transform: scaleX(-1);
}

.flip-card-4{
    width: 60px;
    height: 100%;
    position: absolute;
    transform: scaleX(-1);
    background-position: -60px 0px;
}
.flip-card-5{
    width: 60px;
    height: 100%;
    position: absolute;
    transform: scaleX(-1);
    background-position: 0px 0px;
}


.swiper-container {
    width: 100%;
    height: 100%;
}
.swiper-container2 {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;

    /* Center slide text vertically */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}