@media (prefers-color-scheme: light) {
    :root {
        --color-0: #000;
        --background-color-0: #fff;
        --background-color-10: #f6f6f6;
        --background-color-20: #ececec;
        --border-color-10: #f6f6f6;
    }
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
}

html, body {
    height: 100%;
}

header {
    position: fixed;
    top: 0;
    display: flex;
    height: 72px;
    width: 100%;
    border-bottom: 1px solid lightgray;
    background-color: var(--background-color-0);
    z-index: 4;
}

header > section:first-of-type {
    display: none;
}

header > section:nth-child(2) {
    display: flex;
    align-items: center;
    padding-left: 24px;
    width: 320px;
}

header > section:nth-child(2) > a {
    display: flex;
    justify-content: center;
    align-items: center;
}

header > section:nth-child(3) {
    display: flex;
    align-items: center;
    width: calc(100% - 320px);
    padding: 0px 24px 0px 0px;
    background-color: var(--background-color-0);
}

header > section:nth-child(3) > nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

header > section:nth-child(3) > nav > a {
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    column-gap: 8px;
    padding: 4px 8px;
    color: var(--color-0);
    border-radius: 8px;
    border: 1px solid var(--background-color-10);
}

header > section:nth-child(3) > nav > a:hover {
    background-color: var(--background-color-10);
}

header > section:nth-child(3) > nav > a:nth-child(1) > span:first-of-type {
    color: #2daefd;
}

header > section:nth-child(3) > nav > a:nth-child(2) > span:first-of-type {
    color: #ffaf42;
}

header > section:nth-child(3) > nav > a:nth-child(3) > span:first-of-type {
    color: #ffed5e;
}

header > section:nth-child(3) > nav > a:nth-child(4) > span:first-of-type {
    color: #49f770;
}

header > section:nth-child(3) > nav > a:nth-child(5) > span:first-of-type {
    color: #ff3155;
}

header > section:last-of-type {
    display: none;
}

main {
    margin-top: 72px;
    position: absolute;
    right: 0;
    min-height: calc(100% - 72px);
    width: 100%;
    padding-bottom: 144px;
}

main > nav {
    position: fixed;
    bottom: 0;
    left: 0;
    height: calc(100% - 72px);
    width: 320px;
    padding: 24px 12px;
    border-right: 1px solid lightgray;
    background-color: var(--background-color-0);
}

main > nav > a {
    display: block;
    text-decoration: none;
    line-height: 36px;
    padding: 0px 12px;
    border-radius: 8px;
    color: var(--color-0);
}


main > nav > a:hover {
    font-weight: bold;
    background-color: var(--background-color-10);
}

main > nav > a:hover::before {
    content: '\1F449  ';
}

main > article {
    margin-left: 320px;
    width: calc(100% - 320px);
    padding: 24px;
    padding: 0px 250px;
}

main article a {
    text-decoration: none;
    color: #1e90ff;
}

main article a:hover {
    text-decoration: underline;
}

main article code:not(pre code) {
    padding: 2px 4px;
    border-radius: 8px;
    background-color: var(--background-color-20);
}

main article code,
main article pre code * {
    font-family: 'Source Code Pro';
}

main article pre {
    margin-top: 12px;
}

main article pre code {
    border-radius: 8px;
}

main > article > h1 {
    margin-top: 48px;
    margin-bottom: 48px;
    font-size: 2em;
}

main > article > h2 {
    margin-top: 12px;
    font-size: 1.5em;
}

main > article > h3 {
    margin-top: 12px;
    font-size: 1.17em;
}

main > article > p {
    margin-top: 12px;
}

main > article > ul > li,
main > article > ol > li {
    margin-top: 12px;
}

main > article > hr {
    margin-top: 48px;
    margin-bottom: 48px;
    border: 1px solid var(--border-color-10);
}

main > div#search-suggestion-container {
    display: none;
    flex-direction: column-reverse;
    justify-content: end;
    height: calc(100% - 144px);
    width: calc(100% - 320px);
    padding: 0px 250px;
}

main > div#search-suggestion-container > a {
    text-decoration: none;
    width: 100%;
    line-height: 48px;
    padding-left: 8px;
    color: var(--color-0);
}

main > div#search-suggestion-container > a:hover {
    font-weight: 500;
    font-size: 18px;
    background-color: var(--background-color-10);
}

footer {
    position: fixed;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    height: 72px;
    width: calc(100% - 320px);
    padding: 0 250px;
    border-top: 1px solid lightgray;
    background-color: var(--background-color-0);
}

footer > search {
    width: 100%;
}

footer > search > form {
    width: 100%;
}

footer > search > form > input {
    all: unset;
    height: 48px;
    width: calc(100% - 24px);
    padding: 0 12px;
    border-radius: 8px;
    background-color: var(--background-color-10);
}

@media screen and (max-width: 1200px) {
    main > article,
    main>div#search-suggestion-container,
    footer {
        padding: 0px 150px;
    }
}

@media screen and (max-width: 992px) {
    header > section:first-of-type {
        display: flex;
        justify-content: left;
        align-items: center;
        width: 72px;
        padding-left: 24px;
    }

    header > section:first-of-type > button {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 48px;
        width: 48px;
        border: 1px solid var(--border-color-10);
        border-radius: 50%;
        background: none;
        cursor: pointer;
    }

    header > section:first-of-type > button:hover {
        background-color: var(--background-color-10);
    }

    header > section:nth-child(2) {
        justify-content: center;
        width: calc(100% - 144px);
        padding-left: 0;
    }

    header > section:nth-child(3) {
        display: none;
    }

    header > section:nth-child(3) > nav {
        display: flex;
        flex-direction: column;
        row-gap: 12px;
    }

    header > section:nth-child(3) > nav > a {
        line-height: 48px;
    }

    header > section:last-of-type {
        display: flex;
        justify-content: right;
        align-items: center;
        width: 72px;
        padding-right: 24px;
    }

    header > section:last-of-type > button {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 48px;
        width: 48px;
        border: 1px solid var(--border-color-10);
        border-radius: 50%;
        background: none;
        cursor: pointer;
    }

    header > section:last-of-type > button:hover {
        background-color: var(--background-color-10);
    }

    main > article {
        margin-left: 0;
        width: 100%;
    }

    main > article,
    main>div#search-suggestion-container,
    footer {
        width: 100%;
        padding: 0px 150px;
    }

    main > nav {
        display: none;
    }

    main > aside,
    footer {
        width: 100% !important;
    }
}

@media screen and (max-width: 576px) {
    main > article,
    main>div#search-suggestion-container,
    footer {
        padding: 0 24px;
    }
}