/*
Theme Name: Cristian Ples
Theme URI: http://www.cristianples.com
Author: Pekka Hiltunen
Author URI: http:/pekkahiltunen.net

*/

/* HTML5 Boilerplate  */

article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
audio:not([controls]) { display: none; }
[hidden] { display: none; }

html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
html, button, input, select, textarea { font-family: 'Segoe UI', arial, helvetica, sans-serif; color: #222; }
body { margin: 0; font-size: 1em; line-height: 1.4; }

::-moz-selection { background: #227071; color: #fff; text-shadow: none; }
::selection { background: #227071; color: #fff; text-shadow: none; }

a { color: #227071; }
a:visited { color: #227071; }
a:hover, .current-menu-item a, .current_page_parent a{ color: #777; }
a:focus { outline: thin dotted; }
a:hover, a:active { outline: 0; }
abbr[title] { border-bottom: 1px dotted; }
b, strong { font-weight: bold; }
blockquote { margin: 1em 40px; }
dfn { font-style: italic; }
hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
ins { background: #ff9; color: #000; text-decoration: none; }
mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }
pre, code, kbd, samp { font-family: monospace, serif; _font-family: 'courier new', monospace; font-size: 1em; }
pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }

q { quotes: none; }
q:before, q:after { content: ""; content: none; }
small { font-size: 85%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }

ul, ol { margin: 1em 0; padding: 0 0 0 40px; }
dd { margin: 0 0 0 40px; }
nav ul, nav ol { list-style: none; list-style-image: none; margin: 0; padding: 0; }

img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }
svg:not(:root) { overflow: hidden; }
figure { margin: 0; }

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

label { cursor: pointer; }
legend { border: 0; *margin-left: -7px; padding: 0; white-space: normal; }
button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }
button, input { line-height: normal; }
button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; *overflow: visible; }
button[disabled], input[disabled] { cursor: default; }
input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; *width: 13px; *height: 13px; }
input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
textarea { overflow: auto; vertical-align: top; resize: vertical; }
input:valid, textarea:valid {  }
input:invalid, textarea:invalid { background-color: #f0dddd; }

table { border-collapse: collapse; border-spacing: 0; }
td { vertical-align: top; }

.chromeframe { margin: 0.2em 0; background: #ccc; color: black; padding: 0.2em 0; }

/* Author: Pekka Hiltunen */

/*****************/
/* Sticky footer */
/*****************/

* {
margin: 0;
}
html, body {
height: 100%;
}

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

footer, .push {
height: 90px;
}


/******************/
/* GENERAL STYLES */
/******************/

.wrapper {
position: relative;
margin: 0 auto;
width: 960px;
}

body {
background: #eee;
}

h1, h2, h3, h4, h5, h6, h7 {
margin: 0;
}

h4 {
color: #227071;
font-size: 18px;
}

p, ul {
font-size: 14px;
color: #222;
margin-bottom: 1em;
}

a {
font-size: 15px;
font-weight: normal;
}

h7 a {
	font-size: 15px;
font-weight: normal;
}

h7 {display:none;}

header {
position: relative;
height: 90px;
background: #fff;
}

#signature-cristian-ples {
position: absolute;
top: 20px;
left: 0;
background: url('../../img/plesh/signature-cristian-ples.png') no-repeat;
width: 128px;
height: 45px;
}

#signature-cristian-ples a{
display: block;
width: 100%;
height: 100%;
}

header h1 a{
font-size: 18px;
color: #227071;
text-shadow: 1px 1px 0px #222;
font-weight: normal;
text-decoration: none;
}

header h1 a:hover{
color: #227071;
}

nav {
position: absolute;
right: 0;
top: 66px;
}

nav ul{

}

nav ul li, footer ul li a {
display: inline;
float: left;
text-transform: uppercase;
text-decoration: none;
padding-left: 30px;
}

nav ul li a, footer ul li a{
text-decoration: none;
color: #227071;
font-weight: bold;
}

.main .wrapper {
border-top: 2px dashed #444;
}

.main .wrapper {
padding: 20px;
overflow: hidden;
}

.entry {

}

.ngg-navigation {
padding-bottom: 5px;
}

#home .entry {
position: relative;
margin-bottom: 30px;
}

/**************/
/* Exceptions */
/**************/


#video{
    position: relative;
    top: 60px;
    width: 640px;
    height: 460px;
    margin: 0 auto;
    display: block;
}

#video-youtube{
    position: relative;
    top: 60px;
    width: 640px;
    height: 460px;
    margin: 0 auto;
    display: block;
}


#mtm2 table td {
width: 50%;

}

#mtm2 table td:first-child{
padding-right: 50px;
min-width: 200px;
}


#column1, #column2, #column3 {
width: 45%;
float: left;
margin-right: 20px;
border: 2px dashed #444;
padding: 10px;
margin-bottom: 30px;
}
#column3 {
margin-right: 0;
}

#column1 img {
border: 0;
}

form input[type="submit"] {
border: 1px dashed #777;
padding: 3px 30px;
background: #c8d4cf;
}

form input[type="submit"]:hover {
border: 1px dashed #444;
padding: 3px 30px;
background: #d6e2dd;
}

