/****** General default settings first ******/
* { margin: 0; padding: 0; }

h1, h2, h3, h4, h5, h6 { margin: .5em 5%; } 
pre, p, blockquote, ul, ol, dl, fieldset, address { margin: .5em 7%; } 

li, dd { margin-left: 5%; }
	
img { border: 0; }

a:link { color: #000066; font-weight: 700; text-decoration: none; }
a:visited { color: #663366; font-weight: 700; text-decoration: none; }
a:hover, a:focus, a:active { color: #CC0000; font-weight: 700; text-decoration: underline; }

/****** Getting consistent text sizes across browsers (IE5) ******/
body { font-size: 80%; }
/* Resets 1em to 12px. Can cause a small gap at the bottom of the mainbox (due to rounding errors?) */

h1 { font-size: 187.5%; font-weight: 400; }
h2 { font-size: 150%; font-weight: 400; }
h3 { font-size: 125%; font-weight: 400; }
h4 { font-size: 100%; font-weight: 700; }
h5 { font-size: 87.5%; font-weight: 700; }
h6 { font-size: 80%; font-weight: 700; }
/* Headers sized taking body font-size into account to give equivalent to 150%, 120%, 100%, 80%, 70%, 64%. */

pre { font-size: 100%; }
/* To stop pre text being too small */

/************ General layout stuff ************/
body {
margin: 0;
padding: 20px;
text-align: center; /* To center the page in IE */
font-family: Verdana, Helvetica, Arial, sans-serif;
color: #111111;
background-color: #fcf6e8;
word-spacing: 0.1em;
}

.centerpage {
position: relative; /* provides datum for .menubox */
margin: 0 auto;
text-align: left;
background-color: #fcecc5;
border: 1px solid #c78c02;
max-width: 66em;
min-width: 44em;
}

/******************* Header stuff ******************/
.header {
/* avoid padding - IE5 spacing varies */
border-bottom: 1px solid #c78c02;
background-color: #fcf6e8;
background-image: url(../images/orange-fade-40u.jpg);
background-repeat: repeat-x;
background-position: bottom left;
}
.header h1 {
margin: .4em .2em 0 0;
color: #463100;
font-family: Helvetica, Arial, sans-serif;
font-size: 300%; 
}
.header h1 a:link, .header h1 a:visited { color: #463100; font-weight: 400; text-decoration: none; }
.header h1 a:hover, .header h1 a:focus, .header h1 a:active { color: #CC0000; font-weight: 400; text-decoration: underline; }

#logo { 
float: left; 
margin: .5em 1em .5em .5em;
}

.textsizer { 
float: right; 
font-weight: 700;
margin: .5em .7em;
}
.textsizer img { vertical-align: text-bottom; }

.skip {
height: 0;
width: 0;
overflow: hidden;
}

.menubox {      
/* No side padding or borders to avoid IE5 box model problem */
position: absolute;
left: 15px;
width: 130px;
color: #352000;
}

.mainbox {
margin: 0 0 0 155px;
background-color: #fcf6e8;
border-left: 1px solid #e5b33c;
padding-top: 1px; /* to trigger enclosure of first text top margin in mainbox in firefox */
padding-bottom: 1px; /* to trigger enclosure of last text bottom margin in mainbox in firefox */
color: #111111; 
line-height: 1.4;
min-height: 26em;
}
.mainbox h2, .mainbox h3, .mainbox h4 {
background-color: #fcdb8c;
color: #352000;
padding: .2em .5em;
background-image: url(../images/orange-fade-25u.jpg);
background-repeat: repeat-x;
background-position: top left;
}
.mainbox h2 {/* for first heading in .mainbox */
margin-top: 1em; 
border-top: 1px solid #e5b33c;
}
.mainbox h3 { /* size as h2 - for sub-headings */
margin-top: 1.5em; 
border-top: 1px solid #e5b33c;
font-size: 150%;
} 
.mainbox h4 { /* for small sub-headings */
margin-top: 1.5em; 
border-top: 1px solid #fcdb8c;
}
.mainbox li { 
font-weight: 700; 
line-height: 1.6;
}

/********* Footer stuff ********/
.footer {
/* avoid padding - IE5 spacing varies */
border-top: 1px solid #c78c02;
background-color: #fcdb8c;
color: #111111;
}

#footerright { 
float: right;
margin: 1em .5em .8em .5em;
display: inline; /* To fix IE double margin bug */
}
#footerright img { margin-right: .5em; }

.footerleft { 
float: left;
margin: 1em .5em .5em 2em;
display: inline; /* To fix IE double margin bug */
}

/****** Simple floats ******/
.floatleft { float: left; }
.floatright { float: right; }

/****** Floats for images in the text-flow (not in <p> tags) ******/
.imageright, .caption250 {
float: right;
clear: right;
margin: .5em 7% .5em 2em;
border: 1px solid #999999; 
padding: 3px; 
}

.imageleft {
float: left;
clear: left;
margin: .5em 2em .5em 7%;
}

.caption250 { /* On <div> tag - width should be changed to suit image size */
width: 250px;
font-family: Georgia, "New Century Schoolbook", Times, serif;
text-align: center;
}

/****** Rounded corners on pull quote using images ******/
.roundbox {
float: right;
clear: right;
width: 12.5em;
background-color: #fcdb8c;
margin: 1em 7% 1em 1em;
}
.roundbox p { 
margin: 0 1em; 
font-family: Georgia, "New Century Schoolbook", Times, serif;
text-align: center;
color: #352000;
line-height: 1.2;
font-size: 125%; 
font-weight: 700;
}
.roundbox h5 { 
margin: 0 1em .5em 1em;
font-family: Georgia, "New Century Schoolbook", Times, serif;
text-align: center;
color: #352000;
line-height: 1.2;
}

.rbtl, .rbtr, .rbbl, .rbbr { height: 15px; }
.rbtl { background: url(../images/tl.gif) no-repeat top left; }
.rbtr { background: url(../images/tr.gif) no-repeat top right; }
.rbbl { background: url(../images/bl.gif) no-repeat bottom left; }
.rbbr { background: url(../images/br.gif) no-repeat bottom right; }

/****** Smallbox for styleswitching text ******/
.smallbox {
margin-top: 1.5em;
width: 120px;
border: 1px solid #e5b33c;
background-color: #fcf6e8;
text-align: center;
padding: .8em 0;
}

/****** Miscellaneous bits and bobs ******/
.quote {
margin: 1.5em 15%;
background: url(../images/quote-left.gif) no-repeat top left; 
padding: 5px 0 0 60px;
} 

.quote span {
background: url(../images/quote-right.gif) no-repeat bottom right;
padding: 0 60px 5px 0;
min-height: 45px; /* to see full pic with one line of text */
line-height: 1.2em;
font-size: 125%; 
font-weight: 700;
text-align: justify;
display: block;
}

.img-gal { 
margin: .5em; 
vertical-align: middle; 
border: 1px solid #c78c02; 
} 

.codebox {
font-family: "Courier New", Courier, mono, sans-serif;
color: #333333;
margin: .7em 10%;
border: 1px solid #666666; 
padding: .5em 1em;
background-color: #ffffff;
}

.marginhack { margin-bottom: 1em; } /* for last in .mainbox */
.notopmargin { margin-top: 0; }
.nobotmargin { margin-bottom: 0; }
.spacer { clear: both; }
.clearleft { clear: left; }
.center { text-align: center; }
.right { text-align: right; }
.border1px { border: 1px solid #222222; }
.bigmargin { margin: 1em 11% 1em 9%; }
acronym	{ border-bottom: 1px dotted #999999; cursor: help; }

/****** Suckerfish-style drop-down menu ******/
#nav { list-style: none; margin: 1.3em 0 0 0; }

#nav ul { 
list-style: none; 
margin: 0;
z-index: 200; 
}

#nav a {
display: block; 
font-weight: 700;
color: #463100;
text-decoration: none;
text-align: center;
line-height: 1.8;
outline: none; /* removes the dotted lines on click and focus */
}

#nav li {
float: left; 
clear: left;
margin: .2em 0;
padding: 0 0 .2em 0;
width: 120px; 
border: 1px solid #c78c02;
background-image: url(../images/orange-fade-14u.jpg);
background-repeat: repeat-x;
background-position: top left;
background-color: #fbd26e; 
}

#nav li:hover, #nav li.sfhover {
background-image: none;
background-color: #FFFFFF;
}

#nav li ul {
position: absolute; 
width: 10em; 
margin-left: -1000em;
border: 1px solid #c78c02;
}

