/* Default css file for jemdoc. */

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
	 			 Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue",
				 Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
				 "Segoe UI Symbol";
	padding: 0;
	margin: 0;
}


div#main-container {
	min-height: 100vh;
	background: white;
	margin: auto;
}

div#header-container {
	width: 100%;
	height: 50px;
}

div#header {
	width: 100vw;
	height: 35px;
	background: #125496;
	z-index: 1;
	position: fixed;
	display:inline-block;
}

div#header-icon-text-container {
	padding-left: 10px;
	padding-top: 1px;
	display:inline-block;
	vertical-align: middle;
}

div#header-icon-container {
	height:45px; width:45px;
	display:inline-block;
	vertical-align: middle;
	background-color: white;
	border-radius: 10px;
}

div#header-text-container {
	padding-left: 10px;
	height: 40px;
	display:inline-block;
	color: white;
	font-size: 28px;
	margin: 5px;
	vertical-align: middle;
	padding-top: 8px;
}

div#header-text-container a{
	color: white;
}

div#header-text-container a:hover{
	color: white;
}

div#layout {
	width: 100vw;
	min-height: calc(100vh - 70px);
	padding-bottom: 0;
	display: inline-block;
}

div#layout-menu-container{
}

div#layout-menu {
	padding-left: 0px;
	padding-right: 0px;
	padding-top: 0px;
	padding-bottom: 25px;
	height: calc(100% - 97px);
	min-width: 280px;
	position: fixed;
	top: 35px;                     /* start right under header */
    height: calc(100vh - 50px);    /* fill the rest of the viewport */
	overflow: scroll;
	background: #f6f8fa;
	border-right: 0.8px solid #e1e4e8;
	
	display: flex;
    flex-direction: column;
}

#layout-menu a {
	padding: 0px;
	line-height: 2;
}


div#layout-content-container {
	width: calc(100vw - 280.8px);
	min-height: calc(100vh - 70px);
	margin-left: 280.8px;
	background: none;
	text-align: left;
	display: inline-block;
}

div#layout-content{
    min-height: calc(100vh - 240px);
    padding-top: 25px;
    padding-bottom: 45px;
    padding-left: 35px;
    padding-right: 35px;
    box-sizing: border-box;
    min-width: none;
    width: 100%; /*auto;            fill the content area */
    max-width: none;       /* no artificial clamp */
    margin-left: 0;
    margin: auto;
}


tt {
	background: #4c99e0;
	color: white;
}

pre, tt {
	padding: 5px;
	padding-top: 2px;
	padding-bottom: 2px;
	font-size: 87.5%;
	font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
	border-radius: 5px;
	line-height: 1.5;
	overflow: scroll;
}

a, a > tt {
	color: #0366d6;
	text-decoration: none;
}

a:hover, a:hover > tt{
	/*border-bottom: 1.25px #0366d6 dashed;*/
	color: #ea4aaa;
}

#layout-menu a.current:link, #layout-menu a.current:visited {
	color: #586069;
	font-weight: 600;
}
#layout-menu a:link, #layout-menu a:visited, #layout-menu a:hover {
	color: #0366d6;
	text-decoration: none;
}
#layout-menu a:hover {
	color: #ea4aaa;
	text-decoration: none;
}

div.menu-category {
	margin-top: 16px;
	padding-top: 8px;
	padding-bottom: 0.1em;
	padding-left: 25px;
	padding-right: 25px;
	font-size: 18px;
	line-height: 2;
	border-top: 0.8px solid #e1e4e8;
}

div.menu-item {
    order: 1;
	font-size: 16px;
	padding-left: 25px;
	padding-right: 25px;
}

div#toptitle {
	padding-bottom: 0.2em;
	margin-bottom: 1.5em;
	border-bottom: 1px solid #e1e4e8;
}

