body {
    font-size: 12pt;
    color: white;
    background-color: rgb(36, 36, 36);
    font-family: Arial, Verdana, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-wrap: anywhere;
    position: relative;
}
@media (max-width: 700px) {
    body {
        display: block;
    }
}

::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-thumb {
    background-color: rgb(161, 160, 160);
}
::-webkit-scrollbar-track {
    background-color: rgb(96, 96, 100);
}

nav {
    background-color:rgb(42, 42, 42)
}

nav.topbar {
    display: none;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 10;
    height: 45px;
    width: 100%;
    font-size: 24px;
    flex-wrap: nowrap;
}
nav.topbar .sidebar-menu-button {
    width: 45px;
    font-size: 32px;
    border: none;
    color: inherit;
    background-color:rgb(42, 42, 42)
}
nav.topbar .topbar-logo-border {
    width: 36px;
    height: 36px;
    flex: 0 0 0;
    margin-left: 10px;
    margin-top: /* (45px - 36px) / 2 */ 4px;
    border-radius: 20%;
    overflow:hidden;
}
nav.topbar .topbar-logo {
    width: 36px;
}
nav.topbar .topbar-text-area {
    display: flex;
    flex-grow: 2;
    justify-content: flex-end;
    padding-right: 24px;
    overflow-wrap: break-word;
}
nav.topbar .topbar-title {
    align-self: center;
    align-content: flex-end;
}
nav.topbar .topbar-title > a {
    color: inherit;
    text-decoration: none;
}
@media (max-width: 700px) {
    nav.topbar {
        display: flex;
        flex-direction: row;
    }
}

nav.sidebar {
    position: sticky;
    height: 100vh;
    width: 200px;
    flex: 0 0 200px;
    top: 0;
    left: 0;
    overflow-y: scroll;
    overscroll-behavior: contain;
    padding-top: 12px;
    z-index: 20;
}
nav.sidebar::-webkit-scrollbar {
    width: 6px;
}
nav.sidebar .sidebar-logo-link {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 10px;
}
nav.sidebar .sidebar-logo-border {
    width: 110px;
    height: 100px;
    border-radius: 20%;
    overflow: hidden;
}
nav.sidebar .sidebar-logo {
    width: 100px;
}
nav.sidebar .sidebar-text {
    padding-left: 12px;
}
nav.sidebar .sidebar-title {
    font-size: 1.2rem;
    font-weight: bold;
}
nav.sidebar .sidebar-title a {
    display: block;
    color: inherit;
    text-decoration: none;
}
nav.sidebar .sidebar-title a:hover {
    text-decoration: underline;
}
nav.sidebar .sidebar-pretitle {
    font-size: 0.8rem;
    font-weight: bold;
}
nav.sidebar .sidebar-subtitle {
    font-size: 90%;
    font-weight: bold;
}
nav.sidebar .sidebar-links {
    font-size: 90%;
    padding-bottom: 2rem;
}
nav.sidebar .sidebar-links ul {
    padding-inline-start: 0;
}
nav.sidebar .sidebar-links li {
    list-style-type: none;
    padding: 0.25rem;
}
nav.sidebar .sidebar-links li > a {
    display: block;
    color: inherit;
    text-decoration: none;
}
nav.sidebar .sidebar-links li > a:hover {
    text-decoration: underline;
}
nav.sidebar .sidebar-links li > .sidebar-parent {
    margin-top: 1rem;
    font-size: 1.2em;
}
nav.sidebar .sidebar-links li > .sidebar-header {
    margin-top: 0.5rem;
    font-size: 1.1em;
}
nav.sidebar .sidebar-links li > a.sidebar-item {
    color: rgb(250, 199, 121);
    font-size: 1.0em;
}
nav.sidebar .sidebar-item.nested {
    margin-left: 0.75rem;
}
@media (max-width: 700px) {
    nav.sidebar {
        display: none;
    }
    nav.sidebar.shown {
        display: block;
        top: 45px;
        height: calc(100vh - 45px);
        position: fixed;
    }
    nav.sidebar .sidebar-logo-link {
        display: none;
    }
}


main {
    flex-grow: 1;
    min-width: 0;
    position: relative;
    padding-left: 48px;
    padding-right: 24px;
    padding-top: 12px;
    padding-bottom: 2rem;
}
@media (max-width: 700px) {
    main {
        padding-left: 24px;
        padding-right: 24px;
    }
    html {
        scroll-padding-top: 45px;
    }
}

