

h3 {
    color : #3d3d3d;
    font-family : 'Roboto' ,sans-serif;
    font-weight : bold;
}

h2 {
    color : #4d4d4d;
    font-family : 'Roboto' ,sans-serif;
    margin-right: 45px;
}

h1 {
    color : #4d4d4d;
    font-family : 'Roboto' ,sans-serif;
}

h4 {
   font-family : 'Roboto' ,sans-serif;
}

.wy-breadcrumbs li {
    color : #4d4d4d;
}

a {
    color : #A1ADEC;
}

a:visited {
   color : #A1ADEC; 
}

a.top_anchor {
   position : absolute;
   right : 45px;
   font-size : 16px;
   margin-top : 10px;
   font-family: 'Roboto',sans-serif;
   font-weight: normal;
   color: #838383;
}

a.top_anchor:hover{
    color: #A1ADEC;
    cursor: pointer;
}


p {
    color : #4d4d4d;
}


.btn-neutral:visited {
    color:#4d4d4d !important;
}

 /* Get rid of home icon */
a.icon {
    display : none;
}



 /* Box with search bar */
div.wy-side-nav-search {
    background : #F7F6F2;
}

 /* Right navigation background */
nav.wy-nav-side.stickynav {
    background : #F7F6F2;
}

.wy-nav-side {
    background : #F7F6F2;
}

 /* Content text background */
div.wy-nav-content {
    background : #F7F6F2;
}

 /* Box around content text background */
section.wy-nav-content-wrap {
    background : #F7F6F2;
}


/* blue hover highlight */
div.wy-menu-vertical li.current a:hover {
  background: #A1ADEC;
  color     : #838383;
  border-right : none;
}

div.wy-menu-vertical li.current a {
  border-right : none;
}


/* blue hover highlight */
div.wy-menu-vertical a:hover {
    background: #A1ADEC;
    color : #838383;
}

/* This only for home link  */
div.wy-menu-vertical li.toctree-l1 a {
    color : #838383;
}


div.wy-menu-vertical span {
    color : #b8b8b8;
}


/* search field */
div.wy-side-nav-search input[type="text"] {
    border-color : #A1ADEC;
}

div.rst-versions {
    background : blue;
} 

div.rst-versions {
    border-top : #F7F6F2;
}

div.rst-versions .rst-current-version { 
    background : #F7F6F2;
}


div.rst-versions .rst-current-version  a {
    color : #A1ADEC !important;
} 

div.wy-menu-vertical li ul li a.toctree-l4 {
    color : #a3a3a3;
    left  : 10px;
}


/* a picture with a dark twin, e.g. the YouTube logo of the start page (docs/index.md): the light one
   (class theme_light_only) is shown, the dark one (class theme_dark_only) only on dark pages, see below */
.theme_dark_only {
    display : none;
}


/*
 * DARK THEME
 *
 * The rules below apply only when <html> has data-string-theme="dark", like STRING's own dark pages.
 * The attribute is set by the script that rewrite_image_links.py appends to js/theme.js (loaded in the
 * <head>, so before the body is drawn): it reads the cookie string_theme, which STRING's theme switch
 * writes for the whole site, and marks the page dark when the cookie says dark. Without the cookie,
 * or with string_theme=light, none of these rules apply and the pages stay as above.
 *
 * Colours are STRING's dark palette (css/palette.css in the STRING repository), written out here:
 *   page #161719, surface #1F2125, muted surface #2C2E34, stronger surface / border #3A3D44,
 *   strong border #5C6068, text #E3E4E6, secondary text #C4C6CA, muted text #9A9DA3,
 *   faint text #73767C, brand and links #A1ADEC, brand hover #B6C0F1, brand tint #343A63.
 *
 * Screen only, like STRING: a printed page stays light.
 */

