 /* CSS Mastery: Advanced Web Standards Solutions - Simon Collison's tutorial */

/* the appropriate background class will be applied based on class attached to the body */

body {
	margin: 0;
	padding: 0;
	font:90% Verdana, Arial, Helvetica, sans-serif;
	background-color: #7AD1EC;
}
#threeColLayout {
}
#twoColLayout {
}
#oneColLayout {
}
/* default links */

a:link {
	text-decoration: underline;
	color: #0066FF;
	font-weight: bold;
}
a:hover {
	text-decoration: underline;
	color: #ED018D;
	font-weight: bold;
}
a:visited {
	text-decoration: underline;
	color: #9900CC;
	font-weight: bold;
}


/* headers here */

h1 {
margin: 0;
padding: 0px;
font-size: 120%;
text-indent: -9000px;
}

h2 {
	margin: 0 5px 0 5px;
	padding: 2px;
	font-size: 120%;
	color: #9900CC;
	background-color: #7AD1EC;
	text-align: center;
}

/* and then these h3 statements, unique to whichever section has been attached above, will give the headers the appropriate background color */

h3 {
text-transform: uppercase;
display: inline;
font-size: 92%;
margin: 10px 5px 0 5px;
padding: 2px;
}

h4 {
	text-transform: uppercase;
	display: inline;
	font-size: 110%;
	margin: 10px 5px 0 5px;
	padding: 2px;
	color: #9900CC;
	text-decoration: blink;
	font-weight: bold;
}

/* main wrapper that holds it all centrally */

#wrapper {
	width:820px;
	margin:0 auto;
	background-color: #FFFF00;
	padding: 0;
}

/* default masthead holding the banner and mainNav */

#header {
	width: 800px;
	height: 170px;
	background-image: url(logoStill.jpg);
	border-top: 10px solid #FFFF00;
	margin-left: 10px;
	background-color: #7AD1EC;
	background-repeat: no-repeat;
}
#header p {
	font-size: 120%;
	line-height: 120%;
	color: #330000;
	font-weight: bold;
	left: 191px;
	margin-left: 400px;
}


/* now the three main columns, named in order of importance and display when styles switched off */

#primaryContent {
	width:605px;
	display:inline;
	margin: 0 0 20px;
	float: left;
}

/* note here that specifying threeColLayout in the body will activate the following div instead of the default primaryContent */

#threeColLayout #primaryContent {
float:left;
width:295px;
margin: 0 0 20px 205px;
}

/* note here that specifying twoColLayout in the body will activate the following div instead of the default primaryContent */

#twoColLayout #primaryContent {
	width:605px;
	float:left;
	margin: 0 0 20px 205px;
}

/* 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:295px;
margin: 0 0 20px 15px;
}

#sideContent{
	float:left;
	width:180px;
	margin: 0 0 20px -800px;
	padding: 0px;
}

#oneColLayout #primaryContent {

	width:800px;
	display:inline;
	margin: 0 0 20px;
	float: left;
	padding-left: 10px;
}


/* twoColContent - used to span two right-hand columns - ONLY LEAVE THIS IN IF I DISCUSS IT - box used only if no selector */

#twoColContent{
width:605px;
float:left;
margin: 0 0 20px 195px;
}

/* cbSide controls non-rounded boxes in the thinner left column, known as sideContent */

.cbSide {
width:170px;
margin: 0px 0 0 5px;
padding: 10px 0 5px;
background: #FFF;
}
.cbSide p {
	margin: 0;
	padding: 0 5px 2px 5px;
	font-size: 90%;
	color: #000000;
	font-weight: bold;
}

/* 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;
	padding: 5px 0 5px 0;
	background-color: #FF0099;
	text-align: left;
}

/* Styling of the boxes if there is no JavaScript support */

.cbb {
margin: 0 5px 0 5px;
background: #FFF;
padding: 5px 0 5px 0;
line-height: 120%;
}
.cbb-location {
	color: #FFFFFF;
	background-image: url(Sunset.jpg);
	background-repeat: no-repeat;
	margin: 0px 5px;
	padding: 5px 0px;
	font-weight: bold;
}


/* paragraph styles for any main boxes */
.cbb p, .cb p {
margin: 0;
padding: 0 5px 5px 5px;
color: #000000;
}


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

.posted {
margin: -5px 0 0 5px;
padding: 0 0 10px 0;
font-weight: bold;
color: #666;
}



.postedUnderline {
display: block;
margin: 0 5px 5px 5px;
padding: 0 0 5px 0;
font-weight: bold;
color: #666;
border-bottom: 1px solid #999;
}

address {
margin-left: 50px;
}

/* erm, the footer */

#footer{
	clear:both;
	padding: 0;
	width: 800px;
	height: 30px;
	font-weight: bold;
	font-size: 99%;
	background-image: url(mainNavBg.gif);
	margin: 0px 0px 0px 10px;
	background-repeat: no-repeat;
}
#footer ul
{
	list-style: none;
	margin: 0;
	padding: 0;
	width: 800px;
	height: 30px;
	display: inline;
}
#footer ul .first a
{
background:none;
}

#footer li
{
	display: inline;
	margin: 0;
	padding: 0;
	line-height: 30px;
	text-decoration: none;
	float: left;
}

#footer a
{
	color: #000000;
	width: auto;
	text-decoration: none;
	margin: 0;
	background-image: url(divider.gif);
	background-position: left center;
	height: 30px;
	padding-top: 0px;
	padding-right: 15px;
	line-height: 30px;
	padding-left: 15px;
	display: block;
	background-repeat: no-repeat;
}

