/* Starter CSS for Menu */
#cssmenu, #horzmenu {
  padding: 0;
  margin: 0;
  border: 0;
  width: auto;
}

#cssmenu ul, #horzmenu ul,
#cssmenu li, #horzmenu li {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

#horzmenu > ul > li:first-child{
    width: 170px;
}

#cssmenu ul, #horzmenu ul {
  position: relative;
  z-index: 597;
}
#horzmenu ul li {
  float: left;
  min-height: 1px;
  vertical-align: middle;
}
#cssmenu ul li.hover, #horzmenu ul li.hover,
#cssmenu ul li:hover, #horzmenu ul li:hover {
  position: relative;
  z-index: 599;
  cursor: default;
}
#cssmenu ul ul, #horzmenu ul ul {
  display:none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 598;
  width: 100%;
}
#cssmenu ul ul li, #horzmenu ul ul li {
  float: none;
}
#cssmenu ul ul ul, #horzmenu ul ul ul {
  top: 0;
  left: 190px;
  width: 190px;
}
#cssmenu ul li:hover > ul, #horzmenu ul li:hover > ul {
  display:block;
}
#cssmenu ul ul, #horzmenu ul ul {
  bottom: 0;
  left: 0;
}
#cssmenu ul ul, #horzmenu ul ul {
  margin-top: 0;
}
#cssmenu ul ul li, #horzmenu ul ul li {
  font-weight: normal;
}
#cssmenu a, #horzmenu a,
#cssmenu span, #horzmenu span{
  display: block;
  line-height: 1em;
  text-decoration: none;
}
/* Custom CSS Styles */
#cssmenu, #horzmenu {
  background: #333333;
  border-bottom: 4px solid #1b9bff;
  font-family: 'Oxygen Mono', Tahoma, Arial, sans-serif;
  font-size: 11px;
  width: 99%;
  margin: 0 auto;
}
#cssmenu ul, #horzmenu > ul {
  *display: inline-block;
}
#cssmenu:after, #horzmenu:after,
#cssmenu ul:after, #horzmenu ul:after {
  content: '';
  display: block;
  clear: both;
}
#cssmenu ul, #horzmenu ul {
  text-transform: uppercase;
}
#cssmenu ul ul, #horzmenu ul ul {
  border-top: 4px solid #1b9bff;
  text-transform: none;
  min-width: 190px;
}
#cssmenu ul ul a, #horzmenu ul ul a,
#cssmenu ul ul span, #horzmenu ul ul span{
  background: #1b9bff;
  color: #ffffff;
  border: 1px solid #0082e7;
  border-top: 0 none;
  line-height: 150%;
  padding: 16px 20px;
  font-size: 11px;
}
#cssmenu ul ul ul, #horzmenu ul ul ul {
  border-top: 0 none;
}
#cssmenu ul ul li, #horzmenu ul ul li {
  position: relative;
}
#cssmenu ul ul li:first-child > a, #horzmenu ul ul li:first-child > a,
#cssmenu ul ul li:first-child > span, #horzmenu ul ul li:first-child > span{
  border-top: 1px solid #0082e7;
}
#cssmenu ul ul li:hover > a, #horzmenu ul ul li:hover > a,
#cssmenu ul ul li:hover > span, #horzmenu ul ul li:hover > span{
  background: #4eb1ff;
  color: #ffffff;
}

#cssmenu ul ul li:last-child > a, #horzmenu ul ul li:last-child > a,
#cssmenu ul ul li:last-child > span, #horzmenu ul ul li:last-child > span{
  -moz-border-radius: 0 0 3px 3px;
  -webkit-border-radius: 0 0 3px 3px;
  border-radius: 0 0 3px 3px;
  -moz-background-clip: padding;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  -moz-box-shadow: 0 1px 0 #1b9bff;
  -webkit-box-shadow: 0 1px 0 #1b9bff;
  box-shadow: 0 1px 0 #1b9bff;
}
#cssmenu ul ul li:last-child:hover > a, #horzmenu ul ul li:last-child:hover > a,
#cssmenu ul ul li:last-child:hover > span, #horzmenu ul ul li:last-child:hover > span{
  -moz-border-radius: 0 0 0 3px;
  -webkit-border-radius: 0 0 0 3px;
  border-radius: 0 0 0 3px;
  -moz-background-clip: padding;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}
#horzmenu ul ul li > a.parent:after {
  content: '';
  height: 0;
  width: 0;
  border: 4px solid transparent;
  border-left-color: #fff;
  position: absolute;
  top: 50%;
  right: 15px;
}
#cssmenu ul li:hover > a, #horzmenu ul li:hover > a,
#cssmenu ul li:hover > span, #horzmenu ul li:hover > span,
#cssmenu ul li.selected > a, #horzmenu ul li.selected > a {
  background: #1b9bff;
  color: #ffffff;
}
/* this not selector checks for the href attribute and select all anchors without href */
/* this is assumed that they are top level items with child elements below... i.e. sub menus */
#horzmenu ul li.has-sub > a:not([href]):after,
#horzmenu ul li.has-sub > span:after,
#horzmenu ul li > a.top:not([href]):after{
  content: '';
  height: 0;
  width: 0;
  border: 4px solid transparent;
  border-top-color: #fff;
  position: absolute;
  top: 45%;
  margin-left: 8px;
}
#cssmenu ul li.last ul, #horzmenu ul li.last ul {
  left: auto;
  right: 0;
}
#cssmenu ul li.last ul ul, #horzmenu ul li.last ul ul {
  left: auto;
  right: 99.5%;
}
#cssmenu a, #horzmenu a,
#cssmenu span, #horzmenu span{
  background: #333333;
  color: #CBCBCB;
  padding: 0 20px;
}

#cssmenu > ul > li > a, #horzmenu > ul > li > a,
#cssmenu > ul > li > span, #horzmenu > ul > li > span{
  line-height: 48px;
  font-size: 11px;
}

#cssmenu .left, #horzmenu .left {float: left;}
#cssmenu .right, #horzmenu .right {float: right;}


/*
vertical differences
*/
#cssmenu {
    max-width: 135px;
    width: auto;
    height: auto;
    float:left;
    margin-left:7px;
}

/* it's vertical '*/
#cssmenu ul li {
  min-width: 1px;
  vertical-align: middle;
}

#cssmenu ul{
  width: 100%;
}

#cssmenu ul ul{
  top: 0;
  left: 100%;
}

#cssmenu{
  border-bottom:0;
  border-right: 4px solid #1b9bff;
}

#cssmenu ul ul{
  border-top: 0;
  border-left: 4px solid #1b9bff;
}

#cssmenu li.has-sub > a:after,
#cssmenu li.has-sub > span:after {
  content: '';
  height: 0;
  width: 0;
  border: 4px solid transparent;
  border-left-color: #fff;
  position: absolute;
  top: 20px;
  right: 5px;
}