.description pre, .description pre > code {
    background-color: rgb(32, 26, 34);
    color:rgb(230, 230, 230);
    overflow-x: auto;
}
pre > code span.comment {
    color: #78d57f;
}
pre > code span.string {
    color: #ff9696;
}
pre > code span.char-escape {
    color: #ffdada;
}
pre > code span.char {
    color: #ca9e9e;
}
pre > code span.keyword {
    color: #9799ff;
}
pre > code span.punct {
    color: #ddd721;
}

.section-header {
    font-size: 125%;
    margin-top: 1em;
    margin-bottom: 1em;
    font-weight: bold;
}
:is(.fields, .functions, .macros, .methods, .records, .concepts, .namespaces, .aliases, .variables) .section-header {
    padding-bottom: 0.2em;
    border-bottom: 1px solid;
}


.description.short {
    margin: 0;
    line-height: 1.2;
}
.description.short p {
    margin-block-start: 0;
    margin-block-end: 0;
}
.description.long {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    margin-left: 24px;
    line-height: 1.4;
}
@media (max-width: 700px) {
    .description.long {
        margin-left: 0.5rem;
    }
}
code {
    color: rgb(124, 216, 204);
    white-space: nowrap;
}
pre code {
    white-space: pre;
}

/* Description for the top level thing in the page. */
.overview .description :is(h1, h2, h3, h4, h5, h6) {
    border-bottom: 1px solid rgb(184, 184, 184);
}
.overview .description h1 {
    font-size: 120%;
}
/* Description for other things in the page like methods in a class. */
.description :is(h1, h2) {
    font-size: 100%;
    font-weight: bold;
    color: rgb(124, 216, 204);
}
.description :is(h3, h4, h5, h6) {
    font-size: 97%;
    font-weight: bold;
    color: rgb(124, 216, 204);
}

/* Section header links ("fields", "classes", etc.) */
.section-header a {
    text-decoration: none;
    color: inherit;
}
.section-header a:hover {
    text-decoration: underline;
}
/* Links in markdown. */
.description a {
    text-decoration: none;
    color: rgb(250, 199, 121);
}
.description a:hover {
    text-decoration: underline;
}
.description a code {
    /* <code> is coloured elsewhere, but links stay link-coloured. */
    color: inherit;
}

.description pre {
    padding: 1em;
}
.description table {
    border: 1px solid;
    border-collapse: collapse;
}
.description td,th {
    border: 1px solid;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}

.src a {
    text-decoration: none;
    color: rgb(250, 199, 121);
}
.src a:hover {
    text-decoration: underline;
}

/* These types have long descriptions inline in the context's page. */
.record .section-items :is(.type-signature, .function-signature, .member-signature) {
    background-color: rgba(43, 43, 43, 1.0);
    padding: 0.5rem;
    margin-bottom: 0.2rem;
}
.namespace .section-items :is(.member-signature) {
    background-color: rgba(43, 43, 43, 1.0);
    padding: 0.5rem;
    margin-bottom: 0.2rem;
}

.overview :is(.type-signature, .function-signature, .macro-signature) {
    background-color: rgba(43, 43, 43, 1.0);
    margin-bottom: 0.2rem;
    padding: 0.5rem;
    overflow-x: auto;
}
.overview :is(.type-signature, .function-signature, .macro-signature) pre {
    margin: 0;
}
.overview .type-signature :is(.struct, .class, .union, .final) {
    color: rgb(125, 231, 235);
}
.overview .type-signature :is(.type-name) {
    color: rgb(105, 223, 105);
}

.type .section:is(.fields, .methods) .static {
    color: rgb(240, 147, 147);
}
.type .section:is(.fields, .methods) .type-name {
    color: rgb(105, 223, 105);
}
.type .section:is(.fields, .methods) .volatile {
    color: yellow;
}
.type .section:is(.fields, .methods) .const {
    color: yellowgreen;
}

.overview .section-header a {
    text-decoration: none;
}
.overview .section-header a:hover {
    text-decoration: underline;
}
.overview .section-header .project-name {
    color: rgb(207, 66, 184);
}
.overview .section-header .namespace-name {
    color: rgb(142, 214, 236);
}
.overview .section-header .type-name {
    color: rgb(166, 240, 176);
}
.overview .section-header .concept-name {
    color: rgb(166, 240, 176);
}

:is(.type-signature, .function-signature, .macro-signature, .member-signature, .requires, .deleted, .virtual) {
    font-family: monospace;
}

.type .overload-set {
    padding: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}
@media (max-width: 700px) {
    .type .overload-set {
        padding-left: 0;
        padding-right: 0;
    }    
}

