nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.5rem 0;
  margin: 0;
  background-color: #fafafa;
  border-bottom: 0.0625rem solid #ddd;
}

nav a {
  text-decoration: none;
  font-weight: 600;
  color: #4a6fa5;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav a:hover {
  color: #2c2c2c;
}

/*Legacy navigation styles for existing styled nav */
.header-nav {
  background: #2e2e2e;
  border-radius: 1.5625rem;
  margin: 0.75rem auto;
  width: fit-content;
  padding: 0.2rem 1rem;
  display: block; /* Ensure proper centering */
}

.header-nav ul {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
  padding: 0;
  margin: 0;
  background-color: transparent;
  border-bottom: none;
}

.header-nav li {
  display: inline-block;
  margin: 0;
}

.header-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: #e6a6b0;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.85rem;
  padding: 0.2rem 0.5rem;
  transition: background 0.2s;
  text-align: center;
}

.header-nav a:hover,
.header-nav a.active {
  text-decoration: underline;
  background: #444;
  border-radius: 0.75rem;
  color: #f2d5dd;
}

.header-nav a:hover .nav-icon {
  animation: bounce 0.5s;
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-0.625rem);
  }
  50% {
    transform: translateY(0);
  }
  70% {
    transform: translateY(-0.3125rem);
  }
  100% {
    transform: translateY(0);
  }
}

.nav-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  transition: transform 0.2s;
}

@media (max-width: 600px) {
  .header-nav {
    padding: 0.5rem 1rem;
    margin: 1rem auto;
    /* Maintain navbar styling on mobile */
  }

  .header-nav ul {
    gap: 1rem; /* Reduced gap for smaller screens */
    flex-wrap: wrap; /* Allow navigation to wrap if needed */
  }

  .header-nav a {
    font-size: 0.8rem; /* Smaller text for mobile */
  }

  .nav-icon {
    width: 1.2rem;
    height: 1.2rem;
  }
}

/* header and footer moved here from master.css
   keeps header/footer styles with the nav so pages that
   include NavBar.css get consistent layout */

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 0;
  background-color: #00a3b1;
  border-bottom: 0.0625rem solid #ddd;
}

header img.logo {
  width: 6.25rem; /* 100px */
  height: auto;
  margin-bottom: 0.5rem;
}

header h1 {
  font-size: 2rem;
  margin: 0;
  color: #ade6f7;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 6.25rem;
  height: auto;
}

.header-title {
  margin: 1.5625rem 0 1.5625rem;
  text-align: center;
}

footer {
  text-align: center;
  padding: 2rem 0;
  background-color: #2a2a2a;
  border-top: 0.0625rem solid #ddd;
  font-size: 0.9rem;
  color: #666;
  margin: 0 -0.5rem;
  width: calc(100% + 1rem);
  box-sizing: border-box;
}

footer a {
  color: #f2a7bb;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
  color: #f2d5dd;
}

.validation_container {
  text-align: center;
  margin: 10px 0;
}
