@font-face {
    font-family: 'SF-Compact-Italic'; 
    src: url('https://static.igem.wiki/teams/5006/wiki/fonts/sf-compact-italic.ttf') format('truetype'); 
}

@font-face {
    font-family: 'SF-Compact-Text-Bold'; 
    src: url('https://static.igem.wiki/teams/5006/wiki/fonts/sf-compact-text-bold.otf') format('opentype'); 
}

@font-face {
    font-family: 'SF-Compact-Text-Medium'; 
    src: url('https://static.igem.wiki/teams/5006/wiki/fonts/sf-compact-text-medium.otf') format('opentype'); 
}

@font-face {
    font-family: 'SF-Compact'; 
    src: url('https://static.igem.wiki/teams/5006/wiki/fonts/sf-compact.ttf') format('truetype'); 
}

@font-face {
    font-family: 'SF-Pro'; 
    src: url('https://static.igem.wiki/teams/5006/wiki/fonts/sf-pro.ttf') format('truetype'); 
}

@font-face {
    font-family: 'FONTSPRING DEMO - Foolish Talk'; 
    src: url('https://static.igem.wiki/teams/5006/wiki/fonts/fontspring-demo-foolishtalk.otf') format('opentype'); 
}

@font-face {
    font-family: 'FONTSPRING DEMO - Foolish Talk_italic'; 
    src: url('https://static.igem.wiki/teams/5006/wiki/fonts/fontspring-demo-foolishtalk-italic.otf') format('opentype'); 
}

body {
    margin: 0;
    border: 0;
    background-color: #111;
}

header {
    width: 70%;
    height: 120px;
    background-color: #111;
    display: flex;
    margin-left: 15%;
    margin-top: 20px;
}

.hsection {
    display: flex;
    align-items: center;
    justify-content: center;
}

#hsection1 {
    width: 5%;
}

#hsection2 {
    width: 15%;
}

#hsection2 p {
    color: rgb(255, 255, 255);
    font-size: 20px;
    font-family: 'SF-Compact', sans-serif;
    font-weight: 656px;
    margin-left: -40%;
    font-style: normal;
    font-weight: 656;
    line-height: normal;
}

#hsection3 {
    width: 80%;
    display: flex;
    justify-content: flex-end;
    padding-right: 10px;
    font-style: normal;
    font-weight: 556;
    line-height: normal;
}

.header-navigation {
    font-size: 20px;
    font-family: 'SF-Compact', sans-serif;
    height: 100%;
}


.header-navigation ul {
    margin-top: 30px;
    list-style-type: none;
    line-height: 60px; 
}

.header-navigation ul > li {
    position: relative;
    display: inline-block;
    padding: 0px 15px;
    line-height: 60px;
}

.header-navigation ul > li:hover > ul {
    display: block;
}


.header-navigation ul > li ul {
    display: none;
    position: absolute;
    top: 100%;
    background-color: #434343;
    min-width: 200px;
    z-index: 1;
}

.header-navigation ul > li:hover ul {
    display: block;
    animation: slideDown 0.3s ease forwards;
}



@keyframes slideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}


.header-navigation ul > li ul {
    animation: slideUp 0.3s ease forwards;
    animation-fill-mode: forwards;
    animation-play-state: paused;
}

.header-navigation ul > li:hover ul {
    animation-play-state: running;
}

@keyframes slideUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}



.header-navigation ul > .team:hover > ul,
.header-navigation ul > .safety:hover > ul,
.header-navigation ul > .projects:hover > ul{
    left: 0;
}

.header-navigation ul > .awards:hover > ul {
    left: -218%;
}

.header-navigation ul > li ul li {
    line-height: 30px;
    display: block;
    padding: 0px 16px;
}

.header-navigation ul > li ul li:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.header-navigation ul > li:not(:hover) {
    background-color: transparent; 
}

.header-navigation a:link, .header-navigation a:visited, .header-navigation a:active {
    color: #AAA;
    text-decoration: none;
    transition: color 300ms ease-out;
}

.header-navigation a:hover{
    color: #FFF;
}

.navicon {
    display: none;
    width: 60px;
    height: 60px;
    position: relative;
    cursor: pointer;
}

.bar {
    background-color: white;
    width: 90%;
    height: 15%;
    position: absolute;
    left: 5%;
    transition: transform 0.7s, background-color 0.7s;
}

#bar1 {
    top: 10px;
}

#bar2 {
    top: 25px;
}

#bar3 {
    top: 40px;
}

.navmenu {
    display: block;
    width: 200px;
    background-color: grey;
    position: absolute;
    left: -200px; 
    top: 75px;
    height: 200px;
    flex-direction: column;
    transition: left 0.5s ease-in-out;
}

.navitem-container {
    position: relative;
    height: 30px;
}


