:root {
    --prm-color: #0aa6e3;
    --prm-gray: #f1f1f1;
}

/* CSS */
.steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.step-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: #eeeeee;
    color: #fff !important;
    transition: .4s;
    font-size: 20px;
}

.step-button[aria-expanded="true"] {
    width: 50px;
    height: 50px;
    background-color: var(--prm-color);
    color: #fff !important;
    font-weight: bold;
    font-size: 20px;
}

.done {
    background-color: var(--prm-color);
    color: #fff;
}

.step-item {
    z-index: 10;
    font-size: 16px;
    text-align: center;
}

#progress {
  -webkit-appearance:none;
    position: absolute;
    width: 95%;
    right: 1rem;
    left: 2rem;
    z-index: 5;
    height: 5px;
    margin-bottom: 2rem;
}

/* to customize progress bar */
#progress::-webkit-progress-value {
    background-color: var(--prm-color);
    transition: .5s ease;
}

#progress::-webkit-progress-bar {
    background-color: #f3f3f3;
}

.step-title{
    display: block;
    font-weight: bold;
    margin-top: 1rem;
}

@media only screen and (max-width: 1040px){
    .step-title{
        display: none;
    }

    #progress {
        -webkit-appearance:none;
          position: absolute;
          width: 96%;
          z-index: 5;
          height: 5px;
          margin-left: -20px;
          margin-right: 0px;
          margin-bottom: 0px;
      }

      /* to customize progress bar */
        #progress::-webkit-progress-value {
            background-color: var(--prm-color);
            transition: .5s ease;
        }

        #progress::-webkit-progress-bar {
            background-color: #f3f3f3;

        }

      .step-button {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        border: none;
        background-color: #eeeeee;
        color: #fff;
        transition: .4s;
        font-size: 16px;
    }
    
    .step-button[aria-expanded="true"] {
        width: 30px;
        height: 30px;
        background-color: var(--prm-color);
        color: #fff;
        font-size: 16px;
    }

    .done {
        background-color: var(--prm-color);
        color: #fff;
    }
    
    .step-item {
        z-index: 10;
        font-size: 14px;
        text-align: center;
    }

}