/* flipclock Version: 1.0.0 Authors: @gokercebeci Licensed under the MIT license Demo: http:// *//*============================================================================== FLIP CLOCK ==============================================================================*/
.flipclock {
}

.flipclock hr {
    position: absolute;
    left: 0;
    top: 65px;
    width: 100%;
    height: 3px;
    border: 0;
    background: #000;
    z-index: 10;
    opacity: 0;
}

ul.flip {
    position: relative;
    float: left;
    margin: 10px 9px;
    padding: 0;
    width: 66px;
    height: 55px;
    font-size: 37px;
    font-weight: bold;
    line-height: 55px;
}

ul.flip li {
    float: left;
    margin: 0;
    padding: 0;
    width: 49%;
    height: 100%;
    -webkit-perspective: 200px;
    perspective: 200px;
    list-style: none;
}

ul.flip li.d1 {
    float: right;
}

ul.flip li section {
    z-index: 1;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

ul.flip li section:first-child {
    z-index: 2;
}

ul.flip li div {
    z-index: 1;
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
}

ul.flip li div .shadow {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

ul.flip li div.up {
    -webkit-transform-origin: 50% 100%;
    transform-origin: 50% 100%;
    top: 0;
}

ul.flip li div.down {
    -webkit-transform-origin: 50% 0%;
    transform-origin: 50% 0%;
    bottom: -1px;
}

ul.flip li div div.inn {
    position: absolute;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 200%;
    color: #ff4400;
    text-align: center;
    background-color: #ffffff;
    border-radius: 6px;
    border: 1px solid #dedede;
}

ul.flip li div.up div.inn {
    top: 0;
}

ul.flip li div.down div.inn {
    bottom: 0;
}

/*-------------------------------------- PLAY --------------------------------------*/
body.play ul section.ready {
    z-index: 3;
}

body.play ul section.active {
    -webkit-animation: index .5s .5s linear both;
    animation: index .5s .5s linear both;
    z-index: 2;
}

@-webkit-keyframes index {
    0% {
        z-index: 2;
    }
    5% {
        z-index: 4;
    }
    100% {
        z-index: 4;
    }
}

@keyframes index {
    0% {
        z-index: 2;
    }
    5% {
        z-index: 4;
    }
    100% {
        z-index: 4;
    }
}

body.play ul section.active .down {
    z-index: 2;
    -webkit-animation: flipdown .5s .5s linear both;
    animation: flipdown .5s .5s linear both;
}

@-webkit-keyframes flipdown {
    0% {
        -webkit-transform: rotateX(90deg);
    }
    80% {
        -webkit-transform: rotateX(5deg);
    }
    90% {
        -webkit-transform: rotateX(15deg);
    }
    100% {
        -webkit-transform: rotateX(0deg);
    }
}

@keyframes flipdown {
    0% {
        transform: rotateX(90deg);
    }
    80% {
        transform: rotateX(5deg);
    }
    90% {
        transform: rotateX(15deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}

body.play ul section.ready .up {
    z-index: 2;
    -webkit-animation: flipup .5s linear both;
    animation: flipup .5s linear both;
}

@-webkit-keyframes flipup {
    0% {
        -webkit-transform: rotateX(0deg);
    }
    90% {
        -webkit-transform: rotateX(0deg);
    }
    100% {
        -webkit-transform: rotateX(-90deg);
    }
}

@keyframes flipup {
    0% {
        transform: rotateX(0deg);
    }
    90% {
        transform: rotateX(0deg);
    }
    100% {
        transform: rotateX(-90deg);
    }
}

/*-------------------------------------- SHADOW --------------------------------------*/
body.play ul section.ready .up .shadow {
}

body.play ul section.active .up .shadow {
}

/*DOWN*/
body.play ul section.ready .down .shadow {
}

body.play ul section.active .down .shadow {
}

@-webkit-keyframes show {
    0% {
        opacity: 0;
    }
    90% {
        opacity: .10;
    }
    100% {
        opacity: 1;
    }
}

@-webkit-keyframes hide {
    0% {
        opacity: 1;
    }
    80% {
        opacity: .20;
    }
    100% {
        opacity: 0;
    }
}

@keyframes show {
    0% {
        opacity: 0;
    }
    90% {
        opacity: .10;
    }
    100% {
        opacity: 1;
    }
}

@keyframes hide {
    0% {
        opacity: 1;
    }
    80% {
        opacity: .20;
    }
    100% {
        opacity: 0;
    }
}

ul.flip.hour:after {
    content: ':';
    display: inline-block;
    font-size: 35px;
    position: absolute;
    right: -15px;
    color: #ff4400;
}

ul.flip.minute:after {
    content: ':';
    display: inline-block;
    font-size: 35px;
    position: absolute;
    right: -15px;
    color: #ff4400;
}

@media (max-width: 500px) {
    ul.flip {
        width: 70px;
        height: 45px;
        line-height: 45px;
        font-size: 35px;
        margin: 10px 5px
    }

    ul.flip.hour:after {
        content: ':';
        display: inline-block;
        font-size: 20px;
        position: absolute;
        right: -9px;
        color: #ff4400;
    }

    ul.flip.minute:after {
        content: ':';
        display: inline-block;
        font-size: 20px;
        position: absolute;
        right: -9px;
        color: #ff4400;
    }
}
