﻿/* AUTHOR: Berwickshire Housing Association, IT Department, Peter Nisbet */
/* CONTRACT: Berwickshire Housing Association */
/* 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: 898px; 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: 898px;}
#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;}
#navigation	{background-color: transparent; width: 180px; float: left; display: inline; margin: -120px 0px 0px 16px; padding: 10px 0px 50px 20px;} /* 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. */
#content	{background-color: transparent; width: 615px; float: left; margin: -50px 0px 0px 6px; padding: 0px 30px 20px 15px;}
#subfooter 	{background-color: transparent; margin: -35px 0px 0px 0px; padding: 0px 0px 50px 20px;}

/* Styling of Website */

img#titlelogo  {position: absolute; padding: 45px 0px 0px 10px;}

#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: 45px 30px 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 navigation menu */

/* Level one of the Navigation Menu  */
#nav  {	width: 180px;
		list-style: none; /* Bullet points are removed */
		margin: 0px 0px 0px 0px; 
		padding: 1px 0px 0px 0px; /* One pixel of padding for background image */
		background: url(../images/layout/divider1.gif) repeat-x left top;
}

#nav li {	padding: 0px 0px 1px 0px; 
		background: url(../images/layout/divider1.gif) repeat-x left bottom;
}

#nav li a { display: block;
			text-decoration: none; /* IE6 Bug */
			padding: 4px 2px 4px 10px;
			background-color: #285F1A;}

#nav li a:hover {	background-color: #DE602D; color: #FFFFFF;}

/* Level two of the Navigation Menu */

#nav li ul {		width: 180px;
			list-style: none; /* Bullet points are removed */
			margin: 0px 0px 0px 0px;
		 	padding: 1px 0px 0px 0px;  /* One pixel of padding for background image */
			background: url(../images/layout/divider2.gif) repeat-x left top;
}

#nav li ul li  {	padding: 0px 0px 1px 0px; 
			background: url(../images/layout/divider2.gif) repeat-x left bottom;
}

#nav li ul li.last  {margin: 0px 0px 0px 0px;}

#nav li ul li a  { 	display: block;
			text-decoration: none; /* IE6 Bug */
			padding: 4px 2px 4px 20px;
			background-color: #498827;}

#nav li ul li a:hover {background-color: #DE602D; color: #FFFFFF;}

/* Level three of the Navigation Menu */

#nav li li ul {		width: 180px;
			list-style: none; /* Bullet points are removed */
			margin: 0px 0px 0px 0px;
		 	padding: 1px 0px 0px 0px;  /* One pixel of padding for background image */
			background: url(../images/layout/divider3.gif) repeat-x left top;
}

#nav li li ul li  {	padding: 0px 0px 1px 0px; 
			background: url(../images/layout/divider3.gif) repeat-x left bottom;
}

#nav li li ul li.last  {margin: 0px 0px 0px 0px;}

#nav li li ul li a  {	display: block;
			text-decoration: none; /* IE6 Bug */
			padding: 4px 2px 4px 30px;
			background-color: #5BB537;}

#nav li li ul li a:hover {background-color: #DE602D; color: #FFFFFF;}

#nav a.selected {background-color: #FFFFFF; color: #2E5500;}

/* Font Colour */

#nav li a,
#nav li ul li a,
#nav li a:hover,
#nav li a:hover {color: #FFFFFF;}


#nav {font-size: 80%;}
#nav li, #nav li li, #nav li li li, {font-size: 100%;}

/* Navigation Menu Box Layout */

div.navbox {
	background-color: #2E5500;
	margin-bottom: 20px;
}

div.navheader {
	position: relative; /* Used to over come a but which effects IE6 */
	overflow: hidden; 
	height: 5px; 
  	background: transparent url(../images/layout/top.gif) no-repeat top left;
}

div.navcontent {
	position: relative; /* Used to over come a but which effects IE6 */
}

div.navfooter {
	position: relative; /* Used to over come a but which effects IE6 */
	overflow: hidden; 
	height: 5px; 
  	background: transparent url(../images/layout/bottom.gif) no-repeat top left;
}

div.navbox h1 {
	font-family: Arial, Helvetica, san-serif, 'Times New Roman';
	font-style: italic;
	font-variant: normal;
	font-weight: normal;
	font-size: 90%;
	color: #C2EFC2;
	background-image: none;
	text-transform: none;
	margin: 2px 7px 7px 7px;
}

div.navbox p {
	color: #FFFFFF;
	background-image: none;
	text-transform: none;
	margin: 2px 7px 7px 7px;
}

div.searchtitle {
	padding: 0px 0px 1px 0px; 
	background: url(../images/layout/divider1.gif) repeat-x left bottom;
	background-color: #2E5500;
}

div.searchcontent {
	position: relative;
	padding: 0px 0px 1px 0px; 
	background: url(../images/layout/divider1.gif) repeat-x left bottom;
	padding: 4px 8px 4px 8px;
	background-color: #285F1A;
}

div.extratitle {
	padding: 0px 0px 1px 0px; 
	background: url(../images/layout/divider1.gif) repeat-x left bottom;
	background-color: #2E5500;
}

div.extracontent {
	position: relative;
	padding: 0px 0px 1px 0px; 
	background: url(../images/layout/divider1.gif) repeat-x left bottom;
	padding: 4px 8px 4px 8px;
	background-color: #285F1A;
	text-align: center;
}


/* 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: "Times New Roman", "Georgia", "Garamond", serif;
	font-style: italic;
	font-variant: normal;
	font-weight: normal;
	font-size: 220%;

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

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

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

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

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

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

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

.extracontent a {	text-decoration: none;
	color: #FFFFFF;}

.extracontent a:hover 	{color: #FFFFFF;}
.extracontent a:visited 	{color: #FFFFFF;}
.extracontent a:visited:hover {color: #FFFFFF;}
.extracontent a:active 	{color: #FFFFFF;}

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:	4px double #5F5F5F;
	border-right:	4px double #5F5F5F;
	border-bottom:	4px double #5F5F5F;
	border-left:	4px double #5F5F5F;

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