@media screen {

/* the browser draws scrollbars and the default form controls dark */
html[data-string-theme="dark"] {
    color-scheme : dark;
}

/* page backgrounds: the body (without the theme's left stripe image), the content, the box around
   it, the left navigation and the box with the search field */
html[data-string-theme="dark"] body,
html[data-string-theme="dark"] .wy-body-for-nav {
    background : #161719;
    color      : #E3E4E6;
}

html[data-string-theme="dark"] div.wy-nav-content,
html[data-string-theme="dark"] section.wy-nav-content-wrap,
html[data-string-theme="dark"] nav.wy-nav-side.stickynav,
html[data-string-theme="dark"] .wy-nav-side,
html[data-string-theme="dark"] div.wy-side-nav-search {
    background : #161719;
}


/* headings and text */
html[data-string-theme="dark"] h1,
html[data-string-theme="dark"] h2,
html[data-string-theme="dark"] h3 {
    color : #E3E4E6;
}

/* h4 to h6 are blue in the light theme (theme_extra.css) */
html[data-string-theme="dark"] h4,
html[data-string-theme="dark"] h5,
html[data-string-theme="dark"] h6 {
    color : #A1ADEC;
}

html[data-string-theme="dark"] p {
    color : #E3E4E6;
}

html[data-string-theme="dark"] .wy-breadcrumbs li {
    color : #C4C6CA;
}

html[data-string-theme="dark"] hr {
    border-top-color : #3A3D44;
}

html[data-string-theme="dark"] footer {
    color : #9A9DA3;
}


/* links: the colour stays the brand colour (above); only the hover gets a lighter one */
html[data-string-theme="dark"] a:hover {
    color : #B6C0F1;
}

html[data-string-theme="dark"] a.top_anchor {
    color : #9A9DA3;
}

html[data-string-theme="dark"] a.top_anchor:hover {
    color : #A1ADEC;
}


/* left navigation: menu items, section captions, the current page and its headings */
html[data-string-theme="dark"] div.wy-menu-vertical a,
html[data-string-theme="dark"] div.wy-menu-vertical li.toctree-l1 a {
    color : #C4C6CA;
}

html[data-string-theme="dark"] div.wy-menu-vertical li ul li a.toctree-l4 {
    color : #9A9DA3;
}

html[data-string-theme="dark"] div.wy-menu-vertical span {
    color : #9A9DA3;
}

/* the open section of the current page (grey in the light theme) */
html[data-string-theme="dark"] div.wy-menu-vertical li.current {
    background : #2C2E34;
}

/* the current page itself (white in the light theme) */
html[data-string-theme="dark"] div.wy-menu-vertical li.current > a,
html[data-string-theme="dark"] div.wy-menu-vertical li.on a {
    color         : #E3E4E6;
    background    : #1F2125;
    border-top    : solid 1px #3A3D44;
    border-bottom : solid 1px #3A3D44;
}

html[data-string-theme="dark"] div.wy-menu-vertical li.toctree-l2.current > a {
    background : #3A3D44;
}

/* hover highlight: the brand tint with light text (blue with grey text in the light theme) */
html[data-string-theme="dark"] div.wy-menu-vertical a:hover,
html[data-string-theme="dark"] div.wy-menu-vertical li.current a:hover,
html[data-string-theme="dark"] div.wy-menu-vertical li.toctree-l1 a:hover,
html[data-string-theme="dark"] div.wy-menu-vertical li ul li a.toctree-l4:hover {
    background : #343A63;
    color      : #E3E4E6;
}


/* search fields: in the navigation and on the search results page */
html[data-string-theme="dark"] div.wy-side-nav-search input[type="text"],
html[data-string-theme="dark"] #mkdocs-search-query {
    background : #1F2125;
    color      : #E3E4E6;
    box-shadow : none;
}

html[data-string-theme="dark"] div.wy-side-nav-search input[type="text"] {
    border-color : #A1ADEC;
}

html[data-string-theme="dark"] #mkdocs-search-query {
    border-color : #5C6068;
}

html[data-string-theme="dark"] div.wy-side-nav-search input[type="text"]:focus,
html[data-string-theme="dark"] #mkdocs-search-query:focus {
    border-color : #B6C0F1;
}

html[data-string-theme="dark"] input::placeholder {
    color : #73767C;
}

/* the line between search results */
html[data-string-theme="dark"] #mkdocs-search-results article h3 {
    border-top-color : #3A3D44;
}


/* tables: header row, striped rows and borders */
html[data-string-theme="dark"] .rst-content table.docutils {
    border-color : #3A3D44;
}

html[data-string-theme="dark"] .rst-content table.docutils thead {
    color : #E3E4E6;
}

html[data-string-theme="dark"] .rst-content table.docutils thead th {
    background          : #2C2E34;
    border-bottom-color : #5C6068;
}

html[data-string-theme="dark"] .rst-content table.docutils td {
    border-bottom-color : #3A3D44;
    border-left-color   : #3A3D44;
}

html[data-string-theme="dark"] .rst-content table.docutils:not(.field-list) tr:nth-child(2n-1) td {
    background-color : #1F2125;
}


/* code: inline code and code blocks (a code block is a <code> inside a <pre>, drawn by highlight.js) */
html[data-string-theme="dark"] code {
    background   : #1F2125;
    border-color : #3A3D44;
    color        : #FF7B72;
}

html[data-string-theme="dark"] pre code,
html[data-string-theme="dark"] .hljs,
html[data-string-theme="dark"] .no-highlight {
    color : #E3E4E6;
}

/* the token colours of highlight.css (its GitHub theme), each with a lighter counterpart */
html[data-string-theme="dark"] .hljs-comment,
html[data-string-theme="dark"] .diff .hljs-header,
html[data-string-theme="dark"] .hljs-javadoc {
    color : #9A9DA3;
}

html[data-string-theme="dark"] .hljs-keyword,
html[data-string-theme="dark"] .css .rule .hljs-keyword,
html[data-string-theme="dark"] .hljs-winutils,
html[data-string-theme="dark"] .nginx .hljs-title,
html[data-string-theme="dark"] .hljs-subst,
html[data-string-theme="dark"] .hljs-request,
html[data-string-theme="dark"] .hljs-status {
    color : #E3E4E6;
}

