/* Less Framework 4 with 16/24 type presets
http://lessframework.com
by Joni Korpi
License: http://opensource.org/licenses/mit-license.php */

/*
10 columns at 992 px
8 columns at 768 px
5 columns at 480 px
3 columns at 320 px
*/

/* Resets
------ */

html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6,
p, blockquote, pre, a, abbr, address, cite, code, del, dfn, em,
img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, hr,
dl, dt, dd, ol, ul, li, fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figure, figcaption, hgroup,
menu, footer, header, nav, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
}

article, aside, canvas, figure, figure img, figcaption, hgroup,
footer, header, nav, section, audio, video {
display: block;
}

a img {border: 0;}

p {
	padding-bottom: 6px;
}

div.palsta ul li {
	margin-left: 18px;
}

div.formtitle {
	float: left;
	text-align: left;
	margin-right: 15px;
	width: 120px;
}

br.all {
	clear: both;
}

/* Typography presets
------------------ */

.gigantic {
font-size: 110px;
line-height: 120px;
letter-spacing: -2px;
}

.huge, h1 {
font-size: 36px;
line-height: 48px;
letter-spacing: -1px;
padding-bottom: 12px;
}

.large, h2 {
font-size: 30px;
line-height: 48px;
}

.bigger, h3 {
font-size: 26px;
line-height: 36px;
}

.big, h4 {
font-size: 22px;
line-height: 30px;
}

a.alkuun {
	font-color: grey;
	font-size: 12px;
	text-decoration: none;
}

body {
	font: 16px/24px Georgia, serif;
}

.small, small {
	font-size: 13px;
	line-height: 18px;
}

/* Selection colours (easy to forget) */

::selection {background: rgb(255,255,158);}
::-moz-selection {background: rgb(255,255,158);}
img::selection {background: transparent;}
img::-moz-selection {background: transparent;}
body {-webkit-tap-highlight-color: rgb(255,255,158);}



/* Default Layout: 992px.
Gutters: 24px.
Outer margins: 48px.
Leftover space for scrollbars @1024px: 32px.
-------------------------------------------------------------------------------
cols 1 2 3 4 5 6 7 8 9 10
px 68 160 252 344 436 528 620 712 804 896 */

body {
	padding: 16px 0 84px;
	position: relative;
	background: rgb(232,232,232);
	color: rgb(60,60,60);
	-webkit-text-size-adjust: 100%; /* Stops Mobile Safari from auto-adjusting font-sizes */
}

hr {
	border: none;
	border-top: 1px solid rgb(195,195,195);
	clear: both;
	width: 60%;
	margin: 0 auto;
}

#masthead, article {
	padding-left: 48px;
	padding-right: 48px;
	margin: 0 auto;
	position: relative;
}

#masthead {
	height: 70px;
	width: 700px;
	position: relative;
	margin: 0 auto;
}



article {
	border-width: 1px 0 0 0;
	padding-top: 19px;
	padding-bottom: 10px;
	clear: both;
	width: 800px;
}

.palsta {
	float: left;
	width: 344px;
	text-align: justify;
	padding-right: 24px;
	padding-left: 24px;
	padding-top: 6px;
	padding-bottom: 12px;
}
	
#etusivu img {
	margin: 0 auto;
}

#etusivu {
	position: relative; 
	margin: 0 auto;
	height: 460px;
	width: 700px;
	text-align: center;
	margin: 0 auto;
	
}

#logo {
	height: 170px;
	margin: 0 auto;
	width: 800px;
	position: relative;
}

img.iso 			{display:block; left: 10px; right: auto;}
img.keski 			{display: none;}
img.pieni 			{display: none;}

#masthead nav {
	position: relative;
	left: 0px; 
	top: 0px;
}
	
#masthead li {
	float: left;
	list-style: none;
	margin-left: 12px;
}

#masthead a {
	display: block;
	text-decoration: none;
	font-weight: bolder;
	padding: 11px 22px;
	border: 1px solid rgb(195,195,195);
	color: rgb(60,97,158);
	-webkit-tap-highlight-color: rgba(0,0,0, 0);
	-webkit-box-shadow: inset 0 0 5px rgba(0,0,0, 0.05);
	   -moz-box-shadow: inset 0 0 5px rgba(0,0,0, 0.05);
			box-shadow: inset 0 0 5px rgba(0,0,0, 0.05);
	-webkit-border-radius: 3px;
	   -moz-border-radius: 3px;
			border-radius: 3px;
	-webkit-transition: all 0.123s ease-out;
	   -moz-transition: all 0.123s ease-out;  
			transition: all 0.123s ease-out;
}

#masthead a:hover, #masthead a:active {
	text-decoration: none;
	border-color: rgb(158,158,158);
	-webkit-box-shadow: inset 0 0 8px rgba(0,0,0, 0.38);
	   -moz-box-shadow: inset 0 0 8px rgba(0,0,0, 0.38);
			box-shadow: inset 0 0 8px rgba(0,0,0, 0.38);
}