.navitem {
    color: white;
    padding: 10px;
    text-decoration: none;
}

.navmenu-child {
    display: none;
    position: absolute;
    left: 190px; 
    top: 0px;
    width: 150px;
    background-color: grey;
    flex-direction: column;
    padding: 5px;
}

@media (max-width: 1049px) { /* I have no idea what this is */
    .navicon {
        display: block;
    }

    .header-navigation {
        display: none;
    }
    .header-navigation ul > li ul {
        position: static;
        background-color: transparent;
        min-width: 0;
    }
    
    .header-navigation ul > li ul li {
        line-height: 50px;
        display: none;
    }
    
    .header-navigation ul > li:hover ul li {
        display: block;
    }
    footer {
        height: 1020px;
    }
    .fsection{
        width: 30%;
    }
}

@media (min-width: 1050px) {

    .navicon {
        display: none;
    }

    .header-navigation {
        display: block;
    }
}

.homecontainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 750px;
}

.homecontainer img {
    width: 456px;
    height: 445px;
    margin-top: 54px;
}

.container p {
    text-align: center;
}

#homeintro {
    color: #FFF;
    font-family: 'SF-Pro';
    font-size: 35px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

#intro {
    color: #FFF;
    font-family: 'SF-Pro';
    font-size: 130px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

#homesubintro {
    color: #FFF;
    font-family: 'SF-Compact';
    font-size: 20px;
    font-style: normal;
    font-weight: 350;
    line-height: normal;
}

#subintro {
    color: #EDEDED;
    font-family: 'SF-Pro';
    font-size: 25px;
    font-style: normal;
    font-weight: 590;
    line-height: normal;
}

#links {
    color: #5E64FF;
    font-family: 'SF-Compact';
    font-size: 15px;
    font-style: normal;
    font-weight: 350;
    line-height: normal;
    text-decoration-line: underline;
}

#icon {
    position: absolute;
    width: 167px;
    height: 224px;
    flex-shrink: 0;
}

.promotion {
    text-align: center;
    margin-bottom: 50px;
}

.promotion iframe {
    width: 64.5%;
    height: 496px;
    flex-shrink: 0;
    opacity: 0.5;
    background: #D9D9D9;
}

/* team */

.teammembercontainer {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Adjust the gap between the member divs as per your preference */
    width: 80%;
    margin-left: 10%;
    justify-content: center;
}

.member {
    position: relative;
    width: 265px;
    height: 347px;
    background: white;
    background-size: cover; /* Make sure the image covers the entire area */
    background-repeat: no-repeat; /* Prevent the image from repeating */
    background-image: linear-gradient(172deg, rgba(0, 0, 0, 0.00) 39.89%, #000 93.54%);
}

#teamimg {
    opacity: 0.1;
    position: absolute;
}

/*project*/
.project-preview {
    margin: auto;
    width: 80%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.project-container {
    flex-wrap: wrap;
    display: flex;
}

.project-box {
    margin: 12px;
    position: relative;
    background-size: cover;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background 300ms ease;
}

.project-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: var(--bg-position, center center);
    opacity: var(--bg-opacity, 0.5); /* Setting opacity for background image */
    z-index: -1; /* Making sure the background is behind the text */
    background-image: var(--data-bg);
    background-size: var(--bg-size, cover);
}

.project-box:hover::before {
    filter: blur(5px);
}

.project-header {
    transition: transform 300ms ease, font-size 300ms ease;
    color: #FFF;
    font-family: 'SF-Compact';
    font-size: 50px;
    font-style: normal;
    font-weight: 790;
    line-height: normal;
    z-index: 100;
}

.project-box:hover .project-header {
    transform: translateY(-50px);
    font-size: 55px;
}

.project-description {
    opacity: 0;
    transition: opacity 300ms ease;
    margin-top: -30px;
    color: #FFF;
    text-align: center;
    font-family: 'SF-Pro';
    font-size: 20px;
    font-style: normal;
    font-weight: 510;
    width: 80%;
    z-index: 100;
}

.project-box:hover .project-description {
    opacity: 1;
}

/* Custom styles for the experiment box */
#project-experiment .project-header {
    transition: transform 300ms ease, font-size 300ms ease;
}

#project-experiment .project-box:hover .project-header {
    transform: translateX(-200px);
}

#project-experiment .project-description {
    display: flex;
    transition: opacity 300ms ease; /* Changed from transform to opacity */
    opacity: 0;
    width: 50%;
    margin-left: 50%;
    margin-top: -100px;
}

#project-experiment:hover .project-description {
    opacity: 1;
}

