/* Basic styling for the entire navigation bar */
.navbar {
  background-color: #333;
  padding: 1rem;
}

.navbar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.navbar-item {
  position: relative; /* Essential for positioning the dropdown */
}

/* Styling for the main navigation links */
.navbar-list a {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  display: block;
}

.navbar-list a:hover {
  background-color: red;
}

/* Initial state of the dropdown menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: #444;
  min-width: 160px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

/* Links inside the dropdown */
.dropdown-menu a {
  color: white;
  padding: 12px 16px;
}

.dropdown-menu a:hover {
  background-color: #666;
}

/* Class added by JavaScript to show the dropdown */
.show-dropdown {
  display: block;
}
