*{
	margin: 0;
	padding: 0;
}

/* Main layout */

html{
	background: #F2E4C5; /*alapalkin tumma ruskea*/
	background: #efdfbb;
	font-family: Verdana, Arial, Helvetica, sans-serif;	
	font-size: 85%;
}

body{
	width: 100%;
	/*background: #F2e4C5; tumma ruskea*/
	background: #efdfbb;

}

#main{
	background: url('images/tausta.jpg') repeat-x top left #f0e4ce; /* tumma ruskea*/	
	width: 100%;
}

#wrap{
	margin: 0 auto;
	width: 1000px;
	background: url('images/ylapalkki.jpg') no-repeat top left #f0e4ce;	
}


/* Header */
#header{
	width: 1000px;
	height: 136px;
}

#logo{
	position: relative;
	background: url('images/logo.png') no-repeat top left;	
	width: 248px;
	height: 229px;
	left: 10px;
	top: 6px;
	z-index: 10;
}

/* Main navigation */
#nav{
	position: relative;
	width: 700px;
	z-index: 12;
	left: 270px; /*tää työntää, voisko ton navin sijoittaa eri tavalla? Kokonaan hei sen headerin ulkopuolelle ja headeriin piilotettu otsikko!!!*/
	top: 104px;
	font-size: 110%;
}

#nav li
{
	display: inline;
	list-style-type: none;
	padding-right: 10px;
}

#nav li.language-switch{
	margin-left: 4px;
	padding-left: 10px;
	border-left: 1px solid rgba(255, 255, 255, 0.55);
	font-weight: bold;
}

#nav ul li a, #nav ul li a:visited, #nav ul li a:active{
	color: #ffffff;
	text-decoration: none;
}
#nav ul li a:hover{
	color: #FFDA70;
	text-decoration: none;
}


/* Content */
#content_area{
	width: 1000px;
}


/* Sidebar elements */

#sidebar{
	float: left;
	margin: 130px 0 0 25px;
	padding: 0 0 170px; 0;
	width: 200px;
	background: url('images/area_map.jpg') no-repeat bottom left;
	font-size: 110%;
	
}

#sidebar h3{
	margin-top: 20px;
	padding: 0 0 0 20px;
	color: #222222;
	font-size: 110%;
	font-weight: normal;
	background: url('images/subnav_header.jpg') no-repeat center left;
}

.subnav{
	width: 200px;
	background: url('images/subnav_tausta.jpg') repeat-x top left;
}
#sidebar ul{
	padding: 10px 10px 10px 10px;
	list-style-type: none;
	font-size: 90%;
}
#sidebar li{}

#sidebar a, #sidebar a:visited, #sidebar a:active{
	display: block;
	text-decoration: none;
	padding: 4px 2px 4px 14px;
	background: url('images/subnav_listitem.png') no-repeat 0px 50%;
	color: #333333;
	border-bottom: 1px solid #DDD1BA;
}
#sidebar a:hover{
	background: url('images/subnav_listitem.png') no-repeat 2px 50%;	
}




/* Main content*/
#content{
	float: right;
	margin: 20px 106px 0 0;
	width: 651px;
	background: url('images/content_tausta.png') repeat-y top left;
	border-bottom: #E3D8C3 1px solid;
}

#page{
	margin: 0 26px 0px 130px;
	font-size: 95%;
	line-height: 1.4em;
}






/* Bottom infobox */

#bottom_infobox{
	position: relative;
	z-index: 10;
	top: 10px;
	left: 245px;
	width: 649px;
	border: #F2E4C5 1px solid;	
	background: url('images/bottom_infobox.png') repeat-x top left #fff4e0;
}

#infobox_content{
	margin: 20px 20px 20px 130px
}

.infobox_slide{
	margin: 10px;
}


/* Footer */
#footer{
	width: 100%;
	position:relative;
	z-index: 8;
	top: -60px;
	height: 160px;
	background: url('images/footer.jpg') repeat-x top left;	
	clear: both;
}

#footer_content{
	padding-top: 90px;
	width: 1000px;
	margin: 0 auto;
}

#footer p{
	text-align: right;
	margin-right: 134px;
	color: #8F8163;
	
}



#footer a, #footer a:hover, #footer a:visited, #footer a:active{
	color: #8F8163;
	text-decoration: none;
}
#footer a:hover{
	text-decoration: underline;
}


/* General font and tag styles */

img{
	border: 0px;	
}


h1{

}

h2{
	font-size: 110%;
	margin: 20px 0 18px 0;
}
h2 small{
	font-size: 70%;
	color: #555555;	
}

h3{
	margin: 12px 0 8px 0;
	font-size: 100%;
	color: #FF7200;	
}
h3 small{
	font-size: 70%;
	color: #555555;
}


.orange{
	color: #FF7200;
}
.blue{
	color: #005FA9;
}

p{
	margin: 0 0 15px 0;
	color: #333333;
	text-align: justify;
}

#page ul{
	margin: 10px 0px 20px 22px;
	text-align: left;	
}

#page ul li p{
	text-align: left;
}

.read_more{
	display: block;
	padding: 0px 2px 0px 22px;
	background: url('images/read_more.png') no-repeat 0px 50%;
	color: #333333;
	text-decoration: none;
}
.read_more:hover{
	background: url('images/read_more.png') no-repeat 2px 50%;
}

#large_list ul{
	padding: 10px 10px 10px 10px;
	list-style-type: none;
	font-size: 120%;
}
#large_list li{}

#large_list a, #large_list a:visited, #large_list a:active{
	display: block;
	text-decoration: none;
	padding: 6px 0px 6px 22px;
	background: url('images/read_more.png') no-repeat 0px 50%;
}
#large_list a:hover{
	background: url('images/read_more.png') no-repeat 2px 50%;
}

