/*******DEFAULT PAGE STYLE*******/

/*******MathJax*******/
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Century+Schoolbook&display=swap');

/*******GLOBAL*******/
* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 90%;
    scroll-behavior: smooth;
}

body {
    font-family:'Roboto', sans-serif;
    font-weight: 600;
    line-height:140%;
    min-height: 100vh;
    /*background-image: url(../images/background.jpg);
    background-repeat: no-repeat;
    background-position: bottom left;*/
    /* background-opacity: 0.6; */
    display: flex;
    flex-direction: column;
    overflow-wrap: anywhere;
}

h1 {
    font-size: 150%;
    line-height:120%;
    
    font-family: 'Roboto', sans-serif;
}

h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 130%;
    line-height:120%;
    color: rgb(35, 35, 35);
}

/* h3 {
    font-family:'Fira Sans', 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 110%;
    line-height:140%;
    color: rgb(50,50,50);
} */

h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 110%;
    line-height:120%;
    /*color: rgb(50,50,50);*/
    color: rgb(111, 162, 135);
    /* overflow-wrap: anywhere; */
}


p {
    text-align:left;
    -webkit-hyphens:none;
    -moz-hyphens:none;
    -ms-hyphens:none;
    hyphens:none;
    font-size: 90%;
    overflow-wrap: anywhere;
}



/* RESEARCH */
.container {
    display: flex; /* Use flexbox for easy alignment */
    align-items: center; /* Vertically center the items */
    width: 100%; /* Add this */
    max-width: 100%; /* And this */
    box-sizing: border-box; /* So padding/margins don't cause overflow */
  }
  .container img {
    margin-right: 2%; /* Adjust the spacing between image and text */
  }
h1.research {
    font-size: 170%;
    line-height:120%;
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
    text-align: center;
}

h2.research {
    font-family: 'Roboto', sans-serif;
    font-weight: 200;
    font-size: 110%;
    line-height:200%;
    color: rgb(100,100,100);
    text-align: center;
}

h3.research {
    text-align: center;
    font-family:'Roboto', sans-serif;
    font-weight: 50;
    font-size: 90%;
    line-height:120%;
    color: rgb(100,100,100);
    overflow-wrap: anywhere;
}

p.research {
    text-align:left;
    -webkit-hyphens:none;
    -moz-hyphens:none;
    -ms-hyphens:none;
    hyphens:none;
    font-size: 90%;
    overflow-wrap: anywhere;
}

p.citation {
    text-align:left;
    -webkit-hyphens:none;
    -moz-hyphens:none;
    -ms-hyphens:none;
    hyphens:none;
    font-size: 90%;
    font-family: monospace;
    color: rgb(125, 125, 125);
    white-space: nowrap;
    overflow: auto;
    background-color: rgba(225, 225, 225, 0.16);
}

.center {
    width: 75%;
    display: block;
    margin: 0 auto;
}

.red {
    color: rgb(111, 162, 135);
}

.right {
    text-align: right;
}

.paper-entry {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2em;
    width: 100%;
    max-width: 100%;
    border: 1px dashed rgb(200, 200, 200);
    border-radius: 8px;
    padding: 1.2em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .paper-entry:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border-color: rgb(111, 162, 135) !important;
  }
  
  main .paper-entry:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border-color: rgb(111, 162, 135) !important;
  }
  
  .paper-entry img.paper-thumb,
  main .paper-entry img.paper-thumb,
  img.paper-thumb {
    width: 360px;
    min-width: 360px;
    max-width: 360px;
    height: auto;
    margin-right: 1.5em;
    border-radius: 0px;
    object-fit: cover;
    flex-shrink: 0;
    flex-grow: 0;
  }
  
  .paper-info {
    flex: 1;
    min-width: 0;
  }
  
/*******HEADER*******/
header {
    width: 100%;
    height: 5em;
    position: relative;
    background: white;
    padding: 1em;
}

div.logo {
    visibility: visible;
    font-weight: 600;
    position: relative;
    top: 1em;
    left: 0em;
    font-size: 2em;
    display: inline-block;
    min-width: 10em;
}

#header_nav {
    position: absolute;
    top: 2.75em;
    left: 18em;
}

#header_nav ul {
    list-style:none;
    position:relative;
    float:left;
}

#header_nav ul a
{
    display:block;
    color:rgb(100,100,100);
    text-decoration:none;
    padding: 5px 15px;
}

#header_nav ul li {
    position:relative;
    float:left;
}

#header_nav ul li:hover { 
    background: rgba(111, 162, 135, 0.4); 
    border-radius: 4%;
}
#header_nav ul li:hover a { color: rgb(255, 255, 255); }
#header_nav ul li:hover ul li a { color: rgb(100,100,100); }
#header_nav ul li:hover ul li:hover a { color: white; }

