/****** General default settings first ******/
* { margin: 0; padding: 0; }

h1, h2, h3, h4, h5, h6, pre, p, blockquote, ul, ol, dl, fieldset, address { margin: .5em 5%; } 

li, dd { margin-left: 5%; }
	
img { border: 0; }

a:link { color: #000066; font-weight: 700; text-decoration: none; }
a:visited { color: #000066; 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 ******/
body { font-size: 80%; }

h1 { font-size: 187.5%; font-weight: 400; }
h2 { font-size: 150%; font-weight: 400; }
h3 { font-size: 150%; font-weight: 400; }
h4 { font-size: 125%; font-weight: 700; }
h5 { font-size: 100%; font-weight: 700; }
h6 { font-size: 80%; font-weight: 700; }

pre { font-size: 100%; }
/* To stop pre text being too small */

body {
margin: 0;
padding: 0;
text-align: center; /* To center the page in IE */
font-family: Verdana, Helvetica, Arial, sans-serif;
color: #000000;
background-color: #DEF3E2;
word-spacing: 0.1em;
padding-bottom: .8em;
}

/****** Layout stuff ******/
.centerpage {
position: relative; /* provides datum for .panel */
margin: 0 auto;
text-align: left;
border: 1px solid #552B2B;
background-color: #bdcca3;
max-width: 81em;
min-height: 40em;
}

.header {
/* No side padding or borders to avoid IE5 box model problem */
margin-left: 14.5em;
min-width: 28em;
}

.menubox {      
/* No side padding or borders to avoid IE5 box model problem */
margin: .2em 0 .5em 14.7em;
/* min-width: 28em; removed to prevent 'catch the menu' in IE5 */
}

.logopos { 
position: absolute;
margin-left: 2em;
left: 0;
top: 4px;
height: 140px;
width: 12em;
background-image: url(../images/bits/logo-h140.gif);
background-repeat: no-repeat;
background-position: 0 0;
}

.panel {
/* No side padding or borders to avoid IE5 box model problem */
position: absolute;
margin-left: 1em;
left: 0;
top: 150px;
width: 12.5em;
background-color: #DEF3E2;
line-height: 1.3em;
}
.panel p, .panel h5 { 
margin-left: 1em; 
margin-right: 1em; 
}
.panel ul { margin: 0 1em 1em 1em; }
.panel li { margin-left: 1.8em; }

.mainbox {
margin: 0 2em 1em 14.5em;
background-color: #DEF3E2;
line-height: 1.4em;
min-width: 30em;
}
.mainbox h2, .mainbox h3, .mainbox h4 {
background-color: #abddaa;
padding: .3em .5em;
}
.mainbox h2 {
/* No top margin - for first heading in .mainbox */
margin-top: 0;
border-top: 1px solid #000000;
}
.mainbox h3 { 
margin-top: 1.5em; /* Nice for sub-headings */
border-top: 1px solid #000000;
} 
.mainbox h4 { 
margin-top: 1.5em; /* Nice for sub-headings */
border-top: 1px solid #527851;
}

/****** Various layout hacks ******/

/* A hack to stop IEwin breaking the layout if a float reaches the bottom of the div. It gives IE 'has layout'. */
/* Hide hack from IEmac \*/
* html .centerpage {height: .1%;}
* html .header {height: .1%;}
* html .mainbox {height: .1%;}
* html .panel {height: .1%;}
/* End hide hack from IEmac */

/****** Simple floats ******/
.floatleft { float: left; }
.floatright { float: right; }

/****** Floats for images in the text-flow (not inside p tags etc.) ******/
.imageright {
float: right;
clear: right;
margin: 1em 5% .5em 1em;
}

.imageleft {
float: left;
clear: left;
margin: 1em 1em .5em 5%;
}

.imageright250 {
/* Width should be changed to suit image size */
float: right;	
clear: right;
margin: 1em 5% .5em 1em;
width: 250px;
font-family: Georgia, "New Century Schoolbook", Times, serif;
text-align: center;
display: inline; /* To fix IE double margin bug */
}

/****** Rounded corners on pull quote using images ******/
.roundbox {
float: right;
clear: right;
width: 12em;
background-color: #abddaa;
margin: 1em 5% .5em 1em;
display: inline; /* To fix IE double margin bug */
}
.roundbox p { 
margin: 0 1em; 
font-family: Georgia, "New Century Schoolbook", Times, serif;
text-align: center;
color: #000000;
line-height: 1.2em;
font-size: 125%; 
font-weight: 700;
}

.rbtl, .rbtr, .rbbl, .rbbr { height: 15px; }
.rbtl { background:  url(../images/bits/tl-b.gif) no-repeat top left; }
.rbtr { background:  url(../images/bits/tr-b.gif) no-repeat top right; }
.rbbl { background:  url(../images/bits/bl-b.gif) no-repeat bottom left; }
.rbbr { background:  url(../images/bits/br-b.gif) no-repeat bottom right; }

/****** Rounded corners on mainbox using images ******/
.mbtl, .mbtr, .mbbl, .mbbr { height: 15px; }
.mbtl { background:  url(../images/bits/tl-main.gif) no-repeat top left; }
.mbtr { background:  url(../images/bits/tr-main.gif) no-repeat top right; }
.mbbl { background:  url(../images/bits/bl-main.gif) no-repeat bottom left; }
.mbbr { background:  url(../images/bits/br-main.gif) no-repeat bottom right; }

/****** Miscellaneous bits and bobs ******/
.marginshalfem { 
margin: .5em; 
vertical-align: middle; 
} 

.skip {
height: 0;
width: 0;
overflow: hidden;
}
/* Hide hack from IEmac \*/
* html .skip {height: 1px;}
/* End hide hack from IEmac */

.notopmargin { margin-top: 0; }  /* for first in .panel */
.nobottommargin { margin-bottom: 0; } /* for last in .mainbox */
.spacer { clear: both; }
.clearleft { clear: left; }
.center { text-align: center; }
.right { text-align: right; }
.emphasis { font-style: italic; }
.strong { font-weight: 700; }
.noimagegap { display: block; } /* Fix for IE image gap bug */
acronym	{ border-bottom: 1px dotted #666666; cursor: help; }

/****** Suckerfish-style drop-down menu ******/
#nav { list-style: none; margin: 0; }
#nav ul { list-style: none; margin: 0; z-index: 200; }

#nav a {
display: block; 
font-weight: 700;
color: #000000;
font-family: Helvetica, Arial, sans-serif;
text-decoration: none;
text-align: center;
line-height: 1.8em; 
}

#nav li {
float: left; 
margin: 0 0 0 -1px;
width: 7em; /* required by Opera (Used here anyway) */
border: 1px solid #000000;
background-color: #d7e7ed;
}

#nav li:hover, #nav li.sfhover {
background-color: #FFFFFF;
}

#nav li ul {
position: absolute;
width: 15em;
margin-left: -1000em; 
}

#nav li:hover ul, #nav li.sfhover ul {
margin-left: -1px;
margin-top: 1px;
}

#nav li li a { 
text-align: left;
font-weight: 400;
line-height: 1.2em; /* for 2-line menu text */
margin: .4em .5em;
}

#nav li li {
width: 15em;
border-top: 0;
margin-left: 0;
}

/****** Form styling ******/
fieldset { 
border: none;
margin-top: 1em; 
margin-bottom: 0;
}

input, textarea { margin-bottom: 1em; margin-right: 1em; }

input:focus, textarea:focus { background-color: #FFFFCC; }

textarea { width: 70%; }

label {
display: block;
float: left;
width: 7em;
text-align: right;
margin-right: 1em;
}

.formbuttons { margin-left: 9em; }

.formbuttons input {
width: 7em;
background-color: #9FC1E3;
border-color: #9FC1E3;
font-weight: 700;
font-family: Verdana, Arial, Helvetica, sans-serif;
padding-top: .1em;
padding-bottom: .1em;
}
.formbuttons input:focus { background-color: #CCFFFF; }
