/* import the 960 grid styles */
@import url('grid.css');


/* document style */
html
{
  background-color: #eee;
  color: #000;
}



/* body style */
body
{
  font-family: 'Helvetica Neue', Helvetica, Verdana, sans-serif;
  font-size: 0.8em;
  font-weight: 200;
  margin: 0 auto;
  padding: 0;
}



/*********
 * links *
 *********/
a,
a:link,
a:visited
{
  color: #06f;
  text-decoration: none;
}

a:hover,
a:active
{
  text-decoration: underline;
}


/* special button links */
a.button
{
  background: url('../images/buttonbg-left.png') no-repeat top left;
  background-color: transparent;
  color: #fff;
  font-weight: 400;
  float: left;
  line-height: 23px;
  padding: 0 0 0 12px;
  position: relative;
  text-decoration: none;
  text-shadow: #03c 0 0px 1px;
}

a.button span
{
  background: url('../images/buttonbg-right.png') no-repeat top right;
  background-color: transparent;
  float: left;
  height: 24px;
  padding-right: 12px;
}

/* special button when pressed */
a.button:active
{
  background-image: url('../images/buttonbg-down-left.png');
}

a.button:active span
{
  background-image: url('../images/buttonbg-down-right.png');
}

a.button + a.button
{
  margin-left: 10px;
}



/***********
 * headers *
 ***********/
h1, h2, h3, h4
{
  font-family: 'Helvetica Neue', Helvetica, Verdana, sans-serif;
  margin: 0;
}

h1
{
  font-size: 3em;
  font-weight: 100;
}

h2
{
  font-size: 2em;
  font-weight: 100;
}

h3
{
  font-size: 1.5em;
  font-weight: 200;
}

h4
{
  font-size: 1.1em;
  font-weight: 200;
}

* + h1,
* + h2,
* + h3,
* + h4
{
  margin-top: 1em;
}



/********
 * text *
 ********/
p
{
  font-size: 1em;
  margin: 0;
}

p:after
{
  clear: both;
  content: "";
  display: block;
}

* + p
{
  margin-top: 1em;
}

b, strong
{
  color: #333;
  font-family: 'Helvetica Neue', Helvetica, Verdana, sans-serif;
  font-size: 1em;
  font-weight: bold;
}

i, em
{
  font-family: 'Helvetica Neue', Helvetica, Verdana, sans-serif;
  font-size: 1em;
  font-style: italic;
}

small
{
  font-size: 0.8em;
}

/* computer code */
code
{
  background-color: #ddd;
  color: #000;
  font-family: Monaco, monospace;
  font-size: 1em;
  padding: 2px 3px;
}

pre
{
  background-color: #fff;
  border: 1px dashed #ccc;
  display: block;
  font-family: Monaco, monospace;
  font-size: 1em;
  margin: 10px 0;
  padding: 10px;
  white-space: pre;
}

pre code
{
  background-color: transparent;
  padding: 0;
}

/* highlighted text */
mark
{
  background-color: #ff9;
  padding: 1px;
}

/* text that has a title attribute, i.e. a tooltip */
.tooltip
{
  background-color: #ffc;
  border-bottom: 1px dashed #999;
  color: #000;
  cursor: help; /* the question mark cursor */
}

/* incorrect text */
del,
.wrong
{
  text-decoration: line-through;
}

/* last updated timestamp */
.updated
{
  color: #999;
}

/* footnote */
.footnote
{
  color: #999;
  font-style: italic;
}



/*********
 * lists *
 *********/

/* standard lists */
ul, ol
{
  margin: 10px 0;
  padding: 0 0 0 20px;
}

/* nested lists */
ul ul,
ol ol,
ul ol,
ol ul
{
  margin-top: 0;
}

/* special case for list inside a grid list */
ul.grid ul
{
  margin-top: 10px;
}

/* unordered list item */
ul li
{
  list-style: square outside; /* yay for squares! */
}

ul.checklist li
{
  list-style: square url('../images/check.gif') outside;
}

/* spacious lists */
ul.spacious li,
ol.spacious li
{
  margin-bottom: 10px;
}

ul.spacious ul li,
ul.spacious ol li,
ol.spacious ol li,
ol.spacious ul li
{
  margin-bottom: 0;
}

/* ordered list item */
ol li
{
  list-style: decimal-leading-zero inside;
}

/* list of code downloads */
ul.code
{
  margin: 10px 0;
  padding: 0;
}

ul.code li
{
  list-style: none;
}

ul.code li:before
{
  content: "» ";
}



/**********
 * Images *
 **********/
img
{
  border: none;
}



/************
 * Sections *
 ************/
/* major section wrapper */
.wrapper
{
  margin: 0 auto;
  position: relative;
  width: 960px;
}

.wrapper:after
{
  clear: both;
  content: "";
  display: block;
}



/* header */
#header
{
  background: url('../images/headerbg.png') repeat-x top;
  background-color: #06f;
  color: #fff;
  font-family: 'Helvetica Neue', Helvetica, Verdana, sans-serif;
  font-size: 1em;
  height: 51px; /* 51px + 49px padding = 100px header */
  padding: 49px 0 0 0;
}

#header .wrapper
{
  width: 940px;
}

#header:after
{
  clear: both;
  content: "";
  display: block;
}

#logo
{
  float: right;
  font-size: 0;
}



/* content */
#content
{
  background-color: #fff;
  padding: 10px 0 30px 0;
}

/* this keeps everything inside the #content */
#content:after
{
  clear: both;
  content: "";
  display: block;
}

/* optional sections within content */
.section:after
{
  clear: both;
  content: "";
  display: block;
}

.section + .section
{
  padding-top: 100px;
}



/* footer section */
#footer
{
  background: url('../images/footerbg.png') repeat-x top left;
  background-color: #eee;
  color: #666;
  font-size: 0.85em;
  margin: 0;
  padding: 20px 0;
  text-align: center;
  text-shadow: #ddd 0 1px 0;
  width: 100%;
}



/* hide preloaded images */
div#preload
{
  display: none;
}



/**************
 * navigation *
 **************/

/* basic style for the div */
nav,
#nav
{
  bottom: 5px;
  color: #aaa;
  font-size: 1.5em;
  font-weight: 200;
  left: 0;
  margin: 0;
  padding: 10px 0 0 0;
  position: absolute;
}

/* list style */
nav ul,
#nav ul
{
  margin: 0;
  padding: 0;
}

/* list item style
   inline items for the navigation */
nav li,
#nav li
{
  display: inline;
  list-style: none;
  padding-right: 10px;
}

/* special nav link styles */
nav a,
#nav a
{
  background-color: transparent;
  color: #fff;
  text-decoration: none;
  text-shadow: #03c 0 -1px 0;
}

nav a:link,
nav a:visited,
#nav a:link,
#nav a:visited
{
  border: none;
}

nav a:hover,
nav a:active,
#nav a:hover,
#nav a:active
{
  border-bottom: 1px solid #fff;
}



/* image overlay with link */
div.overlay
{
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

div.overlay a,
div.overlay span
{
  background-color: rgb(0, 0, 0);
  background-color: rgba(51, 51, 51, 0.7); /* #333 */
  color: #fff;
  font-size: 2em;
  font-weight: 100;
  height: 100%;
  left: 0;
  margin-top: 0;
  padding: 20px 0 0 0;
  position: absolute;
  text-align: center;
  text-decoration: none;
  top: 0;
  visibility: hidden;
  width: 100%;
}

div.overlay:hover a,
div.overlay:hover span
{
  cursor: pointer;
  visibility: visible;
}
