@font-face {
    font-family: "Fredoka";
    src: url("https://static.igem.wiki/teams/5272/fonts/fredoka-regular.ttf") format("truetype");
    font-style: normal;
     }

:root {
    --primary-color:#9B65B8;
    --secondary-color: #5C4440;
    --accent-color: #FCF0DA;
    --text-color: #333;
    --base-header-font: "Fredoka";
    --base-body-font: "Fredoka";
}

body {
    font-family: 'Fredoka', sans-serif; /* Changed to Fredoka */
    margin: 0;
    padding: 0;
    padding-top: 4rem;
    background-color: #FCF0DA;
    color: var(--text-color);
}

.container {
    width: 100%;
    max-width: 1200px; /* Set the maximum width */
    margin: 0 auto; /* Center the container */
    padding: 0 1rem; /* Add some padding for better spacing */
}


h1 {
    font-size: 2.5rem; /* Adjust the size as needed */
    font-weight: bold; /* Optional: Adjust the font weight */
    margin: 0.5rem 0; /* Optional: Adjust the margin */
}

p {
    font-size: 1.1rem; /* Adjust the size as needed */
    font-weight: normal; /* Optional: Adjust the font weight */
    margin: 0.5rem 0; /* Optional: Adjust the margin */
}



.hero {
    display: flex;
    background-color: var(--accent-color);
    padding: 2rem;
    align-items: center;
}

.hero-chocolate-image {
    
    margin-top: 30%;
    left: 2%;
    top: 90%;
    position: absolute;
    width: 28%;
    aspect-ratio: 1.2;
    background-size: contain;
    background-position: top;
    
}

.hero-chocolate-text {
    margin-top: 10%;
    left: 30%;
    position: relative;
}

.hero-jungle-image {
    
    margin-top: 35%;
    right: 2%;
    top: 130%;
    position: absolute;
    width: 28%;
    aspect-ratio: 1.2;
    background-size: contain;
    background-position: top;
    
}

.hero-jungle-text {
    margin-top: 19%;
    left: 5%;
    position: relative;
}

.hero-cocoa-image {
    
    margin-top: 65%;
    left: 2%;
    top: 130%;
    position: absolute;
    width: 28%;
    aspect-ratio: 1.2;
    background-size: contain;
    background-position: top;
    
}

.hero-cocoa-text {
    margin-top: 21.8%;
    left: 30%;
    position: relative;
}

.hero-stumps-image {
    
    margin-top: 92%;
    right: 2%;
    top: 130%;
    position: absolute;
    width: 35%;
    aspect-ratio: 1.2;
    background-size: contain;
    background-position: top;
    
}

.hero-stumps-text {
    margin-top: 15%;
    left: 5%;
    position: relative;
}

.hero-choccy-image {
    margin-top: 125%;
    left: 2%;
    top: 130%;
    position: absolute;
    width: 30%;
    aspect-ratio: 1.2;
    background-size: contain;
    background-position: top;
    
}

.hero-choccy-text {
    margin-top: 15.5%;
    left: 31.5%;
    position: relative;
}

.hero-beaker-image {
    margin-top: 155%;
    right: 2%;
    top: 130%;
    position: absolute;
    width: 30%;
    aspect-ratio: 1.2;
    background-size: contain;
    background-position: top;
    
}

.hero-beaker-text {
    margin-top: 20%;
    left: 5%;
    position: relative;
}



.hero-image {
    flex: 1;
    display: flex;
    justify-content: center; /* Center the image horizontally */
    align-items: center; /* Center the image vertically */
    overflow: hidden; /* Hide any overflow */
    text-align: center; /* Center the text within the container */
}

.hero-image-img {
    display: block;
    margin: 0 auto; /* Center the images horizontally */
    max-width: 100%; /* Ensure the images are responsive */
}

.hero-img {
    width: 100%; /* Adjust the width as needed */
    max-width: 100%; /* Set a maximum width */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Ensure the image covers the container */
    border-radius: 8px; /* Optional: Add rounded corners */
    padding: 1rem;
}

.hero-text {
    flex: 1;
    padding: 2rem;
}

.dark-background {
    background-color: #333; /* Dark background color */
    padding: 6rem 0; /* Add padding to the top and bottom */
    margin-top: 16rem;
}


.cards-container {
    display: flex;
    justify-content: center; /* Adjust spacing between cards */
    align-items: stretch; /* Align items to the top */
    padding-top: 1rem; /* Add padding to the top */
}

.card {
    display: flex;
    flex-direction: column;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}


.card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: center;
}

.card-body {
    padding: 1rem;
    flex: 1;
    text-align: center;
    color:#333;
}


.sponsors-card {
    display: center;
    margin: 2rem auto; /* Center the card and add margin */
    width: 100%; /* Adjust the width as needed */
    max-width: 1100px; /* Adjust the max-width as needed */
}

.sponsors-logos {
    display: flex;
    justify-content: center; /* Center the logos horizontally */
    align-items: center; /* Center the logos vertically */
    gap: 1rem; /* Add space between logos */
    margin: 2rem 0; /* Add margin to the top and bottom */
}
.sponsor-logo {
    max-width: 150px; /* Adjust the max-width as needed */
    height: auto; /* Maintain aspect ratio */
}

.footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1rem;
    margin-bottom: 2rem;
}
/* Responsive menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    height: 3px;
    width: 25px;
    background-color: #fff;
    margin: 4px 0;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-list.active {
        display: flex;
    }
}

/* Video section styles */
.video-section {
    width: 100%;
    display: flex;
    justify-content: center; /* Center the video horizontally */
    align-items: center; /* Center the video vertically */
    padding: 1rem 0; /* Add padding to show background color around the video */
    background-color: #9B65B8; /* Ensure the background color is applied */
}

.hero-video {
    width: 95%; /* Adjust the width as needed */
    max-width: 1200px; /* Set a maximum width */
    height: auto;
    border-radius: 8px; /* Optional: Add rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Add a shadow for better visibility */
    margin: 0 auto; /* Center the video within the container */
}

/* Dropdown section */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle::after {
    content: ' ▼';
    font-size: 0.8em;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Blur effect */
    width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f157;
}

.dropdown:hover .dropdown-content {
    display: block;
}

html {
    scroll-behavior: smooth;
}

