/* CSS Document */

html, body {
	height: 100%;	
}
body {
	font: 80%  Verdana, Geneva, sans-serif;
}

#sivu {
	min-height:100%;
	position: relative;
}
.vasen, .keski,.oikea  {
	float:left;	
}
.oikeapuoli {
	margin-left:17%;	
}
.vasen{
	width:17%;
}
.oikea {
	width:23%;	
}
.keski {
	width:77%;
}
#keskiosa {
	width:90%;
	margin-left:auto;
	margin-right:auto;
}
#ylaosa, #keskiosa, #alaosa {
	clear:both;
}
#ylaosa, #alaosa {
	background-color:#f8f8f8;	
	min-height:100px;
}
.tasaava {
	clear:both;
}
#alaosa{
	height: 40px;	
	clear:both;
	width:100%;
	position: absolute;
	bottom:0;
}
#ylaosa {
	height:150px;
	background: #f8f8f8 url(adbanneri.jpg) no-repeat 6% top;
}
.klikkaa {
	position:absolute;
	width: 580px;
	height:120px;
	left: 4%;
	top:20px;
}

#nav, #aside {
	margin: 1em;
}
.section {
	margin: 1em 2em;
	padding: 0 1em 3em;
}
.versiot { 
	position:absolute;
	right: 5%;
	top: 120px;
}
.haku {
	text-align:right;
	padding-right: 5%;
}
#polku {
	clear:left;
	padding: 0.2em 5%;
	font-size: 0.85em;
	background-color:#f8f8f8;
	border-top: 1px solid #d8d8d8;
}
#keskiosa {
	padding-top: 2em;	
	padding-bottom: 4em;	
}

#alaosa {
	font-size: 0.9em;	
	margin-top: 30px;
}
#alaosa div {
	padding: 1em 2em;	
}


h1,h2,h3,h4,h5,h6 {
	margin-bottom: 0.4em;
	font-family:'Lato', sans-serif;
}
h1 {
	font-size:2.6em;	
}
h2 {
	font-size:2.2em;	
}
h3 {
	font-size:1.6em;	
}
h4 {
	font-size:1.4em;	
}
h5 {
	font-size:1.2em;	
}
h6 {
	font-size:1em;	
	margin-bottom: 0;
}
p {
	line-height: 160%;
	margin-top: 1.2em;
	margin-bottom: 1.4em;
}
b, strong {
	font-weight:bold;	
}
.section ul {
	margin:1em;
	padding: 0 1em;
}
li {
	display:list-item;
	list-style:square inside;	
}

.alkuun {
	display:none;	
}

a { text-decoration:none; }
a:hover { text-decoration:underline; }

form {
	border: 1px solid #d8d8d8;
	padding:2em;	
}
form:hover {
	background:#f8f8f8;	
}
input[type=text], textarea {
	width: 80%;	
}
textarea {
	height: 20em;	
}
input[type=submit], input[type=reset] {
	width: 40%;	
}

#nav {
	margin: 4em 0;	
}
#nav li {
	line-height: 200%;
}
#nav a {
	font-family:'Lato', sans-serif;
	font-size: 1.2em;
	color: #000;
}
#nav a:hover {
	color:#999;	
}


#yhteys {
	position: absolute;
	bottom: 140px;	
}

.asia {
	display:block;
	padding: 1em;
	border: 1px solid #d8d8d8;
	margin:0.2em;	
}
.asia:hover {
	background:#f8f8f8;	
}
.item {
	margin:1em 0.4em;
}

iframe {
	margin: 0;
	padding: 0;
	border: none;
	width: auto;
	height: 400px;	
	position:relative;
	width: 100%;
}
.ifra {
	height: 400px;	
	width:118%;
	overflow:hidden;	
}
.ifr h3 {
	margin-bottom: 6px;	
}
.ifr ul, .lisainfo ul {
	margin:0;
	padding:0;
}
.ifr li {
	list-style:none;
	margin-bottom: 8px;
	padding-left: 0.6em;
}
.lisainfo {
	text-align:center;	
}
.lisainfo li, .lisainfo h6, .lisainfo ul {
	display:inline;
	*zoom=1;
	display:inline-block;
	margin-right: 2em;	
}
input.my-url{display:none;}

/*
ja loppuun se, miten sivu käyttäytyy muissa koissa
(ei ole tarpeen käyttää joka kohtaa)
*/
/* Smartphones (pysty and vaaka) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* tyylimäärittelyt */
}

/* Smartphones (vaaka) ----------- */
@media only screen
and (min-width : 321px) {
/* tyylimäärittelyt */
}

/* Smartphones (pysty) ----------- */
@media only screen
and (max-width : 320px) {
/* tyylimäärittelyt */
}

/* iPad (pysty and vaaka) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px) {
/* tyylimäärittelyt */
}

/* iPad (vaaka) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : landscape) {
/* tyylimäärittelyt */
}

/* iPad (pysty) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : portrait) {
/* tyylimäärittelyt */
}

/* tietokoneet ----------- */
@media only screen
and (min-width : 1224px) {
/* tyylimäärittelyt */
}

/* iiisot näytöt (yleensä ei tarvita erikseen) ----------- */
@media only screen
and (min-width : 1824px) {
/* tyylimäärittelyt */
}

/* iPhone 4 ----------- */
@media
only screen and (-webkit-min-device-pixel-ratio : 1.5),
only screen and (min-device-pixel-ratio : 1.5) {
/* tyylimäärittelyt */
}
/*tulostus */
@media print {
@page { margin: 0.5cm; }
body, #ylaosa, #polku, .vasen, .keski, .oikea { width: 100%; background: #fff; color: #000;}
#polku { -moz-box-shadow:none; -webkit-box-shadow: none; box-shadow: none; }
#ylaosa, .vasen, .oikea { background-image: none; min-height:0; }
.vasen {  position:absolute; top: 0; margin-top: -2em; right: 4%; background: transparent; }
#logo, .section, #aside{ margin: 0; padding:0; }
.haku, #nav, .versiot, .navigaatio_back { display:none;}
#yhteys { float:right; }
.oikeapuoli { margin-left:0; }
.keski, .oikea { float:none; clear:both; }
img { max-width:100%; }
.section a:link:after { content: " (" attr(href) ")"; }
img a:link:after, a[href^="javascript:"]:link:after, a[href^="#"]:link:after { content: ""; } 
.section:after { content: "-------------------------------------------------------------"; }
a:link, a:visited, a:hover { text-decoration: underline; color: #000 !important; background-color:#fff !important; border: none !important; }
tr, img { page-break-inside: avoid; }
h2, h3 { page-break-after: avoid; }
pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
p, h2, h3 { orphans: 3; widows: 3; }
}