/* Custom CSS for read the docs sphinx theme */

:root {
    --bg_h: #1d2021;
    --bg: #282828;
    --bg2: #504945;
    --bg3: #665c54;
    --fg: #ebdbb2;
    --green: #689d6a;
    --green-light: #8ec07c;
    --green-lighter: #a1bc97;
    --light-gray: #a89984;
    --blue: #458588;
    --light-blue: #83a598;
    --purple: #b16286;
    --purple-light: #d3869b;
    --purple-lighter: #cca1ad;
    --gray: #928374;
    --orange-light: #fe8019;
    --yellow: #fabd2f;
    --yellow-light: #ffe6ac;
}

body {
    background-color: #282828;
    color: var(--fg);
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid var(--fg);
    margin: 24px 0;
    padding: 0;
}

.admonition attention {
    color: var(--bg);
}

.rst-content .linenodiv pre,
.rst-content div[class^="highlight"] pre,
.rst-content pre.literal-block {
    background: var(--bg_h);
    color: var(--fg);
}

.rst-content .note .admonition-title,
.rst-content .note .wy-alert-title,
.rst-content .seealso .admonition-title,
.rst-content .seealso .wy-alert-title,
.rst-content .wy-alert-info.admonition-todo .admonition-title,
.rst-content .wy-alert-info.admonition-todo .wy-alert-title,
.rst-content .wy-alert-info.admonition .admonition-title,
.rst-content .wy-alert-info.admonition .wy-alert-title,
.rst-content .wy-alert-info.attention .admonition-title,
.rst-content .wy-alert-info.attention .wy-alert-title,
.rst-content .wy-alert-info.caution .admonition-title,
.rst-content .wy-alert-info.caution .wy-alert-title,
.rst-content .wy-alert-info.danger .admonition-title,
.rst-content .wy-alert-info.danger .wy-alert-title,
.rst-content .wy-alert-info.error .admonition-title,
.rst-content .wy-alert-info.error .wy-alert-title,
.rst-content .wy-alert-info.hint .admonition-title,
.rst-content .wy-alert-info.hint .wy-alert-title,
.rst-content .wy-alert-info.important .admonition-title,
.rst-content .wy-alert-info.important .wy-alert-title,
.rst-content .wy-alert-info.tip .admonition-title,
.rst-content .wy-alert-info.tip .wy-alert-title,
.rst-content .wy-alert-info.warning .admonition-title,
.rst-content .wy-alert-info.warning .wy-alert-title,
.rst-content .wy-alert.wy-alert-info .admonition-title,
.wy-alert.wy-alert-info .rst-content .admonition-title,
.wy-alert.wy-alert-info .wy-alert-title {
    background: var(--green);
}

.rst-content .admonition,
.rst-content .admonition-todo,
.rst-content .attention,
.rst-content .caution,
.rst-content .danger,
.rst-content .error,
.rst-content .hint,
.rst-content .important,
.rst-content .note,
.rst-content .seealso,
.rst-content .tip,
.rst-content .warning {
    clear: both;
    background: var(--green-lighter);
}

.rst-content code.literal,
.rst-content tt.literal {
    color: var(--orange-light);
    white-space: normal;
    background: var(--bg);
}

.rst-content code.literal.code-alt {
    color: var(--green-light);
    font-weight: bold;
    font-family: monospace;
    background: var(--bg);
    /* border-color: var(--fg); */
    /* border: var(--fg); */
    /* border: 1px solid #e1e4e5; */

}

.code-alt {
    color: var(--green-light);
    font-weight: bold;
    font-family: monospace;
    background: var(--bg);
    /* border: 0.5px solid var(--fg); */
    /* padding: 1px; */
}

.code-header {
    color: var(--green-light);
    font-weight: bold;
    font-family: monospace;
    background: var(--bg);
    /* border: 0.5px solid var(--fg); */
    /* padding: 1px; */
}