form input[type="submit"]:active {
border: 1px dashed #fff;
padding: 3px 30px;
background: #a1ada8;
}

img {
float: right;
padding: 5px;
background: #eee;
border: 2px dashed #444;
margin: 0 0 5px 10px;
}

#wpcf7-f60-p16-o1 {
width: 300px;
float: left;
}

#contact img {
padding: 15px;
float: left;
margin-top: 10px;
}


footer {
background: #fff;
}

footer .wrapper {
padding: 20px;
border-top: 2px dashed #444;
}

#menu-footer-menu{
margin: 0;
padding:0;
}

.menu-footer-menu-container {
margin: 0 auto;
width: 150px;
text-align:left;
}

footer ul{
list-style: none;
margin: 0;
padding: 0;
padding-top: 15px;
}

footer ul li {
display: inline;
float: left;
}

footer ul li a{
margin: 0;
padding: 0;
margin-left: 30px;
}


@media only screen and (min-width: 35em) {
  

}

@media (min-width: 760px) and (max-width:1000px) {
	
	.wrapper {
position: relative;
margin: 0 auto;
width: 720px;
}
	
	#signature-cristian-ples {
position: absolute;
top: 36px;
left: 0;
background: url('../../img/plesh/signature-cristian-ples3.png') no-repeat;
width: 90px;
height: 32px;
}
	
	header h1 a{
font-size: 13px;
color: #227071;
text-shadow: 1px 1px 0px #222;
font-weight: normal;
text-decoration: none;
}

	#column1, #column2, #column3 {
width: 65%;
float: left;
margin-left: 16%;
margin-right: 20px;
border: 2px dashed #444;
padding: 10px;
margin-bottom: 30px;
}

	#video-youtube{
    position: relative;
    top: 20px;
    width: 320px;
    height: 360px;
    margin: 0 auto;
    display: block;
}

	#video-youtube iframe {
		left: 0;
		top: 0px;
		height:320px;
    	width:100%;
    	position:relative;
	}


	
}

@media (max-width:759px) {
	
	.wrapper {
position: relative;
margin: 0 auto;
width: 320px;
}
	
	#signature-cristian-ples {
position: absolute;
top: 46px;
left: 240px;
background: url('../../img/plesh/signature-cristian-ples-mobile.png') no-repeat;
width: 80px;
height: 28px;
}
	
	header h1 a{
font-size: 12px;
color: #227071;
text-shadow: 0px 0px 0px #222;
font-weight: normal;
text-decoration: none;
}
	
	nav {
position: absolute;
right: 15px;
top: 10px;
left: -32px;
}
  
header {
position: relative;
height: 90px;
background: #fff;
}
	
	h4 {
color: #227071;
font-size: 20px;
}

p, ul {
font-size: 18px;
color: #222;
margin-bottom: 1em;
}

a {
font-size: 18px;
font-weight: normal;
}
	
	#video{
    position: relative;
    top: 20px;
    width: 320px;
    height: 220px;
    margin: 0 auto;
    display: block;
}

	#video-youtube{
    position: relative;
    top: 20px;
    width: 320px;
    height: 360px;
    margin: 0 auto;
    display: block;
}

	
	#video iframe {
		left: 0;
		top: -70px;
		height:320px;
    	width:100%;
    	position:relative;
	}

	#video-youtube iframe {
		left: 0;
		top: 0px;
		height:320px;
    	width:100%;
    	position:relative;
	}

	
	video {
    max-width: 100%;
    height: auto;
}

	video-youtube {
    max-width: 100%;
    height: auto;
}

	
	header nav a{
	font-size: 15px;
}
	
	footer {display:none;}
	
	h7 {display:list-item;}
	
}

@media all and (max-device-width:759px) and (orientation: landscape) {
	
	.wrapper {
position: relative;
margin: 0 auto;
width: 540px;
}
	
	header {
position: relative;
height: 84px;
background: #fff;
}
	
	#signature-cristian-ples {
position: absolute;
top: 30px;
left: 85%;
background: url('../../img/plesh/signature-cristian-ples2.png') no-repeat;
width: 100px;
height: 35px;
}
	
	header h1 a{
font-size: 14px;
color: #227071;
text-shadow: 1px 1px 0px #222;
font-weight: normal;
text-decoration: none;
}
	
	nav {
position: absolute;
right: 15px;
top: 20px;
left: -32px;
}
	
}

.ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; *line-height: 0; }
.ir br { display: none; }
.hidden { display: none !important; visibility: hidden; }
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
.invisible { visibility: hidden; }
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { *zoom: 1; }

@media print {
  * { background: transparent !important; color: black !important; box-shadow:none !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } 
  a, a:visited { text-decoration: underline; }
  a[href]:after { content: " (" attr(href) ")"; }
  abbr[title]:after { content: " (" attr(title) ")"; }
  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } 
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  thead { display: table-header-group; } 
  tr, img { page-break-inside: avoid; }
  img { max-width: 100% !important; }
  @page { margin: 0.5cm; }
  p, h2, h3 { orphans: 3; widows: 3; }
  h2, h3 { page-break-after: avoid; }
}
