/* ------------------ */
/* --- Containers --- */
/* ------------------ */

body {
  /* Colors, Font */
  background-color: #fff;
  font: 15px/1.6 -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";
  color:#595959;
  font-weight:400;

  /* Padding */
  padding-top: 0px;
  padding-bottom: 50px;
  padding-left: 0;
  padding-right: 0;
}


section {
  /* Padding and Sizes */
  max-width:860px;
  min-width:450px;
  width: calc(100% - 460px);
  margin-left: 430px;
  margin-top:120px;
  padding-bottom:50px;
  padding-right:100px;
  padding-left:20px;
  width: auto;
}


header {
  background-color: transparent;
  
  width:300px;
  left: auto;
  right:auto;
  padding-left:20px;
  padding-right:20px;
  padding-bottom:20px;
  padding-top:10px;
  top: 64px;

  /*position: absolute;  to make image/icons scroll */
  position:fixed;  /* to make it fixed */
  -webkit-font-smoothing:subpixel-antialiased;
}

header a:hover,
header a:focus {
  color:pink
}

footer {
  /*background-color: #D6E2EF;*/
  width:300px;
  left: auto;
  right:auto;
  top:780px;
  position: fixed;
  padding-left:20px;
  padding-right:20px;
  -webkit-font-smoothing:subpixel-antialiased;
  background-color: transparent;
  color: #A9A9A9;
}

footer a {
  color: #EBEBEB;
}

/* --------------- */
/* --- SIDE BAR --- */
/* --------------- */

.sidebar-column {
    width: 360px; 
    height: 100%;
    
    position: fixed; 
    top: 0; 
    left: 0px;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    
    background-color: #3070AD;
}

.sidebar-column a {
  color:#EBEBEB;
}


/* Image */
.portrait {
  width:160px;
  margin-bottom: 8px;
  border-radius: 50%;
}

.email_image {
  margin-bottom:10px;
}


html {
  scroll-behavior: smooth;
}

.my_name {
  color: white;
}

/* Navbar */
.navbar-container {
  /*width:200px;*/
  left: auto;
  right: auto;
  padding-left:20px;
  padding-right:20px;
  padding-bottom:0px;
  padding-top:20px;
  top: 420px;
  position: fixed;
  align-content: center;
  /*background-color: #d7e2ef;*/
  background-color: transparent;
}

.navbar
{
  width:260px;
  margin-top:-16px;
  text-align: center;
  white-space: nowrap;
  top: 0;
  background-color: transparent;
  /*z-index: 10;*/
  /*background: #fff;*/
  /*background-color: #d7e2ef;*/
}

.navbar_li
{
  list-style-type: none;
  font-size: 18px;
  margin-bottom: 7px; /* Adds space between each nav item */
  margin-right:36px;
}

.navbar_li a:hover,
.navbar_li a:focus
{
  border-bottom-style: solid;
  border-top-style: solid;
  border-width: 1px;
  color: pink;
}


#selected a {
  color: orange;
  /*color: #469C76; */
}

#selected
{
  text-decoration: underline;
  text-decoration-color: orange;
}

.workPicture
{
  width: 260px;
  margin-right:24px;
  min-width: 80px;
}

/* ------------ */
/* --- Text --- */
/* ------------ */


h1, h2, h3, h4, h5, h6 {
  color:#222;
  margin:0 0 20px;
}

p, ul, ol, table, pre, dl {
  margin:0 0 20px;
}

.indexWorkRow {
  border-bottom: 1px solid;
  border-color: #e5e5e5;
}

h1, h2, h3 {
  line-height:1.1;
}

h1 {
  font-size:28px;
  font-weight: 500;
}

h2 {
  color:#393939;
  font-weight: 500;
}

h3, h4, h5, h6 {
  color:#494949;
  font-weight: 500;
}

a {
  color:#39c;
  text-decoration:none;
}

a:hover {
  color:#069;
}

a small {
  font-size:11px;
  color:#777;
  margin-top:-0.3em;
  display:block;
}

a:hover small {
  color:#777;
}


blockquote {
  border-left:1px solid #e5e5e5;
  margin:0;
  padding:0 0 0 20px;
  font-style:italic;
}

code, pre {
  font-family:Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal, Consolas, Liberation Mono, DejaVu Sans Mono, Courier New, monospace;
  color:#333;
}

pre {
  padding:8px 15px;
  background: #f8f8f8;
  border-radius:5px;
  border:1px solid #e5e5e5;
  overflow-x: auto;
}

