/*
Theme Name: Motorsport
Theme URI: http://www.jon-wright.co.uk/
Description: The first public theme for SG Petch Motorsport by Jon Wright.
Version: 1.0
Author: Jon Wright
Author URI: http://www.jon-wright.co.uk/

/* ------------------------------- formatting ----------------------------- */

body {
	margin: 0;
	padding: 0;
	}

h1 {
	font: bold x-large Arial, sans-serif;
	color: #06397B;
	margin-top: 0px;
	}

#news h2 {
	color: #000000;
	margin-top: 10px;
	}

h2 {
	color: #9C1A1E;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	}

h4 {
	color: #000000;
	margin-bottom: 0px;
	font-size: x-small;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: normal;
	}

h5 {
	font: italic bold small Arial, sans-serif;
	color: #06397B;
	margin-top: 2px;
	}
	
p {
	font-size: 0.7em;
	font-family: Arial, Helvetica, sans-serif;
	}

#center p {
	font-size: 0.8em;
	font-family: Arial, Helvetica, sans-serif;
	}

#sponsor p, #articlesponsor p {
	color: #000000;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
	}

#articlesponsor ul {
	color: #000000;
	}

#footer p {
	margin: 4px;
	text-align: center;
	}

a {
	color: #06397B;		
	}
a:hover {
	color: #9C191E;	
	}

hr {
	color: #A5B5C6;
	height: 1px;
	}
	
a img {
	display: block;
	border: none 0px;
	}

div#top a {
	display: block;			/* makes the background hover effect work in Mozilla */
	width: 153px;
	background-color: #FFFFFF;
	}

div#top a:hover {
	background-color: #FFFFFF;
	}

.textbox {
	padding: 4px;
	font:  small verdana, sans-serif;
	color: #000;
	background-color: #fff;
	border: 1px solid #06397B;
	font-size: small;
	}

.button {
	padding: 2px;
	color: #fff;
	background-color: #5C6F90;
	border: 1px solid #000;
	font-family: Arial, Helvetica, sans-serif;
	font-size: small;
	}

.latestarticle {
	margin-bottom: 0px;
	}
	
ol {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	}
#center ul {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	}
	
.headshot {
	display: inline;
	float: left;
	margin: 0px 0.5em 0.5em 0px;
	}
	
p.latestarticle a {
	clear: right;
	font-family: Arial, Helvetica, sans-serif;
	font-size: small;
	font-weight: bold;
	}

.date {
	display: block;
	text-align: left;
	color: #9C191E;
	font-family: Arial, Helvetica, sans-serif;
	font-size: x-small;
	}

.author {
	display: block;
	color: #000000;
	font-family: Arial, Helvetica, sans-serif;
	font-size: small;
	}

#author,#email,#url,#comment {
border:1px solid #cccccc;
font-family:Arial, Helvetica, sans-serif;
font-size:1em;
margin:0;
padding:4px;
}

.blurb {
	margin: 0px 0px 1em 55px;
	}

p.crumbtrail {
	margin: 10px 28% 0px;
	font-size: small;
	font-weight: bold;
	color: #9C191E;
	}
	
#commentsection {
margin:30px 0 0;
}

#commentsection p {
margin:0 0 6px;
}

.comment {
background:#f4f4f4 url(images/4px.jpg) top left repeat-y;
color:#000000;
margin:0 0 10px;
padding:8px 5px 4px 12px;
}

.comment p.commenthead {
line-height:1.5em;
padding:0;
}

.comment p {
font-size:0.9em;
line-height:1.2em;
margin:0 0 6px;
padding:0;
}

.hide {
display:none;
}

.post {
margin:0 0 25px;
}

.postinfo {
background:#f4f4f4 url(images/4px.jpg) top left repeat-y;
color:#808080;
font-size:0.9em;
font-weight:bold;
line-height:1.4em;
margin:10px 0 30px;
padding:8px 5px 8px 14px;
}

#subpages {
	border-left:1px solid #06397B;
	background-color: #FFFFFF;
	font-weight:bold;
	margin:0px 0px 0px 0px;
	padding:0px 0px 0px 0px;
	width:35%;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	top: 101px;
	position: absolute;
	left: 850px;
}

#subpages h2 {
	color:#9C1A1E;
	margin:0 0 0px;
	padding:2px;
    font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
}

