body {
    max-width: 100%;
    font-family: 'EB Garamond', 'Crimson Text', serif;
    display: block;
    background-color: #f8f8f6;
    font-size: 1.15em;
    line-height: 1.7;
    font-weight: 400;
}
h1{
    font-family: 'EB Garamond', 'Crimson Text', serif;
    font-weight: 400;
    letter-spacing: 0.5px;
    font-size: 2.2em;
}
h2{
font-family: 'Lato', sans-serif;
font-weight: Normal;
 color: #780202;
margin: 0px;
font-size: 1.3em;

}

/* Main divs */
    .level_1_div{
        /*margin: auto;*/
        margin-top: 2px;
        padding: 10px;
        display: block;
        /*background-color: blue;*/
    }
    .level_2_div{
        text-align: left;
        width: 60%;
        min-width: 400px;
        margin: auto;
        display: block;
        /*  background-color: green; */
    }
    .level_3_header{
        text-align: center;
        margin:auto;

        display: block;
        min-width: 500px;
        margin-top: 2px;
        margin-bottom: 25px;
        margin-left: 2px;
        /* background-color: yellow; */
        position: sticky;
        top: 0;
        background-color: #f8f8f6;
        z-index: 100;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .level_3_body{
        text-align: left;
        margin:auto;
        min-width: 500px;
        display: block;
        width: 99%;
        margin-top: 10px;
        /* background-color: grey; */
        max-width: 600pt;
    }
    
#resources{
  text-align: center;
  margin:auto;
  width: 99%;
  margin-top: 30px;
  display: inline-block;
}
  #resources-left{
    text-align: left;
    margin:auto;
    width:60%;
    margin-top: 30px;
     display: inline-block;
  }
#resources-right{
    text-align: center;
    margin:auto;
    font-size:0.7em;
    margin-top: 30px;
    margin-left: 10%;
    width: 29%;
        display: inline-block;
        vertical-align: top;
}


    #about{
        text-align: center;
        margin:auto;
        width: 99%;
        margin-top: 30px;
        display: inline-block;
    }
    #about-content{
        text-align: left;
        margin:auto;
        width: 70%;
        margin-top: 30px;
         display: inline-block;
    }
    #about-pic{
        text-align: left;
        margin:auto;
        margin-top: 30px;
        margin-left: 5%;
        width: 24%;
            display: inline-block;
            vertical-align: top;
    }
    .img{
        width: 100%;
      }
/*  nav bar */
.tab-button {
    background-color: #f8f8f6;
    cursor: pointer;
    padding: 10px;
    border: none;
    color:#000000;
    text-align: left;
    outline: none;
    font-size: 1.2em;
    transition: 0.0s;
    font-family: 'EB Garamond', serif;
  
  }
  /* Projects */
   .projectlist li {
                margin-bottom: 0px; 
                margin-top: 0px; 
               line-height: 0.3em;
              }
              
  .tab-button-project {
    background-color: #f8f8f6;
    cursor: pointer;
    padding: 0px;
    border: none;
    color:#000000;
    text-align: left;
    line-height: 0.5em;
    outline: none;
    font-size: 1em;
    transition: 0.0s;
    font-family: 'EB Garamond', serif;
  
  }

/* Links etc */
a {
    color: #780202;
    /* color: black; */
    font-weight: 400;
    text-decoration: none;
  }
  
  li {
    padding-bottom: 12px;
    padding-left: 4px;
  }
  
  ul {
    padding-left: 25px;
  }
  .content{
    margin-left: 20px;
  }
.list{
    line-height: 1.2em;
}
.onepaper{
    margin-bottom: 15px;
    margin-top: 10px;
    font-size: 1.0em;
    line-height: 1.5em;
  }
  .journalname {
    display: inline;
   /* font-weight: bold;
    color: #595853;*/
    font-style: italic; 
  
  }
  @media (max-width: 768px) {
    .level_2_div,
    #resources-left,
    #resources-right,
    #about-content,
    #about-pic,
    .level_3_body,
    .level_3_header {
        width: 100%;
        min-width: 0;
        margin-left: 0;
        margin-right: 0;
        display: block;
    }

    .level_3_header,
    .level_3_body,
    #resources,
    #about {
        text-align: left;
    }

    #resources-right,
    #about-pic {
        margin-left: 0;
        margin-top: 10px;
    }

    body {
        font-size: 1em;
    }

    h1 {
        font-size: 1.6em;
    }

    .tab-button,
    .tab-button-project {
        font-size: 0.95em;
    }

    .img {
        width: 30%;
        height: auto;
    }
    .tab-button {
      background-color: #f8f8f6;
      cursor: pointer;
      padding: 2px 3px;
      border: none;
      color:#000000;
      text-align: left;
      outline: none;
      font-size: 0.95em;
      transition: 0.0s;
      font-family: 'EB Garamond', serif;
      white-space: nowrap;
    }
    .level_3_header{
      text-align: center;
      margin:auto;
      
 
  }
  .level_1_div{
    /*margin: auto;*/
    margin-top: 2px;
    padding: 2px;
    display: block;
    /*background-color: blue;*/
}
.level_2_div{
    text-align: left;
    width: 90%;
    min-width: 300px;
    margin: auto;
    display: block;
    /*  background-color: green; */
}
.level_3_header{
    text-align: center;
    margin:auto;
    width: 99%;
    display: block;
    min-width: 300px;
    margin-top: 0px;
    margin-bottom: 25px;
    margin-left: 0px;
    /* background-color: yellow; */
}
.level_3_body{
    text-align: left;
    margin:auto;
    min-width: 300px;
    display: block;
    width: 99%;
    margin-top: 30px;
    /* background-color: grey; */
}
.projectlist li {
  margin-bottom: 0px; 
  margin-top: 0px; 
}
.tab-button-project {
  background-color: #f8f8f6;
  cursor: pointer;
  padding: 0px;
  border: none;
  color:#000000;
  text-align: left;
  line-height: 0.8em;
  outline: none;
  font-size: 0.8em;
  transition: 0.0s;
  font-family: 'EB Garamond', serif;

}
}
/* Active tab styling */
.tab-button.active {
  font-weight: bold;
  color: #780202;
}

/* Sidebar table of contents */
.sidebar-toc {
  position: fixed;
  left: calc(20% - 170px);
  width: 150px;
  font-family: 'Lato', sans-serif;
  font-size: 0.75em;
  line-height: 1.4;
  z-index: 50;
}
.sidebar-toc .sidebar-link {
  display: block;
  padding: 5px 0 5px 10px;
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
}
.sidebar-toc .sidebar-link:hover {
  color: #780202;
}
.sidebar-toc .sidebar-link.active {
  color: #780202;
  font-weight: 600;
}

/* Back link on project pages */
.back-link {
  font-family: 'Lato', sans-serif;
  font-size: 0.85em;
  color: #000000;
  text-decoration: none;
}
.back-link:hover {
  text-decoration: underline;
}

/* Hide sidebar on narrow screens */
@media (max-width: 1200px) {
  .sidebar-toc {
    display: none !important;
  }
}
