﻿@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700&display=swap');

#status-bar-container {
    margin: 0px auto;
    max-width: 1200px;
}

.progressbar {
    counter-reset: step;
    font-family: Montserrat, sans-serif;
    padding-left: 0;
}


.progressbar li {
    list-style-type: none;
    float: left;
    position: relative;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-transform: capitalize;
    color: rgba(35, 31, 32, 0.8);
}

.progressbar li:before {
    width: 45px;
    height: 45px;
    content: counter(step);
    counter-increment: step;
    line-height: 30px;
    display: block;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
    border-radius: 50%;
    position:relative;
    z-index: 2;
    background-color: #DBDCDD;
    color: #fff;
}

.progressbar li:after {
    width: 100%;
    height: 7px;
    content: '';
    position: absolute;
    background-color: #dbdcdd;
    top: 20px;
    left: -50%;
    z-index: 0;
}

.progressbar li:first-child:after {
    content: none;
}

.progressbar li.pb-active {
    color: rgba(35, 31, 32, 1);
}

.progressbar li.pb-completed:before {
    background-color: #509E2F;
    font-family: 'Font Awesome 5 Free';
    font-weight: 600;
    content: '\f00c';
}

.progressbar li.pb-completed + li:after {
    background-color: #509E2F;
}

.progressbar li.pb-active:before {
    background-color: #FFAD0A;
}

/* one item */
.progressbar li:first-child:nth-last-child(1) {
    width: 100%;
}

/* two items */
.progressbar li:first-child:nth-last-child(2),
.progressbar li:first-child:nth-last-child(2) ~ li {
    width: 50%;
}

/* three items */
.progressbar li:first-child:nth-last-child(3),
.progressbar li:first-child:nth-last-child(3) ~ li {
    width: 33.3333%;
}

/* four items */
.progressbar li:first-child:nth-last-child(4),
.progressbar li:first-child:nth-last-child(4) ~ li {
    width: 25%;
}

/* five items */
.progressbar li:first-child:nth-last-child(5),
.progressbar li:first-child:nth-last-child(5) ~ li {
    width: 20%;
}

/* six items */
.progressbar li:first-child:nth-last-child(6),
.progressbar li:first-child:nth-last-child(6) ~ li {
    width: 16.6667%;
}

/* seven items */
.progressbar li:first-child:nth-last-child(7),
.progressbar li:first-child:nth-last-child(7) ~ li {
    width: 14.2857%;
}

/* eight items */
.progressbar li:first-child:nth-last-child(8),
.progressbar li:first-child:nth-last-child(8) ~ li {
    width: 12.5%;
}

/* nine items */
.progressbar li:first-child:nth-last-child(9),
.progressbar li:first-child:nth-last-child(9) ~ li {
    width: 11.1111%;
}

/* ten items */
.progressbar li:first-child:nth-last-child(10),
.progressbar li:first-child:nth-last-child(10) ~ li {
    width: 10%;
}




@media only screen and (max-width: 768px) {
    #status-bar-container {
        margin-bottom: 50px;
    }

    .progressbar li {
        font-size: 10px;
    }
}

@media only screen and (max-width: 480px) {

    .status-label {
        display: none;
    }

    .progressbar li:before {
        width: 30px;
        height: 30px;
    }

    .progressbar li:after {
        top: 15px;
        height: 4px;
    }
}