/* 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 {
	padding-bottom: 0.2em;
	line-height: 1.25;
	padding-top: 0.5em;
	border-bottom: 0.7px solid #e1e4e8;
	font-weight: 400;
}

h1 {
	font-size: 32px;
}

h2 {
	padding-top: 0.8em;
	margin-bottom: 16px;
	font-size: 24px;
}

h2 + h3 {
	padding-top: 4px;
}

h3 {
	font-size: 20px;
	padding-top: 0px;
	margin-bottom: 0px;
	border-bottom: none;
}

p {
	font-size: 16px;
	line-height: 1.5;
	margin-top: 0.0em;
	margin-bottom: 0.8em;
	padding: 0;
	text-align: justify;
}

pre {
	padding: 0;
	margin: 0;
}

div#footer-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;              /* span full width */
    z-index: 5;
    background: white;         /* or whatever your page bg is */
    border-top: 1px solid #e1e4e8;
}




div#footer {
    font-size: 12px;
    color: #c0c0c0;
    min-width: 200px;
    max-width: 850px;

    margin: 0;                  /* remove weird collapsing */
    margin-bottom: 8px;         /*⭐ fixed bottom distance */
    
    padding-top: 8px;
    padding-bottom: 15px;
    padding-left: 35px;
    padding-right: 35px;
    
    flex-shrink: 0;             /* prevents footer from being squeezed */
}

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

div#footer a:hover {
	color: #ea4aaa;
}

div#footer-text {
	line-height: 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;
}

div.codeblock {
}

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

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

div.blocktitle {
	color: #0366d6;
	font-size: 20px;
	line-height: 2;
}

div.blockcontent {
	padding: 10px;
}

div.infoblock > div.blockcontent {
	background: #f6f8fa;
	border: 1px solid #f6f8fa;
	border-radius: 9px;
	/*color: #f9c513;*/
}

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 {
	border: none;
	border-radius: 10px;
	background: #f6f8fa;
}

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: 0em;
	border-bottom: none;
}


img {
	padding: 0px;
	margin-right: 20px;
	margin-bottom: 10px;
	border-radius: 10px;
}


table {
	border-collapse: collapse;
}



td {
	padding-left: 0.5em;
	padding-right: 0.5em;
	text-align: center;
	border: 1px solid #d1d5da;
	line-height: 2;
}

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

#countries tr.r1 {
    font-weight: 600;
}

#countries tr:nth-child(even) {background-color: #f6f8fa;}



div#text-img-container {
	overflow: hidden;
	padding: 0;
	margin: 0;
	margin-bottom: 20px;
}

div#img-container {
	float: left;
	padding-top: 0px;
	text-align: center;
}

div#text-container {
	overflow: hidden;
	padding-top: 0px;
}

div#text-container h1{
	border-bottom: none;
	margin: 0px;
	padding: 0px;
	padding-top: 15px;
}

div#text-container h2{
	border-bottom: none;
	margin: 0px;
	padding: 0px;
	padding-top: 15px;
}

div#text-container h3{
	padding-top: 0px;
	margin-top: 0px;
}

div#text-container h1 + h3{
	padding-top: 0px;
	margin-top: 0px;
}

div#text-container h3 + h1{
	padding: 0px;
	margin: 0px;
}

div#text-container h2 + h3{
	padding-top: 0px;
	margin-top: 0px;
}

div#text-container p{
}


div#main{
	margin: auto;
	height:45px;
	display:inline-block;
	vertical-align: middle;
}

.openbtn {
  font-size: 0;
  background: none;
  color: none;
  border: none;
}

.openbtn:hover {
}



div#layout-menu-container .closebtn {
	font-size: 0;
}

div#layout-menu-container .closebtn:hover {
	background: #fdaeb7;
	color: #cb2431;
}


