/* General styles */
body {
    font-family: 'Arial', sans-serif;
    color: #333;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header styles */
header {
    background-color: #4CAF50;
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    position: relative;
    margin: 0.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Dropdown styles */
nav ul li .dropdown-content {
    display: none;
    position: absolute;
    background-color: #4CAF50;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
    top: 100%; /* Positions the submenu below the parent */
    left: 0;   /* Aligns the submenu with the left side of the parent */
    flex-direction: column;
    padding: 0;
}

nav ul li .dropdown-content li {
    width: 100%;
}

nav ul li .dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

nav ul li .dropdown-content a:hover {
    background-color: #3e8e41;
}

nav ul li:hover .dropdown-content {
    display: flex;
}

/* Main content styles */
main {
    flex: 1;
    padding: 1rem;
    max-width: 800px;
    margin: auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    width: 95%;
}

main h2 {
    color: #4CAF50;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 0.5rem;
}

main p {
    line-height: 1.6;
}

/* Unordered list styles */
ul {
    padding-left: 20px;
}

ul li {
    margin-bottom: 0.5rem;
}

/* Image gallery styles */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.image-gallery a {
    width: calc(33.333% - 1rem);
}

.image-gallery img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.image-gallery img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Footer styles */
footer {
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: auto;
}

/* Media queries for responsiveness */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.5rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    main {
        padding: 1rem;
        width: 100%;
    }

    .image-gallery a {
        width: calc(50% - 0.5rem);
    }
}

@media (max-width: 400px) {
    .image-gallery a {
        width: 100%;
    }

    .image-gallery img {
        width: 100%;
    }
}
