/**
 * Pygame stylesheet -- original theme
 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 */

@import url("reset.css");
@import url("tooltip.css");
@import url("basic.css");

/* -- index page ------------------------------------------------------------ */

#pygame-front-page h2 {
    margin-top: 2em;
}

#pygame-front-page dt {
    padding-top: 1em;
}

#pygame-front-page dl {
    padding-left: 1em;
}

/* -- tutorial page --------------------------------------------------------- */

div.body table.docinfo {
    font-size: 0.9em;
    margin-left: 3em;
}

div.body table.docinfo th {
    text-align: left;
    font-weight: bolder;
}

div.body table.docinfo td {
    padding-left: 1em;
}

div.body table.matrix th,
div.body table.matrix td {
    border-right: 0.1em solid black;
}

div.body table.matrix th:last-child,
div.body table.matrix td:last-child {
    border-right-style: none;
}

div.body table.matrix th {
    font-weight: bolder;
}

div.body table.matrix th.head {
    text-align: center;
    border-bottom: 0.2em double black;
}

div.body table.matrix td {
    text-align: center;
}

div.body table.matrix th.stub {
    text-align: left;
}

/* Let a float element be beside a code block */
div.highlight-python.notranslate {
    display: inline-block;
}

/* -- page layout ----------------------------------------------------------- */

body {
    font-family: {{ theme_bodyfont }};
    color: {{ theme_textcolor }};
    font-style: normal;
    text-decoration: none;
    text-align: left;
    border-style: none;
}

div.header {
    padding: 0.5em;
    line-height: 1.2em;
}

div.header table {
    border: {{ theme_headerborder }};
    border-collapse: collapse;
    background-color: {{ theme_headerbgcolor }};
}

div.header td {
    border-right: {{ theme_headerborder }};
}

div.header .logo {
    background-color: {{ theme_logobgcolor }};
    text-align: center;
    vertical-align: middle;
    padding: 0.3em;
}

div.header .logo img {
    min-width: 200px;
    min-height: 60px;
    border-style: none;
}

div.header .pagelinks {
    padding: 0.3em;
    text-align: center;
    vertical-align: middle;
}

div.header p.top {
    margin-top: 0;
    margin-bottom: 1em;
}

div.header p.bottom {
    margin-bottom: 0;
    text-align: left;
}

div.header .pagelinks a {
    text-decoration: underline;
}

div.header .pagelinks a:hover {
    text-decoration: none;
}

div.document {
    background-color: {{ theme_bgcolor }};
}

/* on wide screens center text, and max width for readable area.  */
@media only screen and (min-width: 680px) {
    div.documentwrapper {
        float: initial;
        width: 100%;
        max-width: 700px;
        margin: 0 auto;
    }
}

.toc td {
    display:block;
    width: 200%;
}

.toc td:last-child {
    padding-bottom: 20px;
}

table.toc td:nth-child(2) {
    display: none;
}

div.bodywrapper {
    margin: 0 0 0 230px;
}

div.body {
    min-width: auto;
    padding: 0.5em;
}

div.heading {
    padding: 0 0 0 0.5em;
}

{% if theme_rightsidebar|tobool %}
div.bodywrapper {
    margin: 0 230px 0 0;
}

{% endif -%}

div.footer {
{%- if theme_nofooter %}
    display: none;
{%- endif %}
    color: {{ theme_footertextcolor }};
    width: 100%;
    padding: 9px 0;
    text-align: center;
    font-size: 75%;
}

div.footer a {
    background-color: {{ theme_footerbgcolor }};
    color: {{ theme_footertextcolor }};
    text-decoration: underline;
}

div.related {
    background-color: {{ theme_relbarbgcolor }};
    line-height: 30px;
    color: {{ theme_relbartextcolor }};
    border-top: 3px solid black;
    border-bottom: 3px solid black;
}

div.related a {
    color: {{ theme_relbarlinkcolor }};
}

div.sphinxsidebar {
    {%- if theme_stickysidebar|tobool %}
    top: 30px;
    bottom: 0;
    margin: 0;
    position: fixed;
    overflow: auto;
    height: auto;
    {%- endif %}
    {%- if theme_rightsidebar|tobool %}
    float: right;
    {%- if theme_stickysidebar|tobool %}
    right: 0;
    {%- endif %}
    {%- endif %}
}

div.sphinxsidebar h3 {
    font-family: {{ theme_headfont }};
    color: {{ theme_sidebartextcolor }};
    font-size: 1.4em;
    font-weight: normal;
    margin: 0;
    padding: 0;
}

