/* Main menu Styling */
#gj-fullmenu-wrapper .navbar {
  margin-top:0;
}
#gj-halfmenu ul.menu a,
#gj-fullmenu ul.menu a {
  font:normal 14px Arial, Helvetica, sans-serif;
  float: none;
}
#gj-halfmenu ul.menu {
  float:right;
}
#gj-fullmenu ul.menu {
  float:left;
}

#gj-halfmenu li,
#gj-fullmenu li {
  position:relative; 
  display:inline; 
  float:left;  
  padding-left:15px;
  font-size: 14px;
  min-height: 40px;
  line-height: 40px;
  background-image:none; /* lets make sure no list style images show */
}
#gj-fullmenu li {
  padding-left:0;
  padding-right:25px;
}
/* submenus */
#gj-halfmenu ul ul,
#gj-fullmenu ul ul {
  display: none; /* hides submenu */
  right:0; 
  margin: 0;
  position: absolute; 
  z-index: 9999; /* makes sure the submenu is on top */
  text-align:right; /* aligns the sub menu items which you can align left, center, or right */
  border-bottom:9px solid #000; /* adds a nice border to the bottom of the submenus */
}
#gj-fullmenu ul ul {
  left:0;
  text-align:left;
}
#gj-halfmenu ul ul ul,
#gj-fullmenu ul ul ul {
  right: 175px; /* positions next to the 2nd level menu */
  width: 200px; /* adjust the width if your items are long */
  top: 0;
}
#gj-fullmenu ul ul ul {
  left: 175px; /* positions next to the 2nd level menu */
  width: 200px; /* adjust the width if your items are long */ 
  top: 0;
}

#gj-halfmenu ul ul:before,
#gj-fullmenu ul ul:before {
  background: transparent url('../images/menu_arrow.png') no-repeat 0 0;
  content: "";
  display: block;
  height: 10px;
  right: 26px;
  position: absolute;
  top: -10px;
  width: 14px;
}
#gj-fullmenu ul ul:before {
  left:26px;
}

#gj-halfmenu ul ul ul:before,
#gj-fullmenu ul ul ul:before {
  display: none;
}
#gj-halfmenu ul ul li,
#gj-fullmenu ul ul li {
  width:200px; /* adjust the width if your items are long */
  margin:auto; 
  height:auto;
  min-height: 22px;  
  padding:0;
  border-top: 1px solid #ececec;
}
#gj-halfmenu ul ul li:first-child,
#gj-fullmenu ul ul li:first-child {
  border:none;
}
#gj-halfmenu ul.menu ul a,
#gj-fullmenu ul.menu ul a {  
  height:12px; 
  line-height:12px; 
  padding:12px; 
  font-size:12px; /* font size of your submenus */
  width:auto; 
  display:block; 
  
}
#gj-halfmenu ul li:hover > ul,
#gj-fullmenu ul li:hover > ul {
  display: block;
  width:200px; /* adjust the width if your items are long */
  padding:0; 
  background-color:#fff;
  -webkit-border-radius: 6px;
  border-radius: 6px;
  -webkit-box-shadow:  0 0 6px rgba(0, 0, 0, .5);
    box-shadow:  0 0 6px rgba(0, 0, 0, .5);
}
#gj-fullmenu ul li:hover > ul {
  background-color:#fff;
}

/* style of hovering a submenu and when active */
#gj-halfmenu ul ul li:first-child:hover,
#gj-halfmenu ul ul li:last-child:hover,
#gj-fullmenu ul ul li:first-child:hover,
#gj-fullmenu ul ul li:last-child:hover {
  border-radius:6px 6px 0 0;
}
#gj-halfmenu ul ul li:last-child:hover,
#gj-fullmenu ul ul li:last-child:hover {
  border-radius:0;
}
#gj-halfmenu ul ul li:hover,
#gj-halfmenu ul.submenu li.current,
#gj-halfmenu ul.submenu li.active.parent,
#gj-fullmenu ul ul li:hover,
#gj-fullmenu ul.submenu li.current,
#gj-fullmenu ul.submenu li.active.parent {
  background: #f2f2f2 url('../images/backgrounds/menu-bg-lines.png') repeat 0 0;
}
#gj-halfmenu ul.sub-menu ul.sub-menu,
#gj-fullmenu ul.sub-menu ul.sub-menu {
  padding-top:0;
}

