/* 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=Stardos+Stencil);
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,600);

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

a {
    color: #3385AD;
}

a:visited {
    color: #3385AD;
}

a:hover {
    color: #3385AD;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */


html, body { -webkit-text-size-adjust: none; }

body {
	background: url('img/bg.jpg') repeat #000;
	font-size: 8pt;
}

img {max-width: 100%; height: auto;}

header { 
	text-align: center;  
	background: #333;
	background-size: 110%;
	padding-top: 20px; 
	border-bottom: 1px solid #424141;
}

header p {
	text-align: center; 
	color:#fff; 
	font-size: 12pt;
	font-weight: normal; 
	padding-bottom: 15px;
	line-height: 2em;
}

header h1 {
	font-family: 'Stardos Stencil', cursive;
	font-weight: normal; 
	text-transform: uppercase;
	text-align: center;  
	padding: 20px 0px 20px 0px; 
	text-shadow: 0px 0px 0px #111, 1px 1px 0px #111, 2px 2px 0px #111; 
	font-size: 30px !important; 
	line-height: 1.5em;
	color: #fff;
}

.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: 'Open Sans', sans-serif;
	color: #333; 
	padding: 15px; 
	text-decoration: none;
	border-radius:3px;
	-moz-border-radius: 3px; 
	font-weight: 600;
	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: #fff;
}
		
.napit a, #soitanappi {
	font-size: 19px;
}	
				
#soitanappi { 
	color: #fff;	
	background: #ADBE4C;
}

.soitanappi-24h {
	color: #fff !important;
	background-color: #E02309 !important;
}

h1 {
	 font-family: 'Open Sans', sans-serif;
	 font-size: 26px !important;
	 font-weight: 600; 
	 text-transform: none; 
	 color: #333; 
	 margin: 0px 15px 20px 15px; 
	 line-height: 1.5em;	 
 }

h2 {
	 font-family: 'Open Sans', sans-serif;
	 font-size: 22px !important;
	 font-weight: 600; 
	 text-transform: none; 
	 color: #333; 
	 margin: 0px 15px 20px 15px; 
	 line-height: 1.5em;	 
 }
 
 h3 {
	 font-family: 'Open Sans', sans-serif;
	 font-size: 18px !important;
	 font-weight: 600; 
	 text-transform: none; 
	 color: #333; 
	 margin: 5px 15px 5px 15px; 
	 line-height: 1.5em;	 
 }

.content {
	background: #fff;
	margin: 15px; 
	padding: 20px 5px;
}

.content p {
	 font-family: 'Open Sans', sans-serif;
	 margin: 0px 0px 0px 0px; 
	 padding: 0px 15px 10px 15px; 
	 font-size: 14px;
 }
 
 .content a {
 	font-family: 'Open Sans', sans-serif;
 	text-decoration: underline;
	color: inherit;
}

ul {
	margin-bottom: 10px;
	font-size: 14px;
}

ul li ul {margin: 0; padding-left: 20px; } 

footer {
	background: #555;
	border-top: 1px solid #616161;
	line-height: 20px;
}

footer p {
	font-family: 'Open Sans', sans-serif;
	font-size: 9pt; 
	font-weight: bold;
	text-align: center; 
	margin-top: 10px; 
	color: #F0F0F0;
}

footer a,
footer a:visited,
footer a:hover,
footer a:focus {
	color: #F0F0F0;
	text-decoration: underline;
}

footer p:first-child {	padding-top: 10px; }

.empty {
	height: 30px;
}

/* -------------------- STICKY FOOTER -------------------- */

* {
	margin: 0;
}

html, body {
	height: 100%;
}

.wrapper {
	min-height: 100%; 
	height: auto !important;
	height: 100%;
	margin: 0 auto -150px; 
}

footer, .push {
	height: 150px;
}

.push { margin-top: 20px; }

/* ==========================================================================
   Helper classes
   ========================================================================== */

/* Prevent callout */

.nocallout {
    -webkit-touch-callout: none;
}

.pressed {
    background-color: rgba(0, 0, 0, 0.7);
}

/* A hack for HTML5 contenteditable attribute on mobile */

textarea[contenteditable] {
    -webkit-appearance: none;
}

/* A workaround for S60 3.x and 5.0 devices which do not animate gif images if
   they have been set as display: none */

.gifhidden {
    position: absolute;
    left: -100%;
}

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    background-repeat: no-repeat;
    border: 0;
    direction: ltr;
    display: block;
    overflow: hidden;
    text-align: left;
    text-indent: -999em;
}

.ir br {
    display: none;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/**
 * Clearfix helper
 * Used to contain floats: h5bp.com/q
 */

.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; }

.napit {
	width: 420px; 
	margin: 0px auto;
}
.napit p {
	margin-bottom: 30px; 
	padding-bottom: 40px;
}
.napit a { 
	display: inline-block;
	margin: 5px;
	width: 40%;
}
}
