.timeline:nth-child(1) {
    order: 1;
    background-color: rgba(0, 0, 0, 0.35);
}
.timeline:nth-child(1)  .head::after {
    border-color: rgba(0, 0, 0, 0.35);
}

.timeline:nth-child(2) {
    order: 4;
    background-color: rgba(0, 0, 0, 0.1);
}
.timeline:nth-child(2)  .head::after {
    border-color: rgba(0, 0, 0, 0.1);
}


.timeline:nth-child(3) {
    order: 2;
    background-color: rgba(0, 0, 0, 0.25);
}
.timeline:nth-child(3)  .head::after {
    border-color: rgba(0, 0, 0, 0.25);
}

.timeline:nth-child(4) {
    order: 5;
    background-color: rgba(0, 0, 0, 0.25);
}
.timeline:nth-child(4)  .head::after {
    border-color: rgba(0, 0, 0, 0.25);
}

.timeline:nth-child(5) {
    order: 3;
   background-color: rgba(0, 0, 0, 0.35);
}
.timeline:nth-child(5)  .head::after {
    border-color: rgba(0, 0, 0, 0.35);
}

.timeline:nth-child(6) {
    order: 6;
   background-color: rgba(0, 0, 0, 0.25);
}
.timeline:nth-child(6)  .head::after {
    border-color: rgba(0, 0, 0, 0.25);
}


@media (min-width: 1000px) {
    .timeline:nth-child(odd) .head::after,
    .timeline:nth-child(even) .head::after {
        position: absolute;
        content: "";
        width: 0;
        height: 0;
        border-top: 15px solid transparent;
        border-bottom: 15px solid transparent;
    }
    .timeline:nth-child(odd) .head::before,
    .timeline:nth-child(even) .head::before {
        position: absolute;
        content: "";
        width: 9px;
        height: 9px;
        background-color: #bdbdbd;
        border-radius: 9px;
        box-shadow: 0px 0px 2px 8px #f7f7f7;
    }
}

.timeline-wrapper {
    position: relative;
    margin: auto;
}

@media (min-width: 1000px) {
    .timeline-wrapper {
        display: flex;
        flex-flow: column wrap;
        width: 1170px;
        height: 680px;
        margin: 0 auto;
    }
}

.timeline-wrapper::after {
    z-index: 1;
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    border-left: 1px solid rgba(191, 191, 191, 0.4);
}

@media (min-width: 1000px) {
    .timeline-wrapper::after {
        border-left: 1px solid #bdbdbd;
    }
}

 .timeline {
    position: relative;
    display: block;
    margin: 10px auto 80px;
    max-width: 94%;
    z-index: 2;
}

@media (min-width: 480px) {
     .timeline {
        max-width: 60%;
        box-shadow: 0px 1px 22px 4px rgba(0, 0, 0, 0.07);
    }
}

@media (min-width: 720px) {
     .timeline {
        max-width: 40%;
    }
}

@media (min-width: 1000px) {
     .timeline {
        max-width: 450px;
        margin: 90px;
        margin-top: 45px;
        margin-bottom: 45px;
        display: grid;
        grid-template-columns: 70px auto;
        grid-template-rows: 100px;
    }
     .timeline:nth-child(odd) {
        margin-right: 45px;
    }
     .timeline:nth-child(odd) .head::after {
        border-left-width: 15px;
        border-left-style: solid;
        left: 100%;
        top: 40px;
    }
     .timeline:nth-child(odd) .head::before {
        left: 491.5px;
        top: 50px
    }
     .timeline:nth-child(even) .head::after {
        border-right-width: 15px;
        border-right-style: solid;
        right: 100%;
        top: 40px;
    }
     .timeline:nth-child(even) .head::before {
        right: 489.5px;
        top: 50px;
    }
     .timeline:nth-child(2) {
        margin-top: 135px;
    }
}

 .timeline .number-box {
    padding: 15px 10px;
    line-height: 23px;
    background: rgba(0, 0, 0, 0.17);
    color: #fff;
    height: 100%;
}

.timeline .head {
    font-size: 1em;
    line-height: 1.5em;
    font-weight: 800;
    letter-spacing: 0.125em;
    text-transform: uppercase;
    color: #fff;
    align-self: center;
}

.timeline .head .small {
    font-size: 0.7em;
    font-weight: 400;
}