/************************************************************
 * Default style for elements 
 ************************************************************/

body {
  background-color: #e0d8b8;
  color: black;
  font-family: Verdana, Helvetica, Arial, sans-serif;
  font-size: 13px;
  margin: 0px; 
  padding: 0px;
}

/* anchor's: link, visited, focus, hover, active */

a {
  color: #203280;
  text-decoration: underline;
}

a:visited {
  color: #914020;
  text-decoration: underline;
}

a:focus {
  color: #c22c14;
  text-decoration: underline;
}

a:hover {
  color: black;
  text-decoration: none;
}

a:active {
  background-color: #304570;
  color: black;
  text-decoration: none;
}

h1, h2, h3 {
  font-family: "Lucida Grande", Verdana, Helvetica, Arial, sans-serif;
}

h1 {
  color: #555;
  font-size: 1.4em;
}

h2 {
  color: #555;
  font-size: 1.2em;
}

h3 {
  color: #555;
  font-size: 1.1em;
}

h4 {
  color: #555;
  font-size: 1.0em;
}

img {
  border: none;
}

/************************************************************
 * End default style for elements 
 ************************************************************/

/************************************************************
 * Layout style 
 ************************************************************/

/* outertop contains the background image with a shadow on left
 * and right.
 * using auto for left/right margins centers the div */

div#outertop {
  background: #e0d8b8 url(../images/shadowbackground.jpg) repeat-y;
  margin-left: auto;
  margin-right: auto;
  width: 780px;
}

/* inner contains the various content pieces such as header, content
 * footer, etc.
 * the 15px left/right margin match the 15px wide shadows */

div#inner {
  background-color: #fffced;
  margin: 0px 15px 0px 15px;
  padding: 0;
  width: 750px;
}

/* Header */

div#layout_header {
  background-color: #203250;
  border-bottom: 1px solid #fffced;
  padding: 10px 10px 3px 10px;
  /* IE has a bug with using absolute positioning (e.g. for the menu) within
   * a relatively positioned container. CSS Mastery p. 182 says to give
   * the relatively positioned container a width and height to force IE
   * to give it a layout */
  position: relative;
  width: 730px; /* 750 minus left/right padding */
  height: 117px; /* 130 minus top/bottom padding */
}

/* Menu */

div#layout_menu {
  background-color: #203250;
  position: absolute;
  right: 15px;
  text-align: right;
  bottom: 5px;
  width: 550px;
}

/* menu anchor's: link, focus, hover, active */

div#layout_menu a {
  color: white;
  font-size: 1.4em;
  padding-left: 5px;
  padding-right: 5px;
  text-decoration: none;
}

span.inactive_menu {
  color: #cb9326;
  font-size: 1.4em;
  padding-left: 5px;
  padding-right: 5px;
}

div#layout_menu a:hover {
  color: white;
  text-decoration: underline;
}

div#layout_header_separator {
  background-color: #cba44b;
  clear: left;
  height: 7px;
}

/* Content */

div#layout_content {
  background-color: #fffced;
  color: #333;
  font-size: 1.15em;
  line-height: 1.3;
  margin: 0;
  padding: 0;
}

/* Footer */

div#layout_footer {
  background-color: #203250;
  clear: left;
  color: #ddd;
  font-size: 0.90em;
  padding: 8px 0px 7px 0px;
  text-align: center;
}

/* outerbottom is simply for displaying the bottom portion of the
 * shadow */

div#outerbottom {
  background: #e0d8b8 url(../images/bottombackground.jpg) no-repeat;
  height: 15px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  width: 780px;
}

/************************************************************
 * End Layout Elements 
 ************************************************************/

div.info_page {
  padding: 5px 30px 5px 30px;;
}

.form_background {
  background-color: #f8f4dd;
  border: 1px outset gray;
}

/************************************************************
 * Home page
 ************************************************************/

div#home_page {
  margin: 0;
  padding: 0; 
}

div#home_page_image {
  float: left;
  height: 350px;
  margin: 0;
  padding: 0;
  width: 225px;
}

div#home_page_text {
  float: left;
  font-size: 0.95em;
  padding: 10px 5px 0 20px;
  width: 440px;
}

/************************************************************
 * End home page
 ************************************************************/

/************************************************************
 * About Us page 
 ************************************************************/

div.founder_name {
  float: left;
  padding: 10px 0px 0px 0px;
  width: 160px;
}

div.founder_name h3 {
  font-size: 1.1em;
  margin: 0px;
  padding: 0px;
}

div.founder_name h4 {
  font-size: 0.85em;
  font-style: italic;
  margin: 0px;
  padding: 0px;
}

div.founder_bio {
  float: left;
  font-size: 0.85em;
  margin: 5px 0px 10px 0px;
  padding: 10px 10px 0px 10px;
  width: 400px;
}

div.founder_bio p {
  margin: 0px 0px 10px 0px;
  padding: 0px;
}

/************************************************************
 * End About Us page 
 ************************************************************/

/************************************************************
 * Contact page
 ************************************************************/

div#contact_page {
  font-size: 0.8em;
  margin: 20px 10px 20px 15px;
  padding-bottom: 5px;
}

div#contact_address {
  float: left;
  width: 235px;
}

div#contact_address h2 {
  border-bottom: 1px solid #cba44b;
  font-size: 1.1em;
  margin-bottom: 3px;
  margin-right: 35px;
}

div#contact_form {
  float: left;
  padding: 10px;
  width: 420px;
}

span#fields_required {
  color: #999;
  font-style: italic;
}

/************************************************************
 * End contact page 
 ************************************************************/

/************************************************************
 * Form style 
 ************************************************************/

div.formdiv {
  border: 2px solid #c1d2dc;
  /*
  background-color: #d1e2ec;
  */
  padding: 3px;
}

div.formcaption {
  font-style: italic;
  margin: 4px 4px 6px 4px;
}

td.formlabel {
  text-align: right;
  vertical-align: top;
}

input.text_field {
  font-size: 0.8em;
  width: 15em;
}

/************************************************************
 * End form style 
 ************************************************************/

/************************************************************
 * Rails error style 
 ************************************************************/

#errorExplanation {
  width: 400px;
  border: 2px solid red;
  padding: 7px;
  padding-bottom: 12px;
  margin-left: 150px;
  margin-bottom: 20px;
  background-color: #f0f0f0;
}

#errorExplanation h2 {
  text-align: left;
  font-weight: bold;
  padding: 5px 5px 5px 15px;
  font-size: 0.9em;
  margin: -7px;
  background-color: #c00;
  color: #fff;
}

#errorExplanation p {
  color: #333;
  margin-bottom: 0;
  padding: 5px;
}

#errorExplanation ul li {
  font-size: 0.9em;
  list-style: square;
}

div.fieldWithErrors {
  padding: 2px;
  background-color: red;
  display: table;
}

/************************************************************
 * End Rails error style 
 ************************************************************/
