#cssmenu,
#cssmenu ul,
#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;
}
#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;
  line-height: 1;
}

#cssmenu > ul > li {
  float: left;
  width: 14%;
}

#cssmenu > ul > li > a {
  -webkit-transition: color .2s ease;
  -moz-transition: color .2s ease;
  -ms-transition: color .2s ease;
  -o-transition: color .2s ease;
  transition: color .2s ease;
  line-height: 30px;
  text-align: center;
  height: 40px;
  color: #3169BD;
}
#cssmenu > ul > li:hover > a{
  color: #fff;
  background: #3169BD;
}
#cssmenu>ul>li.has-sub>a{background: url(../images/ico-blue.png) no-repeat center 30px;} 
#cssmenu>ul>li.has-sub:hover>a{background: #3169BD url(../images/ico-white.png) no-repeat center 30px; color: #fff;}


#cssmenu ul ul {
  position: absolute;
  left: -1409px;
  z-index: 999;
  background-color:#EFF3FA;
  padding:0 0 0 1400px; 
  z-index: 99;
  width: 3000px;
}

#cssmenu ul ul li {
  height: 0;
  -webkit-transition: height .2s ease;
  -moz-transition: height .2s ease;
  -ms-transition: height .2s ease;
  -o-transition: height .2s ease;
  transition: height .2s ease;
  float: left !important;
}

#cssmenu ul li:hover > ul > li {
  height: 40px;
}


#cssmenu ul li ul li a {
  height: 0px;
  font-size: 12px;
  text-decoration: none;
  color: #333;
  -webkit-transition: color .2s ease;
  -moz-transition: color .2s ease;
  -ms-transition: color .2s ease;
  -o-transition: color .2s ease;
  transition: color .2s ease; 
  margin: 0 10px; line-height: 40px;
  opacity: 0;
  transition: .2s;
}
#cssmenu ul li:hover ul li a {opacity: 1}

#cssmenu ul ul li:hover > a {
  color: #3169BD;

}


@media all and (max-width: 1024px){
  #cssmenu{
    margin-top: 40px; 
    position: absolute;
    z-index: 9999;
    right: 0;
    width: 100%;
    background: none;
  }
  #cssmenu>ul {
    width: 100%;
    display: none;
    background: #f5f5f5;
    border-bottom: 1px solid rgba(120, 120, 120, 0.15);
  }
 #cssmenu > ul > li:hover > a{
    background: none !important;
    color: #3169BD !important;
  }
  #cssmenu ul ul {
    position: static;
    left: 0px;
    padding:0px; 
    width: 100%;
    display: block;
  }

  #cssmenu ul li,
  #cssmenu ul ul li,
  #cssmenu ul li:hover > ul > li {
    width: 100%;
    height: auto;
    border-top: 1px solid rgba(120, 120, 120, 0.15);
    float: none !important;
  }
  #cssmenu ul ul li{text-align: center;}

  #cssmenu ul li a,
  #cssmenu ul ul li a {
    width: 100%;
    opacity: 1 !important;
    line-height: 40px;
    
  }

  #cssmenu > ul > li{
    float: none;
    display: block;
  }
  #cssmenu ul ul li a {
    padding: 20px 0;
    font-size: 12px;
    color: #000000;
    background: none;
    display: inline;
  }
  #cssmenu ul ul li:hover > a,
  #cssmenu ul ul li a:hover {
    color: #000000;
  }
  #cssmenu ul ul ul li a {
    padding-left: 40px;
  }
  #cssmenu ul ul,
  #cssmenu ul ul ul {
    position: relative;
    left: 0;
    right: auto;
    width: 100%;
    margin: 0;
  }
  #cssmenu > ul > li.has-sub > a::after,
  #cssmenu ul ul li.has-sub > a::after {
    display: none;
  }
  #menu-line {
    display: none;
  }
  #cssmenu #menu-button {
    display: block;
    padding: 20px;
    color: #000000;
    cursor: pointer;
    font-size: 12px;
    text-transform: uppercase;
    outline: none;
    width: 12%;
    margin-left: 88%;
    -webkit-tap-highlight-color:rgba(0,0,0,0);
  }
  #cssmenu #menu-button::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 20px;
    display: block;
    width: 20px;
    height: 2px;
    background: #000000;
    outline: none;
  }
  #cssmenu #menu-button::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 20px;
    display: block;
    width: 15px;
    height: 7px;
    border-top: 2px solid #000000;
    border-bottom: 2px solid #000000;
    outline: none;
  }
  #cssmenu .submenu-button {
    position: absolute;
    z-index: 10;
    right: 0;
    top: 0;
    display: block;
    border-left: 1px solid rgba(120, 120, 120, 0.15);
    height: 40px;
    width: 40px;
    cursor: pointer;
  }
  #cssmenu .submenu-button::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 20px;
    display: block;
    width: 1px;
    height: 11px;
    background: #000000;
    z-index: 99;
  }
  #cssmenu .submenu-button::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 21px;
    display: block;
    width: 11px;
    height: 1px;
    background: #000000;
    z-index: 99;
  }
  #cssmenu .submenu-button.submenu-opened:after {
    display: none;
  }

  #cssmenu>ul>li.has-sub>a{background-image: none !important;}
  #cssmenu>ul>li.has-sub:hover>a{background-image: none !important;}
}

@media all and (max-width: 380px){
  #cssmenu #menu-button {
    display: block;
    padding: 16px;}
}
@media all and (max-width: 360px){
  #cssmenu #menu-button {
    display: block;
    padding: 15px;}
}
@media all and (max-width: 320px){
  #cssmenu #menu-button {
    display: block;
    padding: 12px;}
}