/* Apply light tan background color to the body */
body {
    background-color: #e0daca; /* Light tan */
    margin: 0; /* Remove default body margin */
    font-family: Courier Thin, monospace; /* Set default font family */
}

/* Style the header */
header {
    background-color: #e0daca; /* Dark background color */
    color: #333333; /* Text color */
    padding: 20px; /* Padding around the header */
    text-align: center; /* Center align text */
}

/* Style the navigation links */
nav {
    background-color: #e0daca; /* Dark background color */
    text-align: center; /* Center align links */
    padding: 10px 0; /* Padding above and below links */
}

nav a {
    color: #333333; /* Text color */
    text-decoration: none; /* Remove underline */
    margin: 0 20px; /* Add spacing between links */
    font-size: 18px; /* Set font size */
}

/* Media query for screens smaller than 600px */
@media only screen and (max-width: 600px) {
    /* Center align the navigation links */
    nav {
        padding: 10px 0; /* Adjust padding */
    }

    nav a {
        margin: 10px; /* Adjust link margin */
    }

    /* Adjust grid layout for mobile */
    .grid {
        grid-template-columns: repeat(1, 1fr); /* Display one column */
    }

    /* Adjust blog post styles for mobile */
    .blog-post {
        max-height: none; /* Allow blog post containers to expand */
    }
}

/* Grid layout for blog posts */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-bottom: 10px;
}

/* Style each blog post */
.blog-post {
    position: relative;
}

.blog-post img {
    width: 100%;
    height: 100%; /* Adjust height automatically */
    object-fit: cover;
    cursor: pointer;
}

/* Style date */
.blog-post .date {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent white background */
}

/* Overlay for displaying blog post content */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* Cover the entire viewport width */
    height: 100%; /* Cover the entire viewport height */
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto; /* Enable vertical scrolling for overlay */
}

/* Container for blog post content */
.content {
    display: none;
    position: absolute;
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Move container back by half its width and height */
    z-index: 1001;
    width: 80%; /* Adjust width as needed */
    max-width: 90vw; /* Limit width to viewport width */
    max-height: 90%; /* Limit height to 90% of viewport height */
    padding: 20px;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    overflow-y: auto; /* Enable vertical scrolling for content */
}

/* Close button styles */
#closeButton {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #333333;
}

/* Add padding to the bottom of the main element */
main {
    padding-bottom: 50px; /* Adjust as needed */
}