/* Width to collapse sidebar */
@media screen and (max-width: 1200px) {
	div#header-text-container {
		visibility: hidden;
		width: 0;
	}

	div#layout-menu-container{
		width:0;
	}

	div#layout-menu {
		padding-top: 20px;
		transition: 0.5s;
		min-width: 0px;
		width: 0px;
		box-shadow: 8px 0px 10px 0 rgba(0, 0, 0, 0.3);
		border: none;
		/*position: fixed;*/
	}
	div#layout-content-container {
		transition: margin-left .5s;
		margin-left:0px;
		width: 100%;
	}
	div#main{
		padding-left: calc(100vw - 150px);
	}

	.openbtn {
	  font-size: 26px;
	  cursor: pointer;
	  background: none;
	  color: white;
	  padding: 8px 9px 8px 9px;
	  border: none;
	  width:45px;
	}

	.openbtn:hover {
		background-color: #2f363d;
	}

	div#layout-menu-container .closebtn {
	  position: absolute;
	  top: 0;
	  right: 25px;
	  font-size: 36px;
	  border: none;
	  padding-left: 10px ;
	  padding-right: 10px ;
	  padding-top: 1.1px ;
	  padding-bottom: 5.3px;
	  line-height: 1;
	  margin-right: -25px;
	  background: #ffdce0;
	  color: #959da5;
	}

	div#layout-menu-container .closebtn:hover {
		background: #fdaeb7;
		color: #cb2431;
	}
}


/* Width to center image */
/*
@media screen and (max-width: 700px) {
	img{
		margin-right: 0px;
	}

	p{
		text-align: left;
	}

	div#layout-content{
		padding-left:   20px;
		padding-right:  20px;
		padding-top:    16px;
		padding-bottom: 15px;
		min-height: calc(100vh - 190px);
	}

	div#footer-container{
	}

	div#footer {
		padding-left:   20px;
		padding-right:  20px;
		padding-top:    16px;
		padding-bottom: 15px;
	}

	div#img-container {
		float: none;
		padding-top: 0px;
		text-align: center;
	}

	div#text-container h1{
		text-align: center;
	}

	div#text-container h2{
		text-align: center;
	}

	div#text-container h3{
		text-align: center;
	}
}
*/




/* members */
div#member-container{
	text-align: center;
}
div#member{
	display: inline-block;
	vertical-align: top;
	width: 150px;
	text-align: center;
	margin-bottom: 15px;
	margin-right: 10px;
}

div#member img{
	width: 150px;
	margin: 0px;
	padding: 0px;
}

div#member p{
	text-align: center;
	margin: 0px;
	padding: 0px;
}


/* Group Outings */
.row {
  display: -ms-flexbox; /* IE10 */
  display: flex;
  -ms-flex-wrap: wrap; /* IE10 */
  flex-wrap: wrap;
  padding: 0 4px;
}

.column {
  -ms-flex: 23%; /* IE10 */
  flex: 23%;
  max-width: 23%;
  padding: 0 4px;
}

.column img {
  margin-top: 8px;
  vertical-align: middle;
  width: 100%;
}

@media screen and (max-width: 800px) {
  .column {
    -ms-flex: 50%;
    flex: 50%;
    max-width: 50%;
  }
}




/* -------------------------------------------
   ICONS FOR LEFT SIDEBAR MENU (Font Awesome)
   ------------------------------------------- */

#layout-menu a::before {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    margin-right: 8px;

    font-family: FontAwesome;
    font-size: 0.95em;
    color: inherit;

    /* NEW: fixed icon box like Font Awesome's fa-fw */
    width: 1.3em;          /* fixed width for all icons */
    text-align: center;    /* center icon in that box */
}

/* About */
#layout-menu a[href="index.html"]::before {
    content: "\f015";        /* home icon */
}

/* My Templates */
#layout-menu a[href="profile.html"]::before {
    content: "\f007";        /* user icon */
}
#layout-menu a[href="post1.html"]::before {
    content: "\f040";        /* pencil icon */
}
#layout-menu a[href="projects.html"]::before {
    content: "\f009";        /* cubes icon */
}
#layout-menu a[href="group.html"]::before {
    content: "\f007";        /* users icon */
}
#layout-menu a[href="post2.html"]::before {
    content: "\f0ae";        /* users icon */
}

