/* CSS Document */
html, body {
    font-family: Arial, Helvetica, sans-serif;
}


/*
  .reponsive-nav ul { 
  	list-style: none;  
  }
 */ 
   #menu-icon {  
  	width: 32px;
  	height: 32px;
  	background: #fff url(../images/nav-icon.svg) center;  
  }
  
  .mainmenu, .submenu {
  list-style: none;
  padding: 0;
  margin: 0;
}
  
@media only screen and (min-width : 600px) {
  
  #menu-icon {  
  	display: hidden;  
  }


/* make ALL links (main and submenu) have padding and background color */
.mainmenu a {
  display: block;
  background-color: #CCC;
  text-decoration: none;
  padding: 10px;
  color: #000;
}

/* add hover behaviour */
.mainmenu a:hover {
    background-color: #C5C5C5;
}


/* when hovering over a .mainmenu item,
  display the submenu inside it.
  we're changing the submenu's max-height from 0 to 200px;
*/

.mainmenu li:hover .submenu {
  display: block;
  max-height: 600px;
}

/*
  we now overwrite the background-color for .submenu links only.
  CSS reads down the page, so code at the bottom will overwrite the code at the top.
*/

.submenu a {
  background-color: #999;
}

/* hover behaviour for links inside .submenu */
.submenu a:hover {
  background-color: #666;
}

/* this is the initial state of all submenus.
  we set it to max-height: 0, and hide the overflowed content.
*/
.submenu {
  overflow: hidden;
  max-height: 0;
  -webkit-transition: all 0.5s ease-out;
}
  
}

@media only screen and (max-width : 599px) {
  /* struct-banner-right and struct-banner-clear are set to display none, and struct-banner-left resized 
     to make space for the nav icon to be displayed.  responsive-nav is resized and floated here */

	#menu-icon {
		display:inline-block;
    position: relative;
  }
  
/* make ALL links (main and submenu) have padding and background color */
.mainmenu a {
  display: none;
  background-color: #CCC;
  text-decoration: none;
  padding: 10px;
  color: #000;
}

/* add hover behaviour */
.mainmenu a:hover {
    background-color: #C5C5C5;
}


/* when hovering over a .mainmenu item,
  display the submenu inside it.
  we're changing the submenu's max-height from 0 to 200px;
*/

.mainmenu li:hover .submenu {
  display: block;
  max-height: 200px;
}

/*
  we now overwrite the background-color for .submenu links only.
  CSS reads down the page, so code at the bottom will overwrite the code at the top.
*/

.submenu a {
  background-color: #999;
}

/* hover behaviour for links inside .submenu */
.submenu a:hover {
  background-color: #666;
}

/* this is the initial state of all submenus.
  we set it to max-height: 0, and hide the overflowed content.
*/
.submenu {
  overflow: hidden;
  max-height: 0;
  -webkit-transition: all 0.5s ease-out;
}

}  