
.navi {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.navi ul {
    list-style-type: none;
    flex-basis: 22%;
    flex-grow: 0;
    flex-shrink:0;
}

ul.level_1 li {
    display: inline-block;
    margin: 1.8em 0 0 0;
    vertical-align: top;
}

ul.level_1 li a {
    line-height: 1.3em;
}

ul.level_1 li a:hover {
    color: #ffffff;
}

ul.level_1 li.first {
    margin-left: 0;
}

ul.level_2 {
    margin: 0 20px 0 0;
}

ul.level_2 li {
    list-style-position: inside;
    width: 100%;
    margin: 0 0 0.5em 0;
    padding: 0;
}

ul.level_2 li a {
    width: auto;
    display: inline-block;
    font-weight: normal;
    line-height: 1.3em;
}

footer {
    margin-block-start: 24px;
}

.directory-bar {
    background-color: #0a2d57;
}

.directory-bar a {
    color: #ffffff;
}
.directory-bar a:hover {
    color: #ffffff;
}

.directory-bar--transparent {
    background-color: transparent
}


.directory-bar span.pagetitle {
    display: block;
    text-decoration: none;
    margin-bottom: 1em;
}

.directory-bar a:hover {
    color: #ffffff;
}

.directory-bar a:active {
    background-color: transparent;
}

.directory-bar span.pagetitle a {
    font-size: 115%;
    text-decoration: none;
    border: none;
    font-weight: bold;
    text-transform: uppercase;
}



@media screen and (max-width: 799px) {
    /* first level */
    .directory-bar ul.level_1 > li {
        float: left;
        margin-top: 0;
        padding-right: 20px;
    }

    .directory-bar ul.level_1 > li:nth-child(2n+1) {
        clear: left;
    }

    .directory-bar ul.level_1 > li:nth-child(1n+3) {
        margin-top: 20px;
    }

    .directory-bar ul.level_1 > li:last-child {
        padding-right: 0;
    }

    /* 2nd level */
    .directory-bar ul.level_2 {
        margin-right: 0;
    }

    .directory-bar ul.level_2 > li {
        margin-bottom: 5px;
    }
}

a[target="_blank"].cc-link::after {
    background-color: #3070B3;
}

@media screen and (max-width: 1000px) {
    .directory-bar ul {
        flex-basis: 30%;
    }
}

@media screen and (max-width: 800px) {
    .directory-bar ul {
        flex-basis: 45%;
    }
}

@media screen and (max-width: 540px) {
    .directory-bar ul {
        flex-basis: 100%;
    }
}
