/* Stylesheet for NM */

div#top {
  background-image: url("logo.gif");
  background-repeat: no-repeat;
  padding-left: 140px;
  min-height: 70px;
}

.title {
  font-weight: bold;
  font-size: 2em;
}

nav li.home {
  float: right
}

footer {
  font-size: .75em;
}

/* Emphasized messages, often errors */
div.bmsg {
  font-weight: bold;
  clear: both;
}

/* Raw messages, generally alerts */
div.rmsg {
  font-weight: bold;
  color: red;
  clear: both;
  margin-top: 1em;
  margin-bottom: 1em;
}

/* Object display, table with no borders, left align */
table.odisplay, table.odisplay th, table.odisplay td {
  clear: both;
  text-align: left
}
/* Object display, table with no borders, right alighn headers,
   left align data */
table.udisplay, table.udisplay td {
  clear: both;
  text-align: left
}
table.udisplay th {
  clear: both;
  text-align: right
}

/* Generic data displayed in a table with borders */
table.gdata, table.gdata th, table.gdata td {
  clear: both;
  border: 1px solid black;
}

/* Generic data displayed in a table with borders all left aligned */
table.ldata, table.ldata th, table.ldata td {
  clear: both;
  border: 1px solid black;
  text-align: left
}

/* Generic data displayed in a table with borders all right aligned */
table.rdata, table.rdata th, table.rdata td {
  clear: both;
  border: 1px solid black;
  text-align: right
}

/* Layout table */
table.ltable, table.ltable th, table.ltable td {
  vertical-align: top
}

/* Style navigation */
nav {
  z-index:100;
  font-family:arial, sans-serif;
}
nav:before { /* Force line break before nav bar */
  content: "\A";
  white-space: pre;
}
nav:after { /* Force line break after nav bar */
  content: "\A";
  white-space: pre;
}
/* remove bullets, padding and margins */
nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
/* float the list to make it horizontal and relative positon */
nav li {
  float: left;
  position: relative;
  display: inline-block;
  width: 11em;
  background-image: linear-gradient(white, white, DarkGray);
  border: 1px solid black;
  border-radius: .5em;
  color: black;
  font-size: 65%;
  padding-left: .75em;
  margin-left: .25em;
  line-height: 2em;
  font-weight: bold;
}
/* nav links */
nav a, nav a:visited {
  text-decoration: none;
  display: block;
  color: black;
}
/* hide the sub levels and give them a positon absolute so that they take up no room */
nav ul ul {
  display: none;
  position: absolute;
}
/* second level menu */
nav ul ul li {
  font-size: 100%; /* prevent font shrinking on second level */
  background: lightgrey; /* Light grey until hovered */
  border: 1px solid white;
  z-index: 1;
}
/* Hover will change tha background to shadow on top */
nav li:hover  {
  background-image: linear-gradient(DarkGray, white, white);
  border: 1px solid black;
}
/* make the second level visible when hover on first level */
nav ul li:hover ul{
  display: block;
}

/* Tooltips */
/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #555;
  color: #fff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;

  /* Position the tooltip text */
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;

  /* Fade in tooltip */
  opacity: 0;
  transition: opacity 0.3s;
}

/* Tooltip arrow */
.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Hidden text (for screen readers) */
.hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