div.sphinxsidebar h3 a {
    color: {{ theme_sidebartextcolor }};
}

div.sphinxsidebar h4 {
    font-family: {{ theme_headfont }};
    color: {{ theme_sidebartextcolor }};
    font-size: 1.3em;
    font-weight: normal;
    margin: 5px 0 0 0;
    padding: 0;
}

div.sphinxsidebar p {
    color: {{ theme_sidebartextcolor }};
}

div.sphinxsidebar p.topless {
    margin: 5px 10px 10px 10px;
}

div.sphinxsidebar ul {
    margin: 10px;
    padding: 0;
    color: {{ theme_sidebartextcolor }};
}

div.sphinxsidebar a {
    color: {{ theme_sidebarlinkcolor }};
}

div.sphinxsidebar input {
    border: 1px solid {{ theme_sidebarlinkcolor }};
    font-family: sans-serif;
    font-size: 1em;
}

/* -- body styles ----------------------------------------------------------- */

a {
    color: {{ theme_linkcolor }};
    background-color: transparent;
    text-decoration: underline;
}

a:hover {
    color: {{ theme_linkcolor }};
    background-color: transparent;
    text-decoration: none;
}

p {
    margin: 0.5em 0;
}

strong {
    font-weight: bold;
}

em {
    font-style: italic;
}

dl.definition {
    padding-top: 0.7em;
    padding-bottom: 0.7em;
}

dt.title {
    font-family: monospace;
}

dt tt {
    font-weight: bold;
    font-size: 1.1em;
}

dt.module {
    margin-bottom: 1em;
}

table.toc {
    margin-left: 2em;
    margin-bottom: 0.5em;
}

table.toc td {
    border-style: none;
    padding-right: 10px;
}

span.summaryline {
    font-style: italic;
}

span.signature {
    font-family: {{ theme_sigfont }};
    margin-bottom: 0.5em;
}

span.pre {
    font-family: monospace;
}

table.docutils td.toc {
    border-style: none;
}

div.body p, div.body dd, div.body li {
    text-align: left;
    line-height: 130%;
}

div.body h1,
div.body h2,
div.body h3,
div.body h4,
div.body h5,
div.body h6 {
    font-family: {{ theme_headfont }};
    font-weight: bold;
    margin: 1em 0 0.5em;
    text-align: left;
}

div.body h6 {
    font-weight: normal;
    font-style: italic;
    margin: 0;
    padding: 0;
    line-height: 130%;
}

div.body h1 { font-size: 1.5em; }
div.body h2 { font-size: 1.4em; }
div.body h3 { font-size: 1.3em; }
div.body h4 { font-size: 1.2em; }
div.body h5 { font-size: 1.1em; }
div.body h6 { font-size: 1.0em; }

a.headerlink {
    color: {{ theme_headlinkcolor }};
    font-size: 0.8em;
    padding: 0 4px 0 4px;
    text-decoration: none;
}

a.headerlink:hover {
    background-color: {{ theme_headlinkcolor }};
    color: white;
}

blockquote {
    margin-left: 2em;
}

div.admonition p.admonition-title + p {
    display: inline;
}

div.admonition p,
div.admonition pre,
div.admonition ul,
div.admonition ol {
    margin-bottom: 5px;
}

p.admonition-title {
    display: inline;
}

p.admonition-title:after {
    content: ":";
}

dl.definition div.note, dl.definition div.seealso {
    background: none;
    border: none;
}

dl.definition div.admonition {
    margin-bottom: 0.5em;
}

dl.definition .admonition-title {
    font-weight: bold;
}

div.note {
    background-color: {{ theme_notebgcolor }};
    border: 1px solid #ccc;
}

.note tt {
    background: #d6d6d6;
}

div.seealso {
    background-color: #ffc;
    border: 1px solid #ff6;
}

div.topic {
    background-color: #eee;
}

div.caution {
    background-color: {{ theme_cautionbgcolor }};
    border: 1px solid #aabb88;
}

div.warning {
    background-color: #ffe4e4;
    border: 1px solid #f66;
}

.warning tt {
    background: #efc2c2;
}

p.linklist {
    text-align: center;
}

.section:target > h2,
.section:target > h3,
.section:target > h4,
dt:target,
span.highlighted {
    background-color: {{ theme_highlightbgcolor }};
}

