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;
  right: 3vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.15s ease;
  width: clamp(56px, 4.5vw, 140px);   /* larger max */
  height: clamp(56px, 4.5vw, 140px);
  display: grid;
  place-items: center;
  z-index: 9999;
  transform-origin: center;
}

#go-up svg {
  width: 66%;
  height: 66%;
  display: block;
}

#go-up.show {
  opacity: 1;
  pointer-events: auto;
}

/* extra boost for very large screens */
@media (min-width: 2000px) {
  #go-up { width: 180px; height: 180px; }
  #go-up svg { width: 70%; height: 70%; }
}

/* optional: slightly lift on hover */
#go-up:hover { cursor: pointer; transform: translateY(-6px) scale(1.04); }

.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;
    }

}