body{
    background-color: #ffffff;
    color: #555;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.6em;
    margin: 0;
    text-align: justify;
}

/*Title bar style*/


img{pointer-events: none;}


#main-header{
    display:flex;
    background-image:url(../images/titlebkg.png);
    background-position:top;
    background-repeat: round ;
    background-size:cover;
    min-height: 50px;
    max-height: auto;
    margin-bottom: 0px;
    text-align: center;
    background-color: white; /*rgb(65, 168, 163);*/
    color:black;/*white;*/
}

#main-header text{
    display: flex;
}

@media(max-width:600px){
    #main{
        width: 100%;
        float: none;
    }

    #sidebar{
        width: 100%;
        float: none;
    }
}
#main-header h1{
    color: rgba(231, 237, 238, 0.9);
    font-size: 25px;
    line-height: 1.6em;
    padding-top: 0px;
    padding-bottom: 10px;
    padding-left: 10px;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
}

#main-header h2{
    color: rgba(246, 249, 249, 0.822);
    font-size: 2vw;
    line-height: 1.6em;
    padding-top: 0px;
}

.titlecontainer{
    width: 80%;
    margin: auto;
    overflow: hidden;
    display: flex;
    /*justify-content: space-between;*/
    justify-content: flex-start;
}

.leftlogo{
max-width: 50px;
max-height: 50px;
}

.rightlogo{
    max-width: 50px;
    max-height: 50px;
    }

.left-main{
    flex:6;
}
.left-main{
    flex:10%;
    padding-top:10px;
}
.left-main img{
    max-width: 60px;
}

.center-main{
    flex:80%;
    padding-top:10px;
}
.center-main img{
    max-width: 80px;
}

.uname{
    flex:3;
    text-align: center;
    padding-right: 20px;
    padding-top: 10px;
}

.right-main{
    flex:20%;
    padding-top:10px;
}

.right-main img{
    max-width: 60px;
}




.container2{
    width: 80%;
    margin: auto;
    overflow: hidden;
    display: flex;
}

.container2 div{
    border: 1px;
    padding: 10px;
}

#main{
    flex:2;
}

.griglia{
    display: grid;
    grid-template-columns: repeat(4,1fr);
}

.griglia > div{
    background-color: #eee;
    padding: 1em;
}

.griglia > div:nth-child(odd){
    background-color: #ddd;
}



/* Navbar Style */


#navbar{
    background-color: #333;
    color: #fff;
    padding:10px;
}

.container-nav{
    width: 80%;
    margin: auto;
    overflow: hidden;
    display:flex;
    justify-content: space-between;
    flex-wrap: wrap;
}


.nav-link-wrapper {
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.5s;
    /*display: inline;*/
}

.nav-link-wrapper a {
    color: #cac7c7;
    text-decoration: none;
    transition: color 0.5s;
}

.nav-link-wrapper:hover {
    border-bottom: 1px solid white;
    color:blue;
}

.nav-link-wrapper a:hover {
    color: white;
}


#navbar a{
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px;
}

.active-nav-link{
    border-bottom: 1px solid rgb(29, 194, 194);
}

.active-nav-link a{
    color:rgb(29, 194, 194) !important;
}








/* Showcase Style*/

#showcase{
    background-image:url(../images/bkg6.png);
    background-position: top;
    background-repeat: round ;
    background-size: cover;
    min-height: 300px;
    margin-bottom: 0px;
    text-align: center;
}

#showcase h1{
    color: rgba(231, 237, 238, 0.822);
    font-size: 40px;
    line-height: 1.6em;
    padding-top: 30px;
}

#showcase h2{
    color: rgba(246, 249, 249, 0.822);
    font-size: 30px;
    line-height: 1.6em;
    padding-top: 30px;
}

.container{
    width: 80%;
    margin: auto;
    overflow: hidden;
}





/*Footer*/

#main-footer{
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

#main-footer text{
    display: flex;
}

@media(max-width:600px){
    #main{
        width: 100%;
        float: none;
    }

    #sidebar{
        width: 100%;
        float: none;
    }
}


/*Sidebar*/

#sidebar{
    flex:1;
    background-color:rgb(213, 228, 211);
    color:rgb(0, 0, 0);
}


/*Sidebar Style*/

.news{
    list-style-type: disc;
}


/*Homepage image style*/

.bannerimg{
    display:flex;
    justify-content: center;
    margin:10px 30px;
    
    
    /*max-width: 100%;
    height: auto;*/
    /*min-height: 200px;*/
}

.bannerimg img{
    max-width: 100%;
    max-height: 100%;
    border: 1px solid #c1c4c2;
  border-radius: 10px;
  padding: 5px;    
}









/*Publication list styles (publications.html)*/
.publication-list {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border: 10px solid #333;
    padding:1.5em;
}

.publication-list li{
    margin: 0;
}

.ptitle{
    font-weight: bold;
    }

.pauthors{
    font-style: italic;
}







/*Research topics style (research.html)*/
.research-topic {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border: 10px solid #333;
    padding:1.5em;
}

.research-topic .imgbox{
    flex:1;
   /* margin:20px 0;*/
    min-width: 200px;
    /*min-height: 200px;*/
    max-width: 350px;
    height: auto;
   /* max-height: 350px;*/
    padding-top: 80px;
    padding-right: 40px;
    aspect-ratio: 1/1;
}

.research-topic .imgbox img{
    pointer-events: none;
    width: 100%;
    /*height: 100%;*/
    border: 1px solid #c1c4c2;
  border-radius: 4px;
  padding: 5px;  
}

.research-topic .text{
    flex: 2;
}

.research-topic p{
    flex: 3;
    text-align: justify;
}

.research-topic h1{
    flex: 1;
    text-align: center;
}









/* Team style */

.main-members{
    /*flex:3;*/
    display:flex;
    flex-wrap: wrap;
}

.team-member{
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    flex-basis: 50%;
    justify-content: space-between;
    border: 5px solid #333;
    padding:1.5em;
}

.team-member .imgbox{
    flex:1;
    margin:10px 10px;
    min-width: 200px;
    min-height: 200px;
}

.team-member .imgbox2{
    flex:1;
    margin:10px 10px;
    min-width: 200px;
   /* min-height: 230px;*/
    max-width: 250px;
   /* max-height: 230px;*/
    aspect-ratio: 1/1;
}

.team-member .imgbox img{
    width: 100%;
    height: 100%;
        
}

.team-member .imgbox2 img{
    width: 100%;
    /*height: 100%;*/
    border: 1px solid #c1c4c2;
  border-radius: 4px;
  padding: 3px;   
}

.team-member .text{
    flex: 2;
}

.former-member{
   flex: 2px;
}