#navbar {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  background: rgba(0, 0, 0, 0.75);
  padding: 15px 0px;
  z-index: 1000;
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s ease-in-out;
  border-bottom-width: 1px;
  border-style: solid;
  border-color: rgb(255, 0, 0);
  animation: 20s linear infinite borderColorAnimation;
  font-family: "Share Tech Mono", monospace;
}

#menu-checkbox {
  display: none;
}

#menu-toggle {
  display: none;
  position: absolute;
  right: 20px;
  top: 15px;
}
#menu-icon {
  font-size: 2rem;
  cursor: pointer;
  color: rgb(255, 255, 255);
}

#nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  padding: 0px;
  margin: 0px;
}

/* add a red dot to the new link */
#nav-links li.new a::after {
  content: "•";
  color: red;
  margin-left: 5px;
  position: relative;
  top: -0.5em;
}

#nav-links li {
  display: inline;
}

#nav-links li a {
  text-decoration: none;
  color: rgb(255, 255, 255);
  font-size: 1.2rem;
  font-weight: bold;
  padding: 10px 15px;
  transition: color 0.3s, background 0.3s;
  border-radius: 15px;
}

#nav-links li a:hover {
  color: rgb(0, 0, 0);
  background: rgb(255, 255, 255);
  border-radius: 15px;
}


@keyframes borderColorAnimation {
  0% {
    border-color: rgba(255, 0, 0, 0.5);
  }
  25% {
    border-color: rgba(128, 0, 128, 0.5);
  }
  50% {
    border-color: rgba(0, 255, 204, 0.5);
  }
  75% {
    border-color: rgba(128, 0, 128, 0.5);
  }
  100% {
    border-color: rgba(255, 0, 0, 0.5);
  }
}


@media (max-width: 768px) {
  #navbar {
    background-color: rgba(0, 0, 0, 0);
    padding: 0px;
  }
  #menu-toggle {
    display: block;
  }
  #menu-checkbox ~ #menu-toggle #menu-icon::before {
    content: "\2630"; /* ☰ */
  }
  #menu-checkbox:checked ~ #menu-toggle #menu-icon::before {
    content: "\2715"; /* ✕ */
  }

  #menu-checkbox:checked ~ #nav-links {
    transform: translateX(0px);
  }


  #menu-icon {
    font-size: 2rem;
    cursor: pointer;
    color: rgb(255, 255, 255);
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    padding: 10px;
    box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 5px;
  }
  #nav-links {
    position: absolute;
    top: 60px;
    right: 0px;
    width: 200px;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    padding: 20px;
    box-shadow: rgba(0, 0, 0, 0.5) -2px 2px 10px;
    border-radius: 15px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }

  #nav-links a {
    display: block;
    padding: 12px;
    border-radius: 15px;
  }
}