/*
 * Main stylesheet for Chester Great Outdoors Club Website printing.
 */

/*
 * Body defaults.
 */

body {
  margin: 0;
  border: 0;
  padding: 0;

  background-color: #FFF;
  color: #484848;

  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-size: 8pt;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;

  line-height: normal;
  letter-spacing: normal;
}

/*
 * Main div (top-level container), header and footer.
 */

div.main {
  /* Center this block. */
  margin-left: auto;
  margin-right: auto;

  border-left: 3pt solid #61878A;
  border-right: 3pt solid #61878A;
  border-top: 3pt solid #61878A;
  border-bottom: 0;

  width: 95%;
}

div.header {
  padding-top: 0.6em;
  margin-bottom: 0.75em;
}

div.headerbig {
  padding-top: 0.75em;
  margin-bottom: 0.75em;
}

div.header img {
  /* Scale image to fit the containing block. */
  width: 100%;
  height: auto;
}

div.footer {
  /*
   * Set position for positioning of sub elements but leave footer positioned
   * according to normal flow.
   */
  position: relative;
  margin-top: 1em;
  width: 100%;
}

div.footer img {
  /* Scale image to fit the containing block. */
  width: 100%;
  /* Explicitly setting height=auto confuses IE6 */
}

div.footer div.links {
  position: absolute;
  top: 60%;
  right: 1.5%;

  color: #FFF;

  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-size: 6pt;
  font-style: normal;
  font-variant: normal;
  font-weight: bold;
}

div.footer div.links a {
  color: #FFF;
}

div.footnote {
  text-align: center;
}

/*
 * Table for left side menu bar and page content.
 * Page content includes right side link boxes.
 */

table.maincontent {
  width: 100%;
  table-layout: fixed;
}

td.leftside {
  width: 20%;
}

div.pagecontent {
  /*
   * Set margin on div.pagecontent instead of padding on td.pagecontent
   * to avoid IE bugs / confusion between padding width and content width
   * when setting width=100% on child elements.
   */
  margin-left: 1.25em;
  margin-right: 1.25em;
  width: auto;
}

/*
 * Left side menu.
 */

table.leftmenu {
  border: 1pt solid #61878A;
  width: 100%;
  table-layout: fixed;
  font-weight: bold;
}

td.leftmenubutton {
  border: 1pt solid #61878A;
  width: 1.6em;
  vertical-align: middle;
}

td.leftmenubutton img {
  width: 1.6em;
  height: 1.6em;
}

td.leftmenutext {
  border: 1pt solid #61878A;
  padding-left: 0.5em;
  width: auto;
  vertical-align: middle;
}

table.leftmenu tr.active a {
  color: #3F994C;
}

table.leftmenu tr.submenu td.leftmenubutton img {
  visibility: hidden;
}

/*
 * Home page
 * (including slide show, slide show caption,
 *      page text and right side menu bar).
 */

table.pagecontent {
  width: 100%;
  table-layout: fixed;
}

td.slide {
  border: 1pt solid #61878A;
  width: 75%;
  height: auto;
}

td.slide img {
  /* Scale image to fit the containing block. */
  width: 100%;
  height: auto;
}

td.slidecaption {
  border: 1pt solid #61878A;
  width: auto;

  /*
   * Use a white background and dark foreground color when printing.
   * Most browsers default configuration is to ignore background colors anyway.
   */
  background-color: #FFF;
  color: #61878A;

  text-align: center;
  vertical-align: middle;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.2em;
  font-style: normal;
  font-variant: normal;
  font-weight: bold;
}

td.pagetext {
  padding-top: 1.25em;
  padding-right: 1.25em;
  width: auto;
}

td.rightside {
  padding-top: 1.25em;
  width: auto;
}

div.rightbox {
  margin-bottom: 1em;
  border: 1pt solid #61878A;
  padding: 1em;
  width: auto;

  color: #61878A;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.2em;
  font-style: normal;
  font-variant: normal;
  font-weight: bold;
}

