/******************************************************************
Theme Name: Evakko - Tilke. Oy
Theme URI: https://www.tilkeoy.fi
Description: Matkustajakoti Evakko - WordPress teema
Author: Iikka Ruotsalainen
Version: 0.1 (dev)
License: CC BY-NC
License URI: https://creativecommons.org/licenses/by-nc/4.0/
Tags: Matkustajakoti, Evakko
******************************************************************/

/* Värit 
ruskea: rgb(153, 102, 51)
vaalea: rgb(235, 224, 214)
*/

/*------------------------------------*\
    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 font-size for REM use */
html {
	font-size:100%;
}
body, ._kj_prod_container {
	font:300 16px/1.4 'Raleway', sans-serif;
	color:black;
	overflow-x: hidden;
}
body.overflow {
	overflow: hidden;
}
h1, h2, h3, h4, h5, h6, ._kj_prod_title, ._kj_prod_price, ._kj_basket_title, ._kj_basket_grand_total {
	font-family: 'Cinzel', serif;
	text-decoration:underline;
}
h1, .ui-widget-header {font-size:2rem !important;}
h2{font-size: 1.8rem;}
h3,  ._kj_basket_title {font-size: 1.6rem !important;}
h4, ._kj_prod_price {font-size: 1.4rem !important;}
h5 {font-size: 1.3rem;}
h6, ._kj_basket_grand_total{font-size: 1.2rem;}

main section:nth-of-type(1), main section:nth-of-type(3), main section:nth-of-type(5){
	background-color: rgb(153, 102, 51);
}
main section:nth-of-type(1) *, main section:nth-of-type(3) *, main section:nth-of-type(5) *{
	color: white;
}
main section:nth-of-type(2), main section:nth-of-type(4), main section:nth-of-type(6){
	background-color: rgb(235, 224, 214);
}
/*main section:nth-of-type(4){
	background-color: white;
}*/
/* clear */
.clear:before,
.clear:after {
    content:' ';
    display:table;
}

.clear:after {
    clear:both;
}
.clear {
    *zoom:1;
}
img {
	max-width:100%;
	vertical-align:bottom;
	height: auto;
}
a {
	text-decoration:underline;
	color:black;
	transition: 0.2s all ease-in-out;
	cursor: pointer;
}
a:hover{
	color: white;
	background-color: #2f2d2b;
}
a:focus, a:active, input:focus,input:hover, .input:active  {
	color:black;
	outline:0;
}
/* button */
.button, .lomakebutton{
	padding: 1rem 3rem;
	margin: 0 1rem 1rem;
    border: 2px solid white;
    border-radius: 1px;
    cursor: pointer;
    text-transform: uppercase;
    text-decoration: none;
	font-size: 1.2rem;
    transition: 0.1s all ease-in-out;
    display: inline-block;
	user-select: none;
}
.button.pieni, .lomakebutton.pieni{
	font-size: 1rem;
    padding: 0.8rem 2.5rem;
	line-height:1.2;
}
.lomakebutton {
	margin-left: 0;
	color: rgb(153, 102, 51);
}
.lomakebutton:hover {
	color: rgb(153, 102, 51);
	background-color: transparent;
}
.button:hover, .button.valittu{
	background-color: white;
	color: rgb(153, 102, 51);
}
.button:focus, .button:visited, .button:active, .button:focus-within,
.lomakebutton:focus, .lomakebutton:visited, .lomakebutton:active, .lomakebutton:focus-within {
	background-color: transparent;
	color: white;
	outline: none;
}

/*------------------------------------*\
    STRUCTURE
\*------------------------------------*/

/* wrapper */
.wrapper {
	width: 100%;
	margin:0 auto;
	position:relative;
}

/* front page section */
.section {
	/*height: 1px;*/
	position: relative;
	min-height: 100vh;
	background-position: center center;
	background-size: cover;
}

/* containers */
.container {
	display: table;
    width: calc(100% - 8vw);
    margin: auto;
	height: 1px;
    min-height: 100vh;
}
.inner-container {
	position: relative;
	display: table-cell;
    vertical-align: middle;
    padding: 6rem 4vw;
    text-align: center;
}
.banner-container {
    padding: 4vw 0;
}
.banner-container .inner-container {
    border: white solid 3px;
    border-radius: 2px;
	padding: 6rem 4vw 1rem;
}
.text-container {
	max-width: 768px;
    margin: auto;
}
.text-container.left {
	text-align: left;
}

