/* Style sheet for the top navigation bar of phagesdb.org */
/* Heavily derived from http://www.webdesignerwall.com/demo/css3-dropdown-menu/ */
#nav {
  width: 944px;
  margin: 0;
  padding: 7px 8px 0;
  line-height: 100%;
  font-size: 14px;
  background: #444444;
  /* for non-css3 browsers */
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#111111', endColorstr='#777777');
  /* for IE */
  background: -webkit-gradient(linear, left top, left bottom, from(#111111), to(#777777));
  /* for webkit browsers */
  background: -moz-linear-gradient(top, #111111, #777777);
  /* for firefox 3.6+ */
  border-top: solid 1px #dddddd;
  border-bottom: solid 1px #dddddd;
  position: relative; }

#nav li {
  margin: 0 5px;
  padding: 0 0 6px;
  float: left;
  position: relative;
  list-style: none;
  z-index: 1000; }

/* main level link */
#nav a {
  color: #eee;
  text-decoration: none;
  display: block;
  padding: 6px 14px 8px;
  margin: 0;
  border-radius: 0.5em;
  -webkit-border-radius: 0.5em;
  -moz-border-radius: 0.5em;
  text-shadow: 1px 2px 2px rgba(0, 0, 0, 0.6); }

/* main level link hover */
#nav .current a, #nav li:hover > a {
  background: #338833;
  /* for non-css3 browsers */
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#44b544', endColorstr='#225b22');
  /* for IE */
  background: -webkit-gradient(linear, left top, left bottom, from(#44b544), to(#225b22));
  /* for webkit browsers */
  background: -moz-linear-gradient(top, #44b544, #225b22);
  /* for firefox 3.6+ */
  color: #fff;
  -webkit-box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.4);
  -moz-box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.4);
  box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.4);
  text-shadow: 1px 2px 2px rgba(0, 0, 0, 0.4); }

/* sub levels link hover */
#nav ul li:hover a, #nav li:hover li a {
  background: none;
  border: none;
  color: #ddd;
  text-shadow: 1px 2px 1px rgba(0, 0, 0, 0.3); }

#nav ul a:hover {
  background: #338833 !important;
  /* for non-css3 browsers */
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#44b544', endColorstr='#225b22');
  /* for IE */
  background: -webkit-gradient(linear, left top, left bottom, from(#44b544), to(#225b22)) !important;
  /* for webkit browsers */
  background: -moz-linear-gradient(top, #44b544, #225b22) !important;
  /* for firefox 3.6+ */
  color: #fff !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); }

/* level 2 list */
#nav ul {
  background: #555555;
  /* for non-css3 browsers */
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#343434', endColorstr='#767676');
  /* for IE */
  background: -webkit-gradient(linear, left top, left bottom, from(#343434), to(#767676));
  /* for webkit browsers */
  background: -moz-linear-gradient(top, #343434, #767676);
  /* for firefox 3.6+ */
  font-size: 12px;
  display: none;
  margin: 0;
  padding: 0;
  width: 160px;
  position: absolute;
  top: 30px;
  left: 0;
  border: solid 1px #aaaaaa;
  -webkit-border-radius: 0.5em;
  -moz-border-radius: 0.5em;
  border-radius: 0.5em;
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }

/* dropdown */
#nav li:hover > ul {
  display: block; }

#nav ul li {
  float: none;
  margin: 0;
  padding: 0; }

/* clearfix */
#nav:after {
  content: ".";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0; }

/* Not sure what this thing's use was, but it was causing a whitespace hole below the nav bar.
Thus, it's now commented out.  Hopefully the nav bar still works everywhere.  --Dan

#nav {
	display: inline-block;
}
*/
html[xmlns] #nav {
  display: block; }

* html #nav {
  height: 1%; }