#masthead a:active, #masthead .touched {
	background: rgb(60,97,158);
	border-color: rgb(23,37,60);
	color: rgb(232,241,255);
	text-shadow: 0 -1px 0 rgba(0,0,0, 0.9);
	-webkit-box-shadow: inset 0 0 12px rgba(0,0,0, 0.765);
	   -moz-box-shadow: inset 0 0 12px rgba(0,0,0, 0.765);
			box-shadow: inset 0 0 12px rgba(0,0,0, 0.765);
}







/* Tablet Layout: 768px.
Gutters: 24px.
Outer margins: 28px.
Inherits styles from: Default Layout.
-----------------------------------------------------------------
cols 1 2 3 4 5 6 7 8
px 68 160 252 344 436 528 620 712 */

@media only screen and (min-width: 768px) and (max-width: 991px) {

body {
	width: 712px;
	padding: 18px 0px 60px;
}

hr {
	width: 80%;
}
	
#masthead, article {
	padding-left: 28px;
	padding-right: 28px;
	margin: 0 auto;
	position: relative;
}

#masthead {
	height: 70px;
	width: 656px;
}

article {
	border-width: 1px 0 0 0;
	padding-top: 19px;
	clear: both;
	width: 700px;
}

#etusivu {
	height: 430px;
	width: 712px;

}

#logo {
	height: 180px;
	margin: 0 auto;
	width: 700px;
	position: relative;
}

#etusivu img {
	margin: 0 auto;
}


img.iso 			{display:block; left: 25px; right: auto;}
img.keski 			{display: none;}
img.pieni 			{display: none;}

#masthead nav {
	position: absolute;
	padding-left: 28px; 
	padding-right: 28px; 
	top: 0px;
}
	
#masthead li {
	float: left;
	list-style: none;
	margin-left: 6px;
}

}


/* Mobile Layout: 320px.
Gutters: 24px.
Outer margins: 34px.
Inherits styles from: Default Layout.
---------------------------------------------
cols 1 2 3
px 68 160 252 */

@media only screen and (max-width: 767px) {

body {
	width: 252px;
	padding: 18px 0px 60px;
}

hr {
	width: 90%;
	margin: 0 auto;
}

#masthead, article {
	padding-left: 34px;
	padding-right: 34px;
	margin: 0 auto;
	width: 252px;
	position: relative;
}

#masthead {
	height: 260px;
	width: 252px;
}

article {
	border-width: 1px 0 0 0;
	padding-top: 10px;
	clear: both;
	width: 252px;
}

#logo {
	height: 100px;
	margin: 0 auto;
	width: 252px;
	position: relative;
}

#etusivu {
	height: 200px;
	width: 252px;
}

figure img {position: absolute; left: 0; top: 0;}		

img.iso 			{display: none;}
img.keski 			{display: none;}
img.pieni 			{display:block; left: 10px; right: auto;}

#masthead nav {
	position: absolute;
	left: 10px; 
	top: 0px;
}
	
#masthead li {
	list-style: none;
	margin-left: 0px;
	display: inline;
	float: none;
	width: 252px;
}

#masthead a {
	display: block;
}

.palsta {
	float: left;
	width: 252px;
	text-align: justify;
	padding-right: 4px;
	padding-left: 4px;
	padding-top: 6px;
	padding-bottom: 12px;
}

#nimi {
	width: 200px;
}

#sposti  {
        width: 230px;
}


textarea {
	width: 230px;
}

}



/* Wide Mobile Layout: 480px.
Gutters: 24px.
Outer margins: 22px.
Inherits styles from: Default Layout, Mobile Layout.
------------------------------------------------------------
cols 1 2 3 4 5
px 68 160 252 344 436 */

@media only screen and (min-width: 480px) and (max-width: 767px) {

body {
	width: 436px;
	padding: 16px 0px 48px;
}

hr {
	width: 80%;
	margin: 0 auto;
}

#masthead, article {
	padding-left: 22px;
	padding-right: 22px;
	margin: 0 auto;
	width: 436px;
	position: relative;
}

#masthead {
	height: 120px;
	width: 400px;
}

article {
	border-width: 1px 0 0 0;
	padding-top: 19px;
	clear: both;
	width: 400px;
}

#logo {
	height: 140px;
	margin: 0 auto;
	width: 420px;
	position: relative;
}

#etusivu {
	height: 260px;
	width: 420px;
}

figure img {
	position: absolute; 
	left: 0; 
	top: 0;
}		

img.iso 			{display: none;}
img.keski 			{display:block; left: 10px; right: auto;}
img.pieni 			{display: none;}

#masthead nav {
	position: absolute;
	left: 8px; 
	top: 0px;
}
	
#masthead li {
	float: left;
	list-style: none;
	margin-left: 12px;
	margin-bottom: 12px;
	list-style: none;
	display: inline;
	width: auto;
}

.palsta {
        float: left;
        width: 400px;
        text-align: justify;
        padding-right: 4px;
        padding-left: 4px;
        padding-top: 6px;
        padding-bottom: 12px;
}

textarea {
	width: 400px;
}


}


/* Retina media query.
Overrides styles for devices with a
device-pixel-ratio of 2+, such as iPhone 4.
----------------------------------------------- */

@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (min-device-pixel-ratio: 2) {

body {

}

}
