/* Common
-----------------------------------------------------------------------------*/

/* Remove padding and margin */
* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #fff;
  color: #444;
}

/* Remove border around linked images */
img { border: 0; }

li { margin-left:1em; }

hr {
  padding: 0;
  margin: 10px 0;
  border: 0;
  background-color: #eee;
  height: 1px; 
}

/* Class for clearing floats */
.clear { clear: both; }

.logo {
  margin-top: 3em;
  margin-bottom: 2em;
}



/* Typography
-----------------------------------------------------------------------------*/

body { font: 75% Verdana, sans-serif; }



/* Headings
-----------------------------------------------------------------------------*/

h1 {
  font: italic normal bold 1.8em Georgia, Arial, sans-serif;
  margin-bottom: 10px;
}

h2 {
  font: italic normal bold 1.55em Georgia, Arial, sans-serif;
  text-decoration: underline;
  margin-bottom: 10px;
}

h3 {
  font: italic normal bold 1.2em Georgia, Arial, sans-serif;
  margin-bottom: 5px;
}

h4 {
  font: normal bold 1.2em Georgia, Arial, sans-serif;
  margin-bottom: 5px;
}

h5 { font-size:0.8em; }



/* Links
-----------------------------------------------------------------------------*/

a { color: #49a807; }

a:hover, * a:hover { color: #231F20; }

a.toggle {
  text-decoration: none;
  font: normal bold 1.2em Georgia, Arial, sans-serif;
  margin-bottom: 5px;
  cursor: pointer;
  color: #444;
}

a.toggle:hover {
  cursor: pointer;
  color: #49a807;
}



/* Layout
-----------------------------------------------------------------------------*/

html {height: 100%; } /* needed for #page min-height */ 

body {
  height: 100%; /* needed for #page min-height */
}

#page {
  width: 910px;
  padding: 0 3.5em;
  position: relative; /* needed for footer positioning */
  height: auto !important; /* real browsers */
  height: 100%; /* IE6: treated as min-height */
  min-height: 100%; /* real browsers */
}

#header, #content, #footer { width: 760px; }

#content { padding-bottom: 5em; } /* bottom padding for footer */

div#footer {
  position: absolute;
  bottom: 0; /* stick to bottom */
  text-align: center;
  clear: both;
  padding-bottom: 1em;
}



/* Main Nav
-----------------------------------------------------------------------------*/

div.menu { text-align: left; }

a.menu {
  text-decoration: none;
  color: #444;
  margin: 0;
  margin-right: 1em;
  font-family: Georgia, Arial, serif;
  font-size: 1.3em;
}

