@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

:target {
    background-color: #ececec !important;
    color: black !important;
    border-bottom: 1px solid #e0e0e0 !important;
    border-top: 1px solid #e0e0e0 !important;
}

body {
    font-family: Inter, sans-serif;
    color: #2f4153;
    padding: 0px;
    margin: 0;
}

div.topbar {
    box-sizing: border-box;
    background-color: #eeeeee;
    position: fixed;
    display: flex;
    align-items: center;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 60px;
    padding: 0 1em 0 0.4em;
    z-index: 10;
    font-size: 150%;
    color: white;
    box-shadow: 0 0px 15px 5px rgba(0, 0, 0, 0.4);
}

div.topbar div.group {
    display: flex;
    flex: 1;
}

div.topbar div.group.one {
    justify-content: flex-start;
}

div.topbar div.group.two {
    justify-content: center;
}
div.topbar div.group.three {
    justify-content: flex-end;
}

div.topbar a {
    color: #1982d2;
    border: none;
    padding: 0.5em 1em;
}

div.topbar div.description a {
    font-size: 100% !important;
    font-weight: normal !important;
    margin-left: 0 !important;
}

div.topbar div.button a {
    margin: 0.375em 0;
    font-size: 50%;
    font-weight: bold;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

div.topbar div.button.solid a {
    margin-left: 1em;
}

div.topbar div.button.solid a,
div.topbar div.button a:hover {
    background-color: #e1e1e1;
    text-shadow: 0 1px rgba(0, 0, 0, 0.5);
    border-radius: 3px;
    border: none;
}
div.topbar div.button.solid a:hover {
    background-color: #8aa0ad;
}

div.topbar div.button a img {
    width: 1.5em;
}

div.topbar div.button a img[src*='.svg'] {
    filter: invert(1);
}

div.topbar div.button.iconleft a {
    padding-left: 0.6em;
    padding-right: 1em;
    display: none;
}

div.topbar div.button.iconright a {
    padding-left: 1em;
    padding-right: 0.6em;
    display: none;
}

div.topbar div.button.iconleft a img {
    padding-right: 0.5em;
}
div.topbar div.button.iconright a img {
    padding-left: 0.5em;
}

div.sidebar {
    clear: both;
    box-sizing: border-box;
    background-color: #fbfbfb;
    width: 25em;
    height: calc(100% - 60px);
    padding: 1em 0.5em;
    border-right: 1px solid #ccc;
    position: fixed;
    overflow-y: auto;
    text-indent: 12px
}

div.sidebar {
    scrollbar-width: thin; 
    scrollbar-color: #8b8b8b #fcfcfc; 
}

div.body {
    margin-left: 28em;
    margin-top: 4em;
}

div.sidebar div.heading {
    font-weight: normal;
    padding-top: 10px;
    padding-left: 10px;
}

div.sidebar ul {
    list-style-type: none;
    padding-left: 3em;
    margin-top: 0.5em;
}
div.sidebar li {
    padding: 6px 0;
    font-size: 85%;
}

div.sidebar li.selected {
    font-weight: normal;
    font-size: 100%;
    color: #1982d2;
}

div.sidebar div.sections li {
    padding-left: 1.8em;
}

div.sidebar p,
h2 p {
    margin: 0;
    padding: 0;
    display: inline;
    font-weight: normal;
}

a {
    color: #444;
    text-decoration: none; 
    border-bottom: none; 
}

a:hover {
    color: #1982d2;
    text-decoration: none;
    border-bottom: none; 
}

div.section {
    padding: 5em 1em 1em 1em;
}

div.body {
    padding: 1.7em 1em 1em 1em;
}

div.manual {
    padding: 0em 1em 1em 0em;
}

div.body pre {
    margin: 0 2em;
}

div.manual h1 {
    margin: 0 -16px 0 -20px;
    padding: 10px 10px 10px 20px;
    font-size: 120%;
    font-weight: normal;
}

div.section h2 {
    margin: 0 -16px 0 -40px;
    padding: 10px 10px 10px 60px;
    background-color: #fafafa;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    border-left: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
    border-radius: 4px;
    font-size: 120%;
    font-weight: normal;
}

div.manual h2,
div.manual h3 {
    margin: 1em -16px 0 -20px;
    padding: 10px 10px 10px 20px;
}

div.manual h2 {
    background-color: #fafafa;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    border-left: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
    border-radius: 4px;
    font-size: 120%;
    padding: 10px 10px 10px 20px;
    font-weight: normal;
}

div.manual h3 {
    font-size: 110%;
    padding: 5px 5px 5px 20px;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
}

div.hierarchy {
    margin-top: 2em;
    margin-bottom: 2em;
}

div.hierarchy div.heading {
    font-weight: bold;
    margin-bottom: 0.5em;
}
div.hierarchy ul {
    margin-top: 0.5em;
    padding-left: 1em;
}

div.hierarchy li {
    list-style-type: none;
    margin: 0.4em 0;
}
div.hierarchy li span {
    padding: 0.2em;
    font-family: "Consolas", "Deja Vu Sans Mono", "Bitstream Vera Sans Mono", monospace;
    font-size: 0.95em;
    letter-spacing: 0.01em;
}
div.hierarchy li span em {
    font-style: normal;
}

div.hierarchy li.self span {
    background-color: #fbedc3;
}

h1,
div.section h2.class,
div.section h2.module {
    color: #242424;
    background-color: #f5f5f5;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    border-left: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
    border-radius: 4px;
    font-size: 140%;
    font-weight: normal;
}


code {
    font-family: JetBrains Mono, monospace;
    font-size: 1.1em;
}

var, a code {
    letter-spacing: 0.01em;
    font-weight: bold;
    font-style: normal;
    color: #444;
}

div.see {
    padding-top: 0.5em;
}

div.see::before {
    content: "👉 ";
}

h3.fields, h3.functions {
    padding-top: 1em;
    padding-bottom: 0.5em !important;
}
dl p:first-child {
    margin-top: 0.5em;
}
dl dd:not(:last-child),
dl dd:not(:last-child) {
    padding-bottom: 1.5em;
}


dt {
    padding: 0.5em;
    margin-left: -1em;
    margin-right: -1em;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
}
dt var {
    font-size: 1.15em;
}
dd {
    margin-left: 2.5em;
}

dl.functions div.heading {
    margin-top: 1em;
    margin-left: 0em;
    margin-bottom: 0.5em;
    font-style: italic;
}


table.parameters,
table.returns {
    max-width: 90%;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    border-left: transparent;
    border-right: transparent;
    margin-left: 1em;
    border-collapse: collapse;
}
table.parameters td,
table.returns td {
    padding: 0.4em 0;
    vertical-align: top;
}

table.parameters tr:not(:last-child) td,
table.returns tr:not(:last-child) td {
    border-bottom: 1px solid #ccc;
}

table.parameters tr,
table.returns tr {
    background: #f7f7f7;
}


table.parameters tr td:first-child,
table.returns tr td:first-child {
    text-align: right;
    padding-left: 1em;
}

table.parameters tr td:last-child,
table.returns tr td:last-child {
    padding-right: 1em;
}

table.parameters td.name,
table.parameters td.types,
table.returns td.name,
table.returns td.types {
    white-space: nowrap;
    padding-right: 1em !important;
}


* {
    scroll-padding-top: 90px;
}

div.section div.inner {
    min-width: 20em;
    max-width: 80em;
}

div.synopsis h3 {
    display: none;
}

div.synopsis div.heading {
    font-weight: bold;
    margin-top: 1em;
    margin-bottom: 0em;
    margin-left: 0.5em;
}

div.synopsis table {
    border-top: 1px solid #d3d3d3;
    border-bottom: 1px solid #d3d3d3;
    background-color: #fcfcfc;
    width: 95%;
    margin: 1em auto;
    border-collapse: collapse;
}
div.synopsis td {
    padding: 0.3em 0.5em 0.3em 0.5em;
    vertical-align: top;
}
div.synopsis tr:not(:last-child) td {
    border-bottom: 1px solid #d3d3d3;
}

div.synopsis td:first-child {
    white-space: nowrap;
    padding-right: 1em;
}

div.synopsis td.meta,
div.synopsis td.meta a {
    white-space: nowrap;
    color: #777777;
}

div.synopsis td > p,
table.parameters td > p,
table.returns td > p {
    margin: 0;
}

div.synopsis td > p:not(:first-child) {
    margin-top: 0.5em;
}

div.synopsis td a.permalink {
    color: #aaa;
}


div.admonition {
    border: 1px solid #609060;
    background-color: #e9ffe9;
    width: 90%;
    margin: 1.5em auto;
}

div.admonition div.title {
    margin: 0;
    margin-top: 0px;
    padding: 0.3em 0 0.3em 0.5em;
    color: white;
    font-weight: bold;
    font-size: 1.0em;
    text-shadow: 0 1px rgba(0, 0, 0, 0.5);
}

div.admonition div.body {
    margin: 0.5em 1em 0.5em 1em;
    padding: 0;
}


div.warning {
    border: 1px solid #900000;
    background-color: #ffe9e9;
}

div.warning > div.title {
    background-color: #b04040;
    border-bottom: 1px solid #900000;
}

div.note > div.title {
    background-color: #70A070;
    border-bottom: 1px solid #609060;
}

dl.fields dt span.icon::after {
    content: "🏷️ ";
    vertical-align: middle;
    font-size: 110%;
}

dl.fields dt span.tag,
dl.functions dt span.tag {
    border-radius: 20px;
    border: 1px solid #ccc;
    background-color: #eee;
    display: inline;
    opacity: 0.6;
    padding: 5px 10px;
    font-size: 80%;
    margin: 0 0.5em;
}

dl.fields dt span.tag:first-of-type,
dl.functions dt span.tag:first-of-type {
    margin-left: 2em;
}

dl.fields dt span.meta::before,
dl.functions dt span.meta::before {
    filter: saturate(0);
    opacity: 0.9;
    content: "👁️";
    padding-right: 0.5em;
}

dl.fields dt span.type::before {
    filter: saturate(0);
    opacity: 0.9;
    content: "✏️";
    padding-right: 0.5em;
}

dl.functions dt span.icon::after {
    content: "🏃‍♂️ ";
    vertical-align: middle;
    font-size: 140%;
}

a.permalink:hover {
    color: #c60f0f !important;
    border: none;
}

a.permalink {
    color: #ccc;
    font-size: 1em;
    margin-left: 6px;
    padding: 0 4px 0 4px;
    text-decoration: none;
    border: none;
    visibility: hidden;
}

h1:hover > a.permalink,
h2:hover > a.permalink,
h3:hover > a.permalink,
h4:hover > a.permalink,
td:hover > a.permalink,
td:hover > div > a.permalink,
dt:hover > a.permalink {
    visibility: visible;
}

pre.language-lua {
    border-radius: 6px;
}

dd table {
}

input.search {
    width: calc(100% - 2.5em);
    opacity: 0.7;
    margin: 0 1em 1em 1em;
}

input.search:focus {
    opacity: 1.0;
}

div#template {
    display: none;
}

