/*
Theme Name: 	Koti Oulussa responsive
Version: 		2.0
Author: 		Evista Ltd.
Author URI: 	http://digital-ocean.co/
*/

/*
===========================
CONTENTS:

01 Sensible defaults
02 Typography
03 Media queries
===========================
*/

/* ----------------------------------------------------------------------------------------------------------
01 Sensible defaults ----------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------- */

@import "css/reset.css";
@import "css/jquery.fancybox.css";

div,
article,
section,
header,
footer,
nav,
li					{ position:relative; /* For absolutely positioning elements within containers (add more to the list if need be) */ }
.group:after 		{ display:block; height:0; clear:both; content:"."; visibility:hidden; /* For clearing */ }
::-moz-selection 	{ background:#000; color:#fff; }
::selection 		{ background:#000; color:#fff; }

/* ----------------------------------------------------------------------------------------------------------
02 Typography -----------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------- */
/*

14 / 16	= 		0.875em 		(14px equivalent)
16 / 16	= 		1em 			(16px equivalent)
18 / 16 = 		1.125em 		(18px equivalent)
21 / 16 = 		1.3125em 		(21px equivalent)
24 / 16 = 		1.5em 			(24px equivalent)
30 / 16 = 		1.875em 		(30px equivalent)

*/

body,
input,
textarea 			{ /* We strongly recommend you declare font-weight using numerical values, but check to see which weights you're exporting first */ }

h1,
h2,
h3,
h4,
h5,
h6 					{ font-family: Arial, serfi; font-weight: bold; padding-bottom: 14px; }

a,
a:link,
a:visited,
a:hover {
	color: #004399;
	text-decoration: none;
	}

a:hover {
	color: #00aeef;
	text-decoration: none;
	}

h2 a,
h2 a:link,
h2 a:visited,
h2 a:hover,
h1 a,
h1 a:link,
h1 a:visited,
h1 a:hover {
	color: #033152;
	}

h2 a:hover,
h1 a:hover {
	color: #00aeef;
	text-decoration: none;
	}

h1 {
	font-size: 30px;
	line-height: 32px;
	color: #033152;
	font-weight: bold;
	padding: 0 0 5px 0;
	}

h2 {
	font-size: 30px;
	line-height: 32px;
	color: #033152;
	font-weight: bold;
	padding: 0 0 5px 0;
	}

h3 {
	font-size: 24px;
	line-height: 28px;
	color: #033152;
	font-weight: bold;
	padding: 0 0 5px 0;
	}

h3.description {
	padding: 13px 0 0 0;
	color: #36729d;
	}

h4, h5, h6 {
	font-size: 15px;
	line-height: 24px;
	padding-bottom: 3px;
	font-weight: normal;
	}

h4 a {
	font-weight: bold;
	}

p, ul {
	padding-bottom: 14px;
	}

p span {
	-webkit-box-sizing: content-box;
	-moz-box-sizing: content-box;
	box-sizing: content-box;
	}

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after,
.widget_search:before,
.widget_search:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after,
.widget_search:after {
    clear: both;
}

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

.clearfix,
.widget_search {
    *zoom: 1;
}

html, body {height: 100%;}

#wrap {min-height: 100%;}

#main {overflow:auto;
	padding-bottom: 180px;}  /* must be same height as the footer */

/*Opera Fix*/
body:before {/* thanks to Maleika (Kohoutec)*/
content:"";
height:100%;
float:left;
width:0;
margin-top:-32767px;/* thank you Erik J - negate effect of float*/
}



/* */

body {
	text-align: center;
	background: #f0f8fe url(images/body.jpg);
	color: #494b4a;
	-webkit-text-size-adjust: 100%; /* Stops Mobile Safari from auto-adjusting font-sizes */
	font-family: 'Trebuchet MS', Arial, serif;
	font-size: 16px;
	line-height: 24px;
}

header,
footer {
	display: block;
	position: relative;
	width: 100%;
	}

.section-wrap {
	max-width: 990px;
	padding: 0 15px;
	width: 100%;
	display: block;
	margin: 0 auto;
	position: relative;
	text-align: left;
	}

header {
	height: 252px;
	}

#main {
	background: url(images/header.jpg) -353px 0 no-repeat;
	}

footer {
	background: url(images/footer.jpg) -357px 0 no-repeat;
	height: 143px;
	margin-top: -143px;
	clear:both;
	}


footer p {
	padding: 41px 0 0 232px;
	font-size: 14px;
	}

nav {
	font-family: 'Glegoo', serif;
	position: absolute;
	top: 162px;
	left: 0;
	display: block;
	width: 100%;
	padding: 0 15px;
	}



nav ul li {
	float: left;
	}

