topnav {    
  display: block;
  text-align: center;
  margin-left:0px;
}

topnav ul {
  margin: 0;
  padding:0;
  list-style: none;
}
.topnavtop {
position:relative;
margin-left: -100px;
}
.topnav a {
  display:block; 
  background: #111; 
  color: #fff; 
  text-decoration: none;
  padding: 0.8em 2.0em;
  text-transform: uppercase;
  font-size: 90%;
  letter-spacing: 1px;
  text-shadow: 0 -1px 0 #000;
  position: relative;
}
.topnav{  
  vertical-align: top; 
  display: inline-block;
  box-shadow: 
    1px -1px -1px 1px #000, 
    -1px 1px -1px 1px #fff, 
    0 0 6px 3px #fff;
  border-radius:4px;
}
.topnav li {
  position: relative;
}
.topnav > li { 
  float: left; 
  border-bottom: 5px #aaa solid; 
  margin-right: 1px; 
} 
.topnav > li > a { 
  margin-bottom: 1px;
  box-shadow: inset 0 2em .33em -0.5em #555; 
}

.topnav > li:hover, 
.topnav > li:hover > a { 
  border-bottom-color: orange;
}
.topnav li:hover > a { 
  color:orange; 
}
.topnav > li:first-child { 
  border-radius: 4px 0 0 4px;
} 
.topnav > li:first-child > a { 
  border-radius: 4px 0 0 0;
}
.topnav > li:last-child { 
  border-radius: 0 0 4px 0; 
  margin-right: 0;
} 
.topnav > li:last-child > a { 
  border-radius: 0 4px 0 0;
}
.topnav li li a { 
  margin-top: 1px;
}
.topnav li a:first-child:nth-last-child(2):before { 
  content: ""; 
  position: absolute; 
  height: 0; 
  width: 0; 
  border: 5px solid transparent; 
  top: 50% ;
  right:5px;  
 }
 /* submenu positioning*/
.topnav ul {
  position: absolute;
  white-space: nowrap;
  border-bottom: 5px solid  orange;
  z-index: 1;
  left: -99999em;
}
.topnav > li:hover > ul {
  left: auto;
  margin-top: 5px;
  min-width: 100%;
}
.topnav > li li:hover > ul { 
  left: 100%;
  margin-left: 1px;
  top: -1px;
}
/* arrow hover styling */
.topnav > li > a:first-child:nth-last-child(2):before { 
  border-top-color: #aaa; 
}
.topnav > li:hover > a:first-child:nth-last-child(2):before {
  border: 5px solid transparent; 
  border-bottom-color: orange; 
  margin-top:-2px
}
.topnav li li > a:first-child:nth-last-child(2):before {  
  border-left-color: #aaa; 
  margin-top: -2px
}
.topnav li li:hover > a:first-child:nth-last-child(2):before {
  border: 5px solid transparent; 
  border-right-color: orange;
  right: 10px; 
}