#header_nav ul ul {
    display:none;
    position:absolute;
    top:100%;
    left:0;
    background: rgba(255, 255, 255, 0.904);
    padding:0
}

#header_nav ul ul li
{
    float:none;
    width:200px;
}

#header_nav ul ul a
{
    line-height:120%;
    padding:10px 15px;
}

#header_nav ul li:hover > ul { display:block; }


div.logo a {
    font-family: 'Century Schoolbook', serif;
    color: rgb(111, 162, 135);
    text-decoration: none;
}

div.logo a:hover { color: rgb(100,100,100); }


/*******MAIN*******/
main {
    padding: 1em;
    padding-top: 3em;
    font-family:'Roboto', sans-serif;
    font-weight: 300;
    background-color: rgba(255,255,255,0.8);
    flex: 1;
}

/* Section anchors with offset for fixed header */
section {
    scroll-margin-top: 6em;
}

main a {
    color: rgb(111, 162, 135);
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    text-decoration: none;
    border-top: none;
    border-right: none;
    border-left: none;
/*     border-bottom: 1px dashed currentColor; */
}

main a:hover { color: rgb(100, 100, 100); }
main a:visited { color: rgb(111, 162, 135); }
a.gray {
    color:rgb(100,100,100);
}

main h1#article_title {
    font-family: 'Roboto', sans-serif;
    font-size:250%;
    padding-bottom: 0.3em;
}


article { line-height: 1.6; }

blockquote {
    font-family: 'Roboto', sans-serif;
    font-size: 90%;
    color: rgb(30,30,30);
    padding-left: 1.7em;
    padding-right: 1.7em;
}


main p { padding-bottom: 1em; }

main ol {
    padding-left: 1.7em;
    padding-right: 2em;
    padding-bottom:1em;
    /* For gray numbers: */
    /* list-style:none;
    counter-reset:li*/
}

main ol li {
    padding-bottom: 0em;
}

/* For gray numbers:
main ol li::before {
    content:"."counter(li);
    color: rgb(100,100,100);
    display:inline-block;
    width:1.5em;
    padding-right:0.5em;
    text-align:right;
    margin-right:0em;
    margin-left:-2em;
    direction:rtl
} */

main ul {
    padding-top: 0em;
    padding-bottom:1em;
    padding-left: 1.7em;
    list-style: none;
}

main ul li {
    padding-bottom: 0em;
}
main ul li::before {
    content: "▪";
    color: rgb(100,100,100);
    margin-left: -1em;
    padding-right: .7em;
}


p span.sc {
    font-size:140%;
    text-transform: lowercase;
    font-variant: small-caps;
    letter-spacing: 1px;
}

p span.centered { text-align: center; }

.photo-container {
    float: right;
    margin: 0 40px 20px 40px;
    display: none;
    vertical-align: top;
}

#home {
    margin-top: 0;
    padding-top: 0;
}

#home .photo-container {
    margin-top: 0;
}

#home > p:first-of-type {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

@media only screen and (min-width: 750px) {
    .photo-container {
        display: block;
    }
}

img.photo {
    display: block;
    float: none;
    border-style: solid;
    border-width: 0.5px;
    border-color: rgb(178, 178, 178);
    margin: 0;
    margin-bottom: 1em;
    border-radius: 5%;
}

/* INTRO SECTION: Name and titles next to photo */
.intro-section {
    margin-bottom: 3em;
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2em;
}

@media only screen and (min-width: 750px) {
    .intro-content {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .intro-photo {
        flex-shrink: 0;
    }
}

.intro-text {
    flex: 1;
}

.intro-name {
    font-family: 'Century Schoolbook', serif;
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 0.5em;
    color: rgb(35, 35, 35);
    line-height: 1.2;
}

.intro-titles {
    margin-bottom: 1em;
}

.intro-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5em;
    font-weight: 300;
    color: rgb(100, 100, 100);
    margin-bottom: 0.2em;
}

.intro-brief {
    font-size: 1em;
    color: rgb(100, 100, 100);
    max-width: 600px;
}

.intro-photo {
    width: 100%;
    max-width: 400px;
}

.intro-photo img {
    width: 100%;
    height: auto;
    border-radius: 5%;
    border: 0.5px solid rgb(178, 178, 178);
}

/* EXPERIENCE SECTION */
.experience-section {
    margin-bottom: 3em;
}

.experience-timeline {
    position: relative;
    padding-left: 2em;
    margin-top: 2em;
}

.experience-item {
    position: relative;
    padding-left: 3em;
    padding-bottom: 2.5em;
    border-left: 2px solid rgb(200, 200, 200);
}

.experience-item:last-child {
    border-left: none;
}

