	/* Sivuston css-tyylit */

/* HTML-elementtien "nollaus" ja globaalit alustukset */
@import url("reset.css");

html, body { height: 100%; }

body {
	color: #333;
	background: #fff url(../img/css/bg/bg_body.gif) repeat-y 0 0;
	font-size: 13px;
	font-family: Helvetica, Arial, sans-serif;
}


/* TYPOGRAFIAT
************** */
h1, h2, h3, h4, p, li { 
	line-height: 18px; 
}

h1 { 
	margin-bottom: 18px;
	font-size: 18px;
}
body#frontpage h1,
body#insurance h1 {
	font-size: 22px;
	line-height: 26px;
}
h1 span {
	border-bottom: #333 solid 6px;
}

h2 {
	margin-bottom: 8px;
	font-size: 15px;
}

form h4 { 
	margin-bottom: 8px; 
}

#form-info p {
	margin-bottom: 8px;
	color: #cc0000;
}

ul { 
	list-style-position: inside; 
}
ul#contact { 
	list-style: none;
	list-style-position: outside; 
}

table {
	margin-bottom: 18px;
	background-color: #eee;
	width: 100%;
}
th {
	text-align: center;
	padding: 2%;
}
td {
	padding: 2% 2% 0;
	font-size: 12px;
}
th, td {
	border: solid 1px black;
}

p, ul { margin-bottom: 18px; }

a, a:link { 
	color: #333;
}
a:hover, a:focus { 
	color: #000;
}


/* LAYOUTIN SISALTOINEEN
************************ */
/* Sisallon sailio */
#container {
	/*position: relative;
	overflow: hidden;*/
	width: 1000px;
}

	/* Sivuston header */
	#header {
		position: relative;
		padding-top: 113px;
		background: transparent url(../img/css/bg/bg_header.png) no-repeat 0 0;
		width: 1000px;
	}
		#header p#brand-site {
			position: absolute;
			top: 43px;
			right: 46px;
			margin-bottom: 0;
			width: 179px;
			height: 30px;
			background: url(../img/css/bg/bg_metroautofi.png) no-repeat 0 0;
			text-indent: -9999px;
		}
			#header p#brand-site a { 
				display: block;
				width: 179px;
				height: 30px;
			}		
		#header p#brand-logo {
			position: absolute;
			top: 20px;
			left: 147px;
			margin-bottom: 0;
		}
		/* kuva-alue */
		#header .figure, #flashcontent {
			position: relative;
			z-index: 0;
			top: -22px;
			margin-bottom: -22px;
			margin-left: 112px;
			width: 882px;
		}
		
	/* Sivuston paasisalto-alue */
	#content {
		position: relative;
		z-index: 2;
		float: left;
		margin-top: 20px;
		margin-left: 112px;
		margin-bottom: 50px;
		width: 882px;
	}
	
		#content #main-content {
			float: left;
			margin-left: 40px;
			width: 515px;
		}
		
		.box {
			padding: 3% 3% 0;
			background-color: #EEE;
		}
		.box p {
			margin-bottom: 0;
			padding-bottom: 3%;
		}
		
			#main-content .greenlift {
				padding-top: 25px;
				padding-bottom: 25px;
			}
			#main-content .greenlift h2,
			#main-content .greenlift strong {
				color: #6ec345;
			}
		
		#content #sidebar {
			position: relative;
			top: -120px;
			left: 0;
			float: right;
			margin-right: 30px;
			margin-bottom: -120px;
			padding-top: 15px;
			padding-bottom: 30px;
			width: 238px;
			background: url(../img/css/bg/bg_sidebar-mainpg.png) no-repeat 0 0;
		}		
			
			#content #sidebar h2,
			#content #sidebar p,
			#content #sidebar ul {
				padding-right: 25px;
				padding-left: 25px;
			}
			#content #sidebar ul li p {
				padding-right: 0;
				padding-left: 0;
			}
			#content #sidebar h2 { 
				margin-bottom: 5px;
				padding-top: 10px;
				text-transform: uppercase; 
			}
			#content #sidebar h2,
			#content #sidebar ul li,
			#content #sidebar ul li p { 
				font-size: 11px; 
				line-height: 16px;
			}
		
	/* Sivuston footer */
	#footer {
		clear: both;
		margin-bottom: 18px;
		margin-left: 112px;
		border-top: 1px solid #e7e7e7;
		padding-top: 18px;
		width: 882px;
		color: #a3a3a3;
	}
		#footer p {
			margin-bottom: 0;
			font-size: 11px;
			text-align: center;
		}		
			#footer p a { 
				color: #a3a3a3; 
			}
			#footer p a:hover, 
			#footer p a:focus {
				color: #707070;
			}

/* Apusivu */
body#help-page { background-image: none; }

body#help-page #container {
	width: 100%;
	background: #f7f7f7;
}
	body#help-page #container #content {
		position: static;
		float: none;
		overflow: hidden;
		margin-top: 45px;
		margin-bottom: 45px;
		margin-left: 45px;
		padding-top: 45px;
		padding-bottom: 30px;
		width: 600px;
		background-color: #fff;
	}
		body#help-page #container #content h1,
		body#help-page #container #content h2,
		body#help-page #container #content p { 
			padding-left: 45px;
			padding-right: 45px; 
		}
		body#help-page #container #content p#brand-logo {
			overflow: hidden;
			margin-bottom: 30px;
			border-bottom: 1px solid #dedede;
			padding-bottom: 30px;
		}
			body#help-page #container #content p#brand-logo img { float: right; }	


/* NAVIGAATIOT
-------------- */
ul#main-nav {
	position: relative;
	z-index: 2;
	overflow: hidden;
	margin-bottom: 0;
	margin-left: 112px;
	width: 882px;
	background: transparent url(../img/css/bg/bg_main-nav.png) repeat 0 100%;
	list-style: none;
}
	ul#main-nav li {
		float: left;
		margin-left: 30px;
		padding: 12px 12px 14px;
		color: #fff;
		font-size: 12px;
		line-height: 1;
		text-transform: uppercase;
	}
	ul#main-nav li#active { 
		font-weight: bold; 
	}
		ul#main-nav li a {
			display: block;
			color: #fff;
			text-decoration: none;
		}
		ul#main-nav li a:hover {
			text-decoration: underline;
		}


/* LOMAKKEET
------------ */
form { margin-bottom: 30px; }

fieldset {
	margin-bottom: 30px;
	border-bottom: 1px solid #dedede;
	padding-bottom: 15px;
}

legend {
	padding-bottom: 8px;
	font-weight: bold;
}
	
select { width: 170px; }

/* lomake-elementin sailio */
.form-item {
	overflow: hidden;
	margin-bottom: 8px;
	width: 510px;
}
	.form-item label {
		float: left;
		margin-right: 15px;
		width: 170px;
		text-align: right;
	}
	.form-item input,
	.form-item select { 
		float: left;
		vertical-align: middle;	
	}
	.form-item input.inline { float: none; }
	.form-item input#submit-btn { margin-right: 15px; }

#form-info {
	margin-bottom: 30px;
	border: 1px solid #dedede;
	padding: 10px 10px 0;
	background-color: #f7f7f7;
}
	#form-info a { color: #cc0000; }

span.compulsory { color: #cc0000; }
