/*
 * :copyright: Copyright 2010 by Armin Ronacher.
 * :license: Flask Design License, see LICENSE for details.
 */

{% set page_width = '940px' %}
{% set sidebar_width = '220px' %}
{% set normal_font = "'Open Sans', sans-serif" %}
{% set code_font = "'Droid Sans Mono', monospace" %}
{% set normal_link_color = "#f07e2a" %}
{% set normal_link_hover_color = "#f07e2a" %}
{% set highlight_color = "#f07e2a" %}

/* 'Consolas', 'Menlo', 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono', monospace; */

@import url("basic.css");
@import url(//fonts.googleapis.com/css?family=Open+Sans|Droid+Sans+Mono);

/* -- page layout ----------------------------------------------------------- */
 
body {
    font-family: {{ normal_font }};
    font-size: 17px;
    background-color: white;
    color: #000;
    margin: 0;
    padding: 0;
}

div.document {
    width: {{ page_width }};
    margin: 30px auto 0 auto;
}

div.documentwrapper {
    float: left;
    width: 100%;
}

div.bodywrapper {
    margin: 0 0 0 {{ sidebar_width }};
}

div.sphinxsidebar {
    width: {{ sidebar_width }};
}

hr {
    border: 1px solid #B1B4B6;
}
 
div.body {
    background-color: #ffffff;
    color: #3E4349;
    padding: 0 30px 0 30px;
}

img.floatingflask {
    padding: 0 0 10px 10px;
    float: right;
}
 
div.footer {
    width: {{ page_width }};
    margin: 20px auto 30px auto;
    font-size: 14px;
    color: #888;
    text-align: right;
}

div.footer a {
    color: #888;
}

div.related {
    display: none;
}
 
div.sphinxsidebar a {
    color: #444;
    text-decoration: none;
    border-bottom: 1px dotted #999;
}

div.sphinxsidebar a:hover {
    border-bottom: 1px solid #999;
}
 
div.sphinxsidebar {
    font-size: 14px;
    line-height: 1.5;
}

div.sphinxsidebar ul {
    list-style: square inside none;
}

div.sphinxsidebarwrapper {
    padding: 0 10px;
}

div.sphinxsidebarwrapper p.logo {
    padding: 0 0 20px 0;
    margin: 0;
    text-align: center;
}

div.sphinxsidebarwrapper img.logo {
   margin-bottom: 10px;
}

div.sphinxsidebar a.logo {
    border-bottom: none;
}

div.sphinxsidebarwrapper .ghbuttons {
    padding: 5px 0 10px 0;
    margin: 0;
}

div.sphinxsidebar h3,
div.sphinxsidebar h4 {
    font-family: {{ normal_font }};
    color: #444;
    font-size: 24px;
    font-weight: normal;
    margin: 0 0 5px 0;
    padding: 0;
}

div.sphinxsidebar h4 {
    font-size: 20px;
}
 
div.sphinxsidebar h3 a {
    color: #444;
}

div.sphinxsidebar p.logo a,
div.sphinxsidebar h3 a,
div.sphinxsidebar p.logo a:hover,
div.sphinxsidebar h3 a:hover {
    border: none;
}
 
div.sphinxsidebar p {
    color: #555;
    margin: 10px 0;
}

div.sphinxsidebar ul {
    margin: 10px 0;
    padding: 0;
    color: #000;
}
 
div.sphinxsidebar input {
    border: 1px solid #ccc;
    font-family: {{ normal_font }};
    font-size: 1em;
}
 
/* -- body styles ----------------------------------------------------------- */
 
a {
    color: {{ normal_link_color }};
    text-decoration: underline;
}
 
a:hover {
    color: {{ normal_link_hover_color }};
    text-decoration: underline;
}
 
div.body h1,
div.body h2,
div.body h3,
div.body h4,
div.body h5,
div.body h6 {
    font-family: {{ normal_font }};
    font-weight: normal;
    margin: 30px 0px 10px 0px;
    padding: 0;
}


div.body h1 { margin-top: 0; padding-top: 0; font-size: 220%; font-weight: bold; }
div.body h2 { font-size: 180%; font-weight: bold; }
div.body h3 { font-size: 150%; }
div.body h4 { font-size: 130%; }
div.body h5 { font-size: 100%; }
div.body h6 { font-size: 100%; }
 
a.headerlink {
    color: {{ normal_link_color }};
    padding: 0 4px;
    text-decoration: none;
}
 
a.headerlink:hover {
    color: {{ normal_link_color }};
    background: #eaeaea;
}
 
div.body p, div.body dd, div.body li {
    line-height: 1.4em;
}

div.admonition {
    /*background-color: #eee;*/
    background-color: #e0e0e0;
    margin: 20px -30px;
    padding: 10px 30px;
    border: 1px solid #ccc;
}

div.admonition tt.xref, div.admonition a tt {
    border-bottom: 1px solid #fafafa;
}

dd div.admonition {
    margin-left: -60px;
    padding-left: 60px;
}

div.admonition p.admonition-title {
    font-family: {{ normal_font }};
    font-weight: normal;
    font-size: 24px;
    margin: 0 0 10px 0;
    padding: 0;
    line-height: 1;
}

div.admonition p.last {
    margin-bottom: 0;
}

div.highlight {
    background-color: white;
}

dt:target, .highlight {
    background: #FAF3E8;
}

div.note {
    background-color: #eee;
    border: 1px solid #ccc;
}
 
div.seealso {
    background-color: #ffc;
    border: 1px solid #ff6;
}
 
div.topic {
    background-color: #eee;
}
 
p.admonition-title {
    display: inline;
}
 
p.admonition-title:after {
    content: ":";
}

pre, tt {
    font-family: {{ code_font }};
    font-size: 0.9em;
}

img.screenshot {
}

tt.descname, tt.descclassname {
    font-size: 0.95em;
}

tt.descname {
    padding-right: 0.08em;
}

img.screenshot {
    -moz-box-shadow: 2px 2px 4px #eee;
    -webkit-box-shadow: 2px 2px 4px #eee;
    box-shadow: 2px 2px 4px #eee;
}

table.docutils {
    border: 1px solid #888;
    -moz-box-shadow: 2px 2px 4px #eee;
    -webkit-box-shadow: 2px 2px 4px #eee;
    box-shadow: 2px 2px 4px #eee;
}

table.docutils td, table.docutils th {
    border: 1px solid #888;
    padding: 0.25em 0.7em;
}

table.field-list, table.footnote {
    border: none;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

table.footnote {
    margin: 15px 0;
    width: 100%;
    border: 1px solid #eee;
    background: #fdfdfd;
    font-size: 0.9em;
}

table.footnote + table.footnote {
    margin-top: -15px;
    border-top: none;
}

table.field-list th {
    padding: 0 0.8em 0 0;
}

table.field-list td {
    padding: 0;
}

table.footnote td.label {
    width: 0px;
    padding: 0.3em 0 0.3em 0.5em;
}

table.footnote td {
    padding: 0.3em 0.5em;
}

dl {
    margin: 0;
    padding: 0;
}

dl dd {
    margin-left: 30px;
}

blockquote {
    margin: 0 0 0 30px;
    padding: 0;
}

ul, ol {
    margin: 10px 0 10px 30px;
    padding: 0;
}
 
pre {
    background: #eee;
    padding: 7px 30px;
    margin: 15px -30px;
    line-height: 1.3em;
}

dl pre, blockquote pre, li pre {
    margin-left: -60px;
    padding-left: 60px;
}

dl dl pre {
    margin-left: -90px;
    padding-left: 90px;
}
 
tt {
    background-color: #ecf0f3;
    color: #222;
    /* padding: 1px 2px; */
}

tt.xref, a tt {
    background-color: #FBFBFB;
    border-bottom: 1px solid white;
}

a.reference {
    text-decoration: none;
    border-bottom: 1px dotted {{ normal_link_color }};
}

a.reference:hover {
    border-bottom: 1px solid {{ normal_link_hover_color }};
}

a.footnote-reference {
    text-decoration: none;
    font-size: 0.7em;
    vertical-align: top;
    border-bottom: 1px dotted #004B6B;
}

a.footnote-reference:hover {
    border-bottom: 1px solid #6D4100;
}

a:hover tt {
    background: #EEE;
}

div.screenshots {
    text-align: center;
}

div.screenshots a {
    padding: 5px;
    border: none;
}

@media screen and (max-width: 870px) {

    div.sphinxsidebar {
        display: none;
    }

    div.document {
       width: 100%;
    }

    div.documentwrapper {
        margin-left: 0;
        margin-top: 0;
        margin-right: 0;
        margin-bottom: 0;
    }

    div.bodywrapper {
        margin-top: 0;
        margin-right: 0;
        margin-bottom: 0;
        margin-left: 0;
    }

    ul {
        margin-left: 0;
    }

    .document {
        width: auto;
    }

    .footer {
        width: auto;
    }

    .bodywrapper {
        margin: 0;
    }

    .footer {
        width: auto;
    }

    .github {
        display: none;
    }

    html body div.indexwrapper div.related ul li.right {
        padding: 10px 0 20px;
    }

}

@media screen and (max-width: 875px) {

    body {
        margin: 0;
        padding: 20px 30px;
    }

    ul {
        list-style-position:inside;
    }

    div.sphinxsidebarwrapper img.logo {
       display: none;
    }

    div.documentwrapper {
        float: none;
        background: white;
    }

    div.sphinxsidebar {
        display: block;
        float: none;
        width: 102.5%;
        margin: 50px -30px -100px -30px;
        padding: 20px 24px 80px;
        background: #333;
        color: white;
    }

    div.relbar2 div.related {
        padding-top: 50px;
        padding-bottom: 20px;
        margin-bottom: 100px;
        color: white;
    }

    div.sphinxsidebar h3, div.sphinxsidebar h4, div.sphinxsidebar p,
    div.sphinxsidebar h3 a {
        color: white;
    }

    div.sphinxsidebar ul {
        color: #f2f2f2;
    }

    div.sphinxsidebar a {
        color: #f2f2f2;
    }

    div.sphinxsidebar p.logo {
        display: none;
    }

    div.document {
        width: 100%;
        margin: 0;
    }

    div.related {
        display: block;
        margin: 0;
        padding: 10px 0 20px 0;
    }

    div.related ul,
    div.related ul li {
        margin: 0;
        padding: 0;
    }

    div.footer {
        display: none;
    }

    div.bodywrapper {
        margin: 0;
    }

    div.body {
        min-height: 0;
        padding: 0;
    }

    .rtd_doc_footer {
        display: none;
    }

    .document {
        width: auto;
    }

    .footer {
        width: auto;
    }

    .footer {
        width: auto;
    }

    .github {
        display: none;
    }
}

@media screen and (max-width: 400px) {
    div.screenshots img {
        width: 100%;
    }
}


/* scrollbars */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-button:start:decrement,
::-webkit-scrollbar-button:end:increment {
    display: block;
    height: 10px;
}

::-webkit-scrollbar-button:vertical:increment {
    background-color: #fff;
}

::-webkit-scrollbar-track-piece {
    background-color: #eee;
    -webkit-border-radius: 3px;
}

::-webkit-scrollbar-thumb:vertical {
    height: 50px;
    background-color: #ccc;
    -webkit-border-radius: 3px;
}

::-webkit-scrollbar-thumb:horizontal {
    width: 50px;
    background-color: #ccc;
    -webkit-border-radius: 3px;
}

/* misc. */

.revsys-inline {
    display: none!important;
}

body #prev_next_links {
    list-style-type: none;
    margin: 40px 0 20px 0;
    padding: 0;
    text-align: center;
}


/* -- Gitter sidecar button ------------------------------------------------- */

.gitter-open-chat-button {
    background-color: {{ highlight_color }} !important;
}


/* -- Read the Docs version selector ---------------------------------------- */

.rst-versions .rst-current-version {
    color: #fff !important;
    background: {{ highlight_color }} !important;
}

.rst-versions.rst-badge.shift-up .rst-current-version {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.rst-versions.rst-badge.shift-up .rst-current-version .fa-book {
    float: none !important;
}

.rst-versions .rst-other-versions hr {
    border-color: #fafafa !important;
}

.rst-versions.rst-badge .rst-current-version {
    color: #fff !important;
    background: {{ highlight_color }} !important;
    position: fixed !important;
    right: 35px !important;
    top: 0 !important;
    padding: 1px 15px !important;
    border-bottom-left-radius: 0.5em;
    border-bottom-right-radius: 0.5em;
}

.rst-versions .rst-other-versions {
    color: #fff !important;
    background: {{ highlight_color }} !important;
    position: fixed !important;
    right: 35px !important;
    top: 30px !important;
    border-top-left-radius: 0.5em;
    border-bottom-left-radius: 0.5em;
    border-bottom-right-radius: 0.5em;
}

.rst-versions a {
    text-decoration: underline;
    color: #fff !important;
}

.rst-versions .rst-other-versions dl dt {
    text-decoration: underline;
    font-style: italic;
}

.rst-versions .rst-other-versions a {
    text-decoration: underline;
}

.rst-versions .rst-other-versions dl dd a {
    text-decoration: none;
}
