/* https://css-tricks.com/targetting-menu-elements-submenus-navigation-bar/ */
nav {
  display: block;
  xtext-align: center;
  position: absolute; top: 76px; width: 100%; height: 26px; background-color: #fec500; z-index: 100
}
nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display:block;
  xbackground: #111;
  color:#000;
  text-decoration: none;
  padding: 6.5px 18px; /*s proužkem .8em 1.8em*/
  text-transform: uppercase;
  font-size: 90%; letter-spacing: 1px;
  xtext-shadow: 0 -1px 0 #666;
  position: relative;
}
.nav{
  vertical-align: top;
  display: inline-block;
  xbox-shadow: 1px -1px -1px 1px #000, -1px 1px -1px 1px #fff, 0 0 6px 3px #fff;
  xborder-radius: 6px;
}
.nav li {position: relative;}
.nav > li {
  float:left;
  xborder-bottom: 4px #aaa solid; /*proužek pod menu*/
  xmargin-right: 1px; border-right: 1px solid #fff;
}
.nav > li > a {
  xmargin-bottom: 1px; height: 13px; /*muj hack - resi sirku menu pro hover - musi odpovidat height NAV + padding*/
  xbox-shadow: inset 0 2em .33em -.5em #555;
}
.nav > li:hover , .nav > li:hover >a {xborder-bottom-color: orange;}
.nav li:hover > a {color: white;}
.nav > li:first-child  {xborder-radius: 4px 0 0 4px;}
.nav > li:first-child>a {xborder-radius: 4px 0 0 0;}
.nav > li:last-child  {
  xborder-radius: 0 0 4px 0;
  margin-right: 0;
}
.nav > li:last-child >a {xborder-radius: 0 4px 0 0; }
.nav li li a {xmargin-top: 1px; border-top: 1px solid #fff;}



.nav 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*/
.nav ul {
  position: absolute;
  white-space: nowrap;
  border-bottom: 5px solid #f2ecc3;
  z-index: 1;
  left: -99999em;
  background-color: #a6a082;
  list-style: none;
}
.nav > li:hover > ul {
  left: auto;
  xpadding-top: 5px; /*odsazení pro proužek*/
  min-width: 100%;
}
.nav > li li ul {border-left: 1px solid #fff;}

.nav > li li:hover > ul {
 /* margin-left: 1px */
  left: 100%;
  top: 0px;
}


/* arrow hover styling */
.nav > li > a:first-child:nth-last-child(2):before {
  border-top-color: #fff;
}
.nav > li:hover > a:first-child:nth-last-child(2):before {
  border: 5px solid transparent;
  border-bottom-color: #f2ecc3;
  margin-top:-5px
}
.nav li li > a:first-child:nth-last-child(2):before {
  border-left-color: #fff;
  margin-top: -5px
}
.nav li li:hover > a:first-child:nth-last-child(2):before {
  border: 5px solid transparent;
  border-right-color: #f2ecc3;
  right: 10px;
}

.selmenu a {background-color: #21304c; color: white; font-weight: bold;}