.experience-logo {
    position: absolute;
    left: -1.5em;
    top: 0;
    width: 3em;
    height: 3em;
    background: white;
    border: 2px solid rgb(200, 200, 200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.experience-content {
    padding-top: 0.5em;
}

.experience-dates {
    font-size: 0.85em;
    text-transform: uppercase;
    color: rgb(150, 150, 150);
    letter-spacing: 0.05em;
    margin-bottom: 0.5em;
}

.experience-content h3 {
    font-size: 1.2em;
    font-weight: 600;
    color: rgb(35, 35, 35);
    margin-bottom: 0.3em;
}

.experience-company {
    font-size: 0.95em;
    font-weight: 500;
    color: rgb(100, 100, 100);
    margin-bottom: 0.5em;
}

.experience-description {
    font-size: 0.9em;
    color: rgb(100, 100, 100);
    line-height: 1.6;
}

/* PROJECT THUMBNAILS */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2em;
    margin-top: 2em;
}

.project-card {
    display: flex;
    flex-direction: column;
    border: 1px dashed rgb(200, 200, 200);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: rgb(111, 162, 135);
}

.project-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: rgb(240, 240, 240);
}

.project-info {
    padding: 1.2em;
}

.project-name {
    font-size: 1.1em;
    font-weight: 600;
    color: rgb(35, 35, 35);
    margin-bottom: 0.5em;
}

.project-prize {
    font-size: 0.85em;
    color: rgb(111, 162, 135);
    font-style: italic;
    margin-bottom: 0.5em;
    font-weight: 500;
}

.project-description {
    font-size: 0.9em;
    color: rgb(100, 100, 100);
    line-height: 1.5;
}

img.icon {
    float: center;
    width: 30px;
    border-bottom:none;
    opacity: 0.2;
    transform: translate(0, 50%);
}

.institution-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
    align-items: center;
    justify-content: center;
    margin-top: 1em;
}

.institution-logos img {
    height: 40px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.institution-logos img:hover {
    opacity: 1;
}

/* MISC PAGE STYLING */
main ul ul {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    padding-left: 1.5em;
}

main ul li {
    margin-bottom: 0.8em;
    line-height: 1.6;
}

main ul ul li {
    margin-bottom: 0.4em;
}


/*******FOOTER*******/
footer {
    position: static;
    font-size: 60%;
    height: 3em;
    text-align: right;
    margin-top: auto;
}


/*******CODE COLORS*******/
pre.sourceCode {
    background-color: #f8f8f8;
    border: 2px solid #ddd;
    padding: 6px 10px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 14px;
}


/* Generated by pandoc. */
table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode, table.sourceCode pre
   {
       margin: 0;
       padding: 0;
       border: 0;
       vertical-align: baseline;
       border: none;
   }
td.lineNumbers {
    border-right: 1px solid #AAAAAA;
    text-align: right; color: #AAAAAA;
    padding-right: 5px;
    padding-left: 5px;
}
td.sourceCode { padding-left: 5px; }
.sourceCode span.kw { color: #007020; font-weight: bold; }
.sourceCode span.dt { color: #902000; }
.sourceCode span.dv { color: #40a070; }
.sourceCode span.bn { color: #40a070; }
.sourceCode span.fl { color: #40a070; }
.sourceCode span.ch { color: #4070a0; }
.sourceCode span.st { color: #4070a0; }
.sourceCode span.co { color: #60a0b0; font-style: italic; }
.sourceCode span.ot { color: #007020; }
.sourceCode span.al { color: red; font-weight: bold; }
.sourceCode span.fu { color: #06287e; }
.sourceCode span.re { }
.sourceCode span.er { color: red; font-weight: bold; }


/*******MEDIA RESPONSE*******/

@media only screen and (min-width: 750px) {
    header { margin: auto; width: 750px;}
    main { margin: auto; width: 750px; }
    footer {margin: auto; width: 750px; }
}

@media only screen and (min-width: 1500px) {
    header {
        width: 900px; margin: auto;
	position: fixed;
        left: 0; right: 0;
	/* For Safari 5.1 to 6.0 */
	background: -webkit-linear-gradient(rgba(255,255,255,1), rgba(255,255,255,0));
	/* For Opera 11.1 to 12.0 */
	background: -o-linear-gradient(rgba(255,255,255,1), rgba(255,255,255,0));
	/* For Firefox 3.6 to 15 */
	background: -moz-linear-gradient(rgba(255,255,255,1), rgba(255,255,255,0));
	/* Standard syntax (must be last) */
	background: linear-gradient(rgba(255,255,255,1), rgba(255,255,255,0));
    }
    main { width: 900px; margin: auto; padding-top: 8em;}
    h1, section.header, article { width: 900px;  }
    footer {width: 900px; margin: auto;}
}

div.scroll-container {
    background-color: #333;
    overflow: auto;
    white-space: nowrap;
    padding: 10px;
  }
  
  div.scroll-container img {
    padding: 10px;
  }

