body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    margin: 0;
    padding: 0;
    color: #333;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #4CAF50;
    padding: 10px;
    text-align: center;
    color: white;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 10;
}

main {
    margin-top: 80px; /* Space below the fixed header */
    padding: 20px;
    text-align: center;
}

h2 {
    color: #4CAF50;
    margin-top: 40px;
}

nav {
    text-align: center;
    margin-top: 80px; /* Space to ensure nav starts below the header */
    padding-top: 20px; /* Additional padding for icon alignment */
    width: 100%;
    background-color: #f2f2f2;
    padding: 10px;
    color: black;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav li {
    margin-bottom: 20px; /* Add spacing between menu items */
}

nav a {
    text-decoration: none;
    color: #4CAF50;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.icon {
    width: 100px;
    height: 100px;
    margin-bottom: 5px; /* Adds space between icon and text */
    margin-top: 10px; /* Adds space from top of nav */
}

.main-content {
    flex: 1;
    padding-top: 110px;
    padding-left: 20px;
}

section {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-description {
    text-align: center;
    margin-top: 20px;
}

.image-description img {
    display: block;
    margin: 0 auto;
    width: 200px;
}

.image-description p {
    max-width: 600px;
    margin: 20px auto;
    line-height: 1.6;
}

.sidebar {
    width: 300px;
    position: fixed;
    right: 0;
    top: 110px;
    background-color: #fff;
    border-left: 2px solid #ddd;
    padding: 20px;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    height: 100%;
    overflow-y: auto;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar li {
    margin: 10px 0;
}

.sidebar a {
    color: #4CAF50;
    text-decoration: none;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    background-color: #f2f2f2;
    border: 1px solid #ddd;
    padding: 10px;
    z-index: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* Responsive styling */
@media (max-width: 768px) {
    .sidebar, .main-content {
        position: static;
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }

    .sidebar {
        border-left: none;
        box-shadow: none;
        border-top: 2px solid #ddd;
    }
}
