/* Default css file for jemdoc - Responsive Version */

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
}

body {
    background: white;
    font-family: Georgia, serif;
    padding-bottom: 8px;
    margin: 0;
    width: 100%;
    overflow-x: hidden;
}

table#tlayout {
    border: none;
    border-collapse: separate;
    background: white;
    width: 100%;
    margin: 0;
    padding: 0;
}

#layout-menu {
    background: #f6f6f6;
    border: 1px solid #000000;
    padding-top: 0.5em;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 1.0em;
    width: auto;
    white-space: nowrap;
    text-align: left;
    vertical-align: top;
    max-width: 200px;
}

#layout-menu td {
    background: #f4f4f4;
    vertical-align: top;
}

#layout-content {
    padding-top: 0.0em;
    padding-left: 1.0em;
    padding-right: 1.0em;
    border: none;
    background: white;
    text-align: left;
    vertical-align: top;
    width: 100%;
}

#layout-menu a {
    line-height: 1.5em;
    margin-left: 0.5em;
}

tt {
    background: #ffffdd;
}

pre, tt {
    font-size: 90%;
    font-family: monaco, monospace;
}

a, a > tt {
    color: #3366BB;
    text-decoration: none;
}

a:hover {
    border-bottom: 1px gray dotted;
}

#layout-menu a.current:link, #layout-menu a.current:visited {
    color: #772233;
    border-bottom: 1px gray solid;
}
#layout-menu a:link, #layout-menu a:visited, #layout-menu a:hover {
    color: #0B0080;
    text-decoration: none;
}
#layout-menu a:hover {
    text-decoration: none;
}

div.menu-category {
    border-bottom: 1px solid gray;
    margin-top: 0.8em;
    padding-top: 0.2em;
    padding-bottom: 0.1em;
    font-weight: bold;
}

div.menu-item {
    padding-left: 16px;
    text-indent: -16px;
}

div#toptitle {
    padding-bottom: 0.2em;
    margin-bottom: 1.5em;
    border-bottom: 3px double gray;
}

/* Reduce space if we begin the page with a title. */
div#toptitle + h2, div#toptitle + h3 {
    margin-top: -0.7em;
}

div#subtitle {
    margin-top: 0.0em;
    margin-bottom: 0.0em;
    padding-top: 0em;
    padding-bottom: 0.1em;
}

em {
    font-style: italic;
}

strong {
    font-weight: bold;
}

h1, h2, h3 {
    color: #003366;
    margin-top: 0.8em;
    margin-bottom: 0.3em;
    padding-bottom: 0.2em;
    line-height: 1.0;
    padding-top: 1.2em;
    border-bottom: 1px solid #aaaaaa;
}

h1 {
    font-size: 170%;
}

h2 {
    padding-top: 0.8em;
    font-size: 125%;
}

h2 + h3 {
    padding-top: 0.2em;
}

h3 {
    font-size: 110%;
    border-bottom: none;
}

p {
    margin-top: 0.0em;
    margin-bottom: 0.8em;
    padding: 0;
    line-height: 1.3;
}

pre {
    padding: 0;
    margin: 0;
}

div#footer {
    font-size: small;
    border-top: 1px solid #c0c0c0;
    padding-top: 0.1em;
    margin-top: 4.0em;
    color: #c0c0c0;
}

div#footer a {
    color: #80a0b0;
}

div#footer-text {
    float: left;
    padding-bottom: 8px;
}

ul, ol, dl {
    margin-top: 0.2em;
    padding-top: 0;
    margin-bottom: 0.8em;
}

dt {
    margin-top: 0.5em;
    margin-bottom: 0;
}

dl {
    margin-left: 20px;
}

dd {
    color: #222222;
}

dd > *:first-child {
    margin-top: 0;
}

ul {
    list-style-position: outside;
    list-style-type: square;
}

p + ul, p + ol {
    margin-top: -0.5em;
}

