﻿.se-pre-con {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: block;
    /*background: url(/assets/themes/img/loading.gif) center no-repeat #fff;*/
    /*background-size: 128px 128px !important;*/
}

.book {
    top: 50%;
    transform: translateY(-50%);
    position: relative;
    margin: 0 auto;
    border: 5px solid #ecf0f1;
    width: 100px;
    height: 60px;
}

.book__page {
    position: absolute;
    left: 50%;
    top: -5px;
    margin: 0 auto;
    border-top: 5px solid #ecf0f1;
    border-bottom: 5px solid #ecf0f1;
    border-right: 5px solid #ecf0f1;
    background: #3498db;
    width: 50px;
    height: 60px;
    transform-origin: 0% 50%;
    -webkit-animation: flip 1.2s infinite linear;
    animation: flip 1.2s infinite linear;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

    .book__page:nth-child(1) {
        z-index: -1;
        -webkit-animation-delay: 0.2s;
        animation-delay: 0.2s;
    }

    .book__page:nth-child(2) {
        z-index: -2;
        -webkit-animation-delay: 0.4s;
        animation-delay: 0.4s;
    }

    .book__page:nth-child(3) {
        z-index: -3;
        -webkit-animation-delay: 0.8s;
        animation-delay: 0.8s;
    }

@-webkit-keyframes flip {
    0% {
        transform: perspective(600px) rotateY(0deg);
    }

    20% {
        background: #217dbb;
    }

    29.9% {
        background: #217dbb;
    }

    30% {
        transform: perspective(200px) rotateY(-90deg);
        background: #3498db;
    }

    54.999% {
        opacity: 1;
    }

    55% {
        opacity: 0;
    }

    60% {
        transform: perspective(200px) rotateY(-180deg);
        background: #3498db;
    }

    100% {
        transform: perspective(200px) rotateY(-180deg);
        background: #3498db;
    }
}

@keyframes flip {
    0% {
        transform: perspective(600px) rotateY(0deg);
    }

    20% {
        background: #217dbb;
    }

    29.9% {
        background: #217dbb;
    }

    30% {
        transform: perspective(200px) rotateY(-90deg);
        background: #3498db;
    }

    54.999% {
        opacity: 1;
    }

    55% {
        opacity: 0;
    }

    60% {
        transform: perspective(200px) rotateY(-180deg);
        background: #3498db;
    }

    100% {
        transform: perspective(200px) rotateY(-180deg);
        background: #3498db;
    }
}