a.function-name {
    text-decoration: none;
    color: rgb(191, 142, 236);
}
a.function-name:hover {
    text-decoration: underline;
}
a.macro-name {
    text-decoration: none;
    color: rgb(191, 142, 236);
}
a.macro-name:hover {
    text-decoration: underline;
}
a.namespace-name {
    text-decoration: none;
    color: rgb(142, 214, 236);
}
a.namespace-name:hover {
    text-decoration: underline;
}
a.type-name {
    text-decoration: none;
    color: rgb(142, 201, 236);
}
a.type-name:hover {
    text-decoration: underline;
}
a.field-name {
    text-decoration: none;
    color: rgb(142, 201, 236);
}
a.field-name:hover {
    text-decoration: underline;
}

:is(.type-signature, .overload) :is(.requires, .deleted, .virtual) {
    padding-left: 36px;
}
:is(.type-signature, .overload) .requires .requires-keyword {
    color: rgb(84, 194, 238)
}
:is(.type-signature, .overload) .requires .requires-paren {
    color: rgb(180, 180, 180)
}
:is(.type-signature, .overload) .requires .requires-constraint {
    margin-left: 36px;
    color: rgb(87, 218, 218)
}
.requires .requires-constraint pre {
    margin: 0;
}
.overload .deleted {
    color: rgb(238, 84, 110)
}
.overload .virtual {
    color: rgb(84, 238, 117)
}

ul.item-table {
    display: table;
    overflow-wrap: break-word;
    padding-inline-start: 0;
}
ul.item-table > li {
    display: table-row;
}
ul.item-table > li > div {
    display: table-cell;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}
ul.item-table > li.nested > div:first-child {
    padding-left: 1.5rem;
}
ul.item-table .item-name {
    padding-right: 1.25rem;
}
@media (max-width: 700px) {
    ul.item-table {
        display: block;
    }
    ul.item-table > li {
        display: block;
    }
    ul.item-table > li > div {
        display: block;
    }
    ul.item-table > li > div.description {
        padding-left: 2rem;
    }
    ul.item-table > li.nested > div:first-child {
        padding-left: 1rem;
    }
    ul.item-table > li.nested > div.description {
        padding-left: 2rem;
    }
}

.section-header .src {
    font-size: 80%;
}
.src.rightside {
    padding-left: 12px;
    float: right;
}

.search-form {
    display: flex;
    flex-direction: row;
}
.search-form .search-input {
    flex-grow: 100;
    outline: none;
    background: none;
    color: white;
    border: 1px solid white;
    padding: 0.3rem;
    font-size: 100%;
}

.search-results .search-results-content {
    display: table;
    table-layout: fixed;
    width: 100%;
}
.search-results .search-results-content a.search-results-link {
    display: table-row;
    color: inherit;
    text-decoration: none;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}
.search-results .search-results-content a.search-results-link:hover {
    background-color: rgb(43, 43, 43);
}
.search-results .search-results-content a.search-results-link > span {
    display: table-cell;
    border-bottom: 1px solid rgb(156, 156, 156);
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
}
.search-results .search-results-type {
    width: 18ex;
}
.search-results .search-results-type > div {
    font-size: 90%;
    color: rgb(202, 202, 202);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}
.search-results .search-results-name > div {
    color: rgb(250, 199, 121);
    padding-right: 2rem;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}
.search-results .search-results-summary > div {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}
@media (max-width: 700px) {
    .search-results .search-results-content {
        display: block;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
    }
    .search-results .search-results-content a.search-results-link  {
        display: block;
        width: 100%;
        border-bottom: 1px solid rgb(156, 156, 156);
    }
    .search-results .search-results-content a.search-results-link > span {
        display: inline;
        border-bottom: none;
    }
    .search-results .search-results-type {
        display: inline;
    }
    .search-results .search-results-type > div {
        margin-top: 0.25rem;
        display: inline;
        padding-right: 1rex;
    }
    .search-results .search-results-name {
        display: block;
        display: inline;
    }
    .search-results .search-results-name > div {
        display: block;
        display: inline;
        width: calc(100% - 18ex);
    }
    .search-results .search-results-summary {
        display: block;
        width: 100%;
    }
    .search-results .search-results-summary > div {
        display: block;
        margin-left: 1.5rem;
        width: calc(100% - 1.5rem);
        margin-top: 0.25rem;
        margin-bottom: 0.25rem;
    }
}

.hidden {
    visibility: hidden;
    width: 0;
    height: 0;
    overflow: clip;
}
