body {
background-image:url(images/diags_form.gif);
margin: 0;
padding: 0;
font:70% 'Lucida Grande',Verdana, Helvetica, sans-serif;
}

/* default links */

a:link {
background-color: transparent;
text-decoration: underline;
color: #666;
}
a:hover {
background-color: #FFC;
text-decoration: underline;
color: #990;
}
a:visited {
background-color: transparent;
text-decoration: underline;
color: #666
}

/* headers here */

h1 {
margin: 0;
padding: 30px;
font-size: 150%;
color: #FF0000;
text-indent: -9000px;
}

h2 {
margin: 0 10px 0 10px;
padding: 2px;
font-size: 110%;
color:#000033;
background:#FFCC33;
}

h3 {
text-transform: uppercase;
display: inline;
font-size: 92%;
margin: 10px 5px 0 5px;
padding: 2px;
background: #FFFFAA; 
}

/* main wrapper that holds it all centrally */

#wrapper {
width:900px;
margin: 0 auto;
background-color: #FFFFFF;
padding: 0;
}

/* now the three main columns, named in order of importance and display when styles switched off */

#primaryContent {
float:left;
width:850px;
display:inline;
margin: 10px 0 20px 0;
}

/* note here that specifying threeColLayout in the body will activate the following div instead of the default primaryContent */

#threeColLayout #primaryContent {
float:left;
width:390px;
margin: 0 0 20px 190px;
}

/* note here that specifying twoColLayout in the body will activate the following div instead of the default primaryContent */

#twoColLayout #primaryContent {
width: 710px;
float:left;
margin: 0 0 20px 190px;
}

/* just incase twoColLayout is specified in body, and secondaryContent is left in, we turn it off - not ideal, but it works */

#twoColLayout #secondaryContent {
display: none;
}

#secondaryContent{
float:left;
width:300px;
margin: 0 0 20px 15px;
}

#sideContent{
float:left;
width:180px;
margin: 0 0 20px -900px;
}

/* just incase oneColLayout is specified in body, and these are left in, we turn them off - not ideal, but it works */

#oneColLayout #secondaryContent, #oneColLayout #sideContent {
display: none;
}

/* twoColContent - used to span two right-hand columns - ONLY LEAVE THIS IN IF I DISCUSS IT - box used only if no selector */

#twoColContent{
width:565px;
float:left;
margin: 0 0 20px 195px;
}

/* cbSide controls non-rounded boxes in the thinner left column, known as sideContent */

.cbSide {
width:160px;
margin: 5px 0 0 10px;
padding: 10px 0 5px 0;
background:#FFF;
}
.cbSide p {
margin: 0;
padding: 5px 5px 2px 5px;
font-size: 110%;
color: #666;
}

/* box is the shaded area that holds a rounded corner box or flat box, fitting the given width of the column it is in. Usually combined with another class to control inner elements, eg box default */


.box {
/* margin: 15px 0 0 0; */
margin: 5px 0 0 0;
padding: 5px 0 5px 0;
border:#CCCCCC thin dotted;
}

/* Styling of the boxes */

.cbb {
margin: 5px 10px 0 10px;
background: #FFF;
padding: 5px 0 5px 0;
line-height: 170%;
}


/* paragraph styles for any main boxes */
.cbb p {
margin: 0;
padding: 0 5px 5px 25px;
color: #333;
}

/* CSS for the box ends here */

/* date and posted control the small text info in article blurbs */

.date {
font-size: 85%;
font-weight: bold;
color: #666;
}

.booktitle {
display: block;
margin: 0 5px 5px 35px;
padding: 0 0 5px 0;
font-size: 120%;
font-weight: bold;
color:#CC0000;
}

.redlinks a{
display: block;
margin: 0 5px 5px 35px;
padding: 0 0 5px 0;
font-weight: bold;
color:#CC0000;
font-size: 110%;
}


.postedUnderline {
display: block;
margin: 0 5px 5px 35px;
padding: 0 0 5px 0;
font-weight: bold;
color: #666;
border-bottom: 2px solid  #FFCC66;
}

address {
margin-left: 50px;
}

table {
      margin-left: 10px;
	  margin-right: 10px;
	  border: 1px solid #999999;
	  border-collapse: collapse;
	  }
	  
td, thead {
      border: 1px dotted #cccccc;
	  padding: 10px;
	  }
	  
thead {
      background-color:#CC0000;
	  color:#FFFFFF;
	  font-weight: bold;
	  padding-left: 10px;
	  font-size: 120%;
	  }	  
	  	  
table a {
      display: inline; 
      text-decoration: none;
	  color: #333333;
	  }

table a:hover {
      color: #333333;
	  text-decoration: underline;	  
}	  


#news li {
      border-bottom: 1px dashed #CCCCCC; 
	  padding: 5px;
	 /* list-style-image: url(images/pencil.gif); */ 
}

#news a {
      text-decoration: none;
	  color: #333333;
} 

#news .date {
      color: #84464D;
	  font-style: italic;
	  }


/* erm, the footer */

#footer{
clear:both;
width: 850px;
height: 85px;
background: transparent url(images/gradientfooter.php.jpg);
padding: 0px;
margin-bottom: 0px;
}
#footer p {
margin: 0px;
padding: 30px 4px 10px 170px;
font-weight: bold;
}

