/* AUTHOR: Berwickshire Housing Association, IT Department, Peter Nisbet */
/* CONTRACT: Seton Care Limited */
/* 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: #EDF0EE; 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;}
#header		{background: url("../images/layout/header.gif") no-repeat; background-color: transparent; height: 300px; padding-top: 1px; padding-left: 30px;} /* 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;}
#content	{background-color: transparent; width: 446px; float: left; display: inline; margin: -80px 0px 0px 16px; padding: 10px 30px 20px 30px;} /* 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. */
#navigation	{background-color: transparent; width: 173px; float: left; margin: -90px 0px 0px 2px; padding: 0px 18px 50px 18px;}
#subfooter 	{background-color: transparent; margin: -35px 0px 0px 0px; padding: 0px 0px 50px 20px;}

/* Styling of Website */

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

#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 mavigation menu */

ul#nav {
		padding: 0em 0px 0px 0px;

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

#nav li {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 {}

#nav li ul li {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: #000000; 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: none;
	letter-spacing: 0.03em;
	color: #DB5E28;}

h2 {	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: none;
	letter-spacing: 0.03em;
	color: #DB5E28;}

h3 {	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: none;
	letter-spacing: 0.03em;
	color: #DB5E28;}

h4 {	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: none;
	letter-spacing: 0.03em;
	color: #DB5E28;}

h5 {	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: none;
	letter-spacing: 0.03em;
	color: #DB5E28;}

h6 {	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: none;
	letter-spacing: 0.03em;
	color: #DB5E28;}

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;}

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;}

#content 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;
}


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;
}
