* { margin: 0; padding: 0;
	-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;         /* Opera/IE 8+ */
}

input,
textarea,
iframe,
img {
	max-width: 100%;
}

html {
	min-height: 100%;
	height: auto;
	overflow-y: scroll;	
}

body {
	font-family: 'Trebuchet', Helvetica, sans-serif;
	font-size: 12px;
	background: white;
	background: url('../images/bg.jpg') repeat-x;	
	}
#wrap {
	margin: 0px auto;
	max-width: 900px;
    margin-top: 130px;
	}
.clear {
	visibility: hidden;
	clear: both;
	}

/* Lomake */	
	
.error{
    color: red;
    }	

/* Lomakkeet */

form {
    margin-left: 30px;
    }

form div {margin: 0 0 5px;}
form div.captcha {height: auto;}
form p {display: inline-block; margin: 0 !important;}

label {display: inline-block; width: 150px;}
textarea {vertical-align: top; height: 200px;}

input, textarea {width: 250px; padding: 3px;}
.captcha {padding-left: 150px;}
input[type=submit] {margin-left: 150px;}
   
    		
a {
	color: #636363;
	text-decoration: none;
	font-weight: bold;
	}
a:hover {
	text-decoration: underline;
	}

h1, h2, h3, h4, h5 {
	padding-left: 25px;
	color: #474747;
	}	
	
h1 {
	background-color:#636363;
	color: white;
	font-size: 13px;
	letter-spacing: 1px;	
	font-weight: bold;	
	padding: 5px 0 5px 15px;
	border-left: 10px solid #CE0618;
	margin: 5px 0px 10px 0px;	
}

h2 {
	background-color:#636363;
	color: white;
	font-size: 13px;
	letter-spacing: 1px;	
	font-weight: bold;	
	padding: 5px 0 5px 15px;
	border-left: 10px solid #CE0618;
	margin: 5px 0px 10px 0px;	
}

h3 {
	font-size: 13px;
	font-weight: bold;
	margin: 10px 0px 5px 0px;
	}
	

h4, h5 {
	font-size: 12px;
	font-weight: bold;
	margin: 10px 0px 5px 0px;
	}

p {
	margin: 5px 5px 5px 25px;
	line-height: 1.4em;
	}

table {
	margin-left:25px;
	float:left;
	}	

		
/* Header stuff */
#header {
	width: 100%;
	height: 130px;
	background: url('../images/bg.jpg') repeat-x;	
	position: fixed;
	top: 0px;
	z-index: 10;
}
.headerContent{
	margin: 0px auto;
	max-width: 900px;
	background: url('../images/headerbg.jpg') no-repeat;
}	
	
#header .link {
	width: 200px;
	height: 96px;
	padding: 15px 0 0 0;
}
#header .link a{
	display: block;
	text-indent: -99999px;
	outline: 0;
	height: 59px;
	}
	
#slogan {
	font-family: Georgia, "Times New Roman", Times, serif;
	float: right;
	padding: 10px 35px 0 0;
	text-align: right;
	color: white;
	}
#slogan strong {
	font-size: 16px;
	font-weight: normal;
	color: #0055a4;
	}

/* Mobile navigation */
#navigation2 {
	display: none;
	z-index: 10;
	position: relative;
}
#navigation2 .slimmenu {
	/*position: fixed;*/  
	overflow: auto;
	height: 70%; /* Fallback */
	/* Firefox */
	height: -moz-calc(100% - 106px);
	/* WebKit */
	height: -webkit-calc(100% - 106px);
	/* Opera */
	height: -o-calc(100% - 106px);
	/* Standard */
	height: calc(100% - 106px);
}

ul.slimmenu li {
	background: #636363;
	border: none;
}

ul.slimmenu li ul li {
	background: none repeat scroll 0 0 rgba(0, 0, 0, 0.3);
}

ul.slimmenu li a {
	color: #fff;
	font-size: 1.1em;
}

ul.slimmenu li a:hover {
	background: rgba(255,255,255,.1);
}

.menu-collapser {
	background-color: transparent;
	height: 100px;
	line-height: 100px;
}

.collapse-button {
	background: none repeat scroll 0 0 rgba(0, 0, 0, 0.3);
	background-image: none;
	background-repeat: repeat-x;
	border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
	border-radius: 0;
	border-style: solid;
	border-width: 1px;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 1px 0 rgba(255, 255, 255, 0.075);
	box-sizing: border-box;
	color: #ffffff;
	cursor: pointer;
	font-size: 14px;
	padding: 4px 13px;
	position: absolute;
	/*right: 0px;*/
	text-align: center;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
	top: 50%;
	transform: translate(0px, -50%);
	width: 50px;
}
	.collapse-button:hover {
		background: none repeat scroll 0 0 rgba(255, 255, 255, 0.3);
	}

.collapse-button .icon-bar {
	background-color: #f5f5f5;
	width: 100%;
	margin: 4px 0;
}

ul.slimmenu li .sub-collapser > i {
	color: #ededed;
}