nav ul li a {
	float: left;
	display: block;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	font-family: 'Glegoo', serif;
	color: #033152;
	background: #fff;
	font-size: 24px;
	line-height: 2;
	text-transform: uppercase;
	padding: 0 20px;
	margin: 0 5px 0 0;
	text-decoration: none;
	font-weight: normal;
	-webkit-box-sizing: content-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: content-box;    /* Firefox, other Gecko */
	box-sizing: content-box;         /* Opera/IE 8+ */
	-webkit-box-shadow: 1px 1px 2px rgba(50, 50, 50, 0.5);
	-moz-box-shadow:    1px 1px 2px rgba(50, 50, 50, 0.5);
	box-shadow:         1px 1px 2px rgba(50, 50, 50, 0.5);
	behavior: url(/wp-content/themes/kotioulu/js/PIE.htc);
	}



nav ul li a:hover {
	text-decoration: none;
	color: #3fc2f3;
	}

article {
	padding: 13px 0 58px 0;
	background: url(images/article.gif) bottom center no-repeat;
	}

div.post-pagination {
	padding: 33px 0 12px 0;
	}

div.post-pagination a,
div.post-pagination div > span{
	display: inline-block;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	font-family: 'Glegoo', serif;
	color: #fff;
	background: #81a857;
	font-size: 24px;
	line-height: 48px;
	text-transform: uppercase;
	padding: 0 20px;
	text-decoration: none;
	behavior: url(/wp-content/themes/kotioulu/js/PIE.htc);
	}

div.post-pagination div > span{
	background: #cee4f4;
	color: #eef6fc;
	}

a.readmore {
	display: inline-block;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	font-family: 'Glegoo', serif;
	color: #fff;
	background: #81a857;
	font-size: 18px;
	line-height: 38px;
	text-transform: uppercase;
	padding: 0 20px;
	text-decoration: none;
	behavior: url(/wp-content/themes/kotioulu/js/PIE.htc);
	}

aside .widget_search input#searchsubmit:hover,
div.post-pagination a:hover,
a.readmore:hover,
input#submit:hover {
	cursor: pointer;
	color: #fff;
	background: #66952e;
	text-decoration: none;
	}

#searchform {
	display: block;
	width: 100%;
	height: 39px;
	}

aside h2.widgettitle {
	display: block;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	font-family: 'Glegoo', serif;
	color: #fff;
	background: #8eb1ca;
	font-size: 24px;
	line-height: 48px;
	height: 48px;
	text-transform: uppercase;
	padding: 0 20px;
	margin: 0 0 15px 0;
	text-decoration: none;
	font-weight: normal;
	behavior: url(/wp-content/themes/kotioulu/js/PIE.htc);
	}



aside .widget_search h2.widgettitle { display: none; }

aside .widget_search label {
	display: none;
	}

aside .widget_search input#searchsubmit,
input#submit {
	display: block;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	font-family: 'Glegoo', serif;
	color: #fff;
	background: #81a857;
	font-size: 18px;
	line-height: 38px;
	height: 38px;
	text-transform: uppercase;
	padding: 0px 20px;
	text-decoration: none;
	border: none;
	margin: 0;
	float: left;
	-webkit-box-sizing: content-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: content-box;    /* Firefox, other Gecko */
	box-sizing: content-box;         /* Opera/IE 8+ */
	behavior: url(/wp-content/themes/kotioulu/js/PIE.htc);
	}

aside .widget_search input#s {
	display: block;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	color: #333;
	background: #fff;
	font-size: 14px;
	line-height: 18px;
	height: 18px;
	padding: 10px 10px;
	text-decoration: none;
	border: none;
	margin: 0;
	width: calc(100% - 101px);
	float: left;
	margin-right: 4px;
	-webkit-box-sizing: content-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: content-box;    /* Firefox, other Gecko */
	box-sizing: content-box;         /* Opera/IE 8+ */
	-webkit-box-shadow: 1px 1px 2px rgba(50, 50, 50, 0.5);
	-moz-box-shadow:    1px 1px 2px rgba(50, 50, 50, 0.5);
	box-shadow:         1px 1px 2px rgba(50, 50, 50, 0.5);
	behavior: url(/wp-content/themes/kotioulu/js/PIE.htc);
	}

aside .widget_search 	{
	padding: 20px 20px 30px 20px;
	}


aside div.textwidget {
	font-size: 14px;
	line-height: 21px;
	color: #494b4a;
	padding: 0 21px 21px 21px;
	}

aside .widget_archive {
	font-size: 14px;
	line-height: 21px;
	}

aside div.tagcloud {
	padding: 3px 21px 21px 21px;
	}

aside .widget ul {
	padding: 0 21px 21px 21px;
	}

aside .widget_archive ul li {
	list-style-image:url(images/star.gif);
	margin-left: 21px;
	}

/* */

a.feedburner {
	display: block;
	padding: 5px 0 5px 40px;
	line-height: 25px;
	}

a.febu-email {
	background: url(images/febu-email.gif) no-repeat 5px 5px;
	}

a.febu-rss {
	background: url(images/febu-rss.gif) no-repeat 5px 5px;
	}

