
body {
  font-family: Arial, Helvetica, sans-serif;
}

.navbar {
  overflow: hidden; 
  background-color: #333;
}

.navbar a {
  float: left;
  font-size: 16px;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

.dropdown {
  float: left;
  overflow: hidden;
}

.dropdown .dropbtn {
  font-size: 16px;  
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}

.navbar a:hover, .dropdown:hover .dropbtn {
  background-color: red;
}

/* Main dropdown content */

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;

}

/* Show main dropdown on hover */

.dropdown:hover .dropdown-content{
  display: block;

}

/* Dropdown links */
.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  background-color: white;
}


/* Hover for dropdown links */
.dropdown-content a:hover {
  background-color: #ddd;
  
}

/* Container for items with submenus */

.menu-with-submenu {
  position: relative; 
  display: block;

}

.submenu-trigger {
  font-size: 16px;  
  border: none;
  outline: none;
  color: black;
  background: white;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;

} 


/* submenu trigger hover */

.submenu-trigger:hover{
  background-color: #ddd;
  
}

/* submenu (appears to the right) */

.submenu {
  display: none;
  position: absolute;
  left: 100%; /* This makes it appear to the RIGHT */
  top: 0; /* Aligns with the top of the parent */
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 2; /* Higher than main dropdown */
  
}

 
/* SHow submenu when hovering over container */
.menu-with-submenu:hover .submenu {
  display: block; 

}

/* submenu links */
.submenu a {
  color: black; 
  padding: 12px 16px; 
  display: block
  
  
}

/* submenu ilink hover */
.submenu a:hover {
  background-color: #ddd;
  
}

  














</html>
