/* Default CSS file for jemdoc */

/* Menu */
.menu {
    background-color: #2E3B4E;
    left: 0;
    top: 0;
    width: 100%;
    padding: 12px 0;
    text-align: center;
    position: fixed;
    z-index: 100;
}

.menu a {
    font-size: 110%;
    padding: 0.25ex 1.5ex;
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
}

.menu a:link,
.menu a:visited {
    color: #FFFFFF;
}

.menu a:hover,
.menu a:active {
    color: #FFFFFF;
    background-color: #5C6F8C;
    border-radius: 5px;
}

/* Container */

.container {
    width: 100%;
    min-height: 100%;
    margin: 0;
    box-shadow: none;
    text-align: left;
    background: #FFFFFF;
    padding: 0;
    border-radius: 0;
    z-index: 1;
    background-color: transparent; /* Removed the demarcation */
}

a.anchor {
    display: block;
    position: relative;
    top: -38px;
    visibility: hidden;
}

/* Layout */
table#tlayout {
    border: none;
    border-collapse: collapse;
    background: white;
}

body {
    background: #F2F2F2;
    font-family: 'Georgia', serif;
    padding: 310px 0 0 0; /* Added top padding to move content below the image */
    margin: 0;
    height: 100%;
    width: 100%;
    color: #333333;
    background-image: url('./head1copy2.jpg');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% 300px; /* Full width and fixed height for the image */
}


#layout-menu {
    background: #F8F9FA;
    border: 1px solid #E0E0E0;
    padding: 10px;
    font-size: 1em;
    white-space: nowrap;
    text-align: left;
    vertical-align: top;
}

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

#layout-content {
    padding: 1em;
    border: none;
    background: white;
    text-align: left;
    vertical-align: top;
}

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

tt {
    background: #FFFBCC;
}

pre, tt {
    font-size: 90%;
    font-family: 'Courier New', monospace;
}

a, a > tt {
    color: #0056b3;
    text-decoration: none;
}

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

#layout-menu a.current:link,
#layout-menu a.current:visited {
    color: #022B6D;
    border-bottom: 1px solid gray;
}

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

/* Title */
div#toptitle + h2,
div#toptitle + h3 {
    margin-top: -0.7em;
}

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

em {
    font-style: italic;
}

strong {
    font-weight: bold;
}

h1, h2, h3 {
    color: #B22222;
    margin-top: 0.7em;
    margin-bottom: 0.3em;
    padding-bottom: 0.2em;
    line-height: 1.2;
    padding-top: 0.5em;
    border-bottom: 1px solid #AAAAAA;
}

h1 {
    font-size: 180%;
}

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

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

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

p {
    width: 100%;
    margin-top: 0;
    margin-bottom: 0.8em;
    padding: 0;
    line-height: 1.6;
    color: #444444;
}

pre {
    padding: 0;
    margin: 0;
}

div#footer {
    font-size: small;
    border-top: 1px solid #C0C0C0;
    padding-top: 0.1em;
    margin-top: 4em;
    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.2em;
    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 {
    margin: 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: 0;
}

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

img.proj_thumb {
    width: 180px;
    border: 1px solid;
    border-color: #E0E0E0;
    padding: 1px;
}

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

/* Publication */
p.pub_title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
}

p.pub_author {
    font-size: 14px;
    color: #333333;
}

p.pub_link {
    font-size: 14px;
    color: #0056b3;
    text-decoration: underline;
}

.news-header {
    text-align: center;
    margin-bottom: 20px;
}
.news-header h2 {
    margin: 0;
    color: #333;
}
.news-item {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}
.news-item:last-child {
    border-bottom: none;
}
.news-date {
    font-size: 0.9em;
    color: #666;
}
.news-title {
    font-size: 1.1em;
    margin: 5px 0;
    color: #333;
}