ul.sub_menu {
    list-style-type: none;
    padding: 0;
    height: 100%;
}

li.columngap > a {
    text-decoration: none;
}

.sub_content {
    overflow-x: scroll;
    white-space: nowrap;
    margin: 0 auto;
/*     padding: 0 3vw; */
    scrollbar-width: thin;
    scrollbar-color: #d1d1d4 #ffffff;
    height: 100%;
    font-family: 'PT Sans Narrow';
    font-weight: 400;
}

.sub_content::-webkit-scrollbar {
    height: 16px;
}

.sub_content::-webkit-scrollbar-thumb {
    background-color: #d1d1d1;
    border-radius: 16px;
    background-clip: padding-box;
    border: 4px solid transparent;
}

.sub_content::-webkit-scrollbar-track {
    background-color: #ffffff;
    border-radius: 16px;
    background-clip: padding-box;
    border: 4px solid transparent;
}

.sub_menu {
    display: grid;
    grid-auto-flow: column;
/*     flex-direction: row; */
/*     justify-content: center; */
    align-items: center;
    margin: 0;
    padding: 0;
}

.columngap {
    margin: 0 8px;
}

.sub_link {
    display: inline-block;
    font-size: 1.05rem;
    height: 2.1rem; line-height: 2.1rem; /* must have the same value to vertically center the text */
    transition: all 200ms;
    border-bottom: 1px solid rgba(0,0,0,0);
    padding: 0 14px;
}

.selected {
    background: #454549 !important;
    color: #ffffff !important;
}

.sub_link:hover {
    transition: all 100ms;
    border-bottom: 1px solid #111113;
}

html.inverted .sub_content {
    scrollbar-color: #48484a #1c1c1e;
}
html.inverted .sub_content::-webkit-scrollbar-thumb { background-color: #48484a; }
html.inverted .sub_content::-webkit-scrollbar-track { background-color: #1c1c1e; }
html.inverted .sub_link:hover { border-bottom-color: #d4d4d4; }

@media (prefers-color-scheme: dark) {
    html:not(.light) .sub_content {
        scrollbar-color: #48484a #1c1c1e;
    }
    html:not(.light) .sub_content::-webkit-scrollbar-thumb { background-color: #48484a; }
    html:not(.light) .sub_content::-webkit-scrollbar-track { background-color: #1c1c1e; }
    html:not(.light) .sub_link:hover { border-bottom-color: #d4d4d4; }
}
