/* AUTHOR: Berwickshire Housing Association, IT Department, Peter Nisbet */
/* CONTRACT: berwickshirelimited */
/* COPYRIGHT: 2006 Berwickshire Housing Association */

* {margin: 0; padding: 0; border: 0;} /* We use this line to turn off all present margins, padding and borders, we will set these styles by ourselves */

/* Layout of Website */
/* The following few lines are used to define the layout of the standard website. */
/* We make use of background images, to seperate content from style */
/* We use the padding and margin options to position the text correct inside each div */
/* There are a number of workarounds so that the page displays correctly in a range of diffrent browsers */
 
body		{background: url("../images/layout/background.gif") repeat-x; background-color: #EEF1EF; width: 770px; position: relative; margin-left: auto; margin-right: auto;} /* A completely horrible fix! We must position the body with "position: relative;" so that the suckerfish dropdown menu is positioned correctly in IE when the window is resized. */
#container 	{background: url("../images/layout/content.gif") repeat-y; background-color: #FFFFFF; width: 770px;}
#header1	{background: url("../images/layout/header1.jpg") no-repeat; background-color: transparent; height: 300px; padding-top: 1px; padding-left: 16px;} /* 1px padding is to stop the margins being adjacent and thus collapsing. ‘Margin collapsing’ is a CSS phenomenon that only affects standard compliant browsers, not IE. */
#header2	{background: url("../images/layout/header2.jpg") no-repeat; background-color: transparent; height: 300px; padding-top: 1px; padding-left: 16px;} /* 1px padding is to stop the margins being adjacent and thus collapsing. ‘Margin collapsing’ is a CSS phenomenon that only affects standard compliant browsers, not IE. */
#header3	{background: url("../images/layout/header3.jpg") no-repeat; background-color: transparent; height: 300px; padding-top: 1px; padding-left: 16px;} /* 1px padding is to stop the margins being adjacent and thus collapsing. ‘Margin collapsing’ is a CSS phenomenon that only affects standard compliant browsers, not IE. */
#header4	{background: url("../images/layout/header4.jpg") no-repeat; background-color: transparent; height: 300px; padding-top: 1px; padding-left: 16px;} /* 1px padding is to stop the margins being adjacent and thus collapsing. ‘Margin collapsing’ is a CSS phenomenon that only affects standard compliant browsers, not IE. */
#footer 	{background: url("../images/layout/footer.gif") no-repeat top center; background-color: transparent; height: 80px; clear: both; padding: 9px 35px 0px 0px; text-align: right;}
#content1	{background: url("../images/layout/watermark.jpg") no-repeat bottom left; background-color: transparent; width: 638px; float: left; display: inline; margin: -80px 0px 0px 16px; padding: 10px 50px 20px 50px;} /* Added "display: inline;" for yet another IE bug. This works as floats automatically become block level elements. Therefore "display: inline;" is pointless. However it does overcome the IE bug which doubles the width of the margin. */
#content2	{background: url("../images/layout/watermark.jpg") no-repeat bottom left; background-color: transparent; width: 638px; float: left; display: inline; margin: -20px 0px 0px 16px; padding: 10px 50px 20px 50px;} /* Added "display: inline;" for yet another IE bug. This works as floats automatically become block level elements. Therefore "display: inline;" is pointless. However it does overcome the IE bug which doubles the width of the margin. */
#subfooter 	{background-color: transparent; margin: -35px 0px 0px 0px; padding: 0px 0px 50px 20px;}

/* Styling of Website */

img#titlelogo  {position: absolute; padding-top: 126px;}

#footer p {	padding: 0px 0px 0px 0px;

		font-size: 70%;

		word-spacing: normal;
		letter-spacing: normal;
		vertical-align: text-top;
		text-decoration: none;
		text-transform: none;
		text-indent: 0px;
		line-height: 1.5em;

		color: #ffffff;}

#subfooter p {	padding: 0px 0px 0px 0px;

		font-size: 70%;

		word-spacing: normal;
		letter-spacing: normal;
		vertical-align: text-top;
		text-decoration: none;
		text-transform: none;
		text-indent: 0px;
		line-height: 1.5em;

		color: #C0C0C0;}

#subfooter a {color: #B2B2C0;}

div.floatbox {	float: right;		
		margin: 40px 20px 0px 0px;
		display: inline; /* Added "display: inline;" for yet another IE bug. This works as floats automatically become block level elements. Therefore "display: inline;" is pointless. However it does overcome the IE bug which doubles the width of the margin. */
}

.floatbox p {	background-color: #FFFFFF;

		margin: 0px;
		border: 1px solid  #C0D0DB;
		padding: 1px 5px 1px 5px;
	
		font-size: 70%;

		word-spacing: normal;
		letter-spacing: normal;
		vertical-align: middle;
		text-decoration: none;
		text-transform: none;
		text-indent: 0px;
		line-height: 1.5em;

		color: #080808;}

.printhidehighcontrast {visibility: visible;}
.printhidestandard {visibility: hidden; display: none;}

/* Styling for drop down menus */

div#menubar {	background: url(../images/layout/alpha.png) repeat-x; /* This is a png so we can use the alpha channel */
		background-color: transparent;
		width: 738px;
		position: relative;
	
		margin: 166px 0px 0px 0px; /*Top margin brings the menubar down to the correct position */
		border-top: 1px solid #C0D0DB;
		border-bottom: 1px solid #C0D0DB;
		padding: 4px 0px 4px 0px;
}

ul#nav {	background: url(../images/layout/menubar.gif) repeat-x;
		background-color: #209431;
		width: 718px; /* width is 738px - padding left which is 20px which gives 718px */
		height: 1.6em;
		padding: 0.3em 0px 0px 20px;

		text-align: center;
		list-style: none;
		color: #ffffff;
		text-transform: lowercase;
		font-size: 85%;}