table {
  width:100%;
  border-collapse:collapse;
}

th, td {
  text-align:left;
  padding:5px 10px;
  /*border:1px solid #e5e5e5;*/
}

dt {
  color:#444;
  font-weight:500;
}

th {
  color:#444;
}

img {
  max-width:100%;
}


small {
  font-size:11px;
}

hr {
  border:0;
  background:#e5e5e5;
  height:1px;
  margin:0 0 20px;
}


/* -------------- */
/* --- MOBILE --- */
/* -------------- */

/* -------------- */
/* --- PAPERS --- */
/* -------------- */


/* PAPERS PAGE */
.paper_line
{
  margin-left: 20px;
  margin-right: 20px;
  padding-right: 20px;
  text-align: left;
}

.paper_title
{
  margin-left: 60px;
  margin-right: 20px;
  padding-right: 20px;
  text-align: left;
  font-weight: 800;
}


#bibtexFont
{
  font-size: 10px;
  color:#9AC39D !important;
}

#appendixFont
{
  color:#E8AB6B !important; 
}


/* ---------------- */
/* --- PICTURES --- */
/* ---------------- */
.colPortrait
{
  margin-bottom: 8px;
  border-radius: 10px;
  width: 132px;
  /*height: 132px;*/
  object-fit: cover;

}

#collaboratorWrapper
{
  text-align: center;
  margin-left: -30%;
}

.current-students-table img {
    width: 132px;
    height: 132px;
    object-fit: cover; 
    border-radius: 10%;
    display: block;
    margin: 0 auto 10px auto;
}

/* ------------ */
/* --- BLOG --- */
/* ------------ */

h4
{
  font-size:16px;
  color:grey;
}

h5
{
  font-size:13px;
}

#blogEndNav
{
  margin-left: auto;
  margin-right: auto;
  width:40%;
  text-align: center;
  padding:14px;
  border-radius: 10px;
  border:solid;
  border-width: 1px;
  border-color: #c5c5c5;
}

#blogEndBar {
  margin-top:10px;
  height:1px;
  color:#e5e5e5;
}


#blognav
{
  float:left;
  padding:14px;
  border-radius: 10px;
  border-color: #cdcccc;
  border:solid;
  border-width: 1px;
  margin-left:38px;
  margin-top:30px;
  margin-right:36px;
  margin-bottom:40px;
  width:195px;
}

#allPostList
{
  /*margin-left:20px;*/
  line-height: 24px;
  /*text-align: justify;*/
}

#blognavHeader
{
  margin-top: -2px;
  /*font-style: italic;*/
  font-weight: lighter;
  text-align: center;
}

.blognav_element
{
  margin-left:16px;
  font-size: 16px;
}

.blognav_element a:hover,
.blognav_element a:focus
{
  border-bottom-style: solid;
  border-top-style: solid;
  border-width: 1px;
  color: #80CCFF;
}

#blog_selected
{
  text-decoration: underline;
}


.center_it_text
{
  /*margin-left: 40px;*/
  /*margin-right: 30px;*/
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-style: italic;
  align:center;
  /*font-family: serif;*/
  /*padding: 15px;*/
  max-width: 85%;
  min-width: 200px;
}


/* ---------------- */
/* --- TUTORIAL --- */
/* ---------------- */

skinnycode
{
  font-family: monospace;
  background:#F8F8FF;
  border:black dashed 1px;
  padding:6px;
  margin-right: auto;
  margin-left: 20px;
  margin-bottom: 10px;
  display:inline-block;
  max-width:75%;
}

code
{
  font-family: monospace;
  background:#F8F8FF;
  border:black dashed 1px;
  padding:6px;
  margin-right: auto;
  margin-left: 20px;
  margin-bottom: 10px;
  display:block;
  max-width:75%;
}

mathcode
{
  font-family: monospace;
  background:#F8F8FF;
  border:black dashed 1px;
  padding:6px;
  margin-left: 80px;
  display:inline-block;
  max-width:60%;
}

#tutorialP
{
  max-width:80%;
}

.definition
{
  margin-left: 30px;
  margin-bottom: 10px;
  margin-right: 30px;
  text-align: left;
  font-family: serif;
  padding: 10px;
  max-width: 85%;
  min-width: 180px;
  border-style: solid;
  border-width: 1px;
}

.equation
{
  margin-left: 140px;
}

.definition_no_b
{
  margin-left: 40px;
  margin-right: 30px;
  text-align: left;
  font-family: serif;
  /*padding: 15px;*/
  max-width: 95%;
  min-width: 200px;
}