/* Mobile Menu Styling */
@media (min-width: 320px) and (max-width: 979px) {
  a.btn-navbar {margin-top:5px;}
  #gj-halfmenu {
    margin-top:0;
    padding:0 10px;
  }
  #gj-halfmenu ul {
  float:left!important;
  width:99%!important;
  margin:0!important;
  position:relative;
  -webkit-border-radius: 0 0 6px 6px;
  border-radius: 0 0 6px 6px;
  border-bottom:9px solid #000!important; /* adds a nice border to the bottom of the submenus */  
  background-color:#fff;
  }
  #gj-halfmenu ul.submenu  {
    display: block!important;
    height: auto!important;
    margin: 0!important;
    overflow: visible!important;
    padding: 0!important;
    position: static!important;
    width: 99%!important;
  }
  

  #gj-halfmenu ul li{
    border: none!important;
    margin-right:0!important;
    padding-left:0!important;
    line-height: 28px!important;
    min-height: 28px!important;
    display:block!important;
    width:100%!important;
    text-align:left;
    border-top:1px solid #e5e5e5!important;
  }  
  #gj-halfmenu > ul > li:first-child  {
    border-top: none!important;  
  }
  #gj-halfmenu ul li a,
  #gj-halfmenu ul ul li a,
  #gj-halfmenu ul ul ul li a {    
    
    font-weight: normal!important;
    line-height: 28px!important;
    margin: 0!important;
    min-height: 28px!important;
    padding: 0!important;
  }  
  #gj-halfmenu ul li.current,
  #gj-halfmenu ul li:hover {
    background:none!important;
    color: #585656;
  }
  
  #gj-halfmenu ul li a{
    font-size: 13px;
    padding: 0 15px!important;
  }  
  #gj-halfmenu ul li li a{
    font-size: 12px;
    padding: 0 15px 0 30px!important;
  }
  #gj-halfmenu ul li li li a{
    font-size: 11px;
    padding: 0 15px 0 50px!important;
  }  
  #gj-halfmenu ul li li li li a {
    font-size: 10px;
    padding: 0 15px 0 70px!important;
  }
  #gj-halfmenu ul ul {
    background: #fff;
    border: none!important;
    box-shadow: none!important;
    position: static;
    width: 100%;
  }
  #gj-halfmenu ul ul:before,
  #gj-halfmenu ul ul ul:before{
    display: none;
  }
  #gj-halfmenu ul ul li:hover,
  #gj-halfmenu ul.submenu li.current,
  #gj-halfmenu ul.submenu li.active.parent {
    background:none!important;
  }

}
@media (min-width: 320px) and (max-width: 979px) {
  a.btn-navbar {margin-top:5px;}
  
  #gj-fullmenu ul {
  list-style-type: none;
  width:95%!important;
  margin:0 0 0 12px!important;
  position:relative;
  -webkit-border-radius: 0 0 6px 6px;
  border-radius: 0 0 6px 6px;
  border-bottom:9px solid #000!important; /* adds a nice border to the bottom of the submenus */  
  background-color:#fff;
  }
  #gj-fullmenu ul.submenu  {
    display: block!important;
    height: auto!important;
    margin: 0!important;
    overflow: visible!important;
    padding: 0!important;
    position: static!important;
    width: auto!important;
  }

  #gj-fullmenu ul li  {
    border: none!important;
    margin-right:0!important;
    padding-right:0!important;
    line-height: 28px!important;
    min-height: 28px!important;
    display:block!important;
    width:100%!important;
    text-align:left;
    border-top:1px solid #e5e5e5!important;
  }  
  #gj-fullmenu > ul > li:first-child  {
    border-top: none!important;  
  }
  #gj-fullmenu ul li a,
  #gj-fullmenu ul ul li a,
  #gj-fullmenu ul ul ul li a{    
    font-weight: normal!important;
    line-height: 28px!important;
    margin: 0!important;
    min-height: 28px!important;
    padding: 0!important;
  }
  #gj-fullmenu ul li.current,
  #gj-fullmenu ul li:hover  {
    background:none!important;
    color: #585656;
  }
  
  #gj-fullmenu ul li a  {
    font-size: 13px;
    padding: 0 15px!important;
  }
  #gj-fullmenu ul li li a{
    font-size: 12px;
    padding: 0 15px 0 30px!important;
  }
  #gj-fullmenu ul li li li a{
    font-size: 11px;
    padding: 0 15px 0 50px!important;
  }
  #gj-fullmenu ul li li li li a {
    font-size: 10px;
    padding: 0 15px 0 70px!important;
  }
  #gj-fullmenu ul ul {
    background: #fff;
    border: none!important;
    box-shadow: none!important;
    position: static;
    width: 100%;
  }
  #gj-fullmenu ul ul:before,
  #gj-fullmenu ul ul ul:before{
    display: none;
  }


}



/* Footer menu on very bottom */

#gj-footer ul.menu {
  margin:0 auto 0;
}
#gj-footer li {
  display:inline;  
  padding: 0 7px; 
  float:none; 
  background-image:none;
  font-size:11px;
}
#gj-footer li:first-child {
  padding-left:0;
}
#gj-footer li a {
  color:inherit;
  }
#gj-footer li a:hover {
  color:#fff;
  }