#video_list ul{
	padding: 0;
	margin: 0;
	list-style-type: none;
}
#video_list li{
	width: 215px;
	height: 174px;
	overflow: hidden;
	float: left;
	margin: 0 5px 25px 5px;
	padding: 8px 4px 8px 8px;
	background: #F9F7F3;
	color: #2C1E04;
}
#video_list li:hover{
	background: #F1EADC;
}

#video_list img{

}

#video_list a, #video_list a:visited, #video_list a:active{

}
#video_list a:hover{

}

#sisallys{
	float: right;
	width: 180px;
	margin: 0 0 10px 10px;
	background: #f7f2eb;
	border: 4px solid #e7e0d4;
}
#sisallys ul{
	margin: 4px 4px 4px 4px;
	list-style-type: none;
}
#sisallys li{

}

#sisallys a, #sisallys a:visited, #sisallys a:active{
	display: block;
	text-decoration: none;
	padding: 2px 2px 2px 14px;
	color: #6d624d;
	background: url('images/subnav_listitem.png') no-repeat 0px 50%;
}
#sisallys a:hover{
	color: #6d624d;
	background: url('images/subnav_listitem.png') no-repeat 2px 50%;	
}


h1.page-heading{
	margin: 20px 0 18px 0;
	font-size: 120%;
	line-height: 1.25;
	color: #FF7200;
	overflow-wrap: anywhere;
}

.seo-related{
	clear: both;
	margin: 22px 0 8px 0;
	padding: 12px 14px;
	background: #f7f2eb;
	border: 4px solid #e7e0d4;
}

.seo-related h3{
	margin-top: 0;
}

.seo-related ul{
	margin: 8px 0 0 18px;
}

.seo-related li{
	margin: 0 0 5px 0;
}

.seo-related a,
.seo-related a:visited,
.seo-related a:active{
	color: #005FA9;
}

html,
body{
	overflow-x: clip;
}

img{
	max-width: 100%;
	height: auto;
}

@media screen and (max-width: 1040px){
	html,
	body{
		min-width: 0;
	}

	#wrap,
	#header,
	#content_area,
	#footer_content{
		width: auto;
		max-width: 1000px;
	}

	#wrap{
		margin: 0 auto;
		background-position: top center;
	}
}

@media screen and (max-width: 760px){
	html{
		font-size: 95%;
	}

	#main{
		background-size: auto 160px;
	}

	#wrap{
		width: 100%;
		background-image: none;
		background-position: top left;
	}

	#header{
		width: 100%;
		height: auto;
		min-height: 315px;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	#logo{
		order: 1;
		left: auto;
		top: 16px;
		transform: none;
		background-size: contain;
	}

	#nav{
		order: 2;
		position: static;
		left: auto;
		top: auto;
		width: calc(100% - 24px);
		margin: 22px auto 0 auto;
		padding: 8px 10px;
		font-size: 100%;
		background: #f47b00;
		box-sizing: border-box;
	}

	#nav ul{
		display: flex;
		flex-wrap: wrap;
		gap: 2px 10px;
		justify-content: center;
	}

	#nav li{
		display: block;
		margin: 0;
		padding-right: 0;
		white-space: nowrap;
	}

	#nav li.language-switch{
		margin-left: 0;
		padding-left: 0;
		border-left: 0;
	}

	#nav ul li a,
	#nav ul li a:visited,
	#nav ul li a:active{
		display: block;
		padding: 4px 0;
	}

	#content_area{
		width: 100%;
		display: flex;
		flex-direction: column;
	}

	#content{
		float: none;
		order: 1;
		width: auto;
		margin: 16px 12px 0 12px;
		background: #fff8ec;
		border: 1px solid #E3D8C3;
	}

	#page{
		margin: 0;
		padding: 18px;
	}

	#sidebar{
		float: none;
		order: 2;
		width: auto;
		margin: 18px 12px 0 12px;
		padding-bottom: 24px;
		background: none;
	}

	.subnav{
		width: auto;
	}

	#bottom_infobox{
		order: 3;
		left: auto;
		top: auto;
		width: auto;
		margin: 18px 12px;
	}

	#infobox_content{
		margin: 14px;
	}

	#footer{
		top: auto;
		height: auto;
		min-height: 110px;
	}

	#footer_content{
		width: auto;
		padding: 60px 12px 20px 12px;
	}

	#footer p{
		text-align: left;
		margin-right: 0;
	}

	.fade{
		width: 100% !important;
		max-width: 500px !important;
		height: auto !important;
		aspect-ratio: 500 / 467;
		background-size: contain !important;
		background-repeat: no-repeat !important;
	}

	.fade img{
		width: 100%;
		height: auto;
	}

	.anythingSlider{
		width: 100% !important;
		max-width: 500px !important;
		height: auto !important;
		min-height: 0 !important;
	}

	.anythingSlider .wrapper{
		position: static !important;
		width: 100% !important;
		height: auto !important;
		overflow: visible !important;
	}

	.anythingSlider .wrapper ul{
		position: static !important;
		left: auto !important;
		top: auto !important;
		width: auto !important;
		height: auto !important;
	}

	.anythingSlider ul li{
		float: none !important;
		width: auto !important;
		height: auto !important;
		margin: 0 0 20px 0 !important;
	}

	.anythingSlider ul li.cloned{
		display: none !important;
	}

	.anythingSlider .arrow{
		display: none !important;
	}

	.infobox_slide{
		margin: 10px 0 18px 0;
	}

	.infobox_slide img{
		width: 100%;
		max-width: 230px;
	}

	#video_list li{
		float: none;
		width: auto;
		height: auto;
	}

	table{
		max-width: 100%;
	}

	p{
		text-align: left;
	}
}