.narrow_definition
{
  margin-left: 40px;
  margin-bottom: 20px;
  margin-right: 280px;
  text-align: left;
  font-family: serif;
  padding: 15px;
  max-width: 95%;
  min-width: 200px;
  border-style: solid;
  border-width: 1px;
}


/* ------------ */
/* -- MOBILE -- */

@media screen and (max-width: 576px) {

    /* Sidebar, header, footer, navbar */
    
    .sidebar-column, header, footer, .navbar-container, section {
        min-width: 360px;
        position: static !important; 
        width: 100% !important; 
        margin: 0 !important;
        left: auto !important;
        top: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        display: block !important;
    }

    header {
      bottom:0;
      margin-bottom: 0 !important; 
      padding-bottom: 0 !important;
      padding-top: 10px !important; 
    }

    header div {
        margin-bottom: 0 !important; 
    }

    .navbar {
        padding-left: 0 !important;
        margin-left: 0 !important;
        padding-top:5px;
        width: 100%;
        text-align: center;
    }

    .navbar_li {
        padding-left: 0 !important;
        margin-left: 0 !important;
        display: block !important;
        margin-right: 0 !important;
        text-align: center;
    }
    
    .navbar_li a {
        /*display: block;*/
        text-align: center;
    }

    
    .sidebar-column {
        align-items: center !important; 
        height: auto !important;
        
        padding: 10px 0; 
    }


    .navbar_li {
        display: block; /* Stack vertically for better touch targets */
        margin: 5px 0 !important;
        text-align: center;
    }

    footer {
        margin-top: 30px !important;
        text-align: center;
        width: 100%;
    }
    
    /* Main Content */
    
    section {
          box-sizing: border-box !important;

          margin-top: 20px !important;
          margin-left: auto !important; 
          margin-right: auto !important;
          
          width: 90% !important; 

          display: block !important;
          
          padding-left: 35px !important; 
          padding-right: 35px !important;
          
          padding-top: 20px !important;
          padding-bottom: 50px !important;
          
          max-width: none !important;
      }
      
      .sidebar-column {
          text-align: center;
      }

      html, body {
      margin: 0;
      padding: 0;
      }
    
    /* Images  */

    #collaboratorWrapper {
        width: 100% !important;
        overflow: hidden !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
        padding: 0 !important;
    }
    section img {
        max-width: 80% !important; 
        height: auto !important;     
        width: auto !important;      
        
        /* Ensure the image's display behavior is block for proper centering */
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;

        box-sizing: border-box !important;
        padding: 0 !important;
        border: none !important;
    }
    .colPortrait {
        /* Set a fixed percentage width relative to the container (the <td>) */
        width: 50% !important; 
        
        /* Ensure the height scales proportionally */
        height: auto !important; 
        
        /* Override any max-width rule that might make it too small */
        max-width: 80% !important; 
        
        /* Center the image block itself within the table cell */
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    section table, section tbody, section tr, section td {
        display: block !important;
        width: 100% !important; /* Force all rows and cells to full width */
        margin: 0 !important;
        padding: 0 !important;
    }

    section td {
        /* Add back vertical separation between stacked collaborators */
        margin-bottom: 20px !important;
        text-align: center; /* Center the image/text block within the cell */
    }


    /* Math definitions */

    .definition
    {
      margin-left: 30px;
      margin-bottom: 10px;
      margin-right: 30px;
      text-align: left;
      font-family: serif;
      padding: 10px;
      max-width: 95%;
      min-width: 200px;
      border-style: none;
    }

    div.definition, div.definition_no_b {
        /* Forces the content to stay within the div's width */
        overflow-x: auto !important; 
        width: 100% !important; 
        /* Ensure the box model doesn't add width */
        box-sizing: border-box !important;
    }
    
    div.definition div, div.definition_no_b div {
        overflow-x: auto !important; 
        white-space: nowrap; /* Prevents long math lines from wrapping poorly */
        width: 100% !important;
        box-sizing: border-box !important;
    }


    /* --------------------------------- */
    /* Work images + texts in index.html */

    .indexWorkRow {

      border-bottom: 1px solid;
      border-color: #e5e5e5;
    }

    .indexWorkText {
        text-align: left !important;
    }

    .indexAlWorkText {
        text-align: center !important;
    }

    .workPicture
    {
        margin-top:28px;
        margin-bottom:-20px;
        max-width: 40% !important; 
        
        height: auto !important; 
        width: auto !important;      
        
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;

    }
}