#subpages ul.submenu {
margin:0px;
padding:0px;
}

#subpages ul.submenu li {
list-style:none;
margin:0 0 0px;
padding:0;
}

#subpages ul.submenu li a {
	background-color:#f4f4f4;
	border-bottom:1px solid #cccccc;
	display:block;
	margin:2px;
	padding: 2px 2%;
	font: bold 0.8em /1.5 arial, sans-serif;
	color: #505050;
	text-decoration: none;

}

#subpages ul.submenu li a:hover {
    background-color: #eaeaea;
	color: #06397B;
    text-decoration:none;
}

#subpages ul.submenu li.current_page_item a {
border-left:4px solid #000099;
color:#000099;
text-decoration:none;
}

#subpages ul.submenu li.current_page_item ul li a {
border-left:4px solid #cccccc;
color:#505050;
text-decoration:none;
}
/* 

------------------------------- layout ----------------------------- 

Notes:

Do not mix px widths with % widths for margins, borders or padding because 
the total box width = set width + padding + border.  (It helps if you can add them together)

The box model hack is used to fix an bug in IE5-Win ...for an explanation from the guy that
wrote it go to http://www.tantek.com/CSS/Examples/boxmodelhack.html

IE6-Win will behave like IE5-Win  if you include <?xml version="1.0"?>  It is apparently
unneccessary so leave it out!

Left Col Widths:
 |  pad   |         width        |  pad   | 				
 ------------------------------------------					
 |   0    |          25%         |   0    |	
 
Center Margins:
 |  marg  |         width        |  marg  | 
 ------------------------------------------
 |   25%  |        (auto)        |   25%  |

Right Col Widths:
 |  pad   |         width        |  pad   | 				
 ------------------------------------------					
 |  1.5%  |          22%         |  1.5%  |				total width= 25%
 

*/

#top {
	padding: 4px;
	background: #FFFFFF url(images/bgtop-white.jpg) repeat-x;
	border-bottom: 1px solid #06397B;
	}
	
#center {
	margin: 0px 25%; 
	padding: 1% 3%;
	background: #fff url(images/bgcenter.jpg) no-repeat center;
	color: #000;
	}

#left {
	position: absolute;
	padding: 0px;
	top: 101px;
	width: 25%;
	background: #A5B5C6 url(images/bgbotleft2.jpg) left bottom repeat-x;
	color: #000;
	background-color: #FFFFFF;
	border-right: 1px solid #06397B;
	}

#otherleftstuff {
	width: 88%;
	padding: 10px 6% 40px 6%;
	}

#news {
	position: absolute;
	width: 21.9%;
	height: 250px;
	overflow: hidden;
	margin-left: 75%;
	padding: 0px 1.5%;
	top: 101px;
	background-color: #cccccc;
	border-top: 1px solid #06397B;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	}

div#news p.row {
	width: 100%;
	margin: 0px 0px 1.5em 0px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 10px;
	}

div#news p.row span.leftcol {
	float: left;
	color: #D6D6D6;
	font-family: Arial, Helvetica, sans-serif;
	}
	
div#news p.row span.rightcol {
	width: 100%;
	float: right;
	padding-bottom: 20px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 10px;
	}
	
div#news p.row span.rightcol a {
	color: #000000;
	font-weight: bold;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 10px;
	}
	
div#news p.row span.rightcol a:hover {
	color: #06397B;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 10px;
	}
	
.spacer {
	display: block;
	height: 1px;
	font: 1px /1 sans-serif;
	clear: both;
	}
		
div#topcontent {
	position: absolute;
	top: 10px;
	right: 0px;
	width: 80%;
	}

#topcontent h2, #topcontent p {
	display: inline;
	margin-right: 0.5em;
	}

#sponsor {
	position: absolute;
	width: 21.9%;
	height: 251px;
	margin-left: 75%;
	padding: 10px 1.5%;
	top: 375px;
	text-align: center;
	}
	
#articlesponsor {
	position: absolute;
	width: 21.9%;
	height: 251px;
	margin-left: 75%;
	padding: 10px 1.5%;
	top: 130px;
	text-align: center;
	}

#footer {
	clear: both;
	border-top: 1px solid #06397B;
	border-bottom: 1px solid #06397B;
	background-color: #f4f4f4;
	color: #000;
	}

