@media screen {

    @keyframes rotateOnY {
        0% {
            transform: rotateY(-90deg) skewY(-10deg);
            opacity: 0;
        }

        100% {
            transform: rotateY(0deg) skewY(0);
            opacity: 1;
        }
    }

    @keyframes rotateOnYL {
        0% {
            transform: rotateY(90deg) skewY(10deg);
            opacity: 0;
        }

        100% {
            transform: rotateY(0deg) skewY(0);
            opacity: 1;
        }
    }

    /* fliping animation */
    .history-timeline .reveal-animate .image_container {
        animation: rotateOnY 2s;
        transform-origin: 0 100%;
    }

    .history-timeline .rightCol.reveal-animate .image_container {
        animation: rotateOnYL 2s;
        transform-origin: 100% 0;
    }

    /* fliping animation ends */

    .js .history-timeline {
        opacity: 0;
    }

    .history-timeline .image_container {
        margin: 0;
    }


    .history-timeline>.ce_image,
    .history-timeline>.ce_text {
        position: relative;
        margin: 0 !important;
        overflow: hidden;
    }

    /* line */
    .history-timeline>.ce_image:before,
    .history-timeline>.ce_text:before {
        background: var(--mut-red);
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        height: 2rem;
        width: 1px;
        display: inline-block;
    }

    .history-timeline .inside_ce {
        position: relative;
        padding-top: 1.25rem;
    }


    /* ball */
    .history-timeline .ce_text .inside_ce:before,
    .history-timeline .ce_text.rightCol .inside_ce:before {
        background: var(--mut-red);
        position: absolute;
        content: "";
        top: 1.2rem;
        right: 50%;
        height: 11px;
        width: 11px;
        margin-top: 0.5rem;
        margin-right: -6px;
        display: inline-block;
        border-radius: 50%;
    }


    .history-timeline>.block:last-child:after {
        background: var(--mut-red);
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        margin-left: -2px;
        height: 6px;
        width: 6px;
        display: inline-block;
        border-radius: 50%;
    }


}


/* MEDIA SPECIFIC  */

@media only screen and (min-width: 768px) {
    .history-timeline>.block {
        padding-bottom: 3rem;
    }

    .history-timeline .image_container,
    .history-timeline .inside_ce {
        box-sizing: border-box;
    }

    .history-timeline .image_container {
        float: right;
        width: 50%;
        padding-left: 1.5rem;
    }

    .history-timeline .inside_ce {
        float: left;
        width: 50% !important;
        text-align: right;
        padding-right: 1.5rem;
    }

    .history-timeline .rightCol .image_container {
        float: left;
        padding-right: 1.5rem;
    }

    .history-timeline .rightCol .inside_ce {
        float: right;
        text-align: left;
        padding-left: 1.5rem;
    }

    .history-timeline>.ce_image,
    .history-timeline>.ce_text {
        position: relative;
        margin: 0;
    }

    /* line */
    .history-timeline>.ce_image:before,
    .history-timeline>.ce_text:before {
        top: auto;
        bottom: 0;
        height: 100%;
        width: 2px;
    }

    .history-timeline>.ce_text.first:before {
        height: 95%;
    }

    /* 
    .history-timeline>.ce_text:after {
        top: auto;
        bottom: 0;
        height: 10px;
        width: 10px;
    } */


    .history-timeline .ce_text .inside_ce:before,
    .history-timeline .ce_text.rightCol .inside_ce:before {
        right: -11px;
        height: 20px;
        width: 20px;
        margin-top: -8px;
        margin-right: 0;
    }

    .history-timeline .ce_text.rightCol .inside_ce:before {
        left: -9px;
        right: auto;
    }

    /* Image only */
    .history-timeline .ce_image .image_container:before,
    .history-timeline .rightCol.ce_image .image_container:before {
        background: var(--mut-red);
        position: absolute;
        content: "";
        top: 25px;
        right: 50%;
        height: 2px;
        width: 20px;
        margin-top: -10px;
        margin-right: -20px;
    }

    .history-timeline .rightCol.ce_image .image_container:before {
        margin-right: 0;
    }
}