li ul, li ol {
    margin-top: -0.3em;
}

ol {
    list-style-position: outside;
    list-style-type: decimal;
}

li p, dd p {
    margin-bottom: 0.3em;
}

ol ol {
    list-style-type: lower-alpha;
}

ol ol ol {
    list-style-type: lower-roman;
}

p + div.codeblock {
    margin-top: -0.6em;
}

div.codeblock, div.infoblock {
    margin-right: 0%;
    margin-top: 1.2em;
    margin-bottom: 1.3em;
}

div.blocktitle {
    font-weight: bold;
    color: #cd7b62;
    margin-top: 1.2em;
    margin-bottom: 0.1em;
}

div.blockcontent {
    border: 1px solid silver;
    padding: 0.3em 0.5em;
}

div.infoblock > div.blockcontent {
    background: #ffffee;
}

div.blockcontent p + ul, div.blockcontent p + ol {
    margin-top: 0.4em;
}

div.infoblock p {
    margin-bottom: 0em;
}

div.infoblock li p, div.infoblock dd p {
    margin-bottom: 0.5em;
}

div.infoblock p + p {
    margin-top: 0.8em;
}

div.codeblock > div.blockcontent {
    background: #f6f6f6;
}

span.pycommand {
    color: #000070;
}

span.statement {
    color: #008800;
}
span.builtin {
    color: #000088;
}
span.special {
    color: #990000;
}
span.operator {
    color: #880000;
}
span.error {
    color: #aa0000;
}
span.comment, span.comment > *, span.string, span.string > * {
    color: #606060;
}

#fwtitle {
    margin: 2px;
}

#fwtitle #toptitle {
    padding-left: 0.5em;
    margin-bottom: 0.5em;
}

#layout-content h1:first-child, #layout-content h2:first-child, #layout-content h3:first-child {
    margin-top: -0.7em;
}

div#toptitle h1, #layout-content div#toptitle h1 {
    margin-bottom: 0.0em;
    padding-bottom: 0.1em;
    padding-top: 0;
    margin-top: 0.5em;
    border-bottom: none;
}

img.eq {
    padding: 0;
    padding-left: 0.1em;
    padding-right: 0.1em;
    margin: 0;
}

img.eqwl {
    padding-left: 2em;
    padding-top: 0.6em;
    padding-bottom: 0.2em;
    margin: 0;
}

table {
    border: 2px solid black;
    border-collapse: collapse;
}

td {
    padding: 2px;
    padding-left: 0.5em;
    padding-right: 0.5em;
    text-align: center;
    border: 1px solid gray;
}

table + table {
    margin-top: 1em;
}

tr.heading {
    font-weight: bold;
    border-bottom: 2px solid black;
}

img {
    border: none;
    max-width: 100%;
    height: auto;
}

table.imgtable, table.imgtable td {
    border: none;
    text-align: left;
}

/* MOBILE RESPONSIVE - Keep same layout but scale down */
@media screen and (max-width: 1200px) {
    body {
        font-size: 14px;
    }

    #layout-menu {
        max-width: 180px;
        font-size: 0.95em;
        padding-left: 6px;
        padding-right: 6px;
    }

    #layout-content {
        padding-left: 0.8em;
        padding-right: 0.8em;
    }

    h1 {
        font-size: 150%;
    }

    h2 {
        font-size: 115%;
    }

    h3 {
        font-size: 105%;
    }

    p {
        font-size: 0.95em;
    }

    ul, ol {
        font-size: 0.95em;
    }

    pre, tt {
        font-size: 85%;
    }
}