div#results {
    padding: 1em;
    max-width: 650px;
}

div.result {
    margin-bottom: 35px;
    font-family: arial, sans-serif;
}

div.result div.title {
    font-size: 20px;
    line-height: 1.3;
}

div.result div.text {
    line-height: 1.58;
    margin-left: 2em;
}

div.summary {
    color: #666666;
    font-size: 90%;
    margin-bottom: 1em;
}

div.result span {
    font-size: 90%;
}

div.result.result-class span::after {
    content: "🧱 ";
}
div.result.result-module span::after {
    content: "📦 ";
}
div.result.result-field span::after {
    content: "🏷️ ";
}
div.result.result-function span::after {
    content: "🏃‍♂️ ";
}
div.result.result-section span::after {
    content: "📓 ";
}
div.result b {
    background-color: #faffb8;
}

table.user {
    border-collapse: collapse;
    margin: 1em;
    font-family: sans-serif;
    min-width: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    border-collapse: collapse;
    overflow: hidden;
}

table.user thead tr {
    background-color: #3a5e75;
    color: #ffffff;
    text-align: left;
}

table.user th,
table.user td {
    padding: 12px 15px;
}

table.user tbody tr {
    border-bottom: 1px solid #dddddd;
}

table.user tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

table.user tbody tr:last-of-type {
    border-bottom: 3px solid #3a5e75;
}

