/* BS4 Timeline by mylastof: https://bootsnipp.com/user/snippets/35EXB */

.timeline.list-unstyled {
    margin-top: 0;
    margin-bottom: 0;
}

.timeline ol:before, .timeline ol:after {
    content: "";
    width: 5px;
    height: 60px;
    position: absolute;
    z-index: 2;
}

.timeline ol:before {
    margin: 0 0 0 -1px;
}

.timeline ol:after {
    margin: -50px 0 0 -1px;
}

.timeline li {
    border: 2px solid;
    border-color: rgb(255, 24, 100) !important;
    margin:0 0 -2px 0; 
    padding: 30px;
    counter-increment: li;
    position: relative;
}

.timeline li:nth-child(odd):before, .timeline li:nth-child(even):before {
    content: counter(li);
    display: flex;
    -ms-flex-pack: center!important;
    justify-content: center!important;
    -ms-flex-align: center!important;
    align-items: center!important;
    
    position: absolute;
    border-radius: 50%;
    height: 50px;
    width: 50px;
    background-color: rgb(255, 24, 100);
    color: white;
    font-weight: bold;
    z-index: 3;
}

.timeline li:nth-child(odd):before {
    right: 100%; 
    margin-right: -20px;
}

.timeline li:nth-child(even):before {
    left: 100%;
    margin-left: -20px;
}

.timeline li:nth-child(odd) {
    border-right: none;
    border-left: 2px solid;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    margin-right: 30px;
    padding-right: 0;
}

.timeline li:nth-child(even) {
    border-left: none;
    border-right: 2px solid;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    margin-left: 30px; 
    padding-left: 0;
    text-align: right;
}

.timeline li:first-child {
    border-top: none;
    border-top-right-radius:0;
    border-top-left-radius:0;
}

.timeline li:last-child {
    border-bottom: none;
    border-bottom-right-radius:0;
    border-bottom-left-radius:0;
}

/* When making the text some % of the total width, pull right aligned content */
.timeline li:nth-child(even) div[class^="col-"] {
    margin-left: auto;
}
