/* General
-------------------------------------------------------*/

body {
  background: url("../images/back.gif") 0 0 fixed;
  font-family: Verdana, Arial, Sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
  font-size: 11px;
}

p {
  line-height: 1.7em;
  text-align: justify;
  margin-bottom: 16px;
}

a:link,
a:visited {
  text-decoration: none;
  color: #570bc0;
}

a:active,
a:hover {
  border-bottom: 1px solid #3b866b;
}

a img {
  border: none;
}

h1,
h2,
h3 {
  padding: 4px 0;
  margin: 4px 0;
}

h1 {
  color: #3d055a;
  font-family: Tahoma, Verdana, Sans-serif;
  border-bottom: solid 1px #B8E600;
  font-weight: normal;
  font-size: 1.7em;
  letter-spacing: 0.08em;
  clear: both;
}

h2 {
  color: #045439;
  font-weight: normal;
  font-size: 1.5em;
  border-bottom: 1px dotted #d6f1e8;
}

h3 {
  color: #147794;
  font-weight: normal;
  font-size: 1.4em;
}

.print_only {
  display: none;
}

/* Layout
-------------------------------------------------------*/

#wrapper {
  background: url("../images/back_top.gif") 0 0 repeat-x fixed;
  text-align: center;
  width: 100%;
}

#main {
  width: 800px;
  padding: 20px 0;
  margin: 0 auto;
}

#footer,
#sub_nav,
#top_nav {
  margin-bottom: 1px;
  text-align: left;
  padding: 4px 16px;
  color: #790;
}

#top_nav {
  background: #CF0;
  font-size: 1.4em;
}

#footer,
#sub_nav {
  background: #E2FF70;
  font-size: 1.2em;
  padding: 5px 16px;
}

#top_nav a:link,
#top_nav a:visited {
  color: #360;
}

#top_nav a:hover,
#top_nav a:active {
  color: #000;
}

#sub_nav a:link,
#sub_nav a:visited {
  color: #360;
}

#top_nav a:hover,
#top_nav a:active,
#sub_nav a:hover,
#sub_nav a:active {
  color: #000;
  border-bottom: 5px solid #3b866b
}

#header {
  background: white url("../images/header1.jpg") no-repeat right top;
  height: 69px;
  text-align: left;
  padding: 0 12px; 
  margin-bottom: 3px;
}

#header h1 {
  margin: 0;
  padding: 51px 0 0 0;
  overflow: hidden;
  background: no-repeat url("../images/logo.gif") 0 20px;
  border: none;
  height: 0;
}

#page {
  background: white top repeat-x url("../images/content_bg.gif");
  padding-top: 10px;
  text-align: left;
}

#content {
  padding-left: 16px;
  float: left;
  padding-top: 12px;

}

#content a:active,
#content a:hover {
  color: #7009fd;
}

#side {
  float: right;
  background: #f3f8f4 url("../images/side_back.gif") top repeat-x;
  padding: 16px;
  color: #4d6b6c;
  border-top: white solid 1px;
}

#footer {
  font-size: 0.8em;
  border-top: 1px solid #164579;
  padding: 4px 16px;
  clear: both;
}

#footer a:link,
#footer a:visited {
  color: #389015;
}

/* One COlumn
-------------------------------------------------------*/

.one_column #content {
  width: 708px;
  float: none;
}

.one_column #side {
  display: none;
}

/* Two Colums
-------------------------------------------------------*/

.two_column #content {
  width: 460px;
}

.two_column #side {
  width: 216px;
}

/* Side Menu
-------------------------------------------------------*/

.menu  {
  margin: 0 -16px;
  padding: 0;
  list-style: none;
  border-top: 1px solid white;
  display: block;
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}

.menu li {
  margin: 0;
  padding: 0;
  border: none;
  display: block;
}

.menu li a:link,
.menu li a:visited {
  display: block;
  padding : 8px 16px;
  margin: 0;
  color: #080;
  font-weight: bold;
  background: #D5ECF1;
  border-bottom: 1px white solid ! important;
  letter-spacing: 0.12em;
  font-size: 1.2em;
}

* html .menu a,
* html .menu li {
  height: 1px; /* Holly Hack stops random padding. Seems to be OK in IE7 as well */
}

.menu li li a:link,
.menu li li a:visited {
  background: #EFF5F6;
  color: #040;
  font-weight: normal;
  letter-spacing: 0.04em;
  font-size: 1em;
}

.menu a:link, 
.menu a:visited, 
.menu a:hover {
  text-decoration:none ! important;
}

.menu li li a:hover {
  background-color: #E2FF70 !important;
}

/* Extras
-------------------------------------------------------*/

.side_decor {
  margin: 12px 16px 12px 0;
  float: left;
}

/* Column clearing
-------------------------------------------------------*/

#page:after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

#page {
  display: table; /* Was inline-table in original tutorial, changed due validation error */
}

/* Hides from IE-mac \*/
html #page {
  height: 1%;
}

#page {
  display: block;
}
/* End hide from IE-mac */