@media screen and (max-width: 992px) {
    body {
        font-size: 13px;
    }

    #layout-menu {
        max-width: 160px;
        font-size: 0.9em;
        padding-left: 5px;
        padding-right: 5px;
    }

    .menu-item {
        padding-left: 12px;
        text-indent: -12px;
    }

    #layout-menu a {
        line-height: 1.3em;
        margin-left: 0.3em;
    }

    #layout-content {
        padding-left: 0.6em;
        padding-right: 0.6em;
    }

    h1 {
        font-size: 140%;
        padding-top: 0.8em;
        margin-top: 0.6em;
    }

    h2 {
        font-size: 110%;
        padding-top: 0.6em;
    }

    h3 {
        font-size: 100%;
    }

    p {
        font-size: 0.9em;
        line-height: 1.4;
    }

    ul, ol {
        font-size: 0.9em;
        margin-left: 0.3em;
    }

    pre, tt {
        font-size: 80%;
    }

    div#toptitle {
        margin-bottom: 1em;
    }

    #subtitle {
        font-size: 0.85em;
    }
}

@media screen and (max-width: 768px) {
    body {
        font-size: 12px;
    }

    #layout-menu {
        max-width: 140px;
        font-size: 0.85em;
        padding: 0.4em 4px;
        border-right: 1px solid #000000;
    }

    .menu-category {
        margin-top: 0.6em;
        font-size: 0.9em;
    }

    .menu-item {
        padding-left: 10px;
        text-indent: -10px;
    }

    #layout-menu a {
        line-height: 1.2em;
        font-size: 0.9em;
    }

    #layout-content {
        padding-left: 0.5em;
        padding-right: 0.5em;
        padding-top: 0.5em;
        padding-bottom: 0.5em;
    }

    h1 {
        font-size: 130%;
        padding-top: 0.6em;
        margin-top: 0.4em;
        margin-bottom: 0.2em;
    }

    h2 {
        font-size: 105%;
        padding-top: 0.5em;
        margin-top: 0.4em;
    }

    h3 {
        font-size: 95%;
    }

    p {
        font-size: 0.85em;
        line-height: 1.4;
        margin-bottom: 0.5em;
    }

    ul, ol {
        font-size: 0.85em;
        padding-left: 1em;
    }

    li {
        margin-bottom: 0.2em;
    }

    pre, tt {
        font-size: 75%;
    }

    div#toptitle {
        margin-bottom: 0.8em;
        padding-bottom: 0.15em;
    }

    #subtitle {
        font-size: 0.8em;
        line-height: 1.3;
    }

    table {
        font-size: 0.85em;
    }

    td {
        padding: 1px;
        padding-left: 0.3em;
        padding-right: 0.3em;
    }
}

@media screen and (max-width: 480px) {
    body {
        font-size: 11px;
    }

    #layout-menu {
        max-width: 100px;
        font-size: 0.8em;
        padding: 0.3em 3px;
    }

    .menu-category {
        margin-top: 0.5em;
        padding: 0.15em 0;
        font-size: 0.85em;
    }

    .menu-item {
        padding-left: 8px;
        text-indent: -8px;
    }

    #layout-menu a {
        line-height: 1.1em;
        font-size: 0.85em;
        margin-left: 0.2em;
    }

    #layout-content {
        padding: 0.4em 0.3em;
    }

    h1 {
        font-size: 120%;
        padding-top: 0.4em;
        margin-top: 0.3em;
        margin-bottom: 0.15em;
    }

    h2 {
        font-size: 100%;
        padding-top: 0.4em;
        margin-top: 0.3em;
    }

    h3 {
        font-size: 90%;
    }

    p {
        font-size: 0.8em;
        line-height: 1.4;
        margin-bottom: 0.4em;
    }

    ul, ol {
        font-size: 0.8em;
        padding-left: 0.8em;
        margin-left: 0.2em;
    }

    li {
        margin-bottom: 0.15em;
    }

    pre, tt {
        font-size: 70%;
    }

    div#toptitle {
        margin-bottom: 0.6em;
    }

    #subtitle {
        font-size: 0.75em;
        line-height: 1.2;
    }

    table {
        font-size: 0.8em;
    }

    td {
        padding: 1px 0.2em;
    }
}

@media print {
    #layout-menu { display: none; }
}
