/* ####################   Navigation bar CSS styling   ################## */ 

#sitenav {
  display:block;
  clear: both;
  float: left;
  top: 125px;
  width: 140px;
  padding: 0px;
  margin: 10px 0px 10px 10px;
  background-color: #ebe9f9;
  color: black;
}


a.menuitem {
    margin: 0; border: 0; padding: 0;
    line-height: 23px;
    display:block;
    border:0;
    padding: 5px 0px 5px 5px;
    color: black;
    font-family:Verdana, Arial, Geneva, Helvetica, sans-serif;
    text-align: left;
    font-size: 1em;
    font-weight:bold;
    text-decoration:none;
    border-bottom: #3a2c93 dotted 1px;
}

a.menuitem:hover {
  background-color: #3a2c93;
  color: white;
  border-bottom: white dotted 1px;
}

.selected {
    margin: 0; border: 0; padding: 0;
    line-height: 23px;
    display:block;
    border:0;
    padding:5px 0px 5px 5px;
    color: white;
    font-family:Verdana, Arial, Geneva, Helvetica, sans-serif;
    text-align: left;
    font-size: 1em;
    font-weight:bold;
    text-decoration:none;
    background: #3a2c93;
    border-bottom: white dotted 1px;
}


.submenu {
    position:absolute;
    z-index: 2;
    left: 200px;
    padding: 0; margin: 0; 
    width:220px; /* If adjust this, then adjust width of .submenu below a too */
    color: black;
    background-color:  #ebe9f9;
    border: 1px solid #e0f0de; /* box around entire sub-menu */
    font-family: Verdana, Arial, Geneva,  Helvetica, sans-serif;
    font-size: 12px;
}


/* position of each sub menu */
#home_submenu {  top: 140px; visibility: hidden;  }
#about_submenu {  top: 168px; visibility: hidden;  }
#activities_submenu {  top: 201px; visibility: hidden; }
#events_submenu {  top: 234px; visibility: hidden; }
#map_submenu {  top: 267px; visibility: hidden; }
#contacts_submenu { top: 272px; visibility: hidden; }
/* Note, each submenu is hidden when the page loads - then made visible when
    the mouse goes over the menu title. Using the 'visibility' property instead
    of using the 'display' property avoided a bug in some versions of Safari. 
    (The bug is pretty where esoteric: The browser ignored the 'hover' property 
    on 'li' objects inside an object whose display property was set to 'none' 
    when the page loaded...) Using the 'visibility' property instead of 'display'
    would normaly take up extra room on the page, but that's avoided here by putting
    the submenu on a second layer: see 'position: absolute' and 'z-index: 2'
    in .submenu definition, higher up this page. */

.submenu a
{
  display: block;
  color: black;
  background-color: #ebe9f9;
  width: 200px; /* This should be width of .submenu above minus right-side padding on next line */
  padding: 5px 0px 4px 20px;
  text-decoration: none;
  border-bottom: #3a2c93 dotted 1px; 
  border-top: 0; border-left: 0; border-right: 0;
}


ul { position: relative; display: block; }
li { position: relative; display: block; }

.submenubox { 
  margin: 0; padding: 0; border: 0;
}
.submenubox ul
{
  margin: 0; padding: 0; border: 0;
  list-style-type: none;
}

.submenubox ul li { 
  margin: 0; padding: 0; border: 0;
}

.submenubox ul li a:link { }
.submenubox ul li a:visited { }
.submenubox ul li a:hover
{
  color: white; /* text color for submenu items */
  background-color: #3a2c93;
  border-bottom: black dotted 1px; 
}

.submenubox ul li a:hover
{
    font-weight: bold;
}

/* old */

.bb a { color: #ffffcf; }
.bb:hover a {
    color: #000000;
    background-color: #dddddd;
}