a.menu.here { color: #0066CC; }

a.menu:hover { color: #FF4E00; }



/* Sub Nav
-----------------------------------------------------------------------------*/

a.submenu {
  text-decoration: none;
  color: #444;
  font-family: Georgia, Arial, serif;
  font-size: 1.1em;
  margin-right: 1em;
}

a.submenu.here { color: #0066CC; }

a.submenu:hover { color: #FF4E00; }

div.submenu {
  font-family: Georgia, Arial, serif;
  background-color: #eee;
  width: auto;
  text-align: left;
  padding: 0.2em;
  padding-left: 0.4em;
  margin-top: 0.3em
}



/* Main Content
-----------------------------------------------------------------------------*/

#main { text-align: left; }



/* Errors
-----------------------------------------------------------------------------*/

div.errorExplanation {
  width: 80%;
  border: 5px solid #c00000;
  margin: 0 auto 25px auto;
  padding: 20px;
  background-color: #ffcccc;
}

div.errorExplanation h2 {
  text-align: center;
  display: none;
}

div.errorExplanation p {
  padding-bottom: 1em;
}

div.errorExplanation li {
  margin-left: 2em;
  font-weight: bold;
}

.fieldWithErrors input, .fieldWithErrors select { 
  border: solid 1px #cc0000;
  background-color: #ffcccc;
}



/* Notices
-----------------------------------------------------------------------------*/

div.notice {
  text-align: center;
  width: 40%;
  border: 5px solid #49a807;
  margin: 25px auto;
  padding: 20px;
  font-weight: bold;
  background-color: #eeffee;
}



/* Forms
-----------------------------------------------------------------------------*/

form {
  margin: 0;
  padding: 0;
}

/* Removes fieldset borders, even on Opera 7 */
fieldset { border: 1px solid transparent; }

label, .form-footer div {
  float: left;
  display: block;
  text-align: right;
  height: 1.4em;
  width: 18em;
  margin: 0 10px 0 0;
  padding: 4px 0 0 5px;
}

.input-text, select {
  font-size: 1.1em;
  line-height: 1.4em;
  width: 250px;
  padding: 4px 0 2px 5px;
  background: #f4f4f4;
  border: 1px solid #c7c7c7;
}

.input-text { height: 1.3em; }

.form-pair {
  clear: both;
  margin: 5px 0;
}

.form-footer {
  clear: both;
  padding-top: 1em;
}

.form-footer div {
  text-align: left;
  width: 18em;
}

.required { 
  font-size: 0.75em;
  color: #c00000;
}

.form-pair input:focus, .form-pair select:focus { background: #ffc; }

  


/* Tables
-----------------------------------------------------------------------------*/

/* tables still need 'cellspacing="0"' in the markup */
table { 
  border-spacing: 0;
  border-collapse: collapse;
  font-size: 1em;
}

td {
  text-align: left;
  font-weight: normal;
}



/* Boxed Text
-----------------------------------------------------------------------------*/

div.box {
  border: 1px solid #ccc;
  padding: 1em;
  background: #f9f9f9;
  font-size: 0.9em;
}



/* Developer Notes
-----------------------------------------------------------------------------*/

.dev { width: 50%; margin: 1em auto; font-size: 90%; }
.dev .label { padding: 0.25em 0.5em; font-weight: bold; }
.dev .content { margin: 1em; }
.dev .content p { margin: 1em; }

.note { border: solid 1px #7099C5; background-color: #f0f0ff; }
.note .label { background-color: #7099C5; color: #ffffff; }

.warning { border: solid 1px #D00000; background-color: #fff0f0; }
.warning .label { background-color: #D00000; color: #ffffff; }

.fixme { border: solid 1px #C6C600; background-color: #FAF9C3; }
.fixme .label { background-color: #C6C600; color: #ffffff; }



/* Maths block on the home page
-----------------------------------------------------------------------------*/

font.maths {
  font: italic bold normal 11px Georgia, Arial, sans-serif;
  margin-bottom: 0px;
  color: #49a807;
  font-weight: bold;
}

font.maths.noit {
  font: normal bold 11px Georgia, Arial, sans-serif;
  margin-bottom: 0px;
  color: #49a807;
  font-weight: bold;
}

font.maths.noit.nobold {
  font: normal 11px Georgia, Arial, sans-serif;
  margin-bottom: 0px;
  color:#49a807;
}



/* Home page (non-standard layout: #sidebar spans #header & #content)
-----------------------------------------------------------------------------*/

#content-cell { vertical-align: top; }

#sidebar-cell { padding-left: 4em; position:absolute; top:0; right:0; }

#home #header,
#home #content,
#home #footer { width: 630px; }

#home #footer {
  clear: none;
}

#home #page { padding-right: 1em; }

/* be attentive here since we are overriding div.box for this page */
#home div.box {
  border: 1px solid #ddd;
  padding: 10px;
}

#home #sidebar {
  margin-top: 1em;
  padding-top: 1em;
  padding-bottom: 2px;
  font-size: 10px; 
  background: #f9f9f9;
  border: 1px solid #ddd;
  width: 253px;
}

#home #sidebar table tr td { padding-top: 5px; }



/* Mathematics page 
-----------------------------------------------------------------------------*/

#mathematics #header,
#mathematics #content,
#mathematics #footer { width: 910px; }

#mathematics #main { 
  background-image: url('/images/blackboard.jpg');
  background-repeat: no-repeat;
  width: 900px;
  height: 674px;
  color: white;
}

/* be attentive here since we are overriding div.box for this page */
#mathematics div.box {
  width: 100%;
  background-color: #eee;
  border: 1px solid #ddd;
  padding: 10px;
  color: black;
}

#mathematics #blackboard {
  padding: 60px 95px 60px 92px;
  text-align: left;
}



/* Jobs page 
-----------------------------------------------------------------------------*/

#jobs ul { padding-left: 1em; }

#jobs li { padding-bottom: 1em; }



/* Job Description (not be confused with the 'jobs' page)
-----------------------------------------------------------------------------*/

#job ul { padding-left: 1em; }

#job li { padding-bottom: 0.4em; }



/* Volunteer form page
-----------------------------------------------------------------------------*/

#volunteer #header,
#volunteer #content,
#volunteer #footer { width: 910px; }

#volunteer #main {
  float: left;
  position: relative;
  width: 60%;
}

#volunteer #sidebar {
  float: right;
  position: relative;
  width: 35%;
}

#volunteer h2 { text-decoration: none; }

#volunteer fieldset {
  margin: 1em 0;
  padding: 1em;
  border: 1px solid #ccc;
  background: #eee;
}

#volunteer .form-instruct a {
  padding-left: 19.5em;
  line-height: 1.4em;
}

#volunteer .form-footer input { width: 250px; }

/* Get Online Billing page
-----------------------------------------------------------------------------*/

#get-online #content td {
  padding: 0.5em 1em;
  padding-bottom: 2em;
}

#get-online #content td.mobile-logo {
  width: 12%;
  text-align: center;
  vertical-align: top;
  padding-top: 1em;
  padding-left: 1.5em;
}

/* Privacy page
-----------------------------------------------------------------------------*/

#privacy blockquote { padding-left: 2em ;}