.wrapper{
    width: 100%;
    max-width: 1180px;
    padding: 0 0px;
    margin: 0 auto;
}
body{
    font-family: Georgia;
    margin: 0;
    background-color:floralwhite;
    color: #555;
}

header{
    background-color: #3b3b3b;
    color: white;
    padding-left: 3%;
    padding-right: 3%;
}


.header{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.header h1{
    flex-grow: 1;
    flex-basis: 290px;
}

.header nav ul{
    padding: 0px;
    display: flex;
    flex-wrap:wrap;
    list-style-type: none;
}


header nav a, header nav a:visited {
    text-decoration: none;
    color: white;
    font-size: 18px;
    padding: 10px;
}


header nav a:hover, header nav a:hover:visited {
    text-decoration: none;
    color:aqua;
    font-size: 18px;
}


section {
    margin-bottom: 40px;
    margin-top: 20px;
    padding-left: 5%;
    padding-right: 5%;
}

#bio{
    display: flex;
    align-items: center;
}
#bio h2{
    display: none;
}
#bio img{
    padding: 0px 20px;
    max-height: 250px;
    max-width: 250px;
}
#biosketch{
    padding-right: 20px;
}

#link_details{
    display:flex;
    justify-content: flex-end;
}

#link_details a, #link_detailsa :visited{
    margin-right: 2%;
    padding: 5px;
    text-decoration: none;
    color: brown;
    border: 2px solid brown;
}

#link_details a:hover, #link_details a:visited:hover{
    padding: 5px;
    text-decoration: none;
    background-color: brown;
    color: white;
    border: 2px solid brown;
}


/////////////////////////////////////////////////////////////////


#teaching section{
    margin-left:0px;
    padding-left:0px;   
    margin-bottom: 50px;
}


#teaching-current ul{
    padding-left: 3%;
}
#teaching-current .course-name, #teaching-current .course-number{
    font-size: 1.1em;
    font-weight: bold;
}

#teaching a, #teaching a:visited, #teaching-current ul a, #teaching-current ul a:visited {
    text-decoration: none;
    color: inherit;
}
#teaching a:hover, #teaching a:hover:visited, #teaching-current ul a:hover, #teaching-current ul a:hover:visited {
    text-decoration: none;
    color:mediumorchid;
}


#teaching-current li{
    list-style-type:disc;
    margin-bottom: 20px;
}
#teaching-past h4{
    margin-left: 3%;
    color:chocolate
}

#teaching-past ul{
    margin-left: 3%;
}
#teaching-past li{
    margin-bottom: 10px;
}
#teaching-past .course-name, #teaching-past .course-number{
    font-weight: bold;
}


.course-number{
    float:right;
    margin-right: 2%;
    padding-right: 5px;    
}
.course-time, .course-loc{
    float: clear;
    display:block;
    color: #aaa;
}

#teaching-current .course-time, #teaching-current .course-loc{
        font-weight: bold;
}
/////////////////////////////////////////////////////////////////
#research{
    display:flex;
    flex-flow: column; 
}
#research>p{
    margin-top: 0px;
    margin-bottom: 0px;
}
#research>h3{
    margin-bottom: 10px;
    margin-top: 40px;
}
#research>section{
    padding-left: 0%;
    padding-right: 0%;
}

#research>ul{
    padding-left: 3%;
}

#pubs li{
     list-style-type: none;
    margin-bottom: 15px;
}
.pub-title{
    display: block;
    font-weight: bold;
}
.pub-author{
    display: block;
    font-weight: bold;
    color: #aaa;
    font-size: 0.9em;
}
.pub-venue{
    font-style: italic
}
.pub-link a{
    text-decoration: none;
    font-weight: bold;
    color: brown;
    margin-left: 10px;
}

#talks>li{
    margin-bottom: 15px;
    list-style-type: none;
}
.talk-title{
    font-weight: bold;
}
.talk-link, .talk-link a, .talk-link a:visited{
    text-decoration: none;
    font-weight: bold;
    color: brown;
    margin-left: 10px;
}
.talk-venues li{
  list-style-type:disc;
   margin-bottom:0px;
}

.talk-host{
    font-weight: bold;
    color: #aaa;
    font-size: 0.9em;
}
.talk-host::before{
    padding-left: 13px;
    content: "(host: ";
    font-weight: normal;
}
.talk-host::after{
    content: ")";
    font-weight: normal;
}

footer{
    background: #3b3b3b;
    margin-top: 100px;
    padding: 30px 0;
    color: #eee;
}
.footer{
    display: flex;
    justify-content:space-between;
}
footer ul{
    list-style-type: none;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: 2%;
    margin-right: 2%;
}

@media screen and (max-width: 701px) {
    header{
        padding-left: 0%;
        padding-right: 0%;
    }
    
    .header h1{
        text-align: center;
    }
    .header nav{
        width: 100%;
         
    }
    .header nav ul{
       justify-content:space-around;    
    }

    #bio{
        flex-flow: column;
    }
    .talk-host{
        display: none;
    }
    
    ul#pubs, ul#talks {
        margin-left:0px;
        padding-left: 0px;
    }
    .pub-venue{
        display:block;
    }
    .pub-link a{
        margin-left: 0px;
        margin-right: 10px;
    }
    .talk-venues  {
        margin-left: 0px;
        padding-left: 17px;
    }
    .talk-link a{
        float: right;
    }
    #research-links{
        padding-left: 18px;
    }
    #teaching>section{
        padding-left: 0px;
    }
    #teaching li{
        list-style-type: none;
    }
    #teaching-past ul{
        padding-left: 0px;
    }
}

@media screen and (max-width: 560px) {
    .footer{
        flex-flow: column;
    }
    
}

@media screen and (max-width: 400px) {
    .header nav ul{
        display: block;
    }
    .header nav li{
        text-align: center;
        padding-top: 3px;
        padding-bottom: 3px;
    }
    .course-name{
        display: block;
    }
}