/* vuokrakohteet */
.paikkakunta-valinta {
	margin-top: 2rem;
}
.paikkakunta-taustakuva {
	position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
	background-size: cover;
    background-position: center center;
	transition: opacity 0.3s ease-in-out;
	opacity:0;
}
.paikkakunta-taustakuva.valittu {
	opacity: 1;
}
.vuokrakohteet {
	overflow: hidden;
	transition: max-height 0.3s ease-in-out;
	display:none;
}
.button.valittu {
	pointer-events: none;
	cursor: initial;
}
.kohde {
	max-width: 270px;
	margin: auto;
}
.kohde-nimi {
	display: inline-block;
    line-height: 0.8;
    text-decoration: none;
    border-bottom: 2px solid white;
	margin-bottom: 0;
}
.kohde-nimi span {
	font-size: 1.1rem;
}
.kohde-ikonit {
	margin: 1rem 0;
}

/* columns */

.col {
	position: relative;
	display: block;
	float:left;
	margin: 1% 0 1% 1.6%;
}
.col:first-child { margin-left: 0; }

.span_2_of_2 {
	width: 100%;
}
.span_1_of_2 {
	width: 49.2%;
}
.span_3_of_3 {
	width: 100%;
}
.span_2_of_3 {
	width: 66.13%;
}
.span_1_of_3 {
	width: 32.26%;
}
.span_4_of_4 {
	width: 100%;
}
.span_3_of_4 {
	width: 74.6%;
}
.span_2_of_4 {
	width: 49.2%;
}
.span_1_of_4 {
	width: 23.8%;
}

.group:before,
.group:after { content:""; display:table; }
.group:after { clear:both;}
.group {
	zoom:1; /* For IE 6/7 */
	clear: both;
	padding: 0px;
	margin: 0px;
}

/* header */
.header {
	position: absolute;
	top: 0;
	width: 100%;
	left: 0;
    padding: 2rem 0;
	user-select: none;
	z-index:999;
}
.header.musta * {
	color: black;
	fill: black;
}
.header.valkoinen * {
	color: white;
	fill: white;
}
.banner-header {
	position: relative;
	font-size: 1.2rem;
    padding: 0;
    text-transform: uppercase;
}
.mobile-header{
	display: none;
	position: sticky;
    top: 0;
    background-color: rgb(235, 224, 214);
	padding: 1rem 0;
}

/* logo */
.logo {
	width: 40%;
    padding: 0 4vw;
}
.logo svg {
	height: 40px;
	max-width: 100%;
	cursor: pointer;
}
.banner-logo {
	margin-top: 4rem;
}
.banner-logo svg, .banner-logo img{
	width: calc(100% - 8vw);
    max-width: 600px;
    fill: white; 
}
.logo a {
	text-decoration: none;
	background: transparent;
}
.logo a:hover {
	text-decoration: none;
	background: transparent;
}

/* menu-button */
#menu-button {
	position: absolute;
    height: 20px;
    width: 30px;
    top: 50%;
    transform: translateY(-50%);
    right: 4vw;
    cursor: pointer;
}
#menu-button div {
	position: absolute;
    width: 100%;
    height: 3px;
	left:0;
    background: black;
    border-radius: 3px;
	transition: 0.3s ease-in-out;
	transform-origin: center center;
}
#menu-button div:nth-child(1){
	top: 0;
}
#menu-button div:nth-child(2){
	top: 50%;
	transform: translateY(-50%);
	transform-origin: left center;
}
#menu-button div:nth-child(3){
	bottom: 0;
}

#menu-button.open div:nth-child(1){
	transform: translateY(-50%) rotate(45deg);
    top: 50%;
	width: 90%;
}
#menu-button.open div:nth-child(2){
	left:50%;
	width: 0;
}
#menu-button.open div:nth-child(3){
	transform: translateY(50%) rotate(-45deg);
    bottom: 50%;
	width: 90%;
}

/* slogan */
.slogan {
	display: inline-block;
    transform: translateX(39%);
	color: white;
	font-weight: 400;
	margin-bottom: 8rem;
	font-family: 'Raleway', sans-serif;
	text-decoration: none;
}
.slogan span {
	font-weight: 700;
}

/* nav */
.nav {
	position: absolute;
    padding: 0 4vw;
    width: 70%;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
}
.banner-nav {
	width: 100%;
	position: relative;
    transform: none;
}
.mobile-header nav {
	width: 100%;
    top: auto;
    bottom: 0;
    transform: translateY(100%);
    background-color: rgb(235, 224, 214);
    height: auto;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    max-height: 0;
}
.mobile-header nav.open {
	max-height:100vh;
}
.footer-nav {
	position: relative;
    width: 100%;
    top: 0;
    padding: 0;
    transform: none;
    margin: 0 0 0.2rem;
}

/* nav ul */
.nav ul {
	list-style: none;
	text-align: right;
}
.banner-nav ul {
	text-align: center;
	padding: 0;
}
.mobile-header nav ul {
	padding: 0 0 1rem;
    text-align: center;
    margin: 0;
}
.footer-nav ul {
	margin-bottom: 0;
    text-align: center;
    padding: 0;
}

