.sm-firebrand {
  background-color: transparent;
  -webkit-border-radius: 0px;
  -moz-border-radius: 0px;
  -ms-border-radius: 0px;
  -o-border-radius: 0px;
  border-radius: 0px;
}
.sm-firebrand li.toplevel {
  /*background-color:#5BABE7;*/
  /*height:36px;*/
  padding-left: 5px;
  padding-right: 2px;
}

.sm-firebrand li.toplevel-elo {
  margin-left: -6px;
}

.sm-firebrand li.toplevel-admin {
  background-color:transparent;
  height:36px;
}

.sm-firebrand li.toplevel-ezbar {
  background-color:#407fbf;
  width: 40px;
  height: 35px;
  border-top: solid 1px #ffffff;
}

.sm-firebrand li.toplevel-ezbar.ezbar-error-nav {
  display: none;
  background-color: #B14545;
}

.sm-firebrand li.toplevel-ezbar:first-child {
  border-top: solid 1px;
  border-color: transparent;
}

.sm-firebrand a, .sm-firebrand a:hover, .sm-firebrand a:focus, .sm-firebrand a:active {
  padding: 13px 20px;
  /* make room for the toggle button (sub indicator) */
  padding-right: 58px;
  color: #000000;
  font-family: Helvetica, "Lucida Sans Unicode", "Lucida Sans", "Lucida Grande", Arial, sans-serif;
  font-size: 14px;
  /*font-weight: bold;*/
  line-height: 22px;
  text-decoration: none;
}