div.sign {
  padding-bottom: 0;
}

div.sign img {
  position: relative;
  left: 33%;
  margin-top: 1em;
  width: 70%;
  height: auto;
}

/*
 * What We Do page
 */

table.whatwedo {
  width: 100%;
  table-layout: fixed;
}

table.whatwedo td {
  border: 1pt solid #61878A;
}

table.whatwedo td.image {
  /* Aim for similar width as td.leftside (but with different parent size) */
  width: 30%;
}

table.whatwedo td.image div {
  border-top: 2pt solid #61878A;
  border-bottom: 2pt solid #61878A;
  border-left: 3pt solid #61878A;
  border-right: 3pt solid #61878A;
}

table.whatwedo tr.first td.image div {
  border-top: 3pt solid #61878A;
}

table.whatwedo tr.last td.image div {
  border-bottom: 3pt solid #61878A;
}

table.whatwedo td.image img {
  /* Scale image to fit the containing block. */
  width: 100%;
  height: auto;
}

table.whatwedo td.text {
  padding: 3pt;
  width: auto;
}

table.whatwedo td.text h2 {
  margin-top: 0;
}

/*
 * Contacts page.
 */

/* Old contact list without thumbnail images */
table.contactlist {
  width: auto;
  table-layout: auto;
}

/* Old contact list without thumbnail images */
table.contactlist td {
  padding-right: 2em;
}

table.contacts {
  width: 100%;
  table-layout: fixed;
}

div.contact {
  margin-top: 3pt;
  margin-bottom: 3pt;
  width: 75%;
}

div.contact div.thumb img {
  background-color: #F3F3F3;
  width: 88%;
  height: auto;
  border: 1% solid #CCC;
  padding: 5%;
  margin: 1%;
  -moz-border-radius: 1pt;
}

div.contact div.name {
  width: 100%;
  text-align: center;
  font-size: 1.1em;
}

div.contact div.role {
  width: 100%;
  text-align: center;
  font-size: 1.1em;
}

/*
 * Documents page.
 */

table.docs {
  width: auto;
  table-layout: auto;
}

td.docsicon {
  padding-right: 1em;
  width: 1.6em;
  vertical-align: middle;
}

td.docstext {
  width: auto;
  vertical-align: middle;
}

/*
 * Events pages.
 */

table.events {
  width: 100%;
  table-layout: fixed;
}

table.events col.col1 {
  width: 30%;
}

table.events col.col2 {
  width: 50%;
}

table.events col.col3 {
  width: 20%;
}

table.events td {
  padding: 3pt 1.5pt 3pt 1.5pt;
}

table.events td.leftcol {
  padding-left: 0;
}

table.events td.middlecol {
}

table.events td.rightcol {
  padding-right: 0;
}

table.events td.singlecol {
  padding-left: 0;
  padding-right: 0;
}

table.grades {
  width: 100%;
  table-layout: fixed;
}

table.grades col.col1 {
  width: 30%;
}

table.grades col.col2 {
  width: 70%;
}

/*
 * Edit events list pages.
 */

table.editevents {
  width: 100%;
  table-layout: fixed;
}

table.editevents col.col1 {
  width: 6%;
}

table.editevents col.col2 {
  width: 28%;
}

table.editevents col.col3 {
  width: 48%;
}

table.editevents col.col4 {
  width: 18%;
}

table.editevents td {
  padding: 3pt 1.5pt 3pt 1.5pt;
}

table.editevents tr.h1 td {
  padding-top: 0;
  padding-bottom: 0;
}

table.editevents td.leftcol {
  padding-left: 0;
}

table.editevents td.middlecol {
}

table.editevents td.rightcol {
  padding-right: 0;
}

table.editevents td img {
  display: inline;
}

table.editevents tr.changedLastUpdate {
  background-color: #FF8;
}

table.editevents tr.changedthisSession {
  background-color: #FFC;
}

