
/* Browser elements */
:root {
    scrollbar-color: #616161 transparent;
    color-scheme: dark;
}

html,
body {
    background-color: #222;
    color: rgba(255, 255, 255, 0.87);
}

div.related {
    color: rgba(255, 255, 255, 0.7); /* classic overwrite */
    border-color: #424242;
}

/* SIDEBAR */
div.sphinxsidebar, .menu-wrapper {
    background-color: #333;
    color: inherit;
}

#sidebarbutton {
    /* important to overwrite style attribute */
    background-color: #555 !important;
    color: inherit !important;
}

div.sidebar, aside.sidebar {
    background-color: #424242;
    border-color: #616161;
}

/* ANCHORS AND HIGHLIGHTS */
div.body a {
    color: #7af;
}

div.body a:visited {
    color: #09e;
}

a.headerlink:hover {
    background-color: #424242;
}

div.related a {
    color: currentColor;
}

div.footer,
div.footer a {
    color: currentColor; /* classic overwrites */
}

dt:target,
span.highlighted {
    background-color: #616161;
}

/* Below for most things in text */

dl.field-list > dt {
    background-color: #434;
}

table.docutils td,
table.docutils th {
    border-color: #616161 !important;
}

table.docutils th {
    background-color: #424242;
}

.refcount {
    color: #afa;
}

.stableabi {
    color: #bbf;
}

div.body pre {
    border-color: #616161;
}

code {
    background-color: #424242;
}

div.body div.seealso {
    background-color: rgba(255, 255, 0, 0.1);
}

div.warning {
    background-color: rgba(255, 0, 0, 0.2);
}

.warning code {
    background-color: rgba(255, 0, 0, 0.5);
}

aside.topic,
div.topic,
div.note,
nav.contents {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: currentColor;
}

.note code {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav {
    box-shadow: rgba(255, 255, 255, 0.25) 0 0 2px 0;
}

.nav-content {
    background-color: black;
}

img.invert-in-dark-mode {
    filter: invert(1) hue-rotate(.5turn);
}

/* -- object description styles --------------------------------------------- */

/* C++ specific styling */

/* Override Sphinx's basic.css to fix colour contrast */
.sig.c   .k, .sig.c   .kt,
.sig.cpp .k, .sig.cpp .kt {
    color: #5283ff;
}
