﻿body {
	margin: 0;
	background-color: #f0f5f9;
	line-height: 1.2em;	
}

.clear {
	clear: both;
}

img {
	border: 0;
}

/*
 * HEADER
 */

#header {
//	background: url('img/header-bg.png');
	background-repeat: repeat-x;
	background-color: #66b78c;
}

#headercontents{
	max-width: 900px;
	margin: 0 auto 0 auto;
	padding: 0;
}

#logo {
	position: relative;
	width: 90%;
	height: auto;
	margin: 5px 0 0 0;
	border: 0;
}

/*
 * NAVIGATION
 */

#navwrapper {
	background: #0191d8;
	//border-top: 2px solid #222;
	border-bottom: 2px solid #271e71;
}

#nav {
	max-width: 900px;
	margin: 0 auto 0 auto;
	font-weight: bolder;
}

#nav #primary {
	width: 86%;
	float: right;
	text-align: left;
	margin: 16px 0 6px 6px;
}

#nav #secondary{
	position: absolute;
//	width: 100px;
//	float: left;
	text-align: left;
	margin: 16px 6px 6px 0px;
}

#nav a {
	color: #fff;
	text-decoration: underline;
}

#nav #secondary a {
	color: #fff;
}

#nav .sep {
	display: inline-block;
	width: 15px;
	text-align: center;
	color: #222;
}

/*
 * BODY
 */
 
#content_wrapper {
}

#content_cols {
	max-width: 900px;
	margin: 0 auto 0 auto;
}

#content_body {
	margin-right: 250px;
}

#content_body b {
	color: #539972;
}

#content_body p, #content_body h2, #content_body h3 {
	margin-right: 20px;
}

/*
 * SLIDESHOW
 */
#slideshow {
	margin-bottom: 40px;
}
 
#slideshow img {
	width: 100%;
	height: auto;
}

#slides {
	position: relative;
	width: 100%;
	height: 350px;
	list-style: none;
	overflow: hidden;
	padding: 0;
	margin: 0;
}

#slides li {
	width:650px;
	height:350px
}


/*
 * RIGHT PANE
 */
 
#content_right {
	float: right;
	width: 250px;
}

#content_right .box {
	color: #444;
//	background-color: #eee;
}

#content_right .box h2 {
	margin: 0 0 0 0;
	color: white;
	background-color: #333;
	padding: 5px 10px 5px 10px;
	font-size: 130%;
}

#content_right .box h3 {
	color: #444;
	padding: 15px 10px 5px 10px;
	margin: 0;
	font-size: 110%;
}

#content_right .box p {
	padding: 5px 10px 15px 10px;
	margin: 0 0 3px 0;
}

#content_right .box .altbg {
	background-color: #ddd;
}

#avainlippu{
	margin-top: 30px;
	text-align: center;
}

#avainlippu .sep {
	display: inline-block;
	width: 5px;
}

/*
 * FOOTER
 */
 
 #footerwrapper {
 }
 
 #footer {
	margin: 40px auto 0 auto;
	padding: 20px 0 20px 0;
	border-top: 1px solid #eee;
	max-width: 900px;
	text-align: center;
	color: #aaa;
	font-size: 80%;
 }
 
 #footer .sep {
	display: inline-block;
	width: 50px;
 }
 
 #footer a {
	color: #fff;
	text-decoration: underline;
	font-weight: bolder;
 }

/*
 * SUPPORT FOR SMALL SCREENS
 */

@media all and (max-width: 899px) {
	#header {
		background-image: none;
	}

	#logo {
	position: relative;
	width: 70%;
	height: auto;
	margin: 0 0 0 0;
	border: 0;
	}
	#nav #primary {
	width: 82%;
	float: right;
	text-align: left;
	margin: 6px 0 6px 6px;
	}
}

@media all and (max-width: 599px) {
	#content_body {
		float: none;
		width: 100%;
	}
	#content_right {
		float: none;
		width: 100%;
	}
	#content_right .box .item {
		float: left;
		width: 50%;
		min-height: 120px;
//		background-color: #eee;
	}
	#content_right .box .altbg {
//		background-color: #eee;
	}
	#avainlippu {
		display: none;
	}

#nav #primary {
	width: 96%;
	float: right;
	text-align: left;
	margin: 6px 0 6px 6px;
	}
#nav #secondary {
		display: none;
	}
}