/* nav ul menu-item */
.menu-item {
	display: inline-block;
    margin-left: 2rem;
}
.banner-nav .menu-item {
	margin: 0 1rem 1rem;
}
.mobile-header nav ul .menu-item {
	display: block;
    margin: 0 0 0.5rem;
}
.footer-nav ul .menu-item {
	margin: 0 0.5rem;
}

/* nav ul menu-item a */
.menu-item a {
	cursor: pointer;
	text-decoration: none;
}
.footer-nav .menu-item a{
	text-decoration: underline;
}
.menu-item a:hover {
	background-color: transparent;
}
.footer-nav .menu-item a:hover {
	text-decoration: underline;
	background-color: #2f2d2b;
}
.current-menu-item a{
	font-weight: 700;
	cursor: initial;
}
.banner-nav .menu-item a{
	padding: 1rem 3rem;
    border: 2px solid white;
    border-radius: 1px;
	display: block;
	cursor: pointer;
	text-transform: uppercase;
	text-decoration: none;
	font-size: 1.2rem;
	transition: 0.1s all ease-in-out;
}
.banner-nav .menu-item a:hover{
	background-color: white;
	color: rgb(153, 102, 51);
}
.banner-nav .menu-item a:focus, .banner-nav .menu-item a:visited, .banner-nav .menu-item a:active, .banner-nav .menu-item a:focus-within{
	background-color: transparent;
	color: white;
	outline: none;
}
/* lomake */

.wpcf7-text, .wpcf7-textarea {
	padding: 0.2rem 0.4rem;
	width: 100% !important;
	min-width: 100% !important;
	max-width: 100% !important;
	border: 1px solid rgba(0, 0, 0, 1);
	background: rgba(255,255,255,0.2);
	color: black;
}
.wpcf7-textarea {
	height: 85px;
	min-height: 85px;
}
.wpcf7-text:focus, .wpcf7-textarea:focus {
	outline: none;
}
.wpcf7-list-item {
	margin: 0 !important;
	text-align: left;
}
.initial-align {
	text-align: initial;
}

/* footer */
.footer {
	position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    text-align: center;
	color: white;
}
.footer:before {
    content: "\a0";
    width: 80%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%);
    border-top: 0.8px solid white;
}
.footer a {
	color: white;
}

/* copyright */
.copyright {
	margin: 0 0 0.5rem;
}

/*------------------------------------*\
    POPUP
\*------------------------------------*/
.popup{
	width: 100%;
    position: fixed;
    top: 0;
    transition: right 0.3s ease-in-out;
    right: -110%;
    background: white;
    padding: 4vw;
    z-index: 9999;
    height: 100vh;
    overflow-y: auto;
}
.popup .container {
	min-height: calc(100vh - 8vw);
}
.popup.show{
	right:0;
}

.close-popup {
	position: absolute;
    height: 20px;
    width: 30px;
    top: 4vw;
    right: 4vw;
    cursor: pointer;
}
.close-popup div {
	position: absolute;
    width: 100%;
    height: 3px;
	left:0;
    background: black;
    border-radius: 3px;
	transform-origin: center center;
}

.close-popup div:nth-child(1){
	transform: translateY(-50%) rotate(45deg);
    top: 50%;
	width: 90%;
}
.close-popup div:nth-child(2){
	transform: translateY(50%) rotate(-45deg);
    bottom: 50%;
	width: 90%;
}


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

/* taulut */
.taulu { user-select: none; -webkit-user-drag: none; width: 100%;}
.taulu-1 {margin-top:3rem;}
.taulu-2 {}
.taulu-3 {}
.taulu-4 {margin-top: 5rem;}
.taulu-5 {margin-top: 2rem;}
.taulu-6 {}
.taulu-container {max-width: 440px; position: relative; margin:auto;}

.henkilokuva {
	margin-top: 1rem;
	user-select: none;
	-webkit-user-drag: none;
}