#footer a:link, #footer a:visited {
color:#333333;
text-decoration: none;
}
#footer a:hover {
color:#333333;
/*background:#FFFF33; */
text-decoration: underline;
}

#header img {
float: left;
margin: 0;
padding: 0;
}

/* image control. First we define stuff common to ALL images on the page. It is then up to other styles to override these. By default, all images will have a 2px border, and bottom and right margins of 5px. They will all float left. */

img {
float: left;
margin: 4px 5px 10px 5px;
/*border: 2px solid #C5BDBD; */
}

/* For any images in the default boxes - the pencil icons - I don't want the 2px border. So I set border to 0 */

.default img {
border: 0;
}

/* For these larger images, I don't want them to float, for that causes the h3 above to be pushed to the right. I also declare a top margin to space the header and image apart, and also increase the border width slightly.  We also set it to display:block so that if body id is twoColLayout, the image will force the header and other bits to wrap around it */

.mainImage {
display: block;
float:none;
margin-top: 1px;
border: 2px solid #000066;
}

/* drop shadow effect for the gallery thumbnails. Sadly this requires a div to be wrapped around the image markup, which is a shame */

.thumbnails {
margin: 20px 20px 0 0;
background: url(images/shadow.gif) no-repeat bottom right;
float:left;
line-height:0;
}
 
.thumbnails img {
float:none;
margin:0 10px 10px 0;
background:#fff;
padding:4px;
border:1px solid #C5BDBD;
/* position:relative; */
/* left:-5px;
top:-5px; */
}

.thumbnails p {
margin: 0;
padding: 10px 20px 30px 10px;
background: url(images/shadow.gif) no-repeat bottom right;
text-align: center;
}


  
/* used to ensure all our floated thumbnails stay the right width away from the left side of the box */

.thumbnails_wrapper {
margin: 0 0 20px 30px;
}

/* spacer used immediately after the floated gallery thumbnails to ensure the box expands to hold them all */

.spacer {
clear: both;
} 

/* CSS for the ticked off links. Note, I am not ordering things in the LVHA way, as I prefer the visited tick to work above the arrow once visited. */

.cbSide ul {
list-style-type: none;
margin-top: 0px;
margin-left: 0;
margin-bottom: 0;
padding: 3px;
}

.cbSide li a:link {
color:#333;
font-size: 12px;
line-height:150%;
text-decoration:none;
display:block;
width:154px;
border-bottom: 1px solid #EDEAEB;
background: #FFF url(images/ticks.gif);
}

.cbSide li a:active {
color:#333;
font-size: 12px;
line-height:150%;
text-decoration:none;
display:block;
width:154px;
border-bottom: 1px solid #EDEAEB;
background: #FFF url(images/ticks.gif);
}

.cbSide li a:visited {
color: #333;
font-size: 12px;
line-height:150%;
text-decoration:none;
line-height:150%; 
display:block;
width:154px;
border-bottom: 1px solid #EDEAEB; 
/* background: #FFF url(images/ticks.gif);
background-position: 0 -40px; */
}

.cbSide li a:hover {
color:#EA7C0F;
background-color:#F2F2F2;
font-size: 12px;
line-height:150%;
display:block;
width:154px;
border-bottom: 1px solid #EDEAEB;
text-decoration:none;
}

ul#ds {
	margin: 0 30px 0 30px; 
	padding: 0; 
	list-style: none;
}

/* Two backgrounds are used, the second being a hack for Internet Explorer */
#ds li {
	margin: 8px 0; 
	padding-top: 1px; 
	color: #333; 
	background: url(images/bg_dotted.gif) repeat-x 0 77% !important; 
	background-position: 0 61%;
} 
ul#ds li span {
	display: block; 
	float: right; 
	padding: 1px 3px; 
	background: #FFF;
}	




/* Highlighting external links ONLY in the main text areas, so as not to screw up the ticked-off links */

.box.default a[href^="http:"] { 
  background: url(external.gif) no-repeat right top;
  padding-right: 10px; 
} 
 

/* form styling */

form {
margin: 0;
padding: 0;
font-size: 80%;
background:#FFFF99;
}

fieldset {
width: 146px;
border: 0;
margin: 0 5px 0 0;
padding: 5px;
}

.default fieldset {
width: auto;
border: 0;
margin: 10px 0 10px 50px;
padding: 0;
}

legend {
text-transform: uppercase;
font-size: 110%;
font-weight: bold;
margin: 10px 0 2px 0px;
padding: 2px;
background:#FFFFFF;
color: #333;
}

.default legend {
display: none;
}

label {
display: none;
}

.default label {
display: block;
font-weight: bold;
}

input {
margin-top:0;
padding: 2px;
border: 0;
background: #FFFFFF;
color: #333;
}

textarea {
margin-top:0;
padding: 2px;
border: 0;
background:#FFFFFF;
color: #333;
}

.default input {
display: block;
}

input.submit {
	border: 0;
	margin-bottom: -6px;
    padding: 2px;
	background:#999999;
	font-size: 10px;
}