﻿.timeline-spinner {
    color: official;
    display: inline-block;
    position: relative;
    width: 64px;
    height: 64px;
}

    .timeline-spinner div {
        transform-origin: 32px 32px;
        animation: timeline-spinner 1.2s linear infinite;
    }

        .timeline-spinner div:after {
            content: " ";
            display: block;
            position: absolute;
            top: 3px;
            left: 29px;
            width: 5px;
            height: 14px;
            border-radius: 20%;
            background: #000000;
        }

        .timeline-spinner div:nth-child(1) {
            transform: rotate(0deg);
            animation-delay: -1.1s;
        }

        .timeline-spinner div:nth-child(2) {
            transform: rotate(30deg);
            animation-delay: -1s;
        }

        .timeline-spinner div:nth-child(3) {
            transform: rotate(60deg);
            animation-delay: -0.9s;
        }

        .timeline-spinner div:nth-child(4) {
            transform: rotate(90deg);
            animation-delay: -0.8s;
        }

        .timeline-spinner div:nth-child(5) {
            transform: rotate(120deg);
            animation-delay: -0.7s;
        }

        .timeline-spinner div:nth-child(6) {
            transform: rotate(150deg);
            animation-delay: -0.6s;
        }

        .timeline-spinner div:nth-child(7) {
            transform: rotate(180deg);
            animation-delay: -0.5s;
        }

        .timeline-spinner div:nth-child(8) {
            transform: rotate(210deg);
            animation-delay: -0.4s;
        }

        .timeline-spinner div:nth-child(9) {
            transform: rotate(240deg);
            animation-delay: -0.3s;
        }

        .timeline-spinner div:nth-child(10) {
            transform: rotate(270deg);
            animation-delay: -0.2s;
        }

        .timeline-spinner div:nth-child(11) {
            transform: rotate(300deg);
            animation-delay: -0.1s;
        }

        .timeline-spinner div:nth-child(12) {
            transform: rotate(330deg);
            animation-delay: 0s;
        }

@keyframes timeline-spinner {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}




.timeline .timeline-item:after, #timeline .timeline-item:before {
    content: '';
    display: block;
    width: 100%;
    clear: both;
}

.timeline {
    width: 100%;
    margin: 30px auto;
    position: relative;
    padding: 0 10px;
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -ms-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

    .timeline:before {
        content: "";
        width: 3px;
        height: 100%;
        background: #E8175D;
        left: 50%;
        top: 0;
        position: absolute;
    }

    .timeline:after {
        content: "";
        clear: both;
        display: table;
        width: 100%;
    }

    .timeline .timeline-item {
        margin-bottom: 50px;
        position: relative;
    }

        .timeline .timeline-item .timeline-icon {
            width: 50px;
            height: 50px;
            position: absolute;
            top: 0;
            left: 50%;
            overflow: hidden;
            margin-left: -23px;
            -webkit-border-radius: 50%;
            -moz-border-radius: 50%;
            -ms-border-radius: 50%;
            border-radius: 50%;
        }

        .timeline .timeline-item .timeline-content {
            width: 45%;
            background: #fff;
            padding: 20px;
            margin-top:7px;
            float:left;
            -webkit-box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
            -moz-box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
            -ms-box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
            box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
            -webkit-border-radius: 5px;
            -moz-border-radius: 5px;
            -ms-border-radius: 5px;
            border-radius: 5px;
            -webkit-transition: all 0.3s ease;
            -moz-transition: all 0.3s ease;
            -ms-transition: all 0.3s ease;
            transition: all 0.3s ease;
        }

            .timeline .timeline-item .timeline-content h2 {
                padding: 5px 10px !important;
                font-size: 1.3em;
                background-color: #72002E;
                color: #fff;
                margin: -20px -20px 0 -20px;
                font-weight: 300;
                -webkit-border-radius: 3px 3px 0 0;
                -moz-border-radius: 3px 3px 0 0;
                -ms-border-radius: 3px 3px 0 0;
                border-radius: 3px 3px 0 0;
            }

                .timeline .timeline-item .timeline-content h2.date {
                    background-size: 25px;
                    background-repeat:no-repeat;
                    padding-left: 30px!important;
                    background-position-x:5px;
                    background-image: url(/EtellectCommon/Automate/Images/ActivityActions/date-added.png);
                }
                .timeline .timeline-item .timeline-content h2.duration {
                    background-size: 20px;
                    background-repeat: no-repeat;
                    padding-left: 30px !important;
                    background-position-y: 5px;
                    background-position-x: 5px;
                    background-image: url(/EtellectCommon/Automate/Images/ActivityActions/duration.png);
                }
                .timeline .timeline-item .timeline-content h2.file {
                    background-size: 20px;
                    background-repeat: no-repeat;
                    padding-left: 30px !important;
                    background-position-y: 5px;
                    background-position-x: 5px;
                    background-image: url(/EtellectCommon/Automate/Images/ActivityActions/file.png);
                }
                .timeline .timeline-item .timeline-content h2.image {
                    background-size: 20px;
                    background-repeat: no-repeat;
                    padding-left: 30px !important;
                    background-position-y: 5px;
                    background-position-x: 5px;
                    background-image: url(/EtellectCommon/Automate/Images/ActivityActions/image.png);
                }
                .timeline .timeline-item .timeline-content h2.message {
                    background-size: 20px;
                    background-repeat: no-repeat;
                    padding-left: 30px !important;
                    background-position-y: 5px;
                    background-position-x: 5px;
                    background-image: url(/EtellectCommon/Automate/Images/ActivityActions/message.png);
                }
                .timeline .timeline-item .timeline-content h2.status {
                    background-size: 20px;
                    background-repeat: no-repeat;
                    padding-left: 30px !important;
                    background-position-y: 5px;
                    background-position-x: 5px;
                    background-image: url(/EtellectCommon/Automate/Images/ActivityActions/status.png);
                }

                .timeline .timeline-item .timeline-content:before {
                    content: '';
                    position: absolute;
                    left: 45%;
                    top: 18px;
                    width: 0;
                    height: 0;
                    border-top: 7px solid transparent;
                    border-bottom: 7px solid transparent;
                    border-left: 7px solid #72002E;
                }

        .timeline .timeline-item.personal .timeline-content {
            float: right;
        }

            .timeline .timeline-item.personal .timeline-content h2 {
                background-color: #E8175D;
            }

        .timeline .timeline-item.personal .timeline-content:before {
            content: '';
            right: 45%;
            left: inherit;
            border-left: 0;
            border-right: 7px solid #E8175D;
        }


@media screen and (max-width: 768px) {
    .timeline {
        margin: 30px;
        padding: 0px;
        width: 90%;
    }

        .timeline:before {
            left: 0;
        }

        .timeline .timeline-item .timeline-content {
            width: 90%;
            float: right;
        }

            .timeline .timeline-item .timeline-content:before,
            .timeline .timeline-item.personal.timeline-content:before {
                left: 10%;
                margin-left: -6px;
                border-left: 0;
                border-right: 7px solid #E8175D;
            }

        .timeline .timeline-item .timeline-icon {
            left: 0;
        }
}
