﻿
/*  vnavsub.css */
/* vertical menu with vertical drop down sub menu */
.vnvs {
  margin-bottom: 15px;
  margin-top:15px;
}

/* reset our lists to remove bullet points and padding */
.mainmenu, .submenu {
  list-style: none;
  padding: 15px;
  margin-top:10px;/*moves down page */
  color:#fff;/* white */
  width:100%;
}

/* make ALL links (main and submenu) have padding and background color */
.mainmenu a {
	display: block;
	background-color: #004de6;/*menu item med blue */;
	text-decoration: none;
	padding: 6px;/* for all menu items*/;
	color: #fff;/*white text in menu*/;
	margin-right:5px;
}

/* add hover behaviour */
.mainmenu a:hover {
    background-color:#6699ff;/* hover color med blue*/
    color:blue;
}

/* when hovering over a .mainmenu item,
  display the submenu inside it.
  we're changing the submenu's max-height from 0 to 300px;
*/
.mainmenu li:hover .submenu {
  display: block;
  max-height: 350px;
}

.mainmenu li {
	margin-left:0px;/* moves block to right*/
	padding-left:10px;/*moves text to right*/
	padding-top:5px;
}

ul.mainmenu li {
	background-color:#003399;/* the whole menu -dark blue */
}
/*  CSS reads down the page, so code at the bottom will overwrite the code at the top.
*/.submenu li {
	padding-left:20px;/* moves sub menu item to the right */
}
/*
  we now overwrite the background-color for .submenu links only.*/
.submenu a {
  background-color: #004de6;/* med blue*/
}

/* hover behaviour for links inside .submenu */
.submenu a:hover {
  background-color: #6699ff;
}

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

