html, body {
    margin: 0;
    padding: 0;
    border: 0;
    background-color: #eeefef;
    line-height: 150%;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', sans-serif;
}

h1, h2 {
    font-family: 'Aleo', sans-serif;
}

header, main {
    display: block; /* IE support */
    margin: 0 auto;
    max-width: 600px;
    min-height: 100%;
    text-align: justify;
    line-height: 1.6em;
    box-shadow: 0 0 5px 5px #d8d9d9; /*rgba(0, 0, 0, 10%);*/
    padding: 35px;
}

header {
    z-index: 5;
    position: relative;
    color: white;
    background-color: #375c85;
    background-image: linear-gradient(to top, rgba(0, 0, 0, 2%), rgba(255, 255, 255, 2%));
}

main {
    background-color: white;
    padding-top: 1px;
}

h1 {
    font-weight: bold;
    margin: 10px 0;
    padding: 0 0 10px 0;
    font-size: 2.5em;
}

h1 .pronounce {
    font-size: 0.3em;
    vertical-align: super;
    margin-left: 5px;
}

#photo {
    width: 175px;
    float: right;
    margin-left: 15px;
    border: 2px solid white;
    box-shadow: 0 0 2px black;
    rotate: 2deg;
    /*
    transition: rotate .1s ease-in-out;
    transition: box-shadow .1s ease-in-out;*/
}

/*
#photo:hover {
    rotate: 4deg;
    box-shadow: 5px 5px 2px black;
}*/

h2 {
    clear: both;
    font-weight: normal;
    color: #375c85;
    margin-top: 30px;
    font-size: 1.6em;
}

h2::after {
    display: block;
    height: 3px;
    background-color: #375c85;
    content: " ";
    border-radius: 5px;
}

li {
    margin: 0;
    padding: 0.6em 0;
}

a {
    text-decoration: none;
    color: #6699C9;
}

a:hover {
    color: #375c85;
}

dl dt {
    color: #aaa;
}

dl dd {
    padding-left: 24px;
    margin: 0 0 15px 0;
    position: relative;
}

dl dd .favicon {
    position: absolute;
    left: 0px;
    top: 5px;
    width: 16px;
    height: 16px;
}

.publications .authors::after,
.publications .journal::after {
    content: ",";
}

.publications .year::after {
    content: ".";
}

.publications .title::before {
    content: "\"";
}

.publications .title::after {
    content: "\",";
}

.publications .title {
    font-style: italic;
}

.publications .doi::before {
    content: " (";
}

.publications .doi::after {
    content: ")";
}

.publications {
    padding-left: 24px;
    list-style: none;
    line-height: 1.3em;
}

.publications > li::before {
    /*
    font-family: "Font Awesome 5 Free";
    content: "\f15c";
    display: inline-block;
    margin-left: -1.3em;
    width: 1.3em;
    */
    /*
    margin: 0 5px 0 -15px;
    width: 10px;
    display: inline-block;
    padding: 0;
    */
}

.links {
    padding: 0;
    margin: .5em 0;
    list-style: none;
}

.links li {
    padding: 0;
    margin: 0;
    display: inline;
    margin-right: .5em;
}

/*
.links a::before {
    content: "[";
}

.links a::after {
    content: "]";
}*/

.links a {
    font-size: .8em;
    display: inline-block;
    color: #6c757d;
    border: 1px solid #6c757d;
    border-radius: 4px;
    padding: .2em .4em;
    /*transition: background-color .2s ease-in-out;
    transition: color .2s ease-in-out;*/
}

.links a:hover {
    color: white;
    background-color: #6c757d;
}

#contact li {
    padding: 0.3em 0;
}

/* Improve on mobile devices */
@media only screen and (max-width: 670px) {
    header, main {
        padding: 24px;
    }

    #photo {
        width: 100px;
    }
}

