/* GLOBAL STYLES
-------------------------------------------------- */
/* Padding below the footer and lighter body text */

body {
    padding-top: 3rem;
    padding-bottom: 3rem;
    color: #5a5a5a;
    font-size: 1rem;
}
/*prevent horizontal scrolling*/
html, body {
  overflow-x: hidden;
}

/*General purpose classes*/
.centered {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Style specific for different sections
-------------------------------------------------- */

/*---- navbar ----*/
.navbar-nav .nav-link {
  white-space: normal;
}

/*---- introContent container ----*/
#introContentContainer {
    padding: 0!important;
    display: flex;
    flex-direction: column;
    /* height of the viewport minus ~height of navbar*/
    max-height: calc(100vh - 60px);
}
@media (min-aspect-ratio:3) {
    #introContentContainer {
        max-height: max( calc(100vh - 60px), 50vw);
    }
}

/*---- labname section ----*/
#section-labname {
    background-color: #FFF;
    margin: 0;
    padding: 1rem 1rem;
    text-align: center;
}
#section-labname p{
    margin: 0;
}
#section-labname .title {
    font-size: 2rem;
    font-weight: 300;
}
#section-labname .subtitle {
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.05;
}

@media (min-width:576px){
    #section-labname{
        padding: 2.5rem 2rem;
        text-align: left;
    }    
    #section-labname .title {
        font-size: 3.0rem;
        font-weight: 300;
    }
    #section-labname .subtitle {
        font-size: 1.25rem;
        font-weight: 300;
        line-height: 1.2;
    }
}

/*---- main content container ----*/
#mainContentContainer {
    margin-top: 3.5rem;
}
   
/*---- general statement ----*/
    #generalStatement {
        box-shadow: 5px 10px 10px #CCC;
    }
#generalStatement .lead {
        font-size: 1rem;
    }
/*---- open positions ----*/
    #openPositions {
        box-shadow: 5px 10px 10px #CCC;
    }
#openPositions .lead {
        font-size: 1.1rem;
    }

/*---- publications ----*/
#publications .name {
    display: block;
    font-size: 1.1rem;
}
#publications .authors {
    display: block;
    font-style: italic;
    font-size: 1rem;
}
#publications .journal {
    display: block;
    font-style: oblique;
    font-weight: 700;
    font-size: 1rem;
}
#publications .table-hover th:hover{
    background-color: #fff;
}
#publications .table-hover th{
    font-size: 1.2rem;
}
/*---- alumni ----*/
#alumni-table{
    overflow-x: auto;
    text-align: center;
    
    width: auto;
    margin: 0 auto;
}
#alumni-table td{
    vertical-align: middle;
}
@media (min-width:576px){
    #alumni-table{
        width: 70%;
        margin-left: 15%;
        margin-right: 15%;
    }
}

/*---- News ----*/
.new-news{
    color: #fff;
    background-color: #28a745;  
    height: 80%;
    vertical-align: middle;
    font-weight: 500;
    font-size: 65%;
    padding: 0.2rem 0.5rem;
    text-align: center;
    margin-left: 0.5rem;
}    

/*---- Tweeter related content ----*/
#twitter-follow-section{
    padding-bottom: 0.8rem;
    padding-top: 0;
    font-size: 1.2rem;
    display: block;
}
#twitter-follow-section div {
    display: inline-block;
    position: relative;
    vertical-align: middle;
}
#TweetsContainer{
    display: block;
    width: 100%;
    margin: auto;
    max-width: 500px;
}
#TweetsContainer iframe {
    max-width: 100%!important;
}

/*---- contact ----*/
#contact .card-header {
    font-size: 1.7rem;
    text-align: center;
}
#contact .card {
    max-width: 25rem;
    margin: 0 auto;
}
#contact .card-title{
    font-size: 1.4rem;
    text-align: center;
}
#contact .card-text{
    font-size: 1.25rem;
    text-align: center;
}

@media (min-width:576px){
    #contact .card {
        margin: 0;}
}

/*-------------------------------------------------- */

/* Style for common compononets
-------------------------------------------------- */

/*---- Jumbotron ----*/
.jumbotron {
  padding: 2rem 1rem;
  margin-bottom: 2rem;
  background-color: #e9ecef;
  border-radius: .3rem;
}
@media (min-width: 576px) {
  .jumbotron {
    padding: 4rem 2rem;
  }
}

/*---- Title section ----*/
.title-section {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.2;
    color: inherit;
    text-align: center;
}
@media (min-width:576px){
    .title-section{
        text-align: left;
    }
}
/*---- Group member ----*/
.groupMember-container {
   width: 100%;
    text-align: center;
}
.groupMember-container img{
    display: block;
    margin: 0 auto;
    margin-bottom:  0.5rem;
    margin-top: 1rem;
}
.groupMember-container .name {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0;
}
.groupMember-container .position {
    font-size: 1.25rem;
    margin: 0;
}
.groupMember-container .description {
    max-width: 100%;
    display: none;
    /*word-wrap: break-word;*/
}

.funding-logos{
    text-align: center;
    padding-top: 40px;
    margin: auto;
}
.funding-logos>img {
    margin: auto;
    width: auto;
    height: auto;
    max-width: 80%;
    max-height: 150px;
}

