#footer {
  position: relative;
  width: 100%;
  margin-top: 2rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0.75rem 0;
  border-bottom: 2px solid var(--header-footer-line-color);
}

/* the bird, head to tail: body, beak, mantle, wings */
#footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--red-bright),
    var(--orange-bright),
    var(--yellow-bright),
    var(--green-bright),
    var(--red-bright)
  );
  background-size: 200% 100%;
  animation: footer-gradient-slide 8s linear infinite;
}

@keyframes footer-gradient-slide {
  to {
    background-position: -200% 0;
  }
}

#footer-presentation {
  display: flex;
  flex-direction: column;
  align-items: left;
  margin: 0 auto;
  font-size: 0.7rem;
  max-width: 90ch;
}

.footer-home {
  color: var(--red-color);
  font-style: normal;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-home:hover,
.footer-home:focus-visible {
  color: var(--foreground-color);
}

#hex-scramble {
  font-family: monospace;
  letter-spacing: 0.05em;
}

#hex-scramble .settled {
  color: var(--red-color);
  font-weight: bold;
}

#hex-scramble .scrambling {
  color: var(--comment-color);
  opacity: 0.55;
}

@media (prefers-reduced-motion: reduce) {
  #footer::before {
    animation: none;
  }
}