#nav li:hover ul, #nav li.sfhover ul {
margin-left: 118px;
margin-top: -1.9em;
}

#nav li li a { text-align: left; padding-left: .5em; }

#nav li li {
width: 10em; 
border: 0;
margin: 0;
}

#nav li li:hover, #nav li li.sfhover { background-color: #ffffff; }

/****** Form styling ******/
fieldset { 
border: none;
margin-top: 1em; 
margin-bottom: 1em;
}

label {
display: block;
float: left;
width: 7em;
text-align: right;
margin-right: 1em;
}

input, textarea { margin-bottom: 1em; margin-right: 1em; }
input:focus, textarea:focus { background-color: #fcecc5; }

#realname, #email, #comments { border: 1px solid #e5b33c; padding: .1em .3em .3em .3em; }
#realname:focus, #email:focus, #comments:focus { border: 1px solid #c78c02; }

textarea { width: 55%; }

.formbuttons { margin-left: 9em; margin-top: 1em; }

.formbuttons input {
width: 7em;
background-color: #fbd26e;
border-color: #fbd26e;
font-weight: 700;
font-family: Verdana, Helvetica, Arial, sans-serif;
padding-top: .1em;
padding-bottom: .1em;
}
.formbuttons input:focus { background-color: #fcecc5; }

.captchabox { margin-left: 8em; }