.rst-content .admonition-todo .admonition-title,
.rst-content .admonition-todo .wy-alert-title,
.rst-content .attention .admonition-title,
.rst-content .attention .wy-alert-title,
.rst-content .caution .admonition-title,
.rst-content .caution .wy-alert-title,
.rst-content .warning .admonition-title,
.rst-content .warning .wy-alert-title,
.rst-content .wy-alert-warning.admonition .admonition-title,
.rst-content .wy-alert-warning.admonition .wy-alert-title,
.rst-content .wy-alert-warning.danger .admonition-title,
.rst-content .wy-alert-warning.danger .wy-alert-title,
.rst-content .wy-alert-warning.error .admonition-title,
.rst-content .wy-alert-warning.error .wy-alert-title,
.rst-content .wy-alert-warning.hint .admonition-title,
.rst-content .wy-alert-warning.hint .wy-alert-title,
.rst-content .wy-alert-warning.important .admonition-title,
.rst-content .wy-alert-warning.important .wy-alert-title,
.rst-content .wy-alert-warning.note .admonition-title,
.rst-content .wy-alert-warning.note .wy-alert-title,
.rst-content .wy-alert-warning.seealso .admonition-title,
.rst-content .wy-alert-warning.seealso .wy-alert-title,
.rst-content .wy-alert-warning.tip .admonition-title,
.rst-content .wy-alert-warning.tip .wy-alert-title,
.rst-content .wy-alert.wy-alert-warning .admonition-title,
.wy-alert.wy-alert-warning .rst-content .admonition-title,
.wy-alert.wy-alert-warning .wy-alert-title {
    background: var(--green);
}

.rst-content .admonition-todo,
.rst-content .attention,
.rst-content .caution,
.rst-content .warning,
.rst-content .wy-alert-warning.admonition,
.rst-content .wy-alert-warning.danger,
.rst-content .wy-alert-warning.error,
.rst-content .wy-alert-warning.hint,
.rst-content .wy-alert-warning.important,
.rst-content .wy-alert-warning.note,
.rst-content .wy-alert-warning.seealso,
.rst-content .wy-alert-warning.tip,
.wy-alert.wy-alert-warning {
    background: var(--green-lighter);
}

.rst-content .admonition-todo p:last-child,
.rst-content .admonition p:last-child,
.rst-content .attention p:last-child,
.rst-content .caution p:last-child,
.rst-content .danger p:last-child,
.rst-content .error p:last-child,
.rst-content .hint p:last-child,
.rst-content .important p:last-child,
.rst-content .note p:last-child,
.rst-content .seealso p:last-child,
.rst-content .tip p:last-child,
.rst-content .warning p:last-child,
.wy-alert p:last-child {
    color: var(--bg);
}



.wy-nav-side {
    background: var(--bg);
}

.toctree-l1.current {
    background: var(--blue);
}

a.reference.internal.current {
    color: var(--blue);
    background: var(--light-blue);
}

li.toctree-l2 current {
    background: var(--light-blue);
}

li.toctree-l3 current {
    background: var(--light-blue);
}

.wy-menu-vertical li.toctree-l2.current>a,
.wy-menu-vertical li.toctree-l2.current li.toctree-l3>a {
    background: var(--blue);
}

.wy-menu-vertical li.toctree-l3.current>a,
.wy-menu-vertical li.toctree-l3.current li.toctree-l4>a {
    background: var(--light-blue);
    color: var(--bg_h);
}

/* li.toctree-l3 {
    background: var(--bg2);
} */

.wy-menu-vertical li.current a {
    background: var(--bg2);
    border-right: 0px solid var(--bg2)
}


/* a.reference.internal { */
/* background: var(--bg2); */
/* } */

.wy-side-nav-search,
.wy-nav-top {
    background: var(--blue);
}

.wy-nav-content {
    background: var(--bg_h);
}

.wy-nav-content-wrap {
    background: var(--bg_h);
}


h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--fg);
}

.wy-nav-side .caption-text {
    color: var(--blue);
}

.wy-nav-side a.reference.internal {
    color: var(--fg);
}

.wy-nav-side a.reference.internal:hover {
    color: var(--fg);
    background: var(--bg3);
    /* text-decoration: underline; */
}

a.reference.internal {
    color: var(--blue);
    text-decoration: none;
}

a.reference.internal:hover {
    color: var(--light-blue);
    text-decoration: underline;
}

a.reference.internal:visited {
    color: var(--purple);
}

.wy-nav-side a.reference.internal:visited {
    color: var(--fg);
}