.custom-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 80px;
    height: 37px;
    flex-shrink: 0;
    transition: background-color 300ms ease, opacity 300ms ease, color 300ms ease;
    border-radius: 175px;
    border: 1px solid #A5A5A5;
    color: #E8E8E8;
    font-family: 'SF-Compact';
    font-size: 16px;
    font-style: normal;
    font-weight: 556;
    line-height: normal;
    backdrop-filter: blur(2px);
    background: rgba(217, 217, 217, 0.17);
    /* Insert your custom CSS styles for the button here */
}

.custom-button:hover {
    border-radius: 175px;
    background: rgba(217, 217, 217, 0.70);
    color: #555;
}

/*Inspiration*/
.content-box {
    margin: auto;
    width: 80%;
    display: flex;
    flex-wrap: wrap;
}
.content-sub-box {
    width: 100%;
}
.content-box h1{
    color: #FFF;
    font-family: 'SF-Pro';
    font-size: 50px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.content-box h2 {
    color: #F5F5F5;
    font-family: 'SF-Compact';
    font-size: 32px;
    font-style: normal;
    font-weight: 656;
    line-height: 127.836%; /* 40.908px */
}

.content-box p{
    color: #A8A8A8;
    font-family: 'SF-Compact';
    font-size: 25px;
    font-style: normal;
    font-weight: 556;
    line-height: 167.836%; /* 41.959px */
}

.content-box p2{
    color: #D2D2D2;
    text-align: center;
    font-family: 'SF-Compact';
    font-size: 26px;
    font-style: normal;
    font-weight: 556;
    line-height: 127.836%; /* 33.237px */
}

.content-picture {
    background: #D9D9D9;
    border-radius: 25px;
    max-width: 100%;
    height: auto;
}

.content-sub-box h3 {
    color: #FFF;
    text-align: center;
    font-family: 'SF-Pro';
    font-size: 25px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.content-sub-box h4 {
    margin: auto;
    color: #FFF;
    text-align: center;
    font-family: 'SF-Pro';
    font-size: 20px;
    font-style: normal;
    font-weight: 510;
    line-height: normal;
}

.content-sub-box img {
    margin-left: 7%;
}
#shinytext {
    font-family: 'SF-Pro';
}

#inspiration-description {
    margin: auto;
    width: 75%;
    color: #D2D2D2;
    text-align: center;
    font-family: 'SF-Pro';
    font-size: 18px;
    font-style: normal;
    font-weight: 590;
    line-height: 127.836%; /* 23.01px */
}

#fattext {
    font-family: 'SF-Pro';
    font-size: 35px;
    font-style: normal;
    font-weight: 700;
    line-height: 127.836%; /* 44.743px */
    color: #A9A9A9;
}

#bolded-decription {
    width: 60%;
    color: #F5F5F5;
    margin: auto;
    text-align: center;
    font-family: 'SF-Pro';
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 127.836%; /* 40.908px */
}

.content-black-box {
    margin: auto;
    width: 1120px;
    flex-shrink: 0;
    border-radius: 29px;
    background: #000;
    text-align: left;
    padding-left: 7%;
    display: flex;
    flex-wrap: wrap;
    
}

.content-black-subbox{
    display: flex;
    flex-wrap: wrap;
}

#black-box-header{
    color: #F5F5F5;
    font-family: 'SF-Pro';
    font-size: 40px;
    font-style: normal;
    font-weight: 590;
    line-height: 127.836%; /* 51.134px */
}

.content-black-box h3{
    color: #FFF9C1;
    font-family: 'SF-Pro';
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
    line-height: 127.836%; /* 38.351px */
}

.content-black-box p{
    color: #FFF;
    font-family: 'SF-Pro';
    font-size: 15px;
    font-style: normal;
    font-weight: 590;
    line-height: 127.836%; /* 19.175px */
}

#content-box-headertwo{
    opacity: 0.9;
    color: #FFF;
    font-family: 'SF-Pro';
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

/*our_mission*/
#vistiontext {
    color: #D2D2D2;
    font-family: 'SF-Compact';
    font-size: 25px;
    font-style: normal;
    font-weight: 556;
    line-height: 167.836%; /* 41.959px */
}

#vision_img{
    width: 309px;
    height: 309px;
    flex-shrink: 0;
    margin-left: 60px;
}

.partnership-link{
    border-radius: 175px;
    border: 1px solid #A5A5A5;
    background: rgba(217, 217, 217, 0.17);
    backdrop-filter: blur(2px);
    width: 277px;
    height: 37px;
    flex-shrink: 0;
    color: #E8E8E8;
    font-family: 'SF-Compact';
    font-size: 16px;
    font-style: normal;
    font-weight: 556;
    line-height: normal;
    transition: background-color 300ms ease, opacity 300ms ease, color 300ms ease;
}

.partnership-link:hover {
    border: 1px solid #A5A5A5;
    background: #B2B1B1;
    backdrop-filter: blur(2px);
    color: #555;
}