/* Jemdoc */
#layout-menu a[href="download.html"]::before {
    content: "\f019";        /* download icon */
}
#layout-menu a[href="revision.html"]::before {
    content: "\f188";        /* bug/gear icon */
}
#layout-menu a[href="contact.html"]::before {
    content: "\f0e0";        /* envelope icon */
}

/* User's Guide */
#layout-menu a[href="using.html"]::before {
    content: "\f144";        /* play-circle icon */
}
#layout-menu a[href="example.html"]::before {
    content: "\f15c";        /* file-text icon */
}
#layout-menu a[href="nomenu.html"]::before {
    content: "\f016";        /* file-o icon */
}
#layout-menu a[href="cheatsheet.html"]::before {
    content: "\f11c";        /* keyboard icon */
}
#layout-menu a[href="extra.html"]::before {
    content: "\f121";        /* code icon */
}

/* Configuration */
#layout-menu a[href="htmlchanges.html"]::before {
    content: "\f013";        /* gear icon */
}
#layout-menu a[href="menu.html"]::before {
    content: "\f0c9";        /* hamburger bars icon */
}
#layout-menu a[href="modelines.html"]::before {
    content: "\f085";        /* wrench/gear icon */
}

/* Goodies */
#layout-menu a[href="latex.html"]::before {
    content: "\f1ec";        /* superscript icon (Math) */
}
#layout-menu a[href="tables.html"]::before {
    content: "\f0ce";        /* table icon */
}

/* Additional Features */
#layout-menu a[href="mathjax.html"]::before {
    content: "\f1d0";        /* atom icon */
}
#layout-menu a[href="underscore.html"]::before {
    content: "\f0cd";        /* underline icon */
}
#layout-menu a[href="link.html"]::before {
    content: "\f0c1";        /* link icon */
}
/* Open in New Tab */
#layout-menu a[href="http://www.google.com"]::before,
#layout-menu a[href="https://www.google.com"]::before {
    content: "\f08e";        /* external-link icon */
}

#profile-block {
    order: 2;
    text-align: left;
    padding: 10px 25px 15px 5px;
    
    
    border-top: 1px solid #ddd;
    margin-top: 10px;
}

#profile-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 8px auto;
}

#profile-text {
    font-size: 90%;
    padding: 10px 25px 15px 5px;
    line-height: 1.3;
}

.profile-name {
    font-weight: bold;
}

.profile-title,
.profile-affiliation {
    color: #666;
}

#profile-links {
    margin-top: 4px;
    text-align: center;
}

#profile-links a {
    display: inline-block;
    margin: 0 4px;
    text-decoration: none;
}

#profile-links i {
    font-size: 1.2em;      /* control icon size */
    vertical-align: middle;
}

#profile-links a:hover i {
    transform: scale(1.1);
}

#profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 15px auto 10px auto;
    border: 2px solid #ddd;
}

#profile-block .profile-section-title {
    margin: 0;
    padding: 15px 25px 1px 25px;
    font-size: 18px;
    line-height: 2;
    font-weight: 600;
    text-align: left !important;
    border: none;
    color: #24496e;
    margin-bottom: 2px;
}

#profile-block .profile-line {
    margin: 0;
    padding: 0 25px;
    font-size: 16px;
    line-height: 1.4;
    text-align: left !important;
    color: #24496e;
}


/* ORCID badge (custom, since FA4 has no ORCID icon) */
.orcid-link {
    text-decoration: none;
}

.orcid-icon {
    display: inline-block;
    width: 1.3em;
    height: 1.3em;
    border-radius: 50%;
    background-color: #A6CE39;   /* ORCID green */
    color: #ffffff;
    font-size: 0.8em;
    font-weight: bold;
    font-family: "Helvetica Neue", Arial, sans-serif;
    text-align: center;
    line-height: 1.3em;
    box-sizing: border-box;
}

