#cssmenu, #cssmenu ul li, #cssmenu ul li a,
#cssmenu #menu-button { margin: 0; padding: 0; border: 0;
  list-style: none; line-height: 1; display: block;
  position: relative; -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;  box-sizing: border-box;
  font-family: "Oswald"; text-align: center;
}

#cssmenu ul {  margin: auto; display: block; list-style: none;  }

#cssmenu:after, #cssmenu > ul:after { content: "."; display: block;
  clear: both; visibility: hidden; line-height: 0; height: 0;
}

#cssmenu #menu-button { display: none; }

#cssmenu { width: auto; }

#cssmenu.align-center > ul { font-size: 0;  text-align: center; }

#cssmenu.align-center ul ul { text-align: left; }
#cssmenu.align-center > ul > li {   display: inline-block;
  float: none; }

#cssmenu.align-right > ul > li { float: right; }

#cssmenu.align-right ul ul { text-align: right; }

#cssmenu > ul > li { float: left; }

#cssmenu > ul > li > a { color: #333;    font-family: "Oswald";
    font-size: 16px;    font-weight: 400;    line-height: 1;
    margin-right: 1px;    padding: 5px 10px;    text-decoration: none;
    text-transform: uppercase; }

#cssmenu > ul > li:hover > a, #cssmenu > ul > li > a:hover,
#cssmenu > ul > li.active > a { color: #fff;  background: rgba(0, 0, 0, 0) linear-gradient(to bottom, #348bcf 0px, #125ca6 100%) repeat scroll 0 0;  }

#cssmenu > ul > li.has-sub > a { padding-right: 5px; }

/*#cssmenu ul > li.has-sub > a:after { content: '';
  position: absolute; right: 5px; top: 10px;
  display: block; width: 18px; height: 18px; background: #39c;
  background: -webkit-linear-gradient(top, #39c 0%, #39c 25%, #069 50%, #39c 75%, #39c 100%);
  background: -ms-linear-gradient(top, #39c 0%, #39c 25%, #069 50%, #39c 75%, #39c 100%);
  background: -moz-linear-gradient(top, #39c 0%, #39c 25%, #069 50%, #39c 75%, #39c 100%);
  background: -o-linear-gradient(top, #39c 0%, #39c 25%, #069 50%, #39c 75%, #39c 100%);
  background: linear-gradient(to bottom, #39c 0%, #39c 25%, #069 50%, #39c 75%, #39c 100%);
  box-shadow: inset 0 -1px 1px #069, inset 0 2px 1px #39c;
  background-size: 36px 36px; background-position: 0 0;
  background-repeat: no-repeat;
  -webkit-transition: all 0.1s ease-out;
  -moz-transition: all 0.1s ease-out;
  -ms-transition: all 0.1s ease-out;
  -o-transition: all 0.1s ease-out;
  transition: all 0.1s ease-out;
} */

#cssmenu ul > li.has-sub:hover > a:after {
  background-position: 0 -18px; }

#cssmenu ul > li.has-sub > a:before { content: '';
  position: absolute; right: 11px; top: 25.5px;
  display: block; width: 0; height: 0; z-index: 9999;
  border: 3px solid transparent; border-top-color: #fff;  
}

#cssmenu ul > li.has-sub:hover > a:before {
  border-top-color: #069;
}

#cssmenu ul ul { position: absolute; left: -9999px;
  opacity: 0; z-index: 9999;
  -webkit-transition: top .2s ease, opacity .2s ease;
  -moz-transition: top .2s ease, opacity .2s ease;
  -ms-transition: top .2s ease, opacity .2s ease;
  -o-transition: top .2s ease, opacity .2s ease;
  transition: top .2s ease, opacity .2s ease;
}

#cssmenu > ul > li > ul { top: 0px; padding-top: 8px;
	z-index: 9999; }

#cssmenu > ul > li:hover > ul { left: auto;
  top: 20px; opacity: 1; }

#cssmenu.align-right > ul > li:hover > ul {   right: 0; }
#cssmenu ul ul ul { top: 40px; }

