* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
}

header {
    background-color: #333;
    color: white;
    padding: 10px 0;
    text-align: center;
}

header h1 {
    margin: 0;
}

nav {
    margin-top: 10px;
}

.menu-icon {
    display: none;
    cursor: pointer;
}

nav ul {
    list-style-type: none;
}

nav li {
    display: inline-block;
    margin-right: 20px;
}

nav a {
    text-decoration: none;
    color: white;
}

main {
    margin: 40px auto; /* Increased margin for better spacing */
    max-width: 1200px;
    padding: 40px 20px; /* More vertical padding for a balanced look */
    background-color: #fafafa; /* Softer background color */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Gentle shadow for depth */
    border-radius: 8px; /* Softened edges */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start; 
    min-height: calc(100vh - 32px - 32px);
}

/* Responsive styles */
@media screen and (max-width: 600px) {
    .menu-icon {
        display: block;
    }

    nav ul {
        display: none;
        width: 100%;
    }

    nav li {
        display: block;
        text-align: center;
        margin: 10px 0;
    }
}

.input-group {
    margin-bottom: 16px;
}

.md-input {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s;
}

.md-input:focus {
    border-color: #6200ea;
    outline: none;
}

.md-button {
    padding: 8px 16px;
    background-color: #6200ea;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.md-button:hover {
    background-color: #4b00b8;
}
.image-container {
    position: relative;
    width: 100%;
    max-width: 500px; /* You can adjust this value based on your needs */
    margin: 16px 0;
    overflow: hidden;
    border-radius: 8px; /* Increased border radius for a softer appearance */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Enhanced shadow for more depth */
    transition: transform 0.3s, box-shadow 0.3s; /* Transition for hover effect */
}
.image-container:hover {
    transform: scale(1.03); /* Slight scaling effect on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover for more depth */
}
.md-image {
    display: block;
    width: 100%;
    height: auto;
    transition: filter 0.3s; /* Transition for hover effect */
}
.image-container:hover .md-image {
    filter: brightness(0.9); /* Slightly darken the image on hover for better caption visibility */
}
.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 15px; /* Increased padding for better aesthetics */
    background-color: rgba(0, 0, 0, 0.7); /* Darker semi-transparent background */
    color: #fff;
    font-size: 15px; /* Slightly larger font */
    text-align: center;
    border-radius: 0 0 8px 8px; /* Rounded corners at the bottom to match the container */
}
@media screen and (max-width: 520px) {
    .image-container {
        max-width: 90%; /* Slightly smaller max-width to maintain some margins on small devices */
    }
}
.image-modal {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent black */
    z-index: 1000; /* Large z-index to ensure it's above other elements */
    cursor: pointer; /* Indicates that it can be clicked to close */
}

.modal-image {
    display: block;
    max-width: 90%; /* A bit of margin around the image */
    max-height: 90%;
    margin: auto;
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
}
.scrollable-region {
    width: 100%;
    max-width: 1200px;
    height: 60vh; /* Adjust height as necessary */
    overflow-y: auto; /* Makes the region scrollable */
    padding: 0 20px; /* Added padding to give some space between the container edge and images */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center; /* Keeps image containers centered */
    gap: 20px; /* Adds space between image containers */
}

