/*
	Theme Name: HTML5 Blank
	Theme URI: http://html5blank.com
	Description: HTML5 Blank WordPress Theme
	Version: 1.4.3
	Author: Todd Motto (@toddmotto)
	Author URI: http://toddmotto.com
	Tags: Blank, HTML5, CSS3

	License: MIT
	License URI: http://opensource.org/licenses/mit-license.php
*/

/*------------------------------------*\
    MAIN
\*------------------------------------*/

/* global box-sizing */

*,
*:after,
*:before {
	-moz-box-sizing:border-box;
	box-sizing:border-box;
	-webkit-font-smoothing:antialiased;
	font-smoothing:antialiased;
	text-rendering:optimizeLegibility;
}
/* html element 62.5% font-size for REM use */
html {
	font-size:62.5%;
	background-color: transparent;
}
html::after {
	content: "";
	background: url('img/merjalaine-etusivu.png');
	background-position: center 0;
	background-repeat: no-repeat;
	opacity: 0;
	top: 0;
	left: 0;
	  bottom: 0;
	  right: 0;
	  position: absolute;
	  z-index: -1;
}
body {
	font:400 13px/1.4 'Helvetica Neue', Helvetica, Arial, sans-serif;
	color:grey;
	background: url('img/bg.png');
}

/* clear */
.clear:before,
.clear:after {
    content:' ';
    display:table;
}

.clear:after {
    clear:both;
}
.clear {
    *zoom:1;
}
img {
	max-width:100%;
	vertical-align:bottom;
}
a {
	color:#444;
	text-decoration:none;
}
a:hover {
	color:#444;
}
a:focus {
	outline:0;
}
a:hover,
a:active {
	outline:0;
}
input:focus {
	outline:0;
	border:1px solid #04A4CC;
}

.main.bg-white {
    background: #F3F3F3;
}
.cv-content {
	width:55%;
	margin-left:39%
}
section {
    padding: 1.5rem 0;
}
.default-page section {
	padding:1.5rem;	
}
/*------------------------------------*\
    STRUCTURE
\*------------------------------------*/
.content-section .teksti {
    width: 50%;
    float:left;
}
.content-section {
	display:inline-block;
	padding: 25px;
}
.content-section .kuva {
    width: 50%;
    float:right;
}
.content-section .kuva img {
    display:block;
    float:right;
}
.kuvateksti {
	margin: 1px 41px;
	color:#aaa;
	font-size: 1.1rem;
}
.gallery-container {
	background: #fff;
	padding:30px 0;

}
.slick-slide img {
    display: block;
    /* margin: 7px; */
    margin-left: 40px;
    height: 160px;
    box-shadow: 2px 7px 16px #A2A2A2;
}
.lang-selection {
    position: absolute;
    top: 35%;
    left: 0;
    right: 0;
    font-size: 1.2rem;
	font-family: 'Michroma', sans-serif;
}
.lang-selection a {
	color:#0071B3;
	padding:0 10px 0 10px;
}
/* wrapper */
.wrapper {
	
	width:100%;
	margin:0 auto;
	position:relative;
}
.header-wrapper {
 	/* border:1px solid red; */
 	height: 230px;
 	background: url('img/bg.png');
 	float:left;
 	min-width:935px;
 	width:100%;	
}
.main-wrapper {
	/* border:1px dotted blue;	*/
	float: left;
	
	min-height: 388px;
	min-width:936px;
	width:100%;
	background: url('img/content-bg.jpg');

	padding: 2.8rem 0;
	
	position:relative;
	z-index: 1;
	box-shadow: 0px 2px 4px #9E9E9E;
	-webkit-box-shadow: 0px 2px 4px #9E9E9E;
	-moz-box-shadow: 0px 2px 4px #9E9E9E;

}
.footer-wrapper {
	/* border:1px dotted gray; */
	min-width:935px;
	width:100%;
	float:left;
	background-color: #3b3b3b;
}
/* header */

.header {
	text-align: center;
	width: 935px;
    margin: 0px auto;
    margin-top:4.8rem;
}
.nav {
	vertical-align: middle;
	border-top:1px solid #C7C7C7;
	border-bottom:1px solid #C7C7C7;
	line-height:1rem;
}
.nav.logo {
	border-top:0;
	border-bottom: 0;
}
nav.nav.navigation-left,
nav.nav.navigation-right {
    width: 40%;
    margin-top: 3.5rem;
}
nav.nav.navigation-left ul,
nav.nav.navigation-right ul,
nav.navigation-bottom ul {
	display: flex;
	-ms-display: flex;
	-webkit-display: flex;
    justify-content: space-between;
    -ms-justify-content: space-between;
    -webkit-justify-content: space-between;
}
nav ul li a {
	font-size: 1.2rem;
	font-family: 'Michroma', sans-serif;

}
.header ul li a {
	text-transform: uppercase;
}
.nav.logo {
	width:19%
}
.nav {
	display: inline-block;
}
.header ul {
	padding:0;
}
.header ul li {
	list-style: none;
	display:inline-block;

}
.nav.navigation-left ul li {
	text-align: left;
}
.nav.navigation-right ul li {
	text-align: right;
}

.main {
	width: 935px;
    margin: 0px auto;
}
/* logo */
.logo {

}
.logo-img {

}
/* nav */
.nav {

}
/* sidebar */
.sidebar {

}