/*------------------------------------*\
	KOHTEET
\*------------------------------------*/
.ui-widget-content {
	color: black;
}
._kj_prod_container {
	padding: 0 !important;
    margin: 0 !important;
}
._kj_prod_title {
	padding: 0;
    border: none;
    background: none;
	text-align: left;
}
._kj_prod_content {
	padding: 0;
    border: none;
    text-align: left;
}
._kj_prod_reservation, ._kj_reservation_inputs, ._kj_prod_button {
	display: inline-block;
}
._kj_reservation_from, ._kj_reservation_to {
	display: inline-block;
	margin-right: 1rem;
}
._kj_reservation_from label, ._kj_reservation_to label {
	width: auto !important;
}
._kj_to {
	margin-right: 1rem;
}
/* button */
.ui-state-default, .ui-state-hover {
    border: 1px solid rgb(153, 102, 51) !important;
    background: rgb(153, 102, 51) url(images/ui-bg_highlight-soft_0_27ae60_1x100.png) 50% 50% repeat-x !important;
}
._kj_prod_button, ._kj_basket_button {
    padding: 0.8rem 2.5rem;
	transform: translateY(-10px);
    margin-top: 1rem;
    border: 2px solid rgb(153, 102, 51) !important;
	color: rgb(153, 102, 51) !important;
	font-weight: 400 !important;
	line-height:1.2;
    border-radius: 1px;
    cursor: pointer;
    text-transform: uppercase;
    text-decoration: none;
	font-size: 1rem;
    transition: 0.1s all ease-in-out;
    display: inline-block;
	user-select: none;
	background: transparent !important;
}
._kj_basket_button {
	font-size: 1rem !important;
}
._kj_basket_toggle_button{
	margin-top: 0;
    transform: none;
    padding: 0.7rem 2.2rem;
    border: 2px solid rgb(153, 102, 51) !important;
	color: white !important;
	font-weight: 400 !important;
	line-height:1.2;
    border-radius: 1px;
    cursor: pointer;
    text-transform: uppercase;
    text-decoration: none;
	font-size: 0.8rem;
    transition: 0.1s all ease-in-out;
    display: inline-block;
	user-select: none;
	background: rgb(153, 102, 51) !important;
	outline: none !important;
}
._kj_remaining {
	color: rgb(153, 102, 51) !important;
}
._kj_basket_actionbuttons {
	margin-top: 0 !important;
	float: left !important;
}
._kj_basket_actionbuttons .ui-button-text {
	white-space: nowrap;
}
._kj_basket {
	top: 4vw !important;
    left: 4vw !important;
    right: auto !important;
	min-width: 300px;
}
._kj_prod_button:hover, ._kj_basket_toggle_button:hover, ._kj_basket_button:hover {
	background-color: rgb(153, 102, 51) !important;
	color: white !important;
}
._kj_prod_button:focus, ._kj_prod_button:visited, ._kj_prod_button:active, ._kj_prod_button:focus-within{
	background-color: transparent;
	color: white;
	outline: none;
}
._kj_reservation_reset {
	
}
.ui-button-text {
	line-height: 1 !important;
	padding: 0 !important;
	transform: translateY(1px);
}
.johkulink {
	display: none;
}
.ui-datepicker {
	top: 50vh !important;
    transform: translate(-50%, -50%) !important;
    width: 72vw;
    width: 600px;
    max-width: 90vw;
    left: 50% !important;
}
.ui-datepicker-title {
	font-size: 1rem;
}
.ui-datepicker:after {
	position: absolute;
    left: -200vw;
    top: -200vh;
    width: 500vw;
    height: 500vh;
    z-index: -1;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
	pointer-events: none;
}
.ui-datepicker-prev, .ui-datepicker-next {
	height: 100% !important;
}
.ui-datepicker select.ui-datepicker-month {
	width: auto !important;
	margin-right: 1rem;
}
._kj_basket_company {
	display: none;
}
._kj_basket_tocashier_button {
	display: none;
}
._kj_basket_noko {
	display: none !important;
}
.ui-icon-cart {
	display: none;
}

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

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

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

}
@media only screen and (max-width:1024px) {
	.slogan { transform: none; }
	.col { margin: 1% 0 1% 0%; }
	.span_2_of_2, .span_1_of_2 { width: 100%; }
	.span_3_of_3, .span_2_of_3, .span_1_of_3 { width: 100%; }
	.span_1_of_4, .span_2_of_4, .span_3_of_4, .span_4_of_4 { width: 100%; }
	.text-container.left { text-align: center; }
	.taulu {margin-top: 0;}
}
@media only screen and (max-width:768px) {
	.section-header { display: none; }
	.mobile-header { display: block; }
	.logo svg { height: 25px; }
	.banner-nav .menu-item a:hover {
		background-color: transparent;
		color: white;
	}
	._kj_basket {
		left: 50vw !important;
		transform: translateX(-50%) !important;
		top: calc(1rem - 3px) !important;
	}
	._kj_basket_actionbuttons {
		float: none !important;
		margin-left: 50% !important;
		transform: translateX(-50%) !important;
		display: block !important;
	}
}
@media only screen and (max-width:480px) {

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

}
@media (hover: none) and (pointer: coarse) {
	.banner-nav .menu-item a:hover {
		background-color: transparent;
		color: white;
	}
}



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

::selection {
	background:black;
	color:white;
	text-shadow:none;
}
::-webkit-selection {
	background:black;
	color:white;
	text-shadow:none;
}
::-moz-selection {
	background:black;
	color:white;
	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;
	}
}
