/* 
 Theme Name:     tiileriivana
 Author:         Tiileri Oy
 Author URI:     https://tiileri.fi
 Template:       Divi
 Version:        1.0 
*/

/*** CHROME IMG BLUR FIX ***/ img {image-rendering: -webkit-optimize-contrast !important;}

::selection {
  background: #e6e6e6; /* WebKit/Blink Browsers */
  color:#333333;
}

::-moz-selection {
  background: #e6e6e6; /* Gecko Browsers */
  color:#333333;
}

.et_pb_button::selection,
button::selection,
img::selection {
  background: rgba(0,0,0,0) !important; /* WebKit/Blink Browsers */
  color:#FFF;
}

.et_pb_button::-moz-selection,
button::-moz-selection,
img::-moz-selection {
	background: rgba(0,0,0,0) !important; /* Gecko Browsers */
	color:#FFF;
}

html { -webkit-tap-highlight-color: rgba(0,0,0,0); }

body {
	border:solid 20px #e6e6e6;
	min-height:100vh;
}

#mainheader {
	padding:0 0 3vw 0;
}

#tarvasjoki-logo-text-dark {
	text-align:center;
}

#tarvasjoki-logo-text-dark img,
#footteri img,
#mainheader #tarvasjoki-logo {
	width:30vw;
}

#mainhero {
	min-height:80vh;
	display:flex;
	justify-content:center;
}

#mainhero .et_pb_image {
	text-align:center;
	padding-bottom:1vw;
}

#mainhero img {
	width:46vw;
}

#footteri img {
	padding-top:3vw;
	padding-bottom:3vw;
}

#mainhero .et_pb_button_module_wrapper {
	margin-bottom:0;
}

h1,h2,h3,h4,h5 {
	letter-spacing:-0.03em;
	font-weight:700;
	text-transform:uppercase;
}

.raleway-500 {
	font-family:'Raleway',sans-serif;
	font-weight:500;
}

body {
	font-family:'Karla',sans-serif;
	font-weight:400;
}

#page-container .et_pb_button {
	padding:12px 40px !important;
	text-transform:uppercase;
	line-height:1 !important;
	font-weight:700;
}

#page-container .et_pb_button.et_pb_bg_layout_light {
	background:#b3b3b3;
	border-color:#b3b3b3;
	color:#FFF;
}

#page-container .et_pb_button.et_pb_bg_layout_light.coming:hover {
	background:#b3b3b3;
	border-color:#b3b3b3;
	color:#FFF;
	cursor:default;
	opacity:1;
}

#page-container .et_pb_button.et_pb_bg_layout_dark.coming:hover {
	background:rgba(0,0,0,0) !important;
	border-color:#fff;
	cursor:default;
	opacity:1;
}

#page-container .et_pb_button.et_pb_bg_layout_light:hover {
	opacity:0.5;
}

#feature {
	padding-top:15px;
	padding-bottom:15px;
}

#feature .et_pb_column_2_5 .et_pb_image {
	margin-bottom:0;
}

#feature.feature2 {
	padding-top:0;
}

#feature > div {
	padding:0;
}

#feature .et_pb_module {
	margin-bottom:20px;
}

#esittelyteksti {
	padding-top:5vw;
	padding-bottom:5vw;
}

#tuoterow h1,
#feature h2 {
	font-size:55px;
}

#feature .et_pb_column_3_5 .et_pb_image {
	max-width:100px;
}

#esittelyteksti .et_pb_row {
	padding-bottom:0;
}

#esittelyteksti .et_pb_text_inner {
	padding-bottom:20px !important;
}

#esittelyteksti #ingressi {
	padding-top:30px;
}

#tuote #ingressi {
	font-size:19px;
	line-height:1.6 !important;
}

#esittelyteksti #ingressi .et_pb_text_inner {
	line-height:1.6 !important;
}

#tuotenavi {
	padding:10px 0 0 0;
}

#tuotenavi > div > div {
	margin:auto;
	padding-bottom:10px;
}

#tuotenavi > div {
	max-width:700px;
}

#tuotenavi a:hover {
	text-decoration:underline;
}

#tuotenavi a {
	display:inline-block;
	padding:5px;
}

