

*,
*::before,
*::after {
    box-sizing: border-box;
}

.reducedFont{
    font-size: 13px;
}




/* Container holding the image and the text */
.image_container {
    position: relative;
    text-align: center;
    color: #fffefd;
    cursor: pointer;
}

.image_container:hover .card-title {/*name transformation!*/
    transition-delay: 600ms;
    transform: translate(-50%, -120px);
}


.image_container:hover .gradience{/*gradiance transformation!*/
    transition-delay: 600ms;
    height: 180px;
    opacity: 1;
}

.image_container:hover .card-contents{
    transition-delay: 900ms;
    opacity: 1;
}

.image_container:hover .card-title::after{
   transform: scaleX(1); 
}



.gradience {
    position: absolute;
    bottom: 11px;
    left:4px;
    right:4px;
    height: 30px;
    z-index: 10;
    border-radius: 0 0 5px 5px;
    transition: height 480ms ease, opacity 1s ease;
    background: linear-gradient(
        hsl(0 0% 0% /0),
        hsl(20 0% 0% /0.2) 20%, /*so 0.2 at 10% of the way*/
        hsl(0 0% 0% /0.6)
    );
    opacity: 0.1;
}

.card-title  {
    position: absolute;
    bottom: 0%;
    left: 50%;
    width:max-content;
    transform: translate(-50%, -20px);
    transition: transform 480ms ease;
    z-index: 15;
    text-shadow: 1px 1px 5px #0c0c0cd8;
    --card-titleVal: 40px;
}
.card-title h2{
    margin-bottom: 0;
}


.card-title::after{
    content: "";
    position: absolute;
    height:4px;
    width: calc(100% + var(--card-titleVal));
    left: calc(var(--card-titleVal) * -1);
    bottom:0;
    background-color: var(--footer-colour);
    transform-origin: left;
    transition: transform 600ms ease;
    transform: scaleX(0); 
}

/*Students*/
.card-title-Abby {
    --card-titleVal:79px;
}

.card-title-Alycia{
    --card-titleVal:50px;
}

.card-title-Amy{
    --card-titleVal:70px;
}

.card-title-Annie{
    --card-titleVal:69px;
}

.card-title-Anthony{
    --card-titleVal:56px;
}

.card-title-Ashwin{
    --card-titleVal:53px;
}

.card-title-Audrey{
    --card-titleVal:45px;
}

.card-title-Austin{
    --card-titleVal:65px;
}

.card-title-Brittany{
    --card-titleVal:52px;
}

.card-title-Cody{
    --card-titleVal:60px;
}

.card-title-Christos{
    --card-titleVal:38px;
}

.card-title-Dev{
    --card-titleVal:78px;
}

.card-title-Ian {
    --card-titleVal:66px;
}

.card-title-JoyCao{
    --card-titleVal: 88px;
}

.card-title-Joy {
    --card-titleVal:92px;
}

.card-title-Katya {
    --card-titleVal: 47px;
}

.card-title-Kian{
    --card-titleVal:73px;
}

.card-title-Masha{
    --card-titleVal:40px;
}

.card-title-Nathan{
    --card-titleVal:46px;
}

.card-title-Neethu{
    --card-titleVal:66px;
}

.card-title-Nima{
    --card-titleVal:28px;
}

.card-title-Raymond{
    --card-titleVal:45px;
}

.card-title-Sajjad{
    --card-titleVal:65px;
}

.card-title-Venus{
    --card-titleVal: 65px;
}

.card-title-Youssef{
    --card-titleVal: 32px;
}
/*Students*/



/*Advisors*/

.card-title-Fabian{
    --card-titleVal: 50px;
}

.card-title-Maryssa{
    --card-titleVal: 40px;
}

.card-title-Neel{
    --card-titleVal: 72px;
}

.card-title-Nina{
    --card-titleVal: 51px;
}

.card-title-Rachael{
    --card-titleVal: 32px;
}

.card-title-Soren{
    --card-titleVal: 59px;
}
/*Advisors*/

/*Principal investigators*/
.card-title-Stuart{
    --card-titleVal: 45px;
}

.card-title-Lazic{
    --card-titleVal: 45px;
}
/*Principal investigators*/

.card-contents{
    position: absolute;
    bottom: 0%;
    left: 50%;
    width:max-content;
    transform: translate(-50%, -20px);
    transition: opacity 200ms ease;
    z-index: 15;
    opacity:0;
    font-size: smaller;
    

}


.images{
    border-style: solid;
    border-radius: 10px;
    border-width:4px;
    border-color:var(--footer-colour);
    box-shadow: var(--box_shadow_dot);
}



.image_container{
    margin-bottom: 40px;
    transform: translateY(4px);
    transition: opacity 210ms ease-out, transform 470ms ease-out;
    opacity:0;
}



.card-popup {
    width: 1150px;
    height: 80vh;
    max-width: 90%;
    max-height: 90%;
    position: fixed;
    display: flex;
    background-color: #ffe6a7;
    z-index: 10000;
    border-width: 4px;
    border-color: #ffe6a7;
    border-style: solid;
    text-align: center;
    color: var(--text-colour);
    visibility: hidden;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.1);
    min-height: 400px;
    border-radius: 15px;

}


.show-popup {
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    transition: 180ms ease;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 15px;
}

.x{
    top: 0;
    right: 0;
    position: absolute;
    cursor: pointer;
    height: 45px;
    width: 45px;
    margin-top: 10px;
    margin-right: 10px;
    border-radius: 50px;
    filter: invert(0.5);
    z-index: 10;
}

.x:hover {
    background-color: rgba(138, 138, 138, 0.15);
}

