/*
Main style sheet - Top Navigation version

version:    1.0
author:     Gary Pritchard
email:      info@garypritchard.co.uk
web site:   www.garypritchard.co.uk

TOC

1. Defaults
2. Typography
3. Links & navigation
4. Tables
5. Forms
6. Padding

Colour styles are controlled through a php script in the xhtml file
Layout styles are connected separately to the xhtml file
================================================================== */


/* 1. Defaults
================================================================== */
* { /* Zero margin and padding on all elements */
  margin: 0;
  padding: 0;
}

body { /* to clear edge of browser for browser who cannot use layout */
  margin: 5px;
}

#logo {
  float: left;
}

#branding .flashmovie {
  float: right;
}

a img {
  border: 0;
}

.centreimage {
  text-align: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

.centreimagepb {
  text-align: center;
  padding-bottom: 20px;
}

#branding, #mainContent, #secondaryContent, #tertiaryContent {
  overflow: hidden;
}

.box {
  padding-bottom: 20px;
  margin: 0 15px 0 15px;
  border: solid 1px;
}

.box h3, .box p {
  margin-bottom: 0;
}


/* 2. Typography
================================================================== */
body {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 62.5%;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: Times New Roman, Times, Georgia, serif;
}
 
h1 {
  font-size: 2.4em;
  font-weight: bold;
}

h2 {
  font-size: 2.0em;
  font-weight: bold;
}

h3 {
  font-size: 1.7em;
  font-weight: bold;
}

h4 {
  font-size: 1.5em;
  font-weight: normal;
}

p, li, td, th {
  font-size: 1.4em;
}

table li, table h1, table h2, table h3, table h4 {
  font-size: 1.0em;
  margin: 0;
}

h1, h2, h3, h4, p {
  margin: 1em 0;
}

caption {
  font-size: 1.2em;
  font-style: italic;
  text-transform: uppercase;
}

#accessNav li {
  font-size: 1.1em;
}
#branding h1 {
  margin: 0;
}

#secondaryContent h2, #tertiaryContent h2 {
  font-size: 1.7em;
  margin: 0;
}

#tertiaryContent li {
  font-size: 1.4em;
  margin: 0;
}

#secondaryContent p, #tertiaryContent p {
  font-size: 1.2em;
}

#footer p {
  font-size: 1.1em;
}

.box ul {
  font-size: 0.8em;
  margin-left: -10px;
  margin-right: -10px;
}


/* 3. Links & navigation
================================================================== */
.toc {
  list-style: none;
}

#accessNav ul {
  list-style: none;
}

#accessNav li {
  display: inline;
}

#accessNav li a:link, #accessNav li a:visited {
  text-decoration: none;
}

#mainNav ul {
  list-style: none;
}

#mainNav li {
  display: inline;
}

#mainNav a:link, #mainNav a:visited {
  text-decoration: none;
  border: 1px solid;
}

.box ul {
  list-style: none;
}

.box li a:link, .box li a:visited {
  display: block;
  text-decoration: none;
  border-bottom: 2px solid;
}

#footer a:link, #footer a:visited {
  text-decoration: none;
}


/* 4. Tables
================================================================== */
table {
  border-collapse: collapse;
  border: 1px solid #000000;
  width: 100%;
}

th {
  text-align: left;
  border: 1px solid;
  vertical-align: top;
}

td {
  text-align: left;
  border: 1px solid;
  vertical-align: top;
}

caption {
  padding: 2em 0 1em 0;
  text-align: center;
  background: transparent;
}

/* 5. Forms
================================================================== */
#contact-form {
  width: 80%;
  border: 1px solid #CCCCCC;
  padding: 20px;
  margin: 0 auto;
}

#contact-form label {
  font-size: 1.2em;
  display:block;
  width: 100%;
}

#contact-form div {
  margin: 0.4em 0 0.6em 0;
}

#contact-form fieldset {
  border: none;
}

#contact-form legend {
  font-size: 1.6em;
  font-weight: bold;
  margin: 0 0 10px 0;
}

#contact-form label {
  font-size: 1.4em;
  font-weight: bold;
}

#contact-form .txt {
  width: 100%;
  border: 1px solid;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 1.4em;
  padding: 2px;
}

#contact-form .btn {
  border: 1px outset;
  padding: 2px;
  font-size: 1.4em;
}

#contact-form div.submit {
  text-align: center;
}


/* 6. Add padding to content - avoids box model hack
================================================================== */

#branding, #accessNav {
  padding: 0px 15px 0px 15px;
}

#branding li, #accessNav li {
  padding: 0 15px 0 0;
}

#mainNav a:link, #mainNav a:visited {
  padding: 3px 10px 2px 10px;
}

#mainContent, #secondaryContent, #tertiaryContent, #mainNav {
  padding-top: 15px;
  padding-bottom: 15px;
}

#mainContent *, #secondaryContent *, #tertiaryContent *, #mainNav * {
  padding-left: 15px;
  padding-right: 15px;
}

#mainContent * *, #secondaryContent * *, #tertiaryContent * *, #mainNav * * {
  padding-left: 0;
  padding-right: 0;
}

#mainContent th, #secondaryContent th, #tertiaryContent th, #mainContent td, #secondaryContent td, #tertiaryContent td {
  padding: 5px;
}

#mainContent ul {
  padding: 0 0 0 45px;
}

#footer {
  padding: 1px 15px;
}

.box li {
  padding-bottom: 10px;
}


