﻿
div.progressbar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0 20px 0 0;
    overflow: hidden;
}

div.progressbar > div.item {
    position: relative;
    background-color: var(--astro-color-topnavigationbar);
    margin-right: 4px;
    padding: 10px 2px 10px 30px;
    color: #fff;
    width: 100%;
    font-size: .9em;
    font-weight: bold;
}

    div.progressbar > div.item::before {
        content: "";
        position: absolute;
        transform: rotate(45deg);
        -webkit-transform: rotate(45deg);
        border-top: 20px solid #fff;
        border-right: 20px solid #fff;
        border-bottom: 20px solid transparent;
        border-left: 20px solid transparent;
        left: -1.8rem;
        top: 0;
        overflow-y: hidden;
    }
    div.progressbar > div.item::after {
        content: "";
        position: absolute;
        transform: rotate(45deg);
        -webkit-transform: rotate(45deg);
        border-top: 20px solid var(--astro-color-topnavigationbar);
        border-right: 20px solid var(--astro-color-topnavigationbar);
        border-bottom: 20px solid transparent;
        border-left: 20px solid transparent;
        right: -13px;
        top: 0;
        overflow-y: hidden;
        z-index: 10;
    }
    

div.progressbar > div.current-page {
    background-color: var(--astro-color-primary);
}

div.progressbar > div.current-page::after {
    border-color: var(--astro-color-primary) var(--astro-color-primary) transparent transparent;
}

@media only screen and (max-width: 600px) {

    div.progressbar {
        display: none;
    }

}

@media only screen and (max-width: 1198px) {

    div.progressbar > div.item {
        padding: 4px;
        text-align: center;
        font-size: 1em;
        font-weight: normal;
    }
        div.progressbar > div.item:first-child {
            border-top-left-radius: 3px;
            border-bottom-left-radius: 3px;
        }
        div.progressbar > div.item:last-child {
            border-top-right-radius: 3px;
            border-bottom-right-radius: 3px;
        }
    
    div.progressbar > div.item::before {
        display: none;
    }

    div.progressbar > div.item::after {
        display: none;
    }
}