#bio {
	float: right;
	width: 30%;
	padding: 1%;
	border: 4px dotted #06397B;
	color: 5C6F90;
	font-size: 0.7em;
	}
	
/* Begin Images */

p img {
	padding: 4px;
	margin: 0 7px 2px 0;
	display: inline;
	max-width: 100%;
	}
	
img.alignleft {
	padding: 4px;
	margin: 0 7px 2px 0;
	display: inline;
	}

.alignleft {
	float: left
	}
	
/* End Images */

/* --------------------- Feature Image and Transparency Trick --------------- */


#featureimg {
	margin: 0px 25% 0px 170px;
	height: 250px;
	background: #CCCCCC url(images/rally2.jpg) no-repeat right top;
	text-align: center;
	border-top: 1px solid #06397B;		/*	Without this 1px border, Mozilla/Netscape applies the 200px margin from the child element (div#mstrans) - I don't know why? In these crazy topsy turvey times it seems that nothing is certain  */  
	}
	
#mstrans {
	margin: 200px auto 0px auto;
	width: 140px;
	height: 30px;
	filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/footbag.png');
	border: 0px solid pink;
	}
	
#mstrans img {
	filter: Alpha(opacity=0);	
	border: 0px solid cyan;
	}

/* 

-------------------------------- Navigation ------------------------------ 

List tips courtesy of A List Apart: http://www.alistapart.com/stories/taminglists/

*/


ul#mainnav {
	list-style: none;
	margin: 0px;
	padding: 0px;
	background-color: #D6D6D6;

	}
		
ul#mainnav li {
	display: block;
	border-top: 1px solid #06397B;
	}

ul#mainnav li a {
	display: block;
	margin: 0px 0px 0px 0px;
	padding: 6px 6%;
	background-color: #f4f4f4;
	font: bold 0.8em /1.5 arial, sans-serif;		/* If you get an unwanted gap after your a block (IE-Win) try increasing the line height		*/
	color: #505050;
	text-decoration: none;
	width: 88%;				/* 	Causes Problems in IE5-Mac and Netscape/Mozzilla - see next fix		*/
	}

ul#mainnav li a:hover {
	background-color: #eaeaea;
	color: #06397B;
	}
	
ul#mainnav ul.subnav {
	margin: 0px;
	list-style: none;
	padding: 0px;
	border: 0px solid pink;
	}

ul#mainnav ul.subnav li {
	border-top: 0 none;
	border: 0px solid green;
	padding-left: 1.5em;
	}

ul#mainnav ul.subnav li a {
	padding: 1%;
	margin: 0px;
	font: bold 0.7em /1.5 verdana, sans-serif;
	color: #5C6F90;
	background-color: transparent;
	border: 0px solid yellow;
	}

ul#mainnav ul.subnav li a:hover {
	color: #43616B;
	background-color: transparent;
	text-decoration: underline;
	}
	
div#topcontent ul {
	position: absolute;
	right: 0px;
	list-style: none;
	margin: 0px 0px 40px 0px;
	}
div#topcontent ul li {
	display: inline;
	padding: 0 0.5em;
	border-left: 1px solid #06397B;	
	}
div#topcontent ul li.first {
	border-left: 0px none;
	}
div#topcontent ul li a {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.7 /1;
	font-style: italic;
	color: #9C191E;
	font-weight: bold;
	text-decoration: none;
	text-transform: none;
	}

div#topcontent form {
	position: absolute;
	right: 0px;
	top: 55px;
	margin: 0px;
	}
	
#sponsor ul {
	text-align: left;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	padding-left: 20px;
	}
	
#sponsor h2 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	text-align: left;
	padding-left: 20px;
	color: #9C1A1E;
}
#articlesponsor ul {
	text-align: left;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	padding-left: 20px;
	}

#articlesponsor h2 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	text-align: left;
	padding-left: 20px;
	color: #9C1A1E;
}

.navigation {
display:block;
margin:5px 0 5px;
padding:0 0 10px;
text-align:left;
}

.navigation p {
margin:0;
padding:0;
}

.prevlink{
	margin-right:10px;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
}
	
.nextlink {
	margin-left:10px;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
}

#otherleftstuff ul {
	text-align: left;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	padding-left: 20px;
	}
	
#otherleftstuff h2 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	text-align: left;
	padding-left: 20px;
	color: #9C1A1E;
	}
/* ---------------------------------------------------------------------*/
  
