﻿/* define a fixed width for the entire menu */
.navigation {
  width: 300px;
}

/* reset our lists to remove bullet points and padding */
.mainmenu, .submenu1, .submenu2 {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mainmenu li
{
  border-bottom:1px dotted #000000;
}

/* 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;
  font-size:15px;
}

/* add hover behaviour */
.mainmenu a:hover {
    background-color: #C5C5C5;
    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 .submenu1 {
  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.
*/

.submenu1 a {
  background-color: #999;
  color:#000;
  padding-left:20px;
}

/* hover behaviour for links inside .submenu */
.submenu1 a:hover {
  background-color: #666;
  color:#fff;
}

/* this is the initial state of all submenus.
  we set it to max-height: 0, and hide the overflowed content.
*/
.submenu1 {
  overflow: hidden;
  max-height: 0;
  color:#000;
  -webkit-transition: all 0.5s ease-out;
}

.submenu1 li:hover .submenu2 {
  display: block;
 /*max-height: 400px;*/
}

.submenu2 {
  overflow: hidden;
  max-height: 0;
  color : #fff;
  -webkit-transition: all 0.5s ease-out;
}

.submenu2 a {
  background-color: #555;
  color : #fff;
  padding-left:40px;
}

/* hover behaviour for links inside .submenu */
.submenu2 a:hover {
  background-color: #333;
}