img.arrowimg {
	position: relative;
	top: -2px;
	left: 3px;
	}

/* */

.author-info {
	padding-top: 22px;
	}

.author-info .author-image {
	float: left;
	display: block;
	width: 140px;
	background: url(images/authorimage.jpg) no-repeat;
	height: 112px;
	}

.author-info .author-image img {
	padding: 5px 0 0 6px;
	}

.author-name-desc {
	float: left;
	}

.author-name-desc h3{
	color: #004399;
	font-size: 24px;
	font-weight: bold;
	padding: 28px 0 5px 0;
	}

.author-name-desc p{
	font-size: 16px;
	}

/* */

#comments textarea {
	display: block;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	color: #333;
	font-size: 14px;
	line-height: 18px;
	padding: 10px 10px;
	text-decoration: none;
	border: none;
	width: 90%;
	margin: 0;
	display: block;
	background: #fbfdff;
	border: none;
	-webkit-box-sizing: content-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: content-box;    /* Firefox, other Gecko */
	box-sizing: content-box;         /* Opera/IE 8+ */
	-webkit-box-shadow: 0px 1px 2px rgba(50, 50, 50, 0.25);
	-moz-box-shadow:    0px 1px 2px rgba(50, 50, 50, 0.25);
	box-shadow:         0px 1px 2px rgba(50, 50, 50, 0.25);
	behavior: url(/wp-content/themes/kotioulu/js/PIE.htc);
	}

p.comment-form-comment label {
	font-size: 14px;
	display: none;
	}

p.comment-form-url { display: none; }

p.comment-form-author input,
p.comment-form-email input,
p.comment-form-url input  {
	display: block;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	color: #333;
	font-size: 14px;
	line-height: 18px;
	padding: 10px 10px;
	text-decoration: none;
	border: none;
	width: 230px;
	margin: 0;
	display: block;
	background: #fbfdff;
	border: none;
	-webkit-box-sizing: content-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: content-box;    /* Firefox, other Gecko */
	box-sizing: content-box;         /* Opera/IE 8+ */
	-webkit-box-shadow: 0px 1px 2px rgba(50, 50, 50, 0.25);
	-moz-box-shadow:    0px 1px 2px rgba(50, 50, 50, 0.25);
	box-shadow:         0px 1px 2px rgba(50, 50, 50, 0.25);
	behavior: url(/wp-content/themes/kotioulu/js/PIE.htc);
	}

p.comment-form-author,
p.comment-form-email,
p.comment-form-url{
	padding: 0 0 10px 0;
	}

p.comment-form-author label,
p.comment-form-email label,
p.comment-form-url label {
	float: right;
	text-align: left;
	width: 310px;
	line-height: 38px;
	font-size: 14px;
	padding: 0;
	margin: 0;
	}

.alignright { float: right; margin: 0 0 15px 15px; }
.alignleft { float: left; margin: 0 15px 15px 0; }
.aligncenter { margin: 15px auto; text-align: center; }


@media screen and (min-width: 1200px){
	section{
		width: 60.3535353535%!important;
		}

	aside{
		width: 31.31313131%!important;
		}
	}

@media screen and (min-width: 992px){
	#main{
		background-position: 50% 0;
		}

	.section-wrap{
		padding: 0;
		max-width: 960px;
		}

	footer{
		background-position: 50% 0;
		}

	nav{
		padding: 0;
		}
	}

@media screen and (max-width: 570px){
	nav ul li a{
		font-size: 20px;
		}
}

@media screen and (max-width: 500px){
	#main{
		-webkit-background-size: 1275px auto;
		-moz-background-size: 1275px auto;
		-o-background-size: 1275px auto;
		background-size: 1275px auto;
		background-position: -260px 0;
		}

	header{
		height: 210px;
		}

	nav{
		top: 135px;
		}

	nav ul li a{
		font-size: 16px;
		padding: 0 10px;
		}

	article img.alignright,
	article img.alignleft,
	article .alignright img,
	article .alignleft img{
		margin: 10px auto;
		width: 100%!important;
		max-width: 320px!important;
		height: auto!important;
		display: block;
		float: none;
		}

	article .wp-caption,
	article .wp-caption img{
		width: 100%!important;
		}

	footer .section-wrap{
		padding: 150px 0 0 0;
		}

	footer .section-wrap p{
		background: #f0f8fe;
		padding: 15px;
		text-align: center;
		}
}

@media screen and (max-width: 375px){
	nav ul li a{
		font-size: 13px;
		padding: 0 5px;
		}

	#main{
		-webkit-background-size: 1100px auto;
		-moz-background-size: 1100px auto;
		-o-background-size: 1100px auto;
		background-size: 1100px auto;
		background-position: -223px 0;
		}

	header{
		height: 180px;
		}

	nav{
		top: 110px;
		}

	h2{
		font-size: 24px;
	}
}
