/************ 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: #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 ******/
body { font-size: 80%; } /* Resets 1em to 12px. */

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: 10px 0;
text-align: center; /* To center the page in IE */
font-family: Verdana, Helvetica, Arial, sans-serif;
color: #111111;
background-color: #D2E2F2;
word-spacing: 0.1em;
}

.centerpage {
position: relative; /* provides datum for .menubox and .footer */
margin: 0 auto;
text-align: left;
border: 1px solid #552B2B;
background-color: #6da0d5;
background-image:  url(../images/blossom-pink.jpg);
background-repeat: no-repeat;
background-position: 0 0;
max-width: 81em;
min-width: 50em;
min-height: 30em;
}

/******************* Header stuff ******************/
.header {
color: #F3F8FC;
padding-bottom: .8em;
margin-left: 13em;
}
.header h1 { 
margin: .2em .7em 0 .5em;
text-align: right;
font-family: Georgia, Utopia, Palatino, 'Palatino Linotype', serif;
font-size: 300%; 
letter-spacing: .02em;
}
.header h1 a:link, .header h1 a:visited { color: #F3F8FC; 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 { display: none; }

.textsizer { 
float: left; 
font-weight: 700;
margin: 1.5em .5em 0 0; 
}
.textsizer img { vertical-align: text-bottom; }

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

/************* Sidebar stuff *************/
.menubox {      
position: absolute;
margin-right: 1.5em;
right: 0;
width: 11em;
padding-top: 1.8em;
/* z-index: 200; use for pull-out menu */
font-family: Helvetica, Arial, sans-serif;
}

/******************* Main content stuff ******************/
.mainbox {
margin: 0 16em 1.5em 12em;
background-color: #D2E2F2;
line-height: 1.4; /* No units is better for line-height */
}
.mainbox h2, .mainbox h3, .mainbox h4 {
font-family: Georgia, Utopia, Palatino, 'Palatino Linotype', serif;
background-color: #b0cce8;
padding: .2em .5em .3em .5em;
background-image: url(../images/blue-fade-14u.gif);
background-repeat: repeat-x;
background-position: top left;
}
.mainbox h2 { /* for first heading in .mainbox */
border-top: 1px solid #557ca5;
}
.mainbox h3 { /* size as h2 - for sub-headings */
margin-top: 1.5em; 
border-top: 1px solid #557ca5;
font-size: 150%;
} 
.mainbox h4 { /* for small sub-headings */
margin-top: 1.5em; 
border-top: 1px solid #b0cce8;
}
.mainbox li { 
font-weight: 700; 
line-height: 1.6;
}

/********* Footer stuff - this one is a 'bottom left sidebar' ********/
.footer {
position: absolute;
left: 0;
bottom: 1.5em;
width: 8em;
margin-left: 1.8em;
background-color: #D2E2F2;
}
.footer p { margin: 0 .5em .5em .5em; }

#footerright { /* for .footer images */
margin: .2em 0 .3em 0;
text-align: center; 
} 
#footerright img { margin-top: .3em; } 

.footerleft { }

/****** 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 5% .5em 2em;
border: 1px solid #999999; 
padding: 3px; 
}

.imageleft {
float: left;
clear: left;
margin: .5em 2em .5em 5%;
}
.bigmargin .imageleft { margin-top: 0; }

.caption250 { /* On <div> tag - width should be changed to suit image size */
width: 250px;
font-family: Georgia, Utopia, Palatino, 'Palatino Linotype', serif;
text-align: center;
}

/****** Rounded corners on pull quote using images ******/
.roundbox {
float: right;
clear: right;
width: 12em;
background-color: #abddaa;
margin: 1em 5% 1em 2em;
}
.roundbox p { 
margin: 0 1em; 
font-family: Georgia, Utopia, Palatino, 'Palatino Linotype', serif;
text-align: center;
color: #111111;
line-height: 1.2;
font-size: 125%; 
font-weight: 700;
}
.roundbox h5 { 
margin: 0 1em .5em 1em;
font-family: Georgia, Utopia, Palatino, 'Palatino Linotype', serif;
text-align: center;
color: #111111;
line-height: 1.2;
}

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

/****** Rounded corners on mainbox using images ******/
.mbtl, .mbtr, .mbbl, .mbbr { height: 15px; }
.mbtl { background: url(../images/tl-main.gif) no-repeat top left; }
.mbtr { background: url(../images/tr-main.gif) no-repeat top right; }
.mbbl { background: url(../images/bl-main.gif) no-repeat bottom left; }
.mbbr { background: url(../images/br-main.gif) no-repeat bottom right; }

/****** Rounded borders on smallbox in menubox text using images ******/
.smallbox {
margin-top: 1.5em;
width: 9em;
background-color: #D2E2F2;
text-align: center;
}

.sbtl, .sbtr, .sbbl, .sbbr, .footer .mbtl, .footer .mbtr, .footer .mbbl, .footer .mbbr { height: 8px; }
.sbtl, .footer .mbtl { background: url(../images/tl-b8.gif) no-repeat top left; }
.sbtr, .footer .mbtr  { background: url(../images/tr-b8.gif) no-repeat top right; }
.sbbl, .footer .mbbl  { background: url(../images/bl-b8.gif) no-repeat bottom left; }
.sbbr, .footer .mbbr  { background: url(../images/br-b8.gif) no-repeat bottom right; }

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

.quote span {
background: url(../images/quote-r-b.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 #557ca5;
} 

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

.marginhack { margin-bottom: .5em; } /* 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 #111111; }
.bigmargin { margin: 1.5em 9% 1.5em 7%; }
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;
}

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

#nav li {
float: left; 
clear: left;
margin: .2em 0;
padding: 0 0 .1em 0;
width: 9em; /* required by Opera (Used here anyway) */
border: 1px solid #222222;
background-color: #EBF2FA;
background-image: url(../images/blue-fade-14d-button.gif);
background-repeat: repeat-x;
background-position: top left;
}

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

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

#nav li:hover ul, #nav li.sfhover ul {
margin-left: -9.14em;
margin-top: -1.675em; /* Interesting values! */
}

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

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

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

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: #ffffee; }

#realname, #email, #comments { border: 1px solid #557ca5; padding: .1em .3em .3em .3em; }
#realname:focus, #email:focus, #comments:focus { border: 1px solid #000066; }

textarea { width: 70%; }

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

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

.captchabox { margin-left: 8em; }