﻿/* Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 20px auto;
}

.container-timeline {
    padding: 5px 50px;
    position: relative;
    width: 50%;
    animation: movedown 1.5s linear forwards;
    opacity: 0;
}

@keyframes movedown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

.container-timeline:nth-child(1) {
    animation-delay: 0s;
}

.container-timeline:nth-child(2) {
    animation-delay: 0.3s;
}

.container-timeline:nth-child(3) {
    animation-delay: 0.6s;
}

.container-timeline:nth-child(4) {
    animation-delay: 0.9s;
}

.container-timeline:nth-child(5) {
    animation-delay: 1.2s;
}

.container-timeline:nth-child(6) {
    animation-delay: 1.5s;
}

.container-timeline:nth-child(7) {
    animation-delay: 1.8s;
}

.container-timeline:nth-child(8) {
    animation-delay: 2.1s;
}

.container-timeline:nth-child(9) {
    animation-delay: 2.4s;
}

.container-timeline:nth-child(10) {
    animation-delay: 2.7s;
}


.text-box-timeline {
    padding: 10px 30px;
    background: #fff;
    position: relative;
    border-radius: 6px;
    font-size: 15px;
    height: 80px;
}

.left-container-timeline {
    left: 0;
}

.right-container-timeline {
    left: 50%;
    text-align: right;
}

.container-timeline img {
    position: absolute;
    width: 50px; 
    border-radius: 20%;
    right: -25px;
    top: 20px;
    z-index: 10;
}
.right-container-timeline img {
    left: -25px;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 100%;
    background: #fff;
    top: 0;
    left: 50%;
    margin-left: -3px;
    z-index: -1;
    animation: moveline 3s linear forwards;
}

@keyframes moveline {
    0% {
        height: 0;
    }

    100% {
        height: 100%;
    }
}

.text-box-timeline h3 {
    display: inline-block;
    margin-bottom: 3px;
}

.left-container-arrow-timeline {
    height: 0;
    width: 0;
    position: absolute;
    top: 25px;
    z-index: 1;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid #fff;
    right: -15px;
}

.right-container-arrow-timeline {
    height: 0;
    width: 0;
    position: absolute;
    top: 25px;
    z-index: 1;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid #fff;
    left: -15px;
}

@media screen and (max-width: 600px) {
    .timeline {
        margin: 50px auto;
    }

        .timeline::after {
            left: 31px;
        }

    .container-timeline {
        width: 100%;
        padding-left: 80px;
        padding-right: 25px;
    }

    .text-box-timeline {
        font-size: 13px;
    }

        .text-box-timeline p {
            margin-bottom: 0px;
        }

    .right-container-timeline {
        left: 0;
        text-align: left;
    }

        .container-timeline img, .right-container-timeline img {
            left: 6px;
        }

    .left-container-arrow-timeline, .right-container-arrow-timeline {
        border-right: 15px solid white;
        border-left: 0;
        left: -15px;
    }
}
