body {
    font-family: Verdana,Helvetica, Arial, sans-serif;
    font-size: 0.8em;
    line-height: 150%;
    background-color: #fff;
    width: 640px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    display: block;
    padding-bottom: 50px;
  }
  
  h1,h2,h3{
    color: #3f3f3f;
  }
  h1{
    font-weight: normal;
  }
  
  h3{
    /*font-weight: normal;*/
    /*font-size: 1.3em;*/
    margin-bottom: 0px;
    padding-bottom: 0px;
  }
  a{
    text-decoration: none;
    color: #df0a0a;
    /*font-weight: bold;*/
  }
  
  a:hover{
    text-decoration: underline;
  }
  
  pre{
    font-size: 1.5em;
  }
  
  .bibtex pre{
    font-size: 1em;
  }
  hr{
    margin-top:2em;
    margin-bottom: 2em;
  }
  #heading{
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    clear: both;
  }
  #heading img{
    float: left;
    margin-right: -100px;
  }
  #heading h1{
    text-align: center;
    font-size: 2em;
    color: #777;
    padding: 0.3em;
  }
  
  #nav{
    margin-top: 2em;
    margin-bottom: 2em;
  }
  #nav ul{
    list-style-type:none;
    margin:0;
    padding:0;
    height: auto;
    /* overflow: hidden; */
    /* width: 640px; */
    /*margin-left: auto;*/
    /*margin-right: auto;*/
    margin-bottom: 3em;
  
  }
  
  #nav ul li{
    display:inline;
    width: 120px;
  }
  
  #nav ul a{
    font-family: helvetica,arial,sans-serif;
    font-size: 16px;
    /*font-weight: bold;*/
    line-height: 36px;
    text-decoration: none;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
  
    -webkit-transition: .2s all ease-in-out;
    -moz-transition: .2s all ease-in-out;
    transition: .2s all ease-in-out;
  
    margin: 10px 4px;
    display: inline-block;
    /*color: #46483e;*/
    /*background-color: #ff7600;*/
    border: solid 1px #fff;
    border-radius: 5px;
    width: 200px;
    text-align: center;
    color: #050505;
  }
  #nav ul a:hover {
    text-decoration: none;
    /*background-color: #aab293;*/
    box-shadow:0 0px 10px 2px #dddddd inset;/*, 0 0 40px rgba(0, 0, 0, 0.1) inset;*/
  }
  
  #home .home,
  #research .research,
  #code .code,
  #projects .projects
  {
  /*  background-color: #dddddd;*/
    /* border: solid 1px #aaa; */
  }

  .nav-item:hover {
    background-color: #dddddd;
  }

  .subtext
  {
    color: #858482;
    font-weight:bold;
  }
  
  .bibli ul {
    list-style-type: none;
    padding: 0;
  }
  
  .bibli ul li{
    margin-bottom: 10px;
  }
  
  .bibli ul li:hover {
    background-color:#F8F8F8;
  }

  #footer {
    position: absolute;
    bottom: 0;
    width: 50%;
    height: 2.5rem;            /* Footer height */
    text-align: center;
    font-size: 9px;
  }

@media screen and (max-width: 768px) {
  body {
    width: 95%;
    font-size: 1em;
    padding: 10px;
  }

  #nav ul {
    width: 100%;
  }

  #nav ul li {
    display: block;
    width: 100%;
    margin: 5px 0;
  }

  #nav ul a {
    width: 100%;
    margin: 5px 0;
  }

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

  #page {
    width: 100%;
    padding: 10px;
  }

  #footer {
    width: 100%;
    position: relative;
  }

  .bibli ul li {
    padding: 10px;
  }
}