#cssmenu ul ul > li:hover > ul { top: 0;
  left: 178px; padding-left: 10px; opacity: 1;
}

#cssmenu.align-right ul ul > li:hover > ul {
  left: auto;  right: 178px;  padding-left: 0;
  padding-right: 10px;  opacity: 1;
}

#cssmenu ul ul li a {  width: 200px;  padding: 10px 15px;
  font-size: 14px;  font-weight: 500;
  text-shadow: 0 1px 0 rgba(50, 50, 50, 0.25);
  color: #fff;  text-decoration: none;  background: #39c;
  -webkit-transition: color .5s ease;
  -moz-transition: color .5s ease;  -ms-transition: color .5s ease;
  -o-transition: color .5s ease;  transition: color .5s ease;
}

#cssmenu ul ul li:hover > a, #cssmenu ul ul li > a:hover,
#cssmenu ul ul li.active > a {  color: #fff;
  background: #069;  -webkit-transition: background .2s ease;
  -moz-transition: background .2s ease;  -ms-transition: background .2s ease;
  -o-transition: background .2s ease;  transition: background .2s ease;
}

#cssmenu ul ul > li.has-sub > a:after {  right: 12px;
  top: 9.5px;  background: #39c; background-repeat: no-repeat;
  background: -webkit-linear-gradient(top, #39c 0%, #39c 25%, #069 50%, #39c 75%, #39c 100%);
  background: -ms-linear-gradient(top, #39c 0%, #39c 25%, #069 50%, #39c 75%, #39c 100%);
  background: -moz-linear-gradient(top, #39c 0%, #39c 25%, #069 50%, #39c 75%, #39c 100%);
  background: -o-linear-gradient(top, #39c 0%, #39c 25%, #069 50%, #39c 75%, #39c 100%);
  background: linear-gradient(to bottom, #39c 0%, #39c 25%, #069 50%, #39c 75%, #39c 100%);
  box-shadow: inset 0 -1px 1px #069, inset 0 2px 1px #39c;
  background-size: 36px 36px;  background-position: 0 0;  
}

#cssmenu.align-right ul ul > li.has-sub > a:after {
  right: auto;  left: 12px;
}

#cssmenu ul ul > li.has-sub:hover > a:after {
  background-position: 0 -18px;
}

#cssmenu ul ul > li.has-sub > a:before {  top: 15.5px;
  right: 16px;  border-top-color: transparent;
  border-left-color: #fff;
}

#cssmenu.align-right ul ul > li.has-sub > a:before {
  top: 15.5px;  right: auto;  left: 0px;
  border-top-color: transparent;  border-right-color: #fff;
  border-left-color: transparent;
}

#cssmenu ul ul > li.has-sub:hover > a:before {
  border-top-color: transparent;  border-left-color: #600;
}

#cssmenu.align-right ul ul > li.has-sub:hover > a:before {
  border-top-color: transparent;  border-left-color: transparent;
  border-right-color: #600;
}

