#navBar {
position: fixed;
top: 0;
  margin-bottom: 70px;
}
#navBar i {
color: white;
margin-right: 10px;
}


#navBar ul li a {
color: yellow;
}


nav {
    background-color: black;
    font-family: Arial, sans-serif;
    padding: 10px 0;
    display: flex; 
    align-items: center;
    justify-content: center; /* Centers the content */
    text-align: center;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: yellow;
    border-bottom: 1px solid yellow;
    margin-bottom: 80px;  
}
/* Define keyframes for the moving background */
@keyframes movingBackground {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Apply the animation on hover */
nav:hover {
  background: linear-gradient(270deg, #003366, #0D47A1, #1B2631, #212121);
  background-size: 400% 400%;
  -webkit-animation: movingBackground 6s ease infinite;
  -moz-animation: movingBackground 6s ease infinite;
  animation: movingBackground 6s ease infinite;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    align-items: center;
    width: 100%; 
    color: yellow;
}

nav ul li {
    margin-right: 20px;
    margin-bottom: 10px; /* Adds a little space between rows when wrapped */
}

nav ul li:last-child {
    margin-right: 0; /* Removes right margin from the last item */
}

nav ul li a {
    color: yellow;
    text-decoration: none;
    padding: 5px 10px;
    transition: color 0.3s ease, font-size 0.3s ease;
}

nav ul li a:hover {
    color: #c7c700;
    font-size: 1.5em;
}