/*
 * Events log pages.
 */

table.eventslog {
  width: 100%;
  table-layout: fixed;
}

table.eventslog col.col1 {
  width: 25%;
}

table.eventslog col.col2 {
  width: 25%;
}

table.eventslog col.col3 {
  width: 50%;
}

table.eventslog td {
  padding: 3pt 1.5pt 3pt 1.5pt;
}

table.eventslog td.leftcol {
  padding-left: 0;
}

table.eventslog td.middlecol {
}

table.eventslog td.rightcol {
  padding-right: 0;
}

/*
 * Add / edit events pages.
 */

table.eventform td {
  vertical-align: middle;
}

table.eventform label {
  display: block;
  text-align: right;
}

div.fieldwarning {
  font-weight: bold;
  color: #F63;
}

/*
 * Element defaults.
 */

div {
  margin: 0;
  border: 0;
  padding: 0;
}

table {
  border-collapse: collapse;
  margin: 0;
  border: 0;
  padding: 0;

  /*
   * Best not to set width = 100% as this causes some browsers to increase
   * column widths.
   */
}

tr {
  margin: 0;
  border: 0;
  padding: 0;
}

td {
  margin: 0;
  border: 0;
  padding: 0;
  vertical-align: top;
}

img {
  /*
   * Avoid unwanted space below images caused by inline images having
   * space below the baseline when using strict DOCTYPE.
   * Reference: <http://www.mozilla.org/docs/web-developer/faq.html>.
   */
  display: block;

  margin: 0;
  border: 0;
  padding: 0;
}

form {
  margin: 0;
  border: 0;
  padding: 0;
}

label, input, select, option {
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-size: 8pt;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
}

label {
  margin: 3pt 0 3pt 0;
  border: 0;
  padding: 1pt 2pt 1pt 0;
}

input {
  margin: 2pt;
  border: 1pt solid #61878A;
  padding: 1pt 2pt 1pt 2pt;
}

select {
  margin: 2pt;
  border: 1pt solid #61878A;
  padding: 0;
}

option {
  margin: 0;
  border: 0;
  padding: 0 3pt 0 2pt;
}

hr {
  margin: 2em 0 2em 0;
}

/*
 * Links
 * NB: a:hover is last so that it overrides a:link and a:visited.
 */

a:link {
  /* Standard text link color. */
  color: #61878A;
  text-decoration: none;
  cursor: hand;
}

a:visited {
  /* Standard used link color. */
  color: #61878A;
  text-decoration: none;
  cursor: hand;
}

a:hover {
  /* Standard link rollover color. */
  /* Same as standard link color when printing. */
  color: #61878A;
  text-decoration: none;
  cursor: hand;
}

/*
 * Text styles.
 */

h1 {
  margin: 8pt 0 3pt 0;
  color: #3F994C;
  font-size: 1.4em;
  font-weight: bold;
}

h2 {
  margin: 8pt 0 3pt 0;
  color: #3F994C;
  font-size: 1.25em;
  font-weight: bold;
}

h3 {
  margin: 8pt 0 3pt 0;
  color: #3F994C;
  font-size: 1.1em;
  font-weight: bold;
}

h4 {
  margin: 8pt 0 3pt 0;
  color: #3F994C;
  font-size: 1em;
  font-weight: bold;
}

p {
  margin: 3pt 0 3pt 0;
  border: 0;
  padding: 0;
}

div.li {
  position: relative;
  margin: 3pt 0 3pt 2em;
}

div.ul div.ul div.li {
  margin: 0 0 0 2em;
}

div.compact div.li {
  margin: 0 0 0 2em;
}

div.bullet {
  position: absolute;
  left: -2em;
}

.top {
  margin-top: 0;
}

.credit {
  text-align: center;
  font-size: 0.9em;
}

.strong {
  font-weight: bold;
}

.editlink {
  margin-right: 0;
  margin-left: auto;
  text-align: right;
}