doxygen-awesome-dark-mode-toggle {
    padding-right: 10px;
    padding-top: 5.5px;
    vertical-align: bottom;
}

td.name {
    color: #1982d2;
}

a[href] {
    color: #1982d2;
    text-decoration: none;
}

a[href] var {
    color: #1982d2;
    font-weight: bold;
}

var[href],
code[href] {
    color: #1982d2;
    cursor: pointer;
}

code {
    color: inherit;
}

div.sidebar a[href] {
    color: inherit;
    text-decoration: none;
}

/* Dark mode styles */
html.dark-mode {
    color-scheme: dark;

    :target {
        background-color: #4b4b4b !important;
        color: white !important;
        border-bottom: 1px solid #444 !important;
        border-top: 1px solid #444 !important;
    }

    body {
        background-color: #1b1c1e;
        color: #d2dbde;
    }

    div.topbar {
        background-color: #333;
        color: #d2dbde;
    }

    div.topbar a {
        color: #1982d2;
    }

    div.topbar div.button.solid a,
    div.topbar div.button a:hover {
        background-color: #555;
    }

    div.topbar div.button.solid a:hover {
        background-color: #777;
    }

    div.sidebar {
        background-color: #252628;
        border-right: 1px solid #444;
    }

    div.sidebar {
        scrollbar-width: thin; 
        scrollbar-color: #9f9f9f #2c2c2c; 
    }

    div.body {
        background-color: #1c1d1f;
        color: #d2dbde;
    }

    div.section h2 {
        background-color: #282c34;
        border-top: 1px solid #444;
        border-bottom: 1px solid #444;
        border-left: 1px solid #444;
        border-right: 1px solid #444;
        border-radius: 4px;
    }

    div.manual h2 {
        background-color: #282c34;
        border-top: 1px solid #38393b;
        border-bottom: 1px solid #38393b;
        border-left: 1px solid #38393b;
        border-right: 1px solid #38393b;
        font-size: 120%;
        padding: 12px 12px 12px 20px;
}


    a {
        color: #d2dbde;
        border-bottom: 1px solid #1b1c1e;
    }

    div.hierarchy li.self span {
        background-color: #333;
    }

    h1,
    div.section h2.class,
    div.section h2.module {
        color: #d2dbde;
        background-color: #282c34;
        border-left: 1px solid #444;
        border-right: 1px solid #444;
        border-top: 1px solid #444;
        border-bottom: 1px solid #444;
        font-weight: normal;
    }

    code {
        color: #1982d2;
    }

    var, a code {
        color: #d2dbde;
        font-weight: bold; 
    }

    a[href] var {
        color: #1982d2;
        font-weight: bold; 
    }

    var, a code {
        color: #d2dbde;
        font-weight: bold;
    }

    var[href], a[href] code {
        color: #1982d2;
    }

    div.see::before {
        color: #1982d2;
    }

    table.parameters,
    table.returns {
        border-top: 1px solid #444;
        border-bottom: 1px solid #444;
    }

    table.parameters tr,
    table.returns tr {
        background: #1e1e1e;
    }

    table.parameters tr td:last-child,
    table.returns tr td:last-child {
        color: #d2dbde;
    }

    div.admonition {
        border: 1px solid #444;
        background-color: #333;
    }

    div.warning {
        border: 1px solid #900000;
        background-color: #2e1e1e;
    }

    div.warning > div.title {
        background-color: #b04040;
        border-bottom: 1px solid #900000;
    }

    div.note > div.title {
        background-color: #70A070;
        border-bottom: 1px solid #609060;
    }

    dl.fields dt span.icon::after,
    dl.functions dt span.icon::after {
        color: #1982d2;
    }

    a.permalink {
        color: #1982d2;
    }

    a.permalink:hover {
        color: #d2dbde !important;
    }

    div.synopsis table {
        border-top: 1px solid #646464;
        border-bottom: 1px solid #646464;
        background-color: #1e1e1e;
    }

    div.synopsis tr:not(:last-child) td {
        border-bottom: 1px solid #646464;
    }

    div.synopsis td.meta,
    div.synopsis td.meta a {
        color: #777;
    }

    div.synopsis td a.permalink {
        color: #1982d2;
    }

    div.result b {
        background-color: #444;
    }

    table.user thead tr {
        background-color: #333;
        color: #d2dbde;
    }

    table.user tbody tr:nth-of-type(even) {
        background-color: #1e1e1e;
    }

    table.user tbody tr:last-of-type {
        border-bottom: 3px solid #333;
    }
    
    a[href] {
        color: #1982d2;
        text-decoration: none;
    }
    
    a[href] var {
        color: #1982d2;
        font-weight: bold;
    }
    
    var[href],
    code[href] {
        color: #1982d2;
        cursor: pointer;
    }
    
    code {
        color: inherit;
    }
    
    div.sidebar a[href] {
        color: inherit;
        text-decoration: none;
    }

}
/* hide the default search box */
.sidebar form[action*="search.html"] {
    display: none;
}