/* Base styles */
body {
    font-family: 'Josefin Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
}

#header {
    background-color: #fff;
    color: green;
    padding: 20px;
    text-align: center;
}

header h1 a {
    color: green;
    text-decoration: none;
}

h1, h2 {
    font-weight: 400;
    color: green;
}

nav {
    margin: 20px 0;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

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

.container {
    display: flex;
    flex-wrap: wrap; /* Allow content to wrap on smaller screens */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    flex: 2;
}

aside header {
	text-align:center;
}

#sidebar {
    flex: 1;
    background-color: #fff;
    padding: 0 20px;
}

#sidebar .box {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 30%;
    margin: 1%;
    display: inline-block;
}

#sidebar .box .caption {
    background-color: rgba(32, 32, 32, 0.8);
    position: absolute;
    color: rgb(255, 255, 255);
    z-index: 100;
    transition: all 300ms ease-out;
    left: 0;
    width: 100%;
    height: 104%;
}

#sidebar .box .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8em;
    text-align: center;
}

#sidebar .box:hover .overlay {
    opacity: 1;
}

.image-container img {
    width: 100%;
    max-width: 100%;
    height: auto;
}

footer {
	max-width: 1200px;
    margin: 10px auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    main, #sidebar {
        flex: 1; /* Both take equal space on small screens */
        max-width: 100%; /* Full width on smaller screens */
    }
}
