nav {
  display: flex;
  align-items: center;
  text-align: center;flex-wrap: wrap;
  background-color: var(--navButtonBackgroundColor);
  width: 80%;
  margin: 0px auto;
  margin-bottom: 1em;
  border-radius: var(--borderRadius);
}

nav a {
  flex-grow: 1; /* Allows the links to grow and fill the space */
  color: var(--fontColor);
  margin-right: 5px;
  text-decoration: none;
  line-height: 5em;
  border-radius: var(--borderRadius);
  transition: background-color 0.6s ease, color 0.6s ease;
}
nav a:first-child {
  margin-left: 5px;
}

nav a:hover {
  background-color: var(--fontColor);
  color: var(--navButtonBackgroundColor);
}

@media (max-width: 768px) {
  nav {
    width: 100%;
  }

}