ul.slimmenu li .sub-collapser {
	background: none repeat scroll 0 0 rgba(0, 0, 0, 0.3);
}

/* Desktop Navigation */
#navigation {
	list-style: none;
	padding: 0;
	text-transform: uppercase;
	font-size: 11px;
	clear: both;
	height:30px;
	font-weight: bold;
	}
#navigation li {
	float: left;
	line-height: 17px;
	}
#navigation li.last {
	background: none;
	}
#navigation a {
	display: block;
	color: #fff;
	text-decoration: none;
	padding: 6px 15px 6px 15px;
	}
#navigation a:hover {
	border-top: 2px solid white;	
	}
#navigation a.active {
	border-top: 2px solid white;
	padding-top:4px;	
	}

.navigation2{ 
    float:left; 
    display: block; 
    width: 240px; 
    margin-top: 40px; 
    min-height: 500px;  
    padding: 0px 5px 0x 0px;
    }	
    
ul#nav2 {
    list-style-type: none;
    line-height: 1.9em;
    margin: 0px;
    padding: 0px;
    margin-left: 0px !important;
    }    

#nav2 .active2 a{
    font-weight: normal !important;
    text-decoration: none;
    background-color: #E3E3E3;
    padding: 4px 15px;
    }    
    	
/* The big pic */
#rotatepic {
	background: white;
	width: 625px;
	height: 280px;
	margin-bottom:10px;
	}

.slideshow {
	width: 100% !important;
	overflow: hidden;
}
.slideshow img {
	max-width: none;
}

/* Fancybox */
#fancybox-wrap,
#fancybox-content {
	box-sizing: content-box;
}

/* Main content */

#content {
	padding: 7px 0px 10px 0px;
	}
	
#left_area {
	width: 635px;
	padding-right: 10px;
	float: left;
	font-size: 12px;
	min-height: 500px;
	}
	
		
#left_area a {
	text-decoration: underline;
	}	

#left_area ul{
	margin-left: 40px;
	}		

.content3{
    display: block; 
    float: right; 
    width: 600px;    
    }	

.pikkukuvat {    
    width: 260px;
    padding-top: 5px;
    float: right;
    margin: 0px 0px 5px 5px;
    }		
    
.pikkukuva{    
	float: left; 
	padding: 4px 4px 1px 4px;
	border: 1px solid #C0C0C0;
    }
  
.pikkukuvat2 {    
    margin: 5px 0px 10px 25px;
    }		
    
.pikkukuva2{    
	padding: 4px 4px 4px 4px;
	border: 1px solid #C0C0C0;    
	width: 70px;
	height: 70px;
    }

.pikkukuva3{    
	padding: 4px 4px 4px 4px;
	border: 1px solid #C0C0C0;    
    }        
       
#ryhmaboksi {
	width: 90%;
	padding-left:25px;
	padding-top:15px;
	float:left;
	display: block;	
	font-size:14px;
	}	
			
#right_area {
	width: 255px;
	padding-left: 10px;
	float: right;
	font-size: 12px;	
	}	
		
#right_area h2 a{
	color: white;
	}	

.clear{
	clear:both;
	}	
	

.newsitem {
	margin-bottom: 20px;
	}
	
#footer{
	width:100%;
	height:145px;
	background: url('../images/footerbg.jpg') repeat-x;	
	padding-top:15px;
	text-align: center;
	color: black;
	}
	
#footer p{
	text-align: center;
	}	

/* Tablets */
@media only screen and (max-width : 920px) {
	body {
		background: transparent;
	}

	.slideshow {
		height: 200px !important;
	}

	.content3 {
		width: 100%;
		float: none;
	}

	#header {
		position: relative;
		height: auto;
	}
	.headerContent {
		min-height: 100px;
		background: url('../images/headerbg-tablet.jpg') no-repeat;
	}
	#header .link {
		position: absolute;
		z-index: 15;
	}

	#wrap {
		padding: 0 20px;
		margin: 0;
	}

	#left_area {
		width: 60%;               /* fallback for browsers without support for calc() */
		width: calc(100% - 265px);
	}

	.navigation2,
	#navigation {
		display: none;
	}

	#navigation2 {
		display: block; 
	}
}

/* Mobile / Desktop hybrid */
@media only screen and (max-width : 720px) {
	table,
	tbody,
	tr,
	th,
	td {
		display: block;
		width: 100% !important;
		float: none !important;
	}

	h3, h4, h5 {
		padding-left: 0;
	}
	form {
		margin: 0;
	}

	#left_area,
	#right_area {
		clear: both;
		width: 100%;
		float: none;
		padding: 0;
	}

	#right_area {
		padding: 10px 0 0;
	}
}

/* Mobile */
@media only screen and (max-width : 450px) {
	input[type="submit"],
	.captcha {
		margin: 0;
		padding: 0;
	}

	.slideshow {
		display: none;
	}

	.pikkukuvat {
		width: 100% !important;
		float: none !important;
		text-align: center;
		margin-bottom: 10px;
	}
	.pikkukuva {
		display: inline-block;
		float: none;
	}

	.desktop {
		display: none;
	}
}