.image-side{
    background: conic-gradient(#ffe6a7 0deg 20deg, var(--primary-colour)  20deg 200deg, #ffe6a7 200deg 360deg);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    height: 100%;
    width: 400px;
    box-sizing: border-box;
}

.popup-image-container{
    width: calc(13vw + 6rem);
    height: calc(13vw + 6rem);
    overflow: hidden;
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: 5%;
    position: relative;
    z-index: 10;
    border-width:8px;
    border-color:var(--primary-colour);
    border-style:solid; 
}


.popup-image{
    width: 100%;
    height: auto;
}

.popup-bio{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    color: var(--text-colour); 
    padding-left: 5%;
    padding-right: 5%;
    background-color: var(--primary-colour);
    transform: translateX(-1px);
    box-sizing: border-box;
}

.popup-name{
    font-size: 3em;
    font-weight: bold;
    color: var(--dark_blue_for_text);
    margin-top: 40px;
}

.popup-title{
    font-size: 1.5em;
    color: var(--dark_blue_for_text);
    margin-top: 1%;
    padding-inline: 10px;
    font-weight: bold;
}

.popup-body{
    font-size: 1.1em;
    margin-top: 10px;
    color: var(--text-colour);
    background-color: var(--team_popup_body_color);
    padding-inline: 10px;
    word-spacing: 1px;
    border-radius: 10px;
    padding-top:22px;
    padding-bottom: 22px;
    width: 100%;
    margin-bottom: 10%;
    text-align: left;
}

.popup-horizontal-line {
    width: 90%;
    height: 1px;
    min-height: 1px;
    background-color: var(--dark_blue_for_text, #000);
  }




#overlay {
    position: fixed;
    display: none;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.14); 
    z-index: 10; 
    cursor: pointer;
    -webkit-backdrop-filter: blur(1.25px);
    backdrop-filter: blur(1.25px);
  }

.card-layout{
    display: grid;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    gap: 3rem;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    height: auto;
    padding: 1rem;
    margin-top: 100px;
    justify-items: center;
    background-size: 80px 80px;
    background-position: 0 0,40px 40px;
}

.grid-section-header{
    margin-left: max(17%, 90px);
    color: var(--lineSVG-colour);
    font-size: max(2.3vw, 30px);
    margin-top: 100px;
    transform: translateY(50px);
    line-height:1.3;
}

.line-container{
    position: relative;
    width: 80%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0 auto;
}

.line-container svg{
    display: inline-block;
    min-width: 800px;
    height: 50px;
    stroke: var(--lineSVG-colour);
}

.team-slides {
    display:none;
    /* border:3px solid #ebc995; */
    border-radius: 3px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fade {
    animation-name: fade;
    animation-duration: 2s;
  }

  @keyframes fade {
    from {opacity: 0.9}
    to {opacity: 1}
  }

.left-arrow{
    cursor:pointer;
    color: #fffefd;
    margin-right: 15px;
    font-size: 30px;
    width: 40px;
    text-align: center;
    border-radius: 2px;
}

.right-arrow{
    cursor:pointer;
    color: #fffefd;
    margin-left: 15px;
    font-size: 30px;
    width: 40px;
    text-align: center;
    border-radius: 2px;
}

.right-arrow:hover, .left-arrow:hover{
    background-color: #ffffff0c;
}

.members-overlay {
    background: linear-gradient(to top, #083243 ,#083243e2 ,#083243c5 ,#0832439c ,#0832437e ,#0832435b ,#08324333 ,#08324313, #08324300, #08324300, #08324300);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    opacity: 0.9;
}

.header-text{
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 11;
    margin-left: 5%;
    margin-bottom: 80px;
}
  
  .header-description{
    color:#fffefd;
    font-size:25px;
  }
   
.header-title{
    color:var(--vanilla);
    font-size:70px;
    font-weight:bold;
    margin-top: 0%;
}

.team-slides-container{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: #9a937d;
    height: 101vh;
}

.indicator-ui{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 2%;
    -webkit-backdrop-filter: blur(1.25px);
    backdrop-filter: blur(8px);
    border-radius: 3px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none; 
    -ms-user-select: none;   
    z-index: 11;
}

.indicator{
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #fffefd;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
    margin-right: 5px;
    margin-left: 5px;
}

.active-indicator, .indicator:hover{
    background-color: rgb(143, 143, 143);
}


@media (max-width: 800px) {
    .card-popup{
        max-width: 90%;
        width: 90vw;
    }

    .card-popup{
        flex-direction: column;
    }

    .popup-bio{
        transform: translateX(0px);
        height: fit-content;
    }

    .image-side{
        background: conic-gradient(#ffe6a7 0deg 100deg, var(--primary-colour)  100deg 280deg, #ffe6a7 280deg 360deg);
        width: 100%;
    }

    .popup-image-container{
        width: 200px;
        height: 200px;
        margin-left: 0px;
    }

    .popup-name{
        margin-top: 10px;
    }

      
}


@media not (hover){ /*so if our device does NOT have hover support... eg no mouse*/

    .card-title{
        transform: translate(-50%, -120px);
    }
    
    .gradience{
        height: 180px;
        opacity: 1;
    }
    
    .card-contents{
        opacity: 1;
    }
    
    .card-title::after{
       transform: scaleX(1); 
       
    
    }
}



@media (max-width: 870px) {/*So when the width of screen is 870px or less: change the following classes. USEFUL FOR MOBILE-VIEW*/
    .card-layout{
        padding: 0rem;
    }

    .header-title{
        font-size:6vw;
    }

    .header-description{
        font-size: 2.8vw;
        padding-right: 16vw;
    }

    .indicator{
        height: 10px;
        width: 10px;

    }

    .left-arrow{
        width: 27px;
    }

    .right-arrow{
        width: 27px;
    }

    .popup-body{
        font-size: 15px;
    }
}