/*attribution*/

.advisor_box {
    width: 80%;
    margin-left: 10%;
    flex-wrap: wrap;
    display: flex;
    text-align: center;
    margin-top: 70px;
}

.advisor_box h1 {
    color: #FFF;
    text-align: center;
    font-family: 'SF-Pro';
    font-size: 35px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    width: 100%;
    padding-right: 55%;
}

.advisor_sub_box {
    display: flex;
}

.asbleft {
    width: 20%; 
    text-align: right;
    display: flex;
    flex-direction: column;
}

.asbright {
    width: 80%; 
    text-align: left;
    display: flex;
    flex-direction: column;
}

.advisor_box p1{
    color: #FFF;
    margin-right: 5%;
    font-family: 'SF-Pro';
    font-size: 25px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-top: 50px;
}

.advisor_box p2{
    color: #FFF;
    font-family: 'SF-Pro';
    font-size: 25px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-left: 5%;
    margin-top: 50px;
    width: 85%;
}

.attrubtion-line {
    border-left: 2px solid #ffffff;  
    top: 0;
    bottom: 0;          
    width: 0;
    margin-left: 2%;  
}

.collaborator_icon {
    clip-path: circle(50% at 50% 50%);
    width: 210.5px;
    height: 210.5px;
    margin-left: 75%;
}

/*Partnership*/

.custom-header {
    width: 458px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50px;
    border: 1px solid #ABABAB;
    background: rgba(255, 255, 255, 0.08);
    margin: auto;
    color: #FFF;
    text-align: center;
    font-family: 'SF-Pro';
    font-size: 25px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-top: 150px;
}

.custom-header p {
    margin-top: 11px;
}

.image-container {
    display: flex;
    gap: 20px;
    width: 80%;
    margin-left: 10%;
    margin-top: 100px;
}

.image-box {
    display: block;
}

.image-box img {
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
    margin: 10px;
}

.content-box h3 {
    color: #FFF;
    text-align: center;
    font-family: 'SF-Pro';
    font-size: 45px;
    font-style: normal;
    font-weight: 590;
    line-height: normal;
    margin: auto;
}

.content-box p3 {
    color: #FFF;
    text-align: center;
    font-family: 'SF-Pro';
    font-size: 25px;
    font-style: normal;
    font-weight: 510;
    line-height: 150.836%; /* 37.709px */
    text-align: center;
}

/*communication*/

.content-box h4 {
    color: #FFF;
    text-align: left;
    font-family: 'SF-Pro';
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
    line-height: 150.836%; /* 45.251px */
}

/*enterpernuership*/

.content-box h5 {
    color: #FFF;
    text-align: center;
    font-family: 'SF-Pro';
    font-size: 25px;
    font-style: normal;
    font-weight: 590;
    line-height: normal;
    width: 100%;
}

.content-box p4 {
    color: #ADADAD;
    text-align: center;
    font-family: 'SF-Pro';
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

/*notebook*/

.content-box h6 {
    color: #FF5B5B;
    text-align: center;
    font-family: 'SF-Pro';
    font-size: 35px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 70px auto;
}

.content-box p5 {
    color: #FFF;
    text-align: center;
    font-family: 'SF-Pro';
    font-size: 25px;
    font-style: normal;
    font-weight: 510;
    line-height: normal;
    display: block;
    margin: 50px auto;
}

/*results*/

.content-box p1 {
    color: #FFF;
    font-family: 'SF-Pro';
    font-size: 25px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

/*footer*/

footer {
    text-align: center;
}

.footer-container {
    display: inline-block;
    vertical-align: top;
    width: 100%;
}

.footer-item {
    display: inline-block;
    margin: 10px 3.5%;
    vertical-align: top;
    text-align: left;
}

.footer-item h3 {
    color: #FFF;
    font-family: "Inter";
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.footer-item p {
    color: #C5C5C5;
    font-family: "Inter";
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    }

hr {
    background-color: #fff;
    width: 77.7%;
    margin: auto;
}


.footer-text {
    width: 100%;
    text-align: center;
    padding: 20px;
}

.footer-text h3 {
    font-family: "Times New Roman", Times, serif;
    color: #FFF;
    font-size: 18px;
    font-weight: bold;
}

.footer-text p {
    font-family: "Times New Roman", Times, serif;
    color: #FFF;
    font-size: 18px;
}

.footer-text n {
    font-family: "Times New Roman", Times, serif;
    color: #FFF;
    font-size: 10px;
}

.fsection a:link, .fsection a:visited, .fsection a:hover, .fsection a:active {
    color: #FFF;
    text-decoration: none;
}

.footer-item a {
    text-decoration: none; 
    color: inherit; 
}

.footer-item a:hover,
.footer-item a:visited,
.footer-item a:active {
    color: inherit; 
}