/* Theme Name: Mobiilipohja
Description: Mobiilipohjan teematiedosto
Author: Medialuotsi Oy
Author URI: www.medialuotsi.fi*/


 /** HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

@import url(http://fonts.googleapis.com/css?family=Oswald);
@import url(http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz);
@import url(http://fonts.googleapis.com/css?family=Lobster);

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

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

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */


body {
	background: url('img/bodybg.jpg');
	background-position: top center;
	background-repeat: no-repeat; 
	font-size: 16px; 
	font-family: tahoma, sans-serif; 
	margin: 0;
	padding: 0;
}


header {
	text-align: center;
	background: #377b64;
	border-bottom: 2px solid #111;
}

header h1 {
	font-family: 'Lobster', cursive;
	font-weight: normal; 
	text-transform: none;
	text-align: center;  
	padding: 30px 0px 30px 0px; 
	text-shadow: 0px 0px 0px #111, 1px 1px 0px #111, 2px 2px 0px #111; 
	font-size: 40px; 
	line-height: 1.5em;
	color: #fff;
	margin: 0;
}

.napit {
	margin-bottom: 20px; 
	margin-left: 0px; 
	min-height: 40px; 
}

#etusivu {
min-height: 100px;
}

.napit p {
	text-align: center; 
	margin-top: 30px; 
	margin-bottom: 0px;
}

.napit a { 	
	font-family: 'Yanone Kaffeesatz', sans-serif; 
	color: #333; 
	font-size: 22px;
	padding: 10px 5px; 
	text-decoration: none;
	border-radius:3px;
	border: 1px solid #ccc;
	-moz-border-radius: 3px; 
	font-weight: normal;
	text-transform: uppercase;
	display:block;
	margin: 5px 30px 20px 30px;

	tap-highlight-color: rgba(150,0,0,0.1);
	-webkit-tap-highlight-color: rgba(150,0,0,0.1);
	
	background: #f2f6f8;
	background: -moz-linear-gradient(top,  #f2f6f8 0%, #d8e1e7 50%, #b5c6d0 51%, #e0eff9 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f2f6f8), color-stop(50%,#d8e1e7), color-stop(51%,#b5c6d0), color-stop(100%,#e0eff9));
	background: -webkit-linear-gradient(top,  #f2f6f8 0%,#d8e1e7 50%,#b5c6d0 51%,#e0eff9 100%);
	background: -o-linear-gradient(top,  #f2f6f8 0%,#d8e1e7 50%,#b5c6d0 51%,#e0eff9 100%);
	background: -ms-linear-gradient(top,  #f2f6f8 0%,#d8e1e7 50%,#b5c6d0 51%,#e0eff9 100%);
	background: linear-gradient(to bottom,  #f2f6f8 0%,#d8e1e7 50%,#b5c6d0 51%,#e0eff9 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f2f6f8', endColorstr='#e0eff9',GradientType=0 );

}
					
#soitanappi { 
	border: 1px solid #666; 
	color: #fff;
	background: #377b64;
}

h1, h2, h3, h4, h5, h6 {
	 font-family: 'Oswald', sans-serif;
	 font-size: 20px; 
	 font-weight: normal; 
	 text-transform: none; 
	 color: #0e3240; 
	 margin: 10px 10px 10px 0px;
	 line-height: 1.5em;
}

.content {
	background: #fff;
	padding: 20px;
	border: 1px solid #ddd;
	width: 90%;
	max-width: 700px;
	margin: 15px auto;
	box-sizing: border-box;
}

.content a { 
	color: #377b64; 
	text-decoration: underline;
}

.content p {
	 margin: 0px 0px 0px 0px; 
	 padding: 0px 0px 10px 0px; 
}

.content strong {
	 color: #377b64;
}

ul {
	margin-bottom: 15px;
}

hr {
	margin: 0px 15px 5px 15px; 
	border-top: 5px solid #ef4b3e;
}

footer {
	background: #377b64;
	border-top: 2px solid #111;
}

footer a { text-decoration: underline; color: #fff; }

footer a:hover { color: #fff; }

footer p {
	font-size: 14px;
	text-align: center; 
	color: #fff;
	font-weight: bold;
	padding: 5px;
	text-shadow: 1px 1px 0px #333; 
}
footer p:first-child {
	padding-top: 30px;
}
.empty {
	height: 30px;
}
/* -------------------- STICKY FOOTER -------------------- */

* {
	margin: 0;
}

html, body {
	height: 100%;
}

.wrapper {
	min-height: 100%; 
	height: auto !important;
	height: 100%;
	margin: 0 auto -160px; 
}

footer, .push {
	height: 160px;
}


.clearfix:before,
.clearfix:after {
    content: "";
    display: table;
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

@media only screen and (min-width: 420px) {

header p {text-align: center; }

	#etusivu {
	min-height: 160px;
	}

	.napit {
		width: 420px; 
		margin: 0px auto 20px auto;

	}
	.napit p {
		margin-bottom: 30px; 
		padding-bottom: 20px;
	}
	.napit a { 
		float:left;
		margin: 5px 10px 5px 10px;
		width: 40%;
	}
}