#profile-links a:hover .orcid-icon {
    filter: brightness(1.1);
    transform: scale(1.08);
    transition: transform 0.15s ease-in-out, filter 0.15s ease-in-out;
}

/* ---------- Inner 2-column layout on the home page ---------- */
 
 .pub-list {
  margin-left: 1.5em;   /* indent like jemdoc bullets */
  padding-left: 0;
}

.pub {
  margin-bottom: 0.5em; /* vertical spacing between entries */
}


/* Normal Image With Caption */
.pic-container {
    text-align: center;          /* center everything */
    margin: 20px auto;           /* spacing */
    width: 100%;                 
}

.pic-box {
    display: inline-block;       /* acts like <div> that centers */
    max-width: 600px;            /* maximum image width */
    width: 100%;                 
    text-align: center;          
}

.pic-box img {
    width: 100%;                 /* responsive image */
    height: auto;
    border-radius: 4px;          /* optional: soften corners */
    margin-bottom: 8px;
}

.pic-box p {
    margin: 0;
    padding: 0;
    font-size: 0.7em;
    text-align: center;
    color: #444;                 /* caption color */
}

@media screen and (max-width: 768px) {
  html {
    font-size: clamp(9px, 2.4vw, 16px);
  }

  div#header {
    height: 2.2rem !important;
  }

  div#header-container {
    height: 3.1rem !important;
  }

  div#header-text-container {
    font-size: 1.75rem !important;
    height: 2.5rem !important;
    padding-left: 0.6rem !important;
    padding-top: 0.1rem !important;
    margin: 0.3rem !important;
    visibility: visible !important;
    width: auto !important;
  }



  div#layout-content {
    padding-top: 1.6rem !important;
    padding-bottom: 2.8rem !important;
    padding-left: 2.2rem !important;
    padding-right: 2.2rem !important;
  }

  div.menu-category {
    font-size: 1.125rem !important;
    padding-left: 1.55rem !important;
    padding-right: 1.55rem !important;
    line-height: 2 !important;
  }

  div.menu-item {
    font-size: 1rem !important;
    padding-left: 1.55rem !important;
    padding-right: 1.55rem !important;
  }

  #profile-photo {
    width: 6.4rem !important;
    height: 6.4rem !important;
  }
  
    div#member {
    width: 8rem !important;
    margin-right: 0.6rem !important;
    margin-bottom: 1rem !important;
  }

  div#member img {
    width: 12rem !important;
    height: 12rem !important;
    object-fit: cover !important;
  }

  div#img-container img {
    width: 12rem !important;
    height: auto !important;
    margin-right: 1rem !important;
  }

  .pic-box {
    max-width: 20rem !important;
  }

  .pic-box img {
    width: 100% !important;
    height: auto !important;
  }

  .column img {
    width: 100% !important;
    height: auto !important;
  }

  img {
    max-width: 100% !important;
    height: auto !important;
  }

  #profile-block .profile-section-title {
    font-size: 1.125rem !important;
    padding: 0.95rem 1.55rem 0.1rem 1.55rem !important;
  }

  #profile-block .profile-line {
    font-size: 1rem !important;
    padding: 0 1.55rem !important;
    line-height: 1.4 !important;
  }

  h1 {
    font-size: 2rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  h3 {
    font-size: 1.25rem !important;
  }

  p, li, td {
    font-size: 1rem !important;
    line-height: 1.5 !important;
  }

  div#footer {
    font-size: 0.75rem !important;
    padding-left: 2.2rem !important;
    padding-right: 2.2rem !important;
  }
}

@media screen and (max-width: 768px) {
  .openbtn {
    color: #cccccc !important;        /* light gray */
    background: transparent !important;
    border: none !important;
    font-size: 26px !important;       /* keep roughly same size */
    padding: 6px 8px !important;
    display: inline-block !important;
  }

  .openbtn:hover {
    color: #ffffff !important;        /* brighter on hover */
  }
}
