body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f9f0;
    color: #333;
    display: flex;
    flex-direction: column;
}

#main-content p {
    text-align: justify;
}
.expansion{
    height:90px;
    width:100%;
}
.hero-section {
    background: url('https://static.igem.wiki/teams/5233/hp-integrated/.png') no-repeat center center/cover;
    color: white;
    padding: 50px 20px;
    text-align: center;
    height:200px;
}

.hero-section h1 {
    color: white;
    font-size: 2.5em;
    margin: 0;
}

.hero-section p {
    font-size: 1.2em;
    margin-top: 10px;
}


.sidebar {
    width: 60px;
    height: 200px;
    background-color: #2f855a;
    position: fixed;
    top: 30%;
    left: 0;
    transform: translateY(-50%);
    transition: width 0.3s;
    z-index: 1000;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.sidebar:hover {
    width: 200px;
    height:max-content;

}

.sidebar .toggle-btn {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.3s;
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    width: 100%;
    text-align: left;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar:hover .sidebar-links {
    opacity: 1;
}

.sidebar-links li {
    margin: 10px 0;
}

.sidebar-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px;
    display: block;
    transition: background 0.3s;
}

.sidebar-links a:hover {
    background-color: #38a169;
}

#main-content {
    margin-left: 60px;
    padding: 20px;
    flex: 1;
}

.content-section {
    padding: 20px;
    max-width: 800px;
    margin: 20px auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.content-section h2 {
    color: #2f855a;
    margin-bottom: 15px;
}

.images {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
}

.images figure {
    flex: 1;
    text-align: center;
}

.images img {
    width: 400px;
    /* Set the desired width */
    height: auto;
    /* Set the desired height */
    object-fit: auto;
    /* Ensures the image covers the box without distortion */
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.images figcaption {
    margin-top: 8px;
    font-size: 0.9em;
    color: #555;
}

.footer {
    text-align: center;
    padding: 20px;
    background-color: #2f855a;
    color: white;
}

.footer p {
    margin: 0;
}

@media (max-width: 600px) {
    .sidebar {
        width: 30px;
    }

    .hero-section h1 {
        font-size: 1.8em;
    }

    .hero-section p {
        font-size: 1em;
    }

    .images {
        flex-direction: column;
    }
}