/* fix scrolling when clicking nav links */
h1,
h2,
h3,
h4 {
    scroll-margin-top: 105px;
}

body {
    display: flex;
}

.header-inner {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 63rem;
    margin-left: auto;
    margin-right: auto;
}

.bumper {
    flex: 1 1 0;
}

/* language selection */
.languageselector {
    position: relative;
    padding: 1em;
    float: right;
    min-width: 100px;
    font-family: var(--font-body);
    margin-right: -1em;
    letter-spacing: -0.7px;
}

.languageselector li {
    display: inline;
    white-space: nowrap;
    color: var(--light);
}
.languageselector li + li::before {
    content: "|";
}

@media (max-width: 450px) {
    .languageselector {
        margin-right: -3em;
    }
}

.languageselector a {
    color: var(--light);
    font-weight: normal;
}

.languageselector a:hover {
    color: var(--highlight) !important;
    font-weight: normal;
}

span.currentLanguage {
    font-weight: bold;
}

/* fix header colors */
.darkmode svg {
    fill: var(--light) !important;
}
.darkmode svg:hover {
    fill: var(--highlight) !important;
}

.burgermenu svg {
    fill: var(--light);
}
.burgermenu svg:hover {
    fill: var(--highlight);
}

/* header gradient */
.book-header {
    background: var(--header);
}

/* don't use columns on mobile devices */
@media all and (max-width: 600px) {
    .markdown .book-columns div {
        min-width: 100%;
    }
}

/* better readability for expand sections */
.markdown .book-expand .book-expand-head {
    color: var(--highlight);
}
.markdown .book-expand .book-expand-head:hover {
    color: var(--tertiary);
}

/* replace some colors... i'm lazy and don't want to figure out where they are defined so i'm just overwriting them here...  */
.markdown {
    a {
        color: var(--highlight);
    }
}

.book-menu a.active {
    color: var(--highlight);
}

#page-title a {
    color: var(--light);
}

#page-title a:hover {
    color: var(--highlight) !important;
}

.markdown-inner {
    color: var(--gray);
}