/* main-content */
.main-alt-content-wrapper {
	float:left;
	width:100%;
}
.main-alt-content {
	border-top: 1px solid #C5C5C5;
}
.main-alt-content {
	width:935px;
	margin: 0px auto;
	min-height: 124px;
    margin-top: 20px;
	padding-bottom: 100px;
}

.main-content-left {
	width: 49%;
	display:inline-block;
	padding: 0 1%;
	vertical-align: top;
}
.main-content-right {
	width:49%;
	display:inline-block;
	padding: 0 1%;
	vertical-align: top;
}
/* footer */

.footer {
	width: 935px;
    margin: 0px auto;
    min-height: 200px;
    color:#bbbbbb;
}

.footer-block {
	display:inline-block;
	width: 42%;
	vertical-align: top;
	margin-top:10px;
	line-height: 1rem;
}
.contacts.footer-block {
	text-align: right;
}
.footer-block .img-cm {
	margin-top:10px;
	margin-right: 5px;
	    vertical-align: text-bottom;
}
.footer-logo {
	display: inline-block;
	width: 15%;
}
.footer-logo img {
    max-width: 105px;
    display: block;
    margin: 7px auto;
}
.footer ul.menu li {
	display: inline-block;
	padding-right: 0.8rem;
}

.footer ul.menu li a {
	font-size: 1.2rem;
	font-family: 'Michroma', sans-serif;
	color:#bbbbbb;

}
.footer ul.menu {
	list-style: none;
	padding:0;
}
.copy {
	font-size:1rem;
}

span.phone, span.envelope {
    margin-top: 11px;
    display: block;
    font-family: 'Michroma', sans-serif;
    font-weight: 600;
    font-size:1.1rem;
    color:#aaa;
}
span.envelope {
    padding-right: 5px;
    font-size: 12px;
    margin-top: 0;
}
span.envelope {
    margin-top: 0;
}
span.phone a, span.envelope a {
    
    color:#aaa;
}

p {

    word-break: keep-all;
}



/* Contact form */

input, textarea {
    width: 75%;
    -khtml-border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
}
input.form-text, textarea.form-textarea, select.form-select {
    border: 1px solid #ccc;
}
input, textarea {
    font-size: 0.929em;
}
input, textarea {
    margin: 2px 0;
    padding: 4px;
    border: 1px solid gray;
}
input, textarea, select, a.button {
    font-family: "Lucida Grande","Lucida Sans Unicode",Verdana,sans-serif;
}
.label {
	font-weight: 700;
}



/*------------------------------------*\
    PAGES
\*------------------------------------*/



/*------------------------------------*\
    IMAGES
\*------------------------------------*/



/*------------------------------------*\
	TYPOGRAPHY
\*------------------------------------*/

@font-face {
	font-family:'Font-Name';
	src:url('fonts/font-name.eot');
	src:url('fonts/font-name.eot?#iefix') format('embedded-opentype'),
		url('fonts/font-name.woff') format('woff'),
		url('fonts/font-name.ttf') format('truetype'),
		url('fonts/font-name.svg#font-name') format('svg');
    font-weight:normal;
    font-style:normal;
}

/*------------------------------------*\
    RESPONSIVE
\*------------------------------------*/

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

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

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

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

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

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

}
@media only screen and (-webkit-min-device-pixel-ratio:1.5),
	   only screen and (min-resolution:144dpi) {

}

/*------------------------------------*\
    MISC
\*------------------------------------*/

::selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}
::-webkit-selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}
::-moz-selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}

/*------------------------------------*\
    WORDPRESS CORE
\*------------------------------------*/

.alignnone {
	margin:5px 20px 20px 0;
}
.aligncenter,
div.aligncenter {
	display:block;
	margin:5px auto 5px auto;
}
.alignright {
	float:right;
	margin:5px 0 20px 20px;
}
.alignleft {
	float:left;
	margin:5px 20px 20px 0;
}
a img.alignright {
	float:right;
	margin:5px 0 20px 20px;
}
a img.alignnone {
	margin:5px 20px 20px 0;
}
a img.alignleft {
	float:left;
	margin:5px 20px 20px 0;
}
a img.aligncenter {
	display:block;
	margin-left:auto;
	margin-right:auto;
}
.wp-caption {
	background:#FFF;
	border:1px solid #F0F0F0;
	max-width:96%;
	padding:5px 3px 10px;
	text-align:center;
}
.wp-caption.alignnone {
	margin:5px 20px 20px 0;
}
.wp-caption.alignleft {
	margin:5px 20px 20px 0;
}
.wp-caption.alignright {
	margin:5px 0 20px 20px;
}
.wp-caption img {
	border:0 none;
	height:auto;
	margin:0;
	max-width:98.5%;
	padding:0;
	width:auto;
}
.wp-caption .wp-caption-text,
.gallery-caption {
	font-size:11px;
	line-height:17px;
	margin:0;
	padding:0 4px 5px;
}
.sticky {

}
.bypostauthor {

}

/*------------------------------------*\
    PRINT
\*------------------------------------*/

@media print {
	* {
		background:transparent !important;
		color:#000 !important;
		box-shadow:none !important;
		text-shadow: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;
	}
}
.lity {
	    background: rgba(220, 220, 220, 0.96) !important;
}
.lity-content {
	border: 19px solid white;
}
.lity-content:after {
    -webkit-box-shadow: 0 0 0 rgba(0,0,0,0.6) !important;
    box-shadow: 0 0 0 rgba(0,0,0,0.6) !important;
}