<style>
ul {
  list-style: none;
  padding: 0;
  margin: 0;
 
  
}

ul ul {
	background-color:white;
}

ul li {
  display: block;
  position: relative;
  float: left;
    color: #333;  
	border-radius:5px;
	padding:0px;
	width:auto;
}

/* This hides the dropdowns */


li ul { 
display: none;  
border:1px solid #7c79df;  
border-radius:5px;
}

ul li a {
  display: block;
 
  text-decoration: none;
  white-space: nowrap;
  color: #333;
   border-radius:5px;
}

ul li a:hover { width:auto; }

/* Display the dropdown */


li:hover > ul {
  display: block;
  position: absolute;

}

li:hover li {float: none; }

li:hover a { background-color:white;  }


li:hover li a:hover {border-bottom:1px solid #7c79df;background-color:white; }

.main-navigation li ul li { width:100%;border-top: 0; }

/* Displays second level dropdowns to the right of the first level dropdown */


ul ul ul {
	
  left: 98%;
  top: 0;
background-color:white;
  text-align:center;
  border:1px solid #7c79df;
  margin:0px;
  border-radius:5px;
  padding:0px;

}

/* Simple clearfix */



ul:before,
ul:after {
  content: " "; /* 1 */
  display: table; /* 2 */
}

ul:after { clear: both; }


</style>