#footer a:hover, #footer a:active {
	color: #FFFFFF;
}
#footer a.active:link, #footer a.active:visited
{
position: relative;
z-index: 102;
color: #FF00FF;
font-weight: bold;
}

.footnote {
	font-size: 70%;
	font-weight: bold;
	color: #000000;
	text-decoration: none;
	padding-left: 10px;
}


/* 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: 0px 0 2px 5px;
	border: 2px solid #9900FF;
}

/* 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: 4px;
	border: 3px solid #9900FF;
}

.imgLeft {
	float: left;
	border: 3px solid #9900FF;
	margin-top: 5px;
	margin-right: 10px;
	margin-left: 10px;
}

.imgRight {
	float: right;
	border: 3px solid #9900FF;
	margin-top: 5px;
	margin-right: 10px;
	margin-left: 10px;
}

/* drop shadow effect for the gallery thumbnails. Sadly this requires a div to be wrapped around the image markup, which is a shame */

.img-wrapper {
margin: 20px 40px 0 0;
background: url(shadow.gif) no-repeat bottom right;
float:left;
line-height:0;
}
 
.img-wrapper img {
	float:none;
	margin:0;
	background:#fff;
	padding:4px;
	border:1px solid #9900FF;
	position:relative;
	left:-5px;
	top:-5px;
}

/* used to ensure all our floated thumbnails stay the right width away from the left side of the box */

.thumbnails {
margin: 0 0 20px 50px;
}

.img-table {
	border: 2px solid #9900FF;
	margin: 0px;
	padding: 0px;
}

/* 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:#0066FF;
	line-height:150%;
	text-decoration:none;
	display:block;
	width:164px;
	border-bottom: 1px solid #0000FF;
	font-weight: bold;
	background-color: #FFF;
	background-image: url(ticks.gif);
}

.cbSide li a:active {
	color:#0066FF;
	line-height:150%;
	text-decoration:none;
	display:block;
	width:164px;
	border-bottom: 1px solid #0000FF;
	background-color: #FFF;
	background-image: url(ticks.gif);
	background-position: 0px 0px;
}

.cbSide li a:visited {
	color: #9900CC;
	text-decoration:none;
	line-height:150%;
	display:block;
	width:164px;
	border-bottom: 1px solid #0000FF;
	background-position: 0 -40px;
	background-color: #FFF;
	background-image: url(ticks.gif);
	font-weight: bold;
}

.cbSide li a:hover {
	color:#FF0099;
	line-height:150%;
	display:block;
	width:164px;
	border-bottom: 1px solid #0000FF;
	text-decoration:none;
	background-color: #FFF;
	background-image: url(ticks.gif);
	background-position: 0px -20px;
}

/* horizontal main menu navigation - based on a method from Richard Rutter */

 #mainNav
{
	padding: 0;
	width: 800px;
	height: 30px;
	font-weight: bold;
	font-size: 99%;
	background-image: url(mainNavBg.gif);
	margin: 0px 0px 0px 10px;
	background-repeat: no-repeat;
	border-top: 10px solid #FFFF00;
}

#mainNav ul
{
	list-style: none;
	margin: 0;
	padding: 0;
	width: 800px;
	height: 30px;
	display: inline;
}

#mainNav ul .first a
{
background:none;
}

#mainNav li
{
	display: inline;
	margin: 0;
	padding: 0;
	line-height: 30px;
	text-decoration: none;
	float: left;
}

#mainNav a
{
	color: #000000;
	width: auto;
	text-decoration: none;
	margin: 0;
	background-image: url(divider.gif);
	background-position: left center;
	height: 30px;
	padding-top: 0px;
	padding-right: 15px;
	line-height: 30px;
	padding-left: 15px;
	display: block;
	background-repeat: no-repeat;
}

#mainNav a:hover, #mainNav a:active {
	color: #FFFFFF;
}

#mainNav a.active:link, #mainNav a.active:visited
{
position: relative;
z-index: 102;
color: #FF00FF;
font-weight: bold;
}

/* Highlighting the current page */

body.accommodation #mainNav a#accommodation, body.features #mainNav a#features, body.location #mainNav a#location, body.location #mainNav a#location, body.special #mainNav a#special{ 
  color: #FF0099;
text-decoration: underline;
font-weight: bold;
}
body.accommodation #mainNav a:hover#accommodation, body.features #mainNav a:hover#features, body.location #mainNav a:hover#location, body.toDo #mainNav a:hover#toDo, body.special #mainNav a:hover#special{ 
  color: #FFF;
}
body.home #footer a#home, body.map #footer a#map,  body.toDo #footer a#toDo ,body.forSale #footer a#forSale, body.contact #footer a#contact, body.links #footer a#links{ 
  color: #FF0099;
text-decoration: underline;
font-weight: bold;
}
body.home #footer a:hover#home, body.map #footer a:hover#map,  body.toDo #footer a:hover#toDo ,body.forSale #footer a:hover#forSale, body.contact #footer a:hover#contact, body.links #footer a:hover#links{ 
  color: #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; 
} 
 .box.default a[href^="http://www.collylogic.com"], .box.default a[href^="http://www.collylogic.com"] { 
  background-image: none; 
  padding-right: 0; 
}

.img-media {
	margin: 0px;
	padding: 0px;
	float: left;
}

.sold {
	color: #FF0000;
	font-weight: bold;
}
form {
	font-size: 80%;
	border: thin solid #000000;
	margin: 5px;
	padding: 5px;
	font-weight: bold;
	line-height: 2em;
}
input {
	background-color: #FFFFFF;
}