/*---- Research project ----*/
.researchProject-container{
    overflow: auto;
    
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    
    border: 1px solid;
    border-color: grey;
    border-radius: 5px;
    box-shadow: 5px 10px 10px #CCC;
    
}
/*ERC-logo*/
.researchProject-container #ERC-logo {
    display: block;
    width: 50%;
    min-width: 7rem;
    max-width: 10rem;
    
    margin-top: 15px;
    margin-bottom: 15px;
    margin-right: auto;
    margin-left: auto;
    
    border: 1px dashed;
    border-color: grey;
    border-radius: 5px;
}
.researchProject-container #ERC-logo img {
    width: 75%;    
    height: auto;
    margin: auto;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}
.researchProject-container #ERC-logo div {
    text-align: center;
    font-size: 0.65rem;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    padding-bottom: 0.5rem;
}
/*********/
.researchProject-container .researchProject-title {   
    font-size: 2.0rem;
    margin-bottom: 0.75rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.2;
    color: inherit;
    text-align: center;
}
.researchProject-container .researchProject-text{
    text-align: justify;
    /*word-wrap: break-word;*/
}
.researchProject-container .researchProject-further_reading{
    display: block;
    clear: both;
    
    padding: 10px;
    
    background-color: #f5faff;
    border: 1px solid #cce6ff;
    border-radius: 10px;
}
.researchProject-container .researchProject-further_reading::before{
    content: "Further reading";
    display: block;    
    font-size: 1.1rem;
    font-weight: bold;
}

.researchProject-further_reading .fr_elem{
    padding: 0.3rem 0.5rem;
    border-radius: 5px;
}
.researchProject-further_reading .active-fr_elem{
    background-color: rgba(255, 255, 0, 0.5);
    -webkit-transition: all 0.6s; /* Safari */
    transition: all 0.6s;
}
.researchProject-further_reading .fr_elem .name{
    font-size: 1.05rem;    
}
.researchProject-further_reading .fr_elem .name::after{
    content: " ";
}
.researchProject-further_reading .fr_elem .year::before{
    content: " - ";
}
.researchProject-further_reading .fr_elem .year::after{
    content: " - ";
}
.researchProject-further_reading .fr_elem .authors{    
    font-style: italic;
    font-size: 1rem;
}
.researchProject-further_reading .fr_elem .journal{    
    font-style: oblique;
    font-weight: 700;
    font-size: 1rem;
}
.researchProject-further_reading .fr_elem .year{ 
    font-size: 1.05rem;  
}

.researchProject-container .researchProject-text p{
    margin-bottom: 0.5rem;
}
.researchProject-container .researchProject-image {
    display: inline-block;
    max-width: 600px;
    width: 100%;
    height: auto;
    
    margin-top: 15px;
    margin-bottom: 15px;
    margin-right: auto;
    margin-left: auto;
    
    border: 1px solid rgba(150, 150, 150, 0.5);
    border-radius: 5px;    
}
.researchProject-container .image-only-on-big-screens{display:none;}
.researchProject-container .researchProject-image img,
.researchProject-container .researchProject-image video{
    display: inline;
    width: 100%;
    height: auto;
    padding: 0;
    padding-top: 10px;
}
.researchProject-container .researchProject-image .caption {
    padding: 10px;
    padding-top: 0;
    font-size: 0.9rem;
    font-weight: 400;
}
.researchProject-container .researchProject-image .caption span {
    font-weight: bold;
    font-style: italic;
}
.researchProject-container .researchProject-image .caption span::after{
    content: " ";
}
@media (min-width:576px){   
    .researchProject-container #ERC-logo {
        float: right;
        position: relative;        
        margin: 0 0.7rem; 
    
    }
    .researchProject-container{
         padding: 2rem 2rem;
         margin-bottom: 2.5rem;
        margin-top: 2rem;
    }
    .researchProject-container .researchProject-title {
        margin-bottom: 1.5rem;
        text-align: left;
    }
    .researchProject-container .researchProject-text{
        text-align: left;
    }
    .researchProject-container .researchProject-image{
        margin: 0.5rem auto;
    }
    .researchProject-container .researchProject-image .caption {
        padding-right: 20px;
        padding-left: 20px;
    }
    .researchProject-container .researchProject-image img,
    .researchProject-container .researchProject-image video {   
        padding: 10px;
    }
    .funding-logos{
        padding-top: 15px;
        max-width: 100%;
    }
}
@media (min-width:768px){ 
        .researchProject-container #ERC-logo {
        top: -3.5rem;
    }
}
@media (min-width:992px){ 

    /*Float the images only on large screens*/
    .researchProject-container .right-float, .researchProject-container .left-float{
        margin: 0.5rem 0.7rem; 
    }
    .researchProject-container .researchProject-image {
        width: 45%;
        width: calc(50% - 0.9rem);     
        /*max-width: 540px;*/
        background-color: #f5faff;        
    }
    .researchProject-container .small-image{
        width: 35%;
        width: calc(40% - 0.9rem);
        /*max-width: 430px!important;*/
    }
    .researchProject-container .big-image{
        width: 55%;
        width: calc(60% - 0.9rem);
        /*max-width: 650px!important;*/
    }
    .researchProject-container .right-float {
        float: right;
        clear:right;
        margin-right: 0.2rem;
    } 
    .researchProject-container .left-float {
        float: left;
        clear: left;
        margin-left: 0.2rem;
    } 
    .researchProject-text .cleared-text {
        clear: both;
    } 
    .researchProject-container .image-only-on-big-screens{display:block;}
    .researchProject-container .image-only-on-small-screens{display:none;}
}

#bluesky-follow-section:hover
{
    opacity:80%
}

/*---- divider ----*/
.divider {
  margin: 3rem 0; /* Space out the Bootstrap <hr> more */
}



 