html, body {
    height: 100%; /* Ensure full height for the layout */
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; /* Stack footer at the bottom */
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f4f4f4; /* Light grey background */
}

header {
    background-color: #00274d; /* Dark Blue */
    color: white;
    padding: 15px;
    text-align: center;
}

.container {
    display: flex;
    flex: 1; /* Allow container to take up remaining space */
}

.sidebar {
    width: 250px;
    background-color: #1e1e1e; /* Black */
    padding: 20px;
    position: fixed;
    height: 100%;
    top: 0;
    left: 0;
    overflow-y: auto;
    z-index: 1000; /* Ensure sidebar is above main content */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); /* Optional: adds shadow for better separation */
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    margin: 15px 0;
}

.sidebar ul li a {
    color: #b0b0b0; /* Grey */
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar ul li a:hover {
    background-color: #004080; /* Blue */
    color: white;
}

main {
    margin-left: 400px; /* Offset for fixed sidebar */
    padding: 20px;
    flex: 1;
    overflow-y: auto; /* Allow scrolling */
    position: relative; /* Ensure stacking context */
    z-index: 1; /* Ensure main content is below sidebar */
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #00274d; /* Dark Blue */
    color: white;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1); /* Optional: shadow for better separation */
}

.gallery {
    display: flex;
    flex-direction: column; /* Stack images vertically */
    gap: 10px; /* Space between images */
}

.gallery img {
    max-width: 90%; /* Adjust to make images smaller */
    height: auto; /* Maintain aspect ratio */
    margin: 0 auto; /* Center images horizontally */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: auto; /* Reset top position for mobile */
    }
    main {
        margin-left: 0; /* Reset margin for mobile */
    }
}