footer {
    width: 100%;
    margin-top: auto;
    background-color: var(--footer-background);
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
    /* Smooth hide effect */
}

/* When footer is hidden */
footer.hidden {
    transform: translateY(100%);
    /* Slide out of the screen */
}

/* When footer is visible */
footer.visible {
    transform: translateY(0);
    /* Reset footer to visible position */
}

.footer-container {
    max-width: 75vw;
    margin: auto;
    text-align: center;

}

#go-up {
    position: fixed;
    top: 85vh;
    bottom: auto;
    right: 3vw;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#go-up:hover {
    cursor: pointer;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0.25vw;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.f-logo,
.i-logo,
.in-logo,
.em-logo {
    width: var(--social-media-logos);
    height: var(--social-media-logos);
    display: block;
    width: 3vw;
    /* allow images to be responsive */
    height: auto;
    /* maintain aspect ratio */
}

.footer-hr {
    max-width: 50vw;
    height: 4vh;
}

.copyright-bar {
    display: block;
    flex-direction: column;
    padding: 0.75vw;
    font-size: 0.75vw;
    color: var(--dark-brown);
}

@media (max-width: 768px) {
    footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 1rem 0;
        max-height: 20vh;
        overflow: hidden;
    }

    .footer-hr {
        max-width: 50vw;
        height: 4vh;
    }

    .copyright-bar {
        left: 0;
        width: 100%;
        height: 5vh;
        margin: 0;
        padding-bottom: 0.75rem;
        padding-top: 0.5rem;
        font-size: 0.6rem;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .social-links {
        display: flex;
        top: 10vw;
        justify-content: center;
        gap: 1rem;
        margin: 1vw;
    }

    .f-logo,
    .i-logo,
    .in-logo,
    .em-logo {
        max-width: calc(var(--social-media-logos) + 75%);
        max-height: calc(var(--social-media-logos) + 75%);
        display: block;
        width: auto;
        max-width: 10vw;
        height: auto;
        max-height: 10vh;
    }

    #go-up {
        right: 5vw;
    }

}