/* Default css file for jemdoc. */
#layout-content {
    padding-top: 2em;
    padding-left: 10%;
    padding-right: 10%;
    max-width: 1000px;
    margin: auto;
}

table#tlayout {
    border: none;
    border-collapse: separate;
    background: white;
}

body {
    background: white;
    font-family: 'Roboto', sans-serif;
    padding-bottom: 8px;
    margin: 0;
}

#layout-menu {
    position: fixed;
    top: 2em;
    left: 2em;
    background: #f5f8ff;
    padding: 1em;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95em;
}

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

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

tt {
    background: #ffffdd;
}

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

a {
    color: #2a4b7c;
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
    color: #1a3570;
}

#layout-menu a.current:link, #layout-menu a.current:visited {
				 color: #022b6d;
				 border-bottom: 1px gray solid;
			     }
#layout-menu a:link, #layout-menu a:visited, #layout-menu a:hover {
						 color: #527bbd;
						 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: 1em 0;
    margin-bottom: 1.5em;
    border-bottom: 3px double #ccc;
    background-color: #f8faff;
    text-align: center;
}

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

#subtitle {
    font-size: 1.1em;
    color: #444;
    margin-top: 0.2em;
    margin-bottom: 0.5em;
    padding-bottom: 0.2em;
}

em {
    font-style: italic;
}

strong {
    font-weight: bold;
}


h1, h2, h3 {
    color: #2a4b7c;
    border-bottom: 2px solid #ccc;
    padding-bottom: 0.3em;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

h1 {
    font-size: 165%;
}

h2 {
    color: #022b6d;
    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: 0.9em;
    text-align: center;
    color: #777;
    margin-top: 4em;
    padding-top: 1em;
    border-top: 1px solid #ccc;
}

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;
}

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

#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;
}

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

table.imgtable img {
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-right: 1em;
}

@media (max-width: 768px) {
  table.imgtable td {
    display: block;
    width: 100%;
  }

  table.imgtable img {
    width: 100%;
    height: auto;
    margin-bottom: 1em;
  }
}

.button-link {
    display: inline-block;
    padding: 0.4em 1em;
    background-color: #2a4b7c;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

.button-link:hover {
    background-color: #1a3570;
}