.sm-firebrand a.current {
  color: #ffffff;
}
.sm-firebrand a.disabled {
  color: #bbbbbb;
}
.sm-firebrand a span.sub-arrow {
  position: absolute;
  top: 50%;
  margin-top: -17px;
  left: auto;
  right: 4px;
  width: 34px;
  height: 34px;
  overflow: hidden;
  font: bold 16px/34px monospace !important;
  text-align: center;
  text-shadow: none;
  background: rgba(255, 255, 255, 0.5);
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  border-radius: 5px;
}
.sm-firebrand a.highlighted span.sub-arrow:before {
  display: block;
  content: '-';
}
.sm-firebrand > li:first-child > a, .sm-firebrand > li:first-child > :not(ul) a {
  -webkit-border-radius: 5px 5px 0 0;
  -moz-border-radius: 5px 5px 0 0;
  -ms-border-radius: 5px 5px 0 0;
  -o-border-radius: 5px 5px 0 0;
  border-radius: 5px 5px 0 0;
}
.sm-firebrand > li:last-child > a, .sm-firebrand > li:last-child > *:not(ul) a, .sm-firebrand > li:last-child > ul,
.sm-firebrand > li:last-child > ul > li:last-child > a, .sm-firebrand > li:last-child > ul > li:last-child > *:not(ul) a, .sm-firebrand > li:last-child > ul > li:last-child > ul,
.sm-firebrand > li:last-child > ul > li:last-child > ul > li:last-child > a, .sm-firebrand > li:last-child > ul > li:last-child > ul > li:last-child > *:not(ul) a, .sm-firebrand > li:last-child > ul > li:last-child > ul > li:last-child > ul,
.sm-firebrand > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > a, .sm-firebrand > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > *:not(ul) a, .sm-firebrand > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul,
.sm-firebrand > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > a, .sm-firebrand > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > *:not(ul) a, .sm-firebrand > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul {
  -webkit-border-radius: 0 0 5px 5px;
  -moz-border-radius: 0 0 5px 5px;
  -ms-border-radius: 0 0 5px 5px;
  -o-border-radius: 0 0 5px 5px;
  border-radius: 0 0 5px 5px;
}
.sm-firebrand > li:last-child > a.highlighted, .sm-firebrand > li:last-child > *:not(ul) a.highlighted,
.sm-firebrand > li:last-child > ul > li:last-child > a.highlighted, .sm-firebrand > li:last-child > ul > li:last-child > *:not(ul) a.highlighted,
.sm-firebrand > li:last-child > ul > li:last-child > ul > li:last-child > a.highlighted, .sm-firebrand > li:last-child > ul > li:last-child > ul > li:last-child > *:not(ul) a.highlighted,
.sm-firebrand > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > a.highlighted, .sm-firebrand > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > *:not(ul) a.highlighted,
.sm-firebrand > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > a.highlighted, .sm-firebrand > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > *:not(ul) a.highlighted {
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  -ms-border-radius: 0;
  -o-border-radius: 0;
  border-radius: 0;
}
.sm-firebrand li {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.sm-firebrand > li:first-child {
  border-top: 0;
}
.sm-firebrand ul {
  background: rgba(162, 162, 162, 0.1);
}
.sm-firebrand ul a, .sm-firebrand ul a:hover, .sm-firebrand ul a:focus, .sm-firebrand ul a:active {
  font-size: 12px;
  border-left: 8px solid transparent;
}
.sm-firebrand ul ul a,
.sm-firebrand ul ul a:hover,
.sm-firebrand ul ul a:focus,
.sm-firebrand ul ul a:active {
  border-left: 16px solid transparent;
}
.sm-firebrand ul ul ul a,
.sm-firebrand ul ul ul a:hover,
.sm-firebrand ul ul ul a:focus,
.sm-firebrand ul ul ul a:active {
  border-left: 24px solid transparent;
}
.sm-firebrand ul ul ul ul a,
.sm-firebrand ul ul ul ul a:hover,
.sm-firebrand ul ul ul ul a:focus,
.sm-firebrand ul ul ul ul a:active {
  border-left: 32px solid transparent;
}
.sm-firebrand ul ul ul ul ul a,
.sm-firebrand ul ul ul ul ul a:hover,
.sm-firebrand ul ul ul ul ul a:focus,
.sm-firebrand ul ul ul ul ul a:active {
  border-left: 40px solid transparent;
}

@media (min-width: 99px) {
  /* Switch to desktop layout
  -----------------------------------------------
     These transform the menu tree from
     collapsible to desktop (navbar + dropdowns)
  -----------------------------------------------*/
  /* start... (it's not recommended editing these rules) */
  .sm-firebrand ul {
    position: absolute;
    width: 12em;
  }

  .sm-firebrand li {
    float: left;
  }

  .sm-firebrand.sm-rtl li {
    float: right;
  }

  .sm-firebrand ul li, .sm-firebrand.sm-rtl ul li, .sm-firebrand.sm-vertical li {
    float: none;
  }

  .sm-firebrand a {
    white-space: nowrap;
  }

  .sm-firebrand ul a, .sm-firebrand.sm-vertical a {
    white-space: normal;
  }

  .sm-firebrand .sm-nowrap > li > a, .sm-firebrand .sm-nowrap > li > :not(ul) a {
    white-space: nowrap;
  }
  /* ...end */

  .sm-firebrand {
    padding: 0px 0px;
    background-color: transparent;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    -ms-border-radius: 0px;
    -o-border-radius: 0px;
    border-radius: 0px;
  }
  .sm-firebrand a, .sm-firebrand a:hover, .sm-firebrand a:focus, .sm-firebrand a:active, .sm-firebrand a.highlighted {
    padding: 5px 9px;
    color: #ffffff;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
    -ms-border-radius: 0 !important;
    -o-border-radius: 0 !important;
    border-radius: 0 !important;
  }
  .sm-firebrand a:hover, .sm-firebrand a:focus, .sm-firebrand a:active, .sm-firebrand a.highlighted {
    color: #000000;
  }
  .sm-firebrand a.current {
    color: #d23600;
  }
  .sm-firebrand a.disabled {
    color: #bbbbbb;
  }
  .sm-firebrand a.has-submenu {
    padding-right: 15px;
  }
  .sm-firebrand a span.sub-arrow {
    top: 50%;
    margin-top: -2px;
    right: 5px;
    width: 0;
    height: 0;
    border-width: 4px;
    border-style: solid dashed dashed dashed;
    border-color: #ffffff transparent transparent transparent;
    background: transparent;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    -ms-border-radius: 0;
    -o-border-radius: 0;
    border-radius: 0;
  }
  .sm-firebrand a.highlighted span.sub-arrow:before {
    display: none;
  }
  .sm-firebrand li {
    border-top: 0;
  }
  .sm-firebrand > li > ul:before,
  .sm-firebrand > li > ul:after {
    content: '';
    position: absolute;
    top: -18px;
    left: 30px;
    width: 0;
    height: 0;
    overflow: hidden;
    border-width: 9px;
    border-style: dashed dashed solid dashed;
    border-color: transparent transparent #bbbbbb transparent;
  }
  .sm-firebrand > li > ul:after {
    top: -16px;
    left: 31px;
    border-width: 8px;
    border-color: transparent transparent white transparent;
  }
  .sm-firebrand ul {
    border: 1px solid #bbbbbb;
    padding: 5px 0;
    background: white;
    -webkit-border-radius: 5px !important;
    -moz-border-radius: 5px !important;
    -ms-border-radius: 5px !important;
    -o-border-radius: 5px !important;
    border-radius: 5px !important;
    -webkit-box-shadow: 0 5px 9px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 5px 9px rgba(0, 0, 0, 0.2);
    box-shadow: 0 5px 9px rgba(0, 0, 0, 0.2);
  }
  .sm-firebrand ul a, .sm-firebrand ul a:hover, .sm-firebrand ul a:focus, .sm-firebrand ul a:active, .sm-firebrand ul a.highlighted {
    border: 0 !important;
    padding: 2px 10px;
    color: #555555;
  }
  .sm-firebrand ul a:hover, .sm-firebrand ul a:focus, .sm-firebrand ul a:active, .sm-firebrand ul a.highlighted {
    background: #eeeeee;
    color: #000000;
  }
  .sm-firebrand ul a.current {
    color: #000000;
  }
  .sm-firebrand ul a.disabled {
    background: white;
    color: #cccccc;
  }
  .sm-firebrand ul a.has-submenu {
    padding-right: 25px;
  }
  .sm-firebrand ul a span.sub-arrow {
    right: 8px;
    top: 50%;
    margin-top: -5px;
    border-width: 5px;
    border-style: dashed dashed dashed solid;
    border-color: transparent transparent transparent #555555;
  }
  .sm-firebrand span.scroll-up,
  .sm-firebrand span.scroll-down {
    position: absolute;
    display: none;
    visibility: hidden;
    overflow: hidden;
    background: white;
    height: 20px;
  }
  .sm-firebrand span.scroll-up:hover,
  .sm-firebrand span.scroll-down:hover {
    background: #eeeeee;
  }
  .sm-firebrand span.scroll-up:hover span.scroll-up-arrow, .sm-firebrand span.scroll-up:hover span.scroll-down-arrow {
    border-color: transparent transparent #d23600 transparent;
  }
  .sm-firebrand span.scroll-down:hover span.scroll-down-arrow {
    border-color: #d23600 transparent transparent transparent;
  }
  .sm-firebrand span.scroll-up-arrow, .sm-firebrand span.scroll-down-arrow {
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -6px;
    width: 0;
    height: 0;
    overflow: hidden;
    border-width: 6px;
    border-style: dashed dashed solid dashed;
    border-color: transparent transparent #555555 transparent;
  }
  .sm-firebrand span.scroll-down-arrow {
    top: 8px;
    border-style: solid dashed dashed dashed;
    border-color: #555555 transparent transparent transparent;
  }
  .sm-firebrand.sm-rtl a.has-submenu {
    padding-right: 12px;
    padding-left: 24px;
  }
  .sm-firebrand.sm-rtl a span.sub-arrow {
    right: auto;
    left: 12px;
  }
  .sm-firebrand.sm-rtl.sm-vertical a.has-submenu {
    padding: 10px 20px;
  }
  .sm-firebrand.sm-rtl.sm-vertical a span.sub-arrow {
    right: auto;
    left: 8px;
    border-style: dashed solid dashed dashed;
    border-color: transparent #555555 transparent transparent;
  }
  .sm-firebrand.sm-rtl > li > ul:before {
    left: auto;
    right: 30px;
  }
  .sm-firebrand.sm-rtl > li > ul:after {
    left: auto;
    right: 31px;
  }
  .sm-firebrand.sm-rtl ul a.has-submenu {
    padding: 10px 20px !important;
  }
  .sm-firebrand.sm-rtl ul a span.sub-arrow {
    right: auto;
    left: 8px;
    border-style: dashed solid dashed dashed;
    border-color: transparent #555555 transparent transparent;
  }
  .sm-firebrand.sm-vertical {
    padding: 0 0;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
  }
  .sm-firebrand.sm-vertical a {
    padding: 5px 7px;
  }
  .sm-firebrand.sm-vertical a:hover, .sm-firebrand.sm-vertical a:focus, .sm-firebrand.sm-vertical a:active, .sm-firebrand.sm-vertical a.highlighted {
    background: transparent;
  }
  .sm-firebrand.sm-vertical a.disabled {
    background: #eeeeee;
  }
  .sm-firebrand.sm-vertical a span.sub-arrow {
    right: -3px;
    top: 50%;
    margin-top: -5px;
    border-width: 5px;
    border-style: dashed dashed dashed solid;
    border-color: transparent transparent transparent #ffffff;
  }
 .sm-firebrand.sm-vertical ul a span.sub-arrow {
    right: -3px;
    top: 50%;
    margin-top: -5px;
    border-width: 5px;
    border-style: dashed dashed dashed solid;
    border-color: transparent transparent transparent #555555;
  }
  .sm-firebrand.sm-vertical > li > ul:before,
  .sm-firebrand.sm-vertical > li > ul:after {
    display: none;
  }
  .sm-firebrand.sm-vertical ul a {
    padding: 5px 5px;
  }
  .sm-firebrand.sm-vertical ul a:hover, .sm-firebrand.sm-vertical ul a:focus, .sm-firebrand.sm-vertical ul a:active, .sm-firebrand.sm-vertical ul a.highlighted {
    background: #eeeeee;
  }
  .sm-firebrand.sm-vertical ul a.disabled {
    background: white;
  }
  .sm-firebrand .more-menu,
  .sm-firebrand .more-menu.hover,
  .sm-firebrand .more-menu.highlighted {
    color: #ffffff !important;
    font-size: 12px !important;
  }
}

.main-nav {
  background: #3092c0;
  background-image: -webkit-gradient(linear, to bottom, to top, color-stop(0%, #3298c8), color-stop(100%, #2e8cb8));
  background-image: -webkit-linear-gradient(to bottom, #3298c8, #2e8cb8);
  background-image: -moz-linear-gradient(to bottom, #3298c8, #2e8cb8);
  background-image: -o-linear-gradient(to bottom, #3298c8, #2e8cb8);
  background-image: linear-gradient(to bottom, #3298c8, #2e8cb8);
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
  border-radius: 8px;
  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.main-nav:after {
  clear: both;
  content: "\00a0";
  display: block;
  height: 0;
  font: 0px/0 serif;
  overflow: hidden;
}

#main-menu {
  clear: both;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  top: 3px;
}

ul#main-menu li {
    padding-left: 0px;
}
li.toplevel-home {
    padding: 0px;
}
li.toplevel-home img {
    margin-bottom: 2px;
}

/* Mobile menu top separator */
#main-menu:before {
  content: '';
  display: block;
  height: 1px;
  font: 1px/1px sans-serif;
  overflow: hidden;
  background: #2e8cb8;
}

@media (min-width: 100px) {
  #main-menu:before {
    display: none;
  }
}

/* Mobile menu toggle button */
.main-menu-btn {
  float: left;
  margin-left: 10px;
  position: relative;
  display: inline-block;
  width: 29px;
  height: 29px;
  text-indent: 29px;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* hamburger icon */
.main-menu-btn-icon,
.main-menu-btn-icon:before,
.main-menu-btn-icon:after {
  position: absolute;
  top: 50%;
  left: 2px;
  height: 2px;
  width: 24px;
  background: #fff;
  -webkit-transition: all 0.25s;
  transition: all 0.25s;
}

.main-menu-btn-icon:before {
  content: '';
  top: -7px;
  left: 0;
}

.main-menu-btn-icon:after {
  content: '';
  top: 7px;
  left: 0;
}

/* x icon */
#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon {
  height: 0;
  background: transparent;
}

#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon:before {
  top: 0;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon:after {
  top: 0;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}


/* hide menu state checkbox (keep it visible to screen readers) */
#main-menu-state {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

/* hide the menu in mobile view */
#main-menu-state:not(:checked) ~ #main-menu {
  display: none;
}

#main-menu-state:checked ~ #main-menu {
  display: block;
}

@media (min-width: 768px) {
  /* hide the button in desktop view */
  .main-menu-btn {
    position: absolute;
    top: -99999px;
  }
  /* always show the menu in desktop view */
  #main-menu-state:not(:checked) ~ #main-menu {
    display: block;
  }
}
