*{
    margin : 0;
    padding : 0;
    box-sizing : border-box;
    border: none;
    font-size: 1em;
}

body{
    font-family: Arial, sans-serif;
    color: #000;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-content: stretch;
    margin-top: 10%;
    margin-bottom: 3vh;
    padding: 0%;
    min-height: 80vh;
}

main, footer {
    color: #000;
    box-sizing: border-box;
    margin-right: 17.5%;
    margin-left: 17.5%;
    color: inherit;
}

footer {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    font-size:smaller;
    padding: .25em;
    position: relative;
    bottom: 0;
}

main {
    margin-bottom: 10%;
}


/*General header, paragraphs ... */

header {
    min-width: 12em;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    font-size: 1em;
}

h1, h2, p, address{
    padding: .25em;
}

header > * {
    background-color: rgb(174, 190, 144);
    color:black;
    margin-top: .1em;
    margin-bottom: .1em;
    padding-left: .25em;
    padding-right: .25em;
}

header > h1{
    display:inline-block;
    box-sizing: border-box;
    text-align: left;
    width:40%;
    min-width:fit-content;
}

address{
    font-style: normal;
}

a {
    color: inherit;
    text-decoration: none;
}


main {
    display: flex;
    flex-direction: column;
}

/*Media Queries*/


@media(prefers-color-scheme: dark) {
    body {
        background-color: #333;
        color: white;
    }

    a:hover{
        color: lightblue;
    }
}

@media(prefers-color-scheme: light) {
    body {
        background-color: #f2f2f2;
        color: #000;
    }

    a:hover{
        color: blue;
    }
}

/*Page specifics*/

/*home Page specifics*/

#home-main > header{
    flex-direction: column;
    justify-content: stretch;
    justify-items: stretch;
    align-items: left;
}

#the-only-pic{
    margin-top: .1em;
    width:100%;
    height:15.5em;
    box-sizing: border-box;
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
}

#the-only-pic img{
    width: 100%;
    object-fit: contain;
    object-position:top;
}


@media screen and (min-width: 801px){
    #home-main{
        display: flex;
        flex-flow: row nowrap;
        justify-content: stretch;
        align-content: stretch;
    }

    #home-main header{
        width:40%;
    }

    #the-only-pic{
        width:60%;
        height: 11.29em;
        padding-left: .1em;
    }

    #the-only-pic img{
        object-fit:cover;
        object-position: 0 2%;
        height: 17.5em;
    }
}

/* Paper-list specifics*/

.paper-list{
    list-style-position: outside;
    padding-left: 2em;
}

.paper-list li{
    margin: .5em;
}

.paper-list li .paper-title{
    display : block;
    font-size: 1em;
}

.paper-list li .journal{
    display : inline;
    font-size: 0.7em;
}

.paper-list li .coauthors{
    display : inline;
    font-size: 0.8em;
}

#theses-list li::marker {
    content: "\f518   ";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

#theses-list li{
    list-style: none;
}

/*Icon Bars and Navigation bars*/

.nav-bar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    height: fit-content;
    justify-content: flex start;
    align-content: center;
    padding: 0;
}

.nav-bar-button{
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    background-color: #f1f1f1;
    color: #000;
    padding: .25em;
    font-size: 1em;
    text-align: center;
    text-decoration: none;
    border: none;
    box-shadow: inset 0px 0px 2px 1px rgba(0,0,0,0.5);
    margin: 0;
    cursor: pointer;
}

.icon-button{
    width: 1.6em;
    font-size: 1.1em;
}

.nav-bar-button:hover {
    background-color: #ddd;
    box-shadow: inset 0px 0px 3px 2px rgba(0,0,0,0.5);
    color: inherit;
}

/*Specific to the CV button*/

#cv-lang-dropdown {
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    border: none;
    padding: 0;
    margin: 0;
}

#cv-lang-dropdown-content {
    display: none;
    position: absolute;
    box-sizing: border-box;
    background-color: #f1f1f1;
    margin: 0;
    box-shadow: 0px 16px 16px rgba(0,0,0,0.5);
    z-index: 1;
}

#cv-lang-dropdown-content a{
    background-color: #f1f1f1;
    text-decoration: none;
    font-size: 1em;
    padding: .25em;
    min-width: 3.5em;
    display:block;
}

#cv-lang-dropdown-content a:hover {
    background-color: #ddd;
    color:inherit;
}

#cv-lang-dropdown:hover #cv-lang-dropdown-content {
    display: block;
}

#cv-lang-dropdown:focus-within #cv-lang-dropdown-content{
    display:block;
}

#cv-lang-dropdown:hover #cv-lang-dropdown-btn{
    background-color: #f3f3f3;
    box-shadow: inset 0px 0px 3px 2px rgba(0,0,0,0.5);
}
