@charset "utf-8";
/* CSS Document */

/* SMARTPHONES PORTRAIT */
@media only screen and (min-width: 300px) and (max-width: 699px) {
	.pohja {
		width: 100%;
		margin-right: auto;
		margin-left: auto;
		overflow: auto;
		background-color: #FFF;
	}
	.tekstitausta {
		width: 100%;
		overflow: auto;	
	}
	.knp {
		width: 95%;
		margin-right: auto;
		margin-left: auto;
		text-align: right;
		padding-top: 20px;
		padding-bottom: 30px;
		font-size: 80%;
	}
	.linkkipalkki_mobi {
		background-image: url(kuvat/linkkipalkki.jpg);
		background-repeat: repeat-x;
		height: 55px;
		padding-top: 5px;
		padding-bottom: 10px;
		padding-left: 40px;
	}
	.linkkipalkki {
		display: none;
	}
	.reunapalkki {
		display: none;
	}
	.tekstipalkki {
		float: left;
		width: 100%;
		padding-top: 20px;
		padding-right: 20px;
		padding-left: 20px;
		padding-bottom: 20px;
		overflow: auto;
		min-height: 500px;
	}
	.solu1_3 {
		width: 100%;
		padding-bottom: 10px;
	}
	.solu3_3 {
		width: 100%;
	}
	.solu1_2 {
		width: 100%;
		padding-bottom: 10px;
	}
	.solu2_2 {
		width: 100%;
		clear:left;		
		padding-top: 10px;
	}
}


@media only screen and (min-width: 700px) and (max-width: 999px) {	
	.pohja {
		width: 100%;
		margin-right: auto;
		margin-left: auto;
		overflow: auto;
		background-color: #FFF;
	}
	.tekstitausta {
		width: 100%;
		overflow: auto;	
	}
	.knp {
		width: 95%;
		margin-right: auto;
		margin-left: auto;
		text-align: right;
		padding-top: 20px;
		padding-bottom: 30px;
		font-size: 80%;
	}
	.linkkipalkki_mobi {
		background-image: url(kuvat/linkkipalkki.jpg);
		background-repeat: repeat-x;
		height: 55px;
		padding-top: 5px;
		padding-bottom: 10px;
		padding-left: 40px;
	}
	.linkkipalkki {
		display: none;
	}
	.reunapalkki {
		display: none;
	}
	.tekstipalkki {
		float: left;
		width: 100%;
		padding-top: 20px;
		padding-right: 20px;
		padding-left: 20px;
		padding-bottom: 20px;
		overflow: auto;
		min-height: 500px;
	}
	.solu1_3 {
		float: left;
		width: 33%;
	}
	.solu3_3 {
		float: right;
		width: 33%;
	}
	.solu1_2 {
		float: left;
		width: 50%;
	}
	.solu2_2 {
		float: right;
		width: 50%;
	}
}


/* TABLET LANDSCAPE / DESKTOP */
@media only screen and (min-width: 1000px) {	
	.pohja {
		width: 1000px;
		margin-right: auto;
		margin-left: auto;
		overflow: auto;	
		background-color: #FFF;
	}
	.tekstitausta {
		width: 1000px;
		margin-right: auto;
		margin-left: auto;
		overflow: auto;	
	}
	.knp {
		width: 950px;
		margin-right: auto;
		margin-left: auto;
		text-align: right;
		padding-top: 20px;
		padding-bottom: 30px;
		font-size: 80%;
	}
	.linkkipalkki {
		background-image: url(kuvat/linkkipalkki.jpg);
		background-repeat: repeat-x;
		height: 55px;
		padding-top: 10px;
		padding-left: 40px;
	}
	.linkkipalkki_mobi {
		display: none;
	}
	.reunapalkki {
		float: left;
		width: 200px;
		padding-top: 20px;
		padding-left: 20px;
		padding-bottom: 20px;
	}
	.tekstipalkki {
		float: right;
		width: 740px;
		padding-top: 20px;
		padding-right: 20px;
		padding-bottom: 20px;
		overflow: auto;
	}
	.solu1_3 {
		float: left;
		width: 33%;
	}
	.solu3_3 {
		float: right;
		width: 33%;
	}
	.solu1_2 {
		float: left;
		width: 50%;
	}
	.solu2_2 {
		float: right;
		width: 50%;
	}
	#cal {
		display: none;
	}
}


body {
	background-image: url(kuvat/pohja.jpg);
	background-repeat: repeat;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	color: #000;
	line-height: 120%;
}
.tausta {
	width: 100%;
	background-image: url(kuvat/ylapohja.jpg);
	background-repeat: repeat-x;
	background-position: top;
}

a:link {
	color: #000;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #000;
}
a:hover {
	text-decoration: underline;
	color: #000;
}
a:active {
	text-decoration: none;
	color: #000;
}
.tekstipalkki a:link {
	color: #000;
	text-decoration: underline;
}
.tekstipalkki a:visited {
	text-decoration: underline;
	color: #000;
}
.tekstipalkki a:hover {
	text-decoration: underline;
	color: #000;
}
.tekstipalkki a:active {
	text-decoration: underline;
	color: #000;
}
.knp a:link {
	color: #fff;
	text-decoration: none;
}
.knp a:visited {
	text-decoration: none;
	color: #fff;
}
.knp a:hover {
	text-decoration: underline;
	color: #fff;
}
.knp a:active {
	text-decoration: none;
	color: #fff;
}
.banneri img, .laatikko2 img {
	max-width:100% !important;
	height:auto;
	display:block;
}
.laatikko {
	padding: 10px;
	border: 1px solid #3E3E3E;
	font-size: 80%;
	margin-right: 5px;
	margin-bottom: 5px;
	background-color: #eeeeee;
	overflow: auto;
}
.laatikko2 {
	padding: 10px;
	border: 1px solid #3E3E3E;
	margin-right: 5px;
	margin-bottom: 5px;
	background-color: #eeeeee;
	overflow: auto;
}
.laatikko2 img {
	float: left;
}


#primary_nav_wrap ul {
  list-style: none;
  position: relative;
  float: left;
  margin: 0;
  padding: 0;
}

#primary_nav_wrap ul a {
	display: block;
	color: #fff;
	text-decoration: none;
	line-height: 32px;
	word-spacing: 5em;
	margin-right: 35px;
	padding-top: 0;
	padding-right: 5px;
	padding-bottom: 0;
	padding-left: 0px;
}

#primary_nav_wrap ul li {
  position: relative;
  float: left;
  margin: 0;
  padding: 0;
}

#primary_nav_wrap ul li.current-menu-item {
  background: #ddd;
}

#primary_nav_wrap ul li:hover {
 text-decoration:underline;
}

#primary_nav_wrap ul ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #7590b5;
	padding: 0;
}

#primary_nav_wrap ul ul li {
  float: none;
  width: 150px;
}

#primary_nav_wrap ul ul a {
  line-height: 120%;
  padding: 10px 15px;
}

#primary_nav_wrap ul ul ul {
  top: 0;
  left: 100%;
}

#primary_nav_wrap ul li:hover > ul {
  display: block;
}