body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, rgb(38,38,38), rgb(252, 88, 87)); /* Background color gradient from black to red */
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure body takes up at least the viewport height */
    position: relative; /* Set body as the positioning context */
}

.gallery {
    display: flow-root;
    align-items: center; /* Center-align items */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjust column width */
    gap: 10px; /* Adjust gap between images */
    padding: 20px;
}

.gallery img {
    max-width: 50%;
    height: 50vh;
    border-radius: 15px;
    border: 5px; /* Add a black border with 10px width */
    opacity: 0; /* Initially hide the images */
    animation: fadeIn 1s forwards; /* Apply fade-in animation */
    margin: 0 auto; /* Center-align image */
    padding: 10px;
}

.footer-container {
    background-color: #333; /* Dark-grey background */
    width: 100%;
    padding: 20px 0;
    position: absolute; /* Position the footer */
    bottom: 0; /* Align the footer to the bottom */
}

.footer {
    text-align: center;
    color: white;
    width: 80%;
    margin: 0 auto;
}

.footer a {
    color: white;
    text-decoration: none;
    padding: 0 10px;
}

.footer a:not(:last-child) {
    border-right: 1px solid white;
}

/* Keyframes for fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0; /* Start with opacity 0 */
    }
    to {
        opacity: 1; /* End with opacity 1 */
    }
}

.load-more-btn {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #555;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.directory-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.directory-btn {
    padding: 10px 20px;
    background-color: rgba(51, 51, 51, 0.3);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 20px;
    text-decoration: none;
}

.directory-btn.active {
    background-color: #444; /* Darker background color for active button */
}

.directory-btn:hover {
    background-color: #777;
}
