body {
  background-color: #ffc;
  color:            black;
  padding-bottom:   3ex;  /* must match the footer height below */
}

.hide {
  display: none;
}

#masthead {
  background-color: #c1cdcd;
  font-size: 12px;
  height: 80px;
  margin: 0;
  min-width: 50em;
  padding: 0;
  position: relative;
  top: -1em;  /* Remove space at the top of the page, except    */
  *top: 0;    /* for IE (which doesn't insert any extra space). */
  width: 100%;
  z-index: 1;
}

#masthead #logo {
  background-color: #ffc;
  padding: 8px;
  position: absolute;
  z-index: 100;
}

#masthead #text {
  color: #373;
  float: left;
  font: bold 36px "Zapf Chancery", "Apple Chancery", "Brush Script MT", Georgia, "Times New Roman", Times, sans-serif;
  left: 180px;
  letter-spacing: 0.1ex;
  position: absolute;
  top: 8px;
}

#navigation {
  height: 60px;
  left: 0;
  list-style: none;
  margin-left: 0;
  padding-left: 0;
  position: relative;
  top: 70px;
  width: 100%;
}
#navigation a {
  text-decoration: none;
}
#navigation li { /* float the main list items */
  display: block;
  float: left;
  margin: 0;
  padding-left: 12px;
}
#navigation li:first-child, #navigation li.firstlink {
  padding-left: 138px;
}
#navigation li ul {
  display: none;
  margin: 0;
  padding: 0;
}
#navigation li.off ul, #navigation li.on ul { /* place the sub-navigation below */
  background-color: #06c;
  height: 25px;
  left: 0;
  /*margin-left: 126px;*/
  padding-top: 5px;
  position: absolute;
  top: 20px;
  width: 100%;  /* IE doesn't handle this width correctly, fix via JS */
}
#navigation li.on ul {
  background-color: #903;
}
#navigation li.on:hover ul, #navigation li.over ul {
  background-color: #06c;
}
#navigation li a {
  background-color: #f0f0f0;
  color: #06c;
  display: block;
  font: bold 12px sans-serif;
  padding: 4px 6px;
  *padding: 2px 6px 6px;  /* adjust for IE */
  width: auto;
  /* use rounded borders where possible */
  -moz-border-radius-topright: 0.5em;
  -moz-border-radius-topleft:  0.5em;
  -webkit-border-top-right-radius: 0.5em;
  -webkit-border-top-left-radius:  0.5em;
}
#navigation li.on a {
  color: #f0f0f0;
  background-color: #903;
}
#navigation li.on ul a, #navigation li.off ul a {
  border: 0;
  color: #f0f0f0;
  float: left; /* IE doesn't inherit the float */
  width: auto;
}
#navigation li.on:hover ul a, #navigation li.over ul li a {
  background-color: #06c;
}
#navigation li.on ul {
  display: block;
}
#navigation li.off:hover ul, #navigation li.over ul {
  display: block;
  z-index: 10;
}
#navigation li.off a:hover, #navigation li.on a:hover {
  background-color: #06c;
  color: #f0f0f0;
}
#navigation li.off ul a, #navigation li.on ul a { /* sub-navigation formatting */
  background-color: #06c;
  color: #f0f0f0;
  display: block;
  font: bold 12px sans-serif;
}
#navigation li.off ul li a:hover, #navigation li.on ul li a:hover {
  background-color: #06c;
  color: #903;
}
#navigation li.on ul a {
  background-color: #903;
}

#content {
  /*margin-top: 1em;*/
  padding: 0 1em 2ex 1em;
}

#footer {
  background-color: #06c;
  bottom: 0;
  color: #f0f0f0;
  font: normal 12px sans-serif;
  left: 0;
  height: 3ex;
  position: relative;
  width: 100%;
  z-index: 100;
}
html > body #footer {
  position: fixed;
}

#copyright {
  float: left;
  margin: 0.5ex 1em;
  text-align: left;
}

#footlinks {
  float: right;
  list-style: none;
  margin: 0.5ex 0.5em;
}
#footlinks li {
  display: inline;
  /*border-left: 1px solid #f0f0f0;
  border-right: 1px solid #f0f0f0;*/
  padding: 0 0.5em;
}
#footlinks li.firstlink {
  border-left: none;
}
#footlinks li.lastlink {
  border-right: none;
}
#footlinks a {
  color: #f0f0f0;
}
