
.container1 {
  background-image: url('/assets/images/headerimg.jpg');
  background-size: cover;
  max-width: 1000px;
  height: 100px;
  margin: 0 auto; /* Center the container horizontally */
}
.container-navigation {
  background-color: rgba(0 19 33 .1);  
  max-width: 1010px;
  height: 100px;  
  margin: 0 auto; /* Center the container horizontally */  
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: none;
  color: #EDECE8;
  padding: 10px 20px;
}

.menu {
  display: flex;
  list-style: none;
    margin-top:20px; /*added so mobile menu does not cover the logo */
}

.menu li {
  margin: 0 10px;
}


.menu a {
  text-decoration: none;
  color: #EDECE8;
  padding: 10px; /* Add padding of 10px to the menu items */  
}

.hamburger {
  display: none;
    font-size: 50px; /* Set the font size to make the hamburger icon larger */
}
.menu a {
  text-decoration: none;
  color: #EDECE8;
  border: 2px solid #001321;  
  transition: all 0.3s; /* Add smooth transition for hover effect */
}

.menu a:hover {
  background-color: #EDECE8;
  color: #001321;
  border: 2px solid #EDECE8;
}

.menu a:focus {
  background-color: #e0e3d4;
  color: #414f3c;
  border: 2px dotted #001321;
}

/* Adjust the existing CSS for the sub-menu */
.submenu {
  display: none;
  position: absolute;
  background-color: #001321;
  padding: 10px;
  list-style: none;
  width:300px;
  margin-top: 10px;
    position: absolute;
    z-index: 1070;
    overflow: visible;
}

.menu li {
  position: relative; /* Ensure the parent li is positioned relatively */
  padding: 10px;  
}

.menu li:hover .submenu {
  display: block; /* Show the sub-menu on parent li hover */
}

/* Add a new rule to hide the sub-menu by default and display it when the main menu item is selected */
.menu li:hover > .submenu {
  display: block;
}    
@media (max-width: 870px) {
  .menu {
    display: none;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #001321;
    padding: 10px 0;
  }

  .menu li {
    margin: 10px 0;
      position: relative;
      
  }
    
   .menu li:hover .submenu {
    display: block;
    position: absolute;
    top: 100%; /* Position the sub-menu below the main menu */
    left: 0;
    background-color: #001321; /* Add a solid background to the sub-menu */
    z-index: 1; /* Ensure the sub-menu appears above the main menu */   
  }

  .hamburger {
    display: block;
    cursor: pointer;
      font-size: 50px; /* Set a larger font size for the hamburger icon on smaller screens */
  }
}