#tuote {
	padding-top:20px;
}

#tuoterow {
	max-width:990px;
}

#tuoterow > div {
	margin:auto;
}

#tuoterow .et_pb_column_3_5 img {
	padding-top:30px;
}

#tuotteet h4 {
	font-size:36px;
}

#tuotteet .et_pb_button {
	display:inline-block;
	font-size:12px;
	margin:5px;
}

#tuotteet .et_pb_blurb_description p {
	padding-bottom:20px;
}

#tuoterow {
	padding-bottom:35px;
}

#tuoterow .et_pb_column_1_3 span.et_pb_image_wrap {
	margin-bottom:20px;
}

.galleria .et_pb_gallery_item {
	width:50% !important;
	margin-bottom:10px !important;
}

#revealll,
#reveall,
#reveal {
	opacity:0;
	display:none !important;
	-webkit-transition: all 650ms ease-in-out;
	-moz-transition: all 650ms ease-in-out;
	-o-transition: all 650ms ease-in-out;
	transition: all 650ms ease-in-out;
}

.rv_button:hover,
.rv_buttonn:hover,
.rv_buttonnn:hover {
	cursor:pointer;
}

#revealll.showgallery,
#reveall.showgallery,
#reveal.showgallery {
	opacity:1;
	display:block !important;
}

.mfp-bottom-bar {
	display:none !important;
}

.et_pb_gallery_item {
	-webkit-animation: none !important;
	-moz-animation: none !important;
	-o-animation: none !important;
	-ms-animation: none !important;
	animation: none !important;
}
/* 

/* MEDIA QUERIES */

@media all and (max-width: 980px) {
	/*** wrap row in a flex box ***/
	.custom_row {
	  display: -webkit-box;
	  display: -moz-box;
	  display: -ms-flexbox;
	  display: -webkit-flex;
	  display: flex;
	-webkit-flex-wrap: wrap; /* Safari 6.1+ */
	flex-wrap: wrap;
	}
	 
	/*** custom classes that will designate the order of columns in the flex box row ***/
	.first-on-mobile {
	-webkit-order: 1;
	order: 1;
	}
	 
	.second-on-mobile {
	-webkit-order: 2;
	order: 2;
	}
	 
	.third-on-mobile {
	-webkit-order: 3;
	order: 3;
	}
	 
	.fourth-on-mobile {
	-webkit-order: 4;
	order: 4;
	}
	/*** add margin to last column ***/
	.custom_row:last-child .et_pb_column:last-child {
	margin-bottom: 30px;
	}
}

@media screen and (max-width: 980px) {
	#feature .et_pb_column_3_5 {
		padding-top:30px;
		padding-bottom:30px;
		padding-left:15px;
		padding-right:15px;
	}
	#tuoterow h1,
	#feature h2 {
		font-size:35px;
	}
	#esittelyteksti #ingressi {
		padding-top:20px;
	}
	#feature .et_pb_column_3_5 .et_pb_image {
		max-width:70px;
	}
	#feature {
		padding-bottom:0;
	}
	#mainhero img {
	width:70vw;
	}
	#footteri img,
	#mainheader #tarvasjoki-logo {
		width:40vw;
	}
	#tarvasjoki-logo-text-dark img {
		width:50vw;
	}
	#page-container .et_pb_button {
		font-size:17px;
	}
	#tiileri-ivanahelsinki {
		text-align:center;
	}
	#mainheader {
		padding:0 0 5vw 0;
	}
	#tuotenavi > div > div {
	width:25% !important;
	}
}

@media screen and (max-width: 760px) {
	#tuotenavi > div > div {
	width:100% !important;
	}
}


@media screen and (min-width: 1979px) {
	#tuoterow h1,
	#feature h2 {
		font-size:95px;
	}
	#feature .et_pb_column_3_5 .et_pb_image {
		max-width:160px;
	}
}

@media screen and (min-width: 2000px) {
	#esittelyteksti .et_pb_text_inner {
		font-size:17px !important;
		line-height:1.7;
	}
	#esittelyteksti #ingressi .et_pb_text_inner {
		font-size:22px !important;
	}
}

@media screen 
  and (min-width: 981px) 
  and (max-width: 1340px){
	
	}
}