/* define a fixed width for the entire menu */
.navigation {
	width: 100%;
	float: left;
}

/* reset our lists to remove bullet points and padding */
.mainmenu, .submenu {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* make ALL links (main and submenu) have padding and background color */
.mainmenu a {
	border-radius: 5px;
	border: 1px solid #FFF;
	color: #FFF;
	font-size: 18px;
	display: block;
	padding-left: 70px;
	background-image: url(../img/small1.png);
	background-repeat: no-repeat;
	display: block;
	background-color: #036;
	text-decoration: none;
	color: #FFF;
	margin: 10px;
	padding-top: 10px;
	padding-right: 10px;
	padding-bottom: 10px;
	background-position: 10px 10px;
}

/* add hover behaviour */
.mainmenu a:hover {
	background-color: #C5C5C5;
	background-image: url(../img/small1_on.png);
	transition: 1s;
	color: #000;
}


/* 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: 400px;
}

/*
  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: #F5F5F5;
	padding-left: 70px;
	background-image: none;
	color: #000;
	font-size: 14px;
}

/* hover behaviour for links inside .submenu */
.submenu a:hover {
	background-color: #333;
	color: #FFF;
	background-image: none;
}

/* 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 1.5s ease-out;
}