pre {
    background-color: {{ theme_codebgcolor }};
    border: 1px solid #ac9;
    border-left: none;
    border-right: none;
    color: #333333;
    display: block;
    font-family: monospace;
    line-height: 120%;
    margin-bottom: 1em;
    padding: 5px 5px 5px 15px;
    text-align: justify;
}

div.highlight pre {
    border: none;
}

ul.simple {
    list-style-type: circle;
    margin-bottom: 1em;
}

code.descclassname, code.descname {
    font-size: 1.3em;
    font-weight: bold;
}

/*
    Top level section title format
    section tag has been introduced in docutils 0.17 as a replacement for div.section
    Both rule variations are kept to support old versions of docutils
 */
div.body > section > dl > dt.title, div.body > div.section > dl > dt.title {
    font-size: 120%;
    font-weight: bold;
    margin-bottom: 1em;
}

/* Visually separate an element from previous content in a section */
div.body .leading {
    margin-top: 0.5em;
}

/* Visually separate an element from following content in a section */
div.body .trailing {
    margin-bottom: 0.75em;
}

/* An element that spans the width of its section */
div.body div.fullwidth div,
div.body div.fullwidth img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

div.body div.fullwidth p {
    text-align: center;
}

/* A two column table with link, description pairs. */
table.more-to-explore,
table.more-to-explore th,
table.more-to-explore td {
    border: 0.2em double black;
    border-collapse: collapse;
    background-color: inherit;
}

table.more-to-explore caption {
    text-align: left;
    font-size: larger;
    background-color: inherit;
}

table.more-to-explore th,
table.more-to-explore td {
    padding: 0.2em 2em 0.3em 0.5em;
}

div.body p.small-heading {
    margin-bottom: 0.2em;
    font-size: small;
}

/* Inlined element float right */
div.body div.inlined,
div.body img.inlined-right {
    float: right;
    margin: 1em 0;
}

div.body .inset {
    margin-left: 2em;
}

/* Code line reference text style */
div.body span.codelineref {
    text-decoration: underline;
}

/* Highlight Code types and functions. */
.py-class .pre,
.reference.internal em {
    font-weight: bold;
    background-color: {{ theme_keywordbgcolor }};
}

span.linenos {
    margin-right: 15px;
}

/* Examples section: contains one or more example subsections */
div.examples > div.example {
    clear: both;
    margin-top: 0.2em;
    border: 0.1em solid teal;
    padding: 0.2em;
}

div.example img {
    float: left;
    padding-right: 0.3em;
    padding-bottom: 0.1em;
}

div.example p,
div.example pre {
    margin-top: 0;
    margin-bottom: 0.4em;
}

div.example div.break {
    clear: both;
    height: 0;
}

/* -- tooltip style --------------------------------------------------------- */

a.tooltip {
    text-decoration: underline;
}

a.tooltip:hover {
    text-decoration: none;
}

.tooltip-content {
    width: 250px;
    background-color: {{ theme_tooltipbgcolor }};
    border: 1px solid {{ theme_tooltipbdrcolor }};
    padding: 3px;
    border-radius: 5px 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 5px 5px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 5px 5px rgba(0, 0, 0, 0.1);
}

/* -- comments style --------------------------------------------------------- */

form.addcomment {
    display:inline;
}

.addcomment input,
a.commentButton {
    background-color: {{ theme_examplebgcolor }};
    border: 1px solid #000000;
    font-family: Arial,Helvetica,sans-serif;
    font-size: 12px;
    font-weight: bold;
    padding: 6px;
    margin-right: 4px;
}

article.commentsArticle {
    background: none repeat scroll 0 0 #FEF790;
    border: 1px solid black;
    margin-bottom: 12px;
    margin-top: 12px;
    padding: 4px;

}

article.hidden {
    display:none;
}

header.commentHeading {
    background: none repeat scroll 0 0 #FDE42D;
    text-align: center;
}

pre.commentContent {
    overflow: auto;
    max-width: 800px;
    margin-left:0;
    border: 0;
    white-space: pre-wrap;
}

/* -- responsive design --------------------------------------------------------- */

@media only screen and (max-width: 680px) {
    /* Make tables be responsive-ish. */
    table, thead, tbody, th, td, tr {
        display: block;
    }

    div.body img.inlined-right {
        float: none;
        display: block;
        margin: auto
    }

    span.linenos {
        margin-right: 10px;
    }

    .addcomment input, a.commentButton {
        font-size: 10px;
    }

    pre {
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    .toc td {
        width: 100%;
    }
}