@media all and (max-width: 768px), only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min--moz-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (-o-min-device-pixel-ratio: 2/1) and (max-width: 1024px), only screen and (min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min-resolution: 192dpi) and (max-width: 1024px), only screen and (min-resolution: 2dppx) and (max-width: 1024px) {

  #logo { text-align: center; width: 100%; padding-right: 0; }
  #navbar { display: block; width: 100%; margin-bottom: 30px; }
  #cssmenu { width: 100%;   }
  #cssmenu ul,  #cssmenu ul ul,  #cssmenu ul ul ul,
  #cssmenu > ul,  #cssmenu.align-center > ul,
  #cssmenu > ul > li > ul,  #cssmenu > ul > li:hover > ul,
  #cssmenu ul ul li:hover > ul,  #cssmenu ul ul ul li:hover > ul,
  #cssmenu.align-right ul ul,
  #cssmenu.align-right ul ul li:hover > ul,
  #cssmenu.align-right ul ul ul li:hover > ul {
	position: relative;    left: 0;    right: auto;
	top: 0;    width: 100%;    display: none;
	padding: 0;    opacity: 1;    text-align: left;
  }

  #cssmenu ul li {    width: 100%; border-top: 1px solid #69c;
  background: rgba(0, 0, 0, 0) linear-gradient(to bottom, #39c 0px, #06c 100%) repeat scroll 0 0;   }

  #cssmenu ul ul li {   border-top: 1px solid #966;
  background: rgba(0, 0, 0, 0) linear-gradient(to bottom, #ca0 0, #c90  100%) repeat scroll 0 0;   }


  #cssmenu > ul > li > a,  #cssmenu ul ul li a,
  #cssmenu ul ul li:first-child > a,
  #cssmenu ul ul li:last-child > a { color: #eee;
    width: 100%;    box-shadow: none;    background: none;
  }

  #cssmenu ul li a {    padding: 5px 12.5px;   }
  #cssmenu ul ul li a {    padding: 8px 25px 8px 27.5px; color: #fff;   }
  #cssmenu ul ul ul li a {    padding-left: 42.5px;   }
  #cssmenu ul ul ul ul li a {    padding-left: 57.5px;   }
  #cssmenu > ul > li.has-sub > a:after, 
  #cssmenu > ul > li.has-sub > a:before,
  #cssmenu ul ul li.has-sub > a:after,
  #cssmenu ul ul li.has-sub > a:before {    display: none;   }
  #cssmenu #menu-button {    position: relative;
    display: block;    padding: 6px;    padding-left: 12.5px;
    cursor: pointer;    font-size: 14px;    color: #fff;
    text-shadow: 0 1px 0 rgba(50, 50, 50, 0.25); letter-spacing: 1px;
    font-weight: 500;  text-transform: uppercase;
	background: rgba(0, 0, 0, 0) linear-gradient(to bottom, #39c 0px, #06c 100%) repeat scroll 0 0;   }

  #cssmenu .submenu-button {    position: absolute;
    right: 0;    display: block;    width: 53px;    height: 53px;
    border-left: 1px solid rgba(120, 120, 120, 0.2);
    z-index: 1001;    cursor: pointer;   }

  #cssmenu ul ul .submenu-button {    height: 41px;   }
  #cssmenu ul .submenu-button:after,
  #cssmenu #menu-button:after {    content: '';  height: 25px;
    position: absolute;    right: 12.5px;    top: 0px;
    display: block;    width: 28px;   background-position: 0 0;
	background: #39c; background-repeat: no-repeat;
    background: -webkit-linear-gradient(top, #39c 0%, #39c 25%, #069 50%, #39c 75%, #39c 100%);
    background: -ms-linear-gradient(top, #39c 0%, #39c 25%, #069 50%, #39c 75%, #39c 100%);
    background: -moz-linear-gradient(top, #39c 0%, #39c 25%, #069 50%, #39c 75%, #39c 100%);
    background: -o-linear-gradient(top, #39c 0%, #39c 25%, #069 50%, #39c 75%, #39c 100%);
    background: linear-gradient(to bottom, #39c 0%, #39c 25%, #069 50%, #39c 75%, #39c 100%);
    box-shadow: inset 0 -1px 1px #069, inset 0 2px 1px #39c;
    background-size: 56px 56px;  -webkit-transition: all 0.1s ease-out;
    -moz-transition: all 0.1s ease-out;
	-ms-transition: all 0.1s ease-out;
    -o-transition: all 0.1s ease-out;
    transition: all 0.1s ease-out;
  }

  #cssmenu ul .submenu-button.submenu-opened:after,
  #cssmenu #menu-button.menu-opened:after {
    background-position: 0 -28px;
  }

  #cssmenu ul ul .submenu-button:after {    top: 6.5px;   }
  #cssmenu #menu-button:before,
  #cssmenu .submenu-button:before {    content: '';
    position: absolute;    right: 22.5px;    top: 12px;
    display: block;    width: 0;    height: 0;
    border: 4px solid transparent;    border-top-color: #fff;
    z-index: 9999;  }

  #cssmenu ul ul .submenu-button:before {    top: 19.5px;   }
  #cssmenu #menu-button.menu-opened:before,
  #cssmenu .submenu-button.submenu-opened:before {
    border-top-color: #fff;   }
}