html[data-string-theme="dark"] .hljs-number,
html[data-string-theme="dark"] .hljs-hexcolor,
html[data-string-theme="dark"] .ruby .hljs-constant {
    color : #5CCFCF;
}

html[data-string-theme="dark"] .hljs-string,
html[data-string-theme="dark"] .hljs-tag .hljs-value,
html[data-string-theme="dark"] .hljs-phpdoc,
html[data-string-theme="dark"] .hljs-dartdoc,
html[data-string-theme="dark"] .tex .hljs-formula {
    color : #F28B9B;
}

html[data-string-theme="dark"] .hljs-title,
html[data-string-theme="dark"] .hljs-id,
html[data-string-theme="dark"] .scss .hljs-preprocessor {
    color : #F5A097;
}

html[data-string-theme="dark"] .hljs-class .hljs-title,
html[data-string-theme="dark"] .hljs-type,
html[data-string-theme="dark"] .vhdl .hljs-literal,
html[data-string-theme="dark"] .tex .hljs-command {
    color : #9DB2F0;
}

html[data-string-theme="dark"] .hljs-tag,
html[data-string-theme="dark"] .hljs-tag .hljs-title,
html[data-string-theme="dark"] .hljs-rule .hljs-property,
html[data-string-theme="dark"] .django .hljs-tag .hljs-keyword {
    color : #A5B4FF;
}

html[data-string-theme="dark"] .hljs-attribute,
html[data-string-theme="dark"] .hljs-variable,
html[data-string-theme="dark"] .lisp .hljs-body,
html[data-string-theme="dark"] .hljs-name {
    color : #5CCFCF;
}

html[data-string-theme="dark"] .hljs-regexp {
    color : #6CC475;
}

html[data-string-theme="dark"] .hljs-symbol,
html[data-string-theme="dark"] .ruby .hljs-symbol .hljs-string,
html[data-string-theme="dark"] .lisp .hljs-keyword,
html[data-string-theme="dark"] .clojure .hljs-keyword,
html[data-string-theme="dark"] .scheme .hljs-keyword,
html[data-string-theme="dark"] .tex .hljs-special,
html[data-string-theme="dark"] .hljs-prompt {
    color : #E38AC9;
}

html[data-string-theme="dark"] .hljs-built_in {
    color : #5CBCE6;
}

html[data-string-theme="dark"] .hljs-preprocessor,
html[data-string-theme="dark"] .hljs-pragma,
html[data-string-theme="dark"] .hljs-pi,
html[data-string-theme="dark"] .hljs-doctype,
html[data-string-theme="dark"] .hljs-shebang,
html[data-string-theme="dark"] .hljs-cdata {
    color : #9A9DA3;
}

html[data-string-theme="dark"] .hljs-deletion {
    background : #3E2427;
}

html[data-string-theme="dark"] .hljs-addition {
    background : #1E3324;
}

html[data-string-theme="dark"] .diff .hljs-change {
    background : #2B5D7A;
}

html[data-string-theme="dark"] .hljs-chunk {
    color : #9A9DA3;
}


/* pictures: the screenshots stay light (they show the light STRING pages); a thin frame sets them
   off from the dark page, and a white backing keeps the figures with a transparent background
   (network pictures with black labels) readable */
html[data-string-theme="dark"] .rst-content img {
    background-color : #FFFFFF;
    outline          : 1px solid #3A3D44;
}

/* a picture with a dark twin (above): the dark one instead of the light one, on the page itself, without the
   backing and the frame of the screenshots */
html[data-string-theme="dark"] .theme_light_only {
    display : none;
}

html[data-string-theme="dark"] .theme_dark_only {
    display : inline;
}

html[data-string-theme="dark"] .rst-content img.theme_dark_only {
    background-color : transparent;
    outline          : none;
}


/* the Previous / Next buttons at the end of a page (the theme writes them with !important) */
html[data-string-theme="dark"] .btn-neutral {
    background-color : #2C2E34 !important;
    color            : #E3E4E6 !important;
    border-color     : #3A3D44;
    box-shadow       : none;
}

html[data-string-theme="dark"] .btn-neutral:hover {
    background-color : #3A3D44 !important;
    color            : #E3E4E6 !important;
}

html[data-string-theme="dark"] .btn-neutral:visited {
    color : #E3E4E6 !important;
}


/* the bar with Previous / Next at the bottom of the navigation (links stay the brand colour, above) */
html[data-string-theme="dark"] div.rst-versions,
html[data-string-theme="dark"] div.rst-versions .rst-current-version {
    background : #161719;
}


/* the top bar of narrow (mobile) pages, blue in the light theme */
html[data-string-theme="dark"] .wy-nav-top {
    background : #343A63;
    color      : #E3E4E6;
}

html[data-string-theme="dark"] .wy-nav-top a {
    color : #E3E4E6;
}

}

