/* Default css file for jemdoc. */

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

img {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

html {
  background-color: #f5f5f5; 
}

body { 
  font-family: 'Times New Roman', serif;
  color: #212121;
  background-color: #ffffff; 
  text-align: left;
  margin-top: 30px; 
  margin-bottom: 30px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 50px;
  padding-right: 50px;
  padding-top: 10px;
  padding-bottom: 30px;
  max-width: 960px;
  line-height: 1.6;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
  border-radius: 8px;
}

#layout-menu {
	background: #fafafa;
	border: 1px solid #e0e0e0;
	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;
}

#layout-menu td {
	background: #f8f8f8;
    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;
}

#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: #424242;
	text-decoration: none;
	transition: color 0.2s ease, border-bottom 0.2s ease;
}

a:hover {
	color: #000000;
	border-bottom: 1px #424242 dotted;
}

#layout-menu a.current:link, #layout-menu a.current:visited {
	color: #000000;
	border-bottom: 1px #000000 solid;
}
#layout-menu a:link, #layout-menu a:visited, #layout-menu a:hover {
	color: #333333;
	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: 2px solid rgba(33, 33, 33, 0.15);
}

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

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: #1a1a1a;
	margin-top: 0.7em;
	margin-bottom: 0.5em;
	padding-bottom: 0.2em;
	line-height: 1.2;
	padding-top: 0.5em;
	border-bottom: 1px solid rgba(33, 33, 33, 0.2);
}

h1 {
	font-size: 165%;
	padding-bottom: 0.3em;
	font-weight: 600;
}

h2 {
	padding-top: 0.8em;
	font-size: 125%;
	font-weight: 500;
	color: #A5030A;
}

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: 2px solid #333333;
	padding-top: 0.8em;
	margin-top: 4.0em;
	color: #666666;
	background-color: #f8f8f8;
	padding: 15px;
	border-radius: 0 0 8px 8px;
}

div#footer a {
	color: #000000;
}

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 {
	margin-top:0.9em;
}

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: #1a1a1a;
	margin-top: 1.2em;
	margin-bottom: 0.1em;
}

div.blockcontent {
	border: 1px solid rgba(33, 33, 33, 0.2);
	padding: 0.8em 1em;
	border-radius: 5px;
	background-color: rgba(248, 248, 248, 0.7);
}

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

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: #f8f8f8;
	border-radius: 5px;
	border: 1px solid #e0e0e0;
}

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

/* Modern additions */
.modern-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.modern-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.btn {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    margin-right: 5px;
    border: none;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-primary {
    background-color: #333333;
    color: white;
}

.btn-secondary {
    background-color: #757575;
    color: white;
}

.btn-success {
    background-color: #444444;
    color: white;
}

.btn-dark {
    background-color: #000000;
    color: white;
}

.section-divider {
    text-align: center;
    position: relative;
    margin: 25px 0;
}

.section-divider span {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    background-color: rgba(33, 33, 33, 0.05);
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: 500;
}

.scrollable-container {
    border: 1px solid rgba(33, 33, 33, 0.2);
    border-radius: 5px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.scrollable-container::-webkit-scrollbar {
    width: 6px;
}

.scrollable-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.scrollable-container::-webkit-scrollbar-thumb {
    background: rgba(66, 66, 66, 0.4);
    border-radius: 3px;
}

.highlight-item {
    border-left: 3px solid #333333;
    padding-left: 12px;
    margin-bottom: 12px;
    background-color: rgba(33, 33, 33, 0.03);
    padding: 10px;
    border-radius: 0 5px 5px 0;
}

.accent-item {
    border-left: 3px solid #757575;
    padding-left: 12px;
    margin-bottom: 12px;
    background-color: rgba(117, 117, 117, 0.03);
    padding: 10px;
    border-radius: 0 5px 5px 0;
}