#nav li {	position: relative; /* Must be "position: relative;" so that the dropdown menu appear in the correct position */
		float: left;
		padding: 0px 0.5em 5px 5px; /* This padding is added so that the dropdown can overlap the dropdown link. Therefore the dropdown won't dissapper when you move onto it. */}
	
#nav li ul {	filter:alpha(opacity=90);   /* Internet Explorer       */
		-moz-opacity:0.9;           /* Mozilla 1.6 and below   */
		opacity: 0.9;               /* newer Mozilla and CSS-3 */

		text-align: left;

		background-color: #1C5E1C;
		width: 14em;
		position: absolute; top: 1.5em; left: 0px;
		display: none;
		padding: 0.2em 5px 0.2em 5px;}

#nav li ul li {width: 14em; list-style: none; white-space: normal; float: left; padding: 0.2em 5px 0.2em 5px;}
#nav i>ul {top: auto; left: auto;} /* to override top and left in browsers other than IE, which will position to the top right of the containing li, rather than bottom left */
#nav li:hover ul, #nav li.over ul {display: block;} /* lists nested under hovered list items */
#nav a {color: #FFFFFF; background-color: transparent; text-decoration: none;}

/* Formatting of Website */

body {	font-family: Arial, Helvetica, san-serif, 'Times New Roman';
	font-style: normal;
	font-variant: normal;
	font-weight: normal;
	font-size: 90%;

	color: #080808;}

h1 {	background: url("../images/layout/underline.gif") repeat-x bottom left;
	margin-bottom: 0.2em;

	font-family: Arial, Helvetica, san-serif, 'Times New Roman';
	font-style: normal;
	font-variant: normal;
	font-weight: normal;
	font-size: 160%;

	text-transform: lowercase;
	letter-spacing: 0.03em;
	color: #209431;}

h2 {	background: url("../images/layout/underline.gif") repeat-x bottom left;
	margin-top: 0.5em;
	margin-bottom: 0.2em;

	font-family: Arial, Helvetica, san-serif, 'Times New Roman';
	font-style: normal;
	font-variant: normal;
	font-weight: normal;
	font-size: 140%;

	text-transform: lowercase;
	letter-spacing: 0.03em;
	color: #209431;}

h3 {	background: url("../images/layout/underline.gif") repeat-x bottom left;
	margin-top: 0.5em;
	margin-bottom: 0.2em;

	font-family: Arial, Helvetica, san-serif, 'Times New Roman';
	font-style: normal;
	font-variant: normal;
	font-weight: normal;
	font-size: 120%;

	text-transform: lowercase;
	letter-spacing: 0.03em;
	color: #209431;}

h4 {	background: url("../images/layout/underline.gif") repeat-x bottom left;
	margin-top: 0.5em;
	margin-bottom: 0.2em;

	font-family: Arial, Helvetica, san-serif, 'Times New Roman';
	font-style: normal;
	font-variant: normal;
	font-weight: normal;
	font-size: 110%;

	text-transform: lowercase;
	letter-spacing: 0.03em;
	color: #209431;}

h5 {	background: url("../images/layout/underline.gif") repeat-x bottom left;
	margin-top: 0.5em;
	margin-bottom: 0.2em;

	font-family: Arial, Helvetica, san-serif, 'Times New Roman';
	font-style: normal;
	font-variant: normal;
	font-weight: normal;
	font-size: 105%;

	text-transform: lowercase;
	letter-spacing: 0.03em;
	color: #209431;}

h6 {	background: url("../images/layout/underline.gif") repeat-x bottom left;
	margin-top: 0.5em;
	margin-bottom: 0.2em;

	font-family: Arial, Helvetica, san-serif, 'Times New Roman';
	font-style: normal;
	font-variant: normal;
	font-weight: normal;
	font-size: 100%;

	text-transform: lowercase;
	letter-spacing: 0.03em;
	color: #209431;}

#content1 p, #content2 p {	
		
	padding: 0.4em 0px 0.4em 0px;
	font-size: 80%;
	word-spacing: 0.05em;
	letter-spacing: 0.03em;
	vertical-align: middle;
	text-decoration: none;
	text-transform: none;
	text-indent: 0px;
	line-height: 1.6em;

	color: #080808;}

#content1 li, #content2 li {
	
	padding: 0.4em 0px 0.4em 0px;
	font-size: 80%;
	word-spacing: 0.05em;
	letter-spacing: 0.03em;
	vertical-align: middle;
	text-decoration: none;
	text-transform: none;
	text-indent: 0px;
	line-height: 1.6em;

	color: #080808;}

div.box {	
	margin: 10px 30px 10px 30px;
	border: 1px solid #C1DAD7;
	padding: 5px 15px 5px 15px;
}

div.box h1 {background: none;}
div.box h2 {background: none;}
div.box h3 {background: none;}
div.box h4 {background: none;}
div.box h5 {background: none;}
div.box h6 {background: none;}


a {	text-decoration: none;
	color: #46069E;}

a:hover 	{color:	#404040;}
a:visited 	{color: #46069E;}
a:visited:hover {color:	#404040;}
a:active 	{color: #46069E;}

ul,ol,dl {padding-left: 2em; padding-top: 0.5em; padding-bottom: 0.5em;}
dd {padding-top: 0.2em; padding-bottom: 0.2em;}
dt {font-weight: bold; padding-top: 0.2em;}

th {
	color: #6D929B;
	border: 1px solid #C1DAD7;
	letter-spacing: 2px;
	text-align: center;
	padding: 6px 6px 6px 6px;
	background-color: #CAE8EA;
}

td {
	font-size: 80%;
	color: #080808;
	border: 1px solid #C1DAD7;
	text-align: left;
	padding: 6px 6px 6px 6px;
	background-color: #FFFFFF;
	vertical-align: top;
}

img.thumbnail {

	text-align:	center;

	padding-top:	0em;
	padding-right:	0em;
	padding-bottom:	0em;
	padding-left:	0em;

	border-top:	1px solid #5F5F5F;
	border-right:	1px solid #5F5F5F;
	border-bottom:	1px solid #5F5F5F;
	border-left:	1px solid #5F5F5F;

	margin-top:	0.5em;
	margin-right:	0.5em;
	margin-bottom:	0.5em;
	margin-left:	0.5em;
}