@charset "UTF-8";

/*
Theme Name: Mainosbuumi
Theme URI: https://www.selekti.fi/
Author: Selekti
Author URI: https://www.selekti.fi/
Version: 1.0
Text Domain: buumi_theme
*/

/* ===
COLORS
===== */

:root{
	/* texts */
	--text-title: #333;
	--text: #333;
	--text-dark: #fff;
	--link: #F18900;
	/* backgrounds */
	--bg: #F18900;
	--bg-white: #fff;
	--bg-footer: #333;
	/* buttons */
	--button-bg: #F18900;
	--button-bg-hover: #333;
	--button-text: #333;
	--button-text-hover: #fff;
	/* lines */
	--line: #DCDCDC;
	--line-dark: #BCDBEC;
	/* navigation */
	/* brand colors */
	--harmaa: #333333;
	--oranssi: #F18900;
}

/* ==========================================================================
Table of Contents:

BASE STYLES
COLORS
TEXT STYLING
IMAGE STYLING
BUTTONS
MARGINS
GRIDS
FLEX
MOBILE VS DESKTOP
HEADER
FRONT PAGE
CONTENT PAGE
CONTENT LAYOUTS
FOOTER
MISCELLANEOUS
TABLES
FORMS
ACCESSIBILITY

========================================================================== */

/* ===========
BASE STYLES
============= */

.clear{
	clear: both;
}

.group:after {
	content: "";
	display: table;
	clear: both;
}

*{
	margin: 0;
	padding: 0;
	border: 0;
}

body, html{
	height: 100%;
	width: 100%;
}

html {
  scroll-behavior: smooth;
}

.anchorcover{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
	z-index: 999;
}

.sisennys {
padding: 0 20px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -o-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}

.apuwrap.sisennys{
	padding: 0 30px;
}

.border-box{ 
	-webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -o-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}

/* ===========
COLORS
============= */

.harmaa{
	background-color: var(--harmaa);
}

/* ===========
TEXT STYLING 
============= */
body{
	/*font-family: "Open Sans", sans-serif;
  	font-optical-sizing: auto;
  	font-weight: 600;
  	font-style: normal;*/
	font-family: "Averia Sans Libre", sans-serif;
  	font-weight: 700;
  	font-style: normal;
  	/*font-variation-settings: "wdth" 100;*/
	font-size: 18px;
    line-height: 1.4em;/*26px;*/
    color: var(--text);
	background-color: var(--bg);
	background-image: url('images/apina-tiled.png');
	background-repeat: repeat;
	
}

h1, h2, h3, h4, .module-title-h2, .module-title-h3, .module-title-h4{
	font-family: "Averia Sans Libre", sans-serif;
  	font-weight: 700;
  	font-style: normal;
	color: var(--text-title);
	display: block;
	margin-bottom: 25px;
	line-height: 1.2em;
}

.layout-greybox h1, .layout-greybox h2, .layout-greybox h3, .layout-greybox h4, .layout-greybox .module-title-h2, .layout-greybox .module-title-h3, .layout-greybox .module-title-h4,
.layout-greywide h1, .layout-greywide h2, .layout-greywide h3, .layout-greywide h4, .layout-greywide .module-title-h2, .layout-greywide .module-title-h3, .layout-greywide .module-title-h4{
	color: var(--text-dark);
}

.otsikkoraita{
	padding-bottom: 25px;
	background: url('images/otsikkoraita.svg') no-repeat left bottom;
	background-size: 135px auto;
}

.centered .otsikkoraita{
	padding-bottom: 25px;
	background: url('images/otsikkoraita.svg') no-repeat center bottom;
	background-size: 135px auto;
}

.showroom-layout .otsikkoraita{
	padding-bottom: 25px;
	background: url('images/otsikkoraita-tumma.svg') no-repeat left bottom;
	background-size: 135px auto;
}

.showroom-layout .centered .otsikkoraita{
	padding-bottom: 25px;
	background: url('images/otsikkoraita-tumma.svg') no-repeat center bottom;
	background-size: 135px auto;
}

#subhero-content h1, .showroom-layout h2, #subpagehero h1{
	color: #fff;
	text-shadow: 1px 2px 4px rgba(0,0,0,0.7);
}

h1, .module-title-h1{
	font-size: 46px;
}	

.home #subhero-content h1, .error404 #subhero-content h1{
	margin-bottom: 40px;
}		

h2, .module-title-h2{
	font-size: 30px;
}	

h3, .module-title-h3, footer h2{
	font-size: 24px;
}

footer h2{
	color: #fff;
}

h4, .module-title-h4{
	font-size: 20px;
}

p{
    margin-bottom: 25px;
}

.ingressi{
	font-size: 20px;
	line-height: 1.4em;
}

.tarkenne{
	color: var(--oranssi);
	text-transform: uppercase;
	margin-bottom: 10px;
	font-size: 14px;
	display: block;
}

.accent{
	display: inline-block;
	width:auto;
  	max-width:none;
	font-style: italic;
 	background-image: url('images/swoosh.png');
	background-repeat: no-repeat;
  	background-position: 0 center;
  	background-size: 100% 100%;
  	padding: 0 20px;
}

a{
	text-decoration: underline;
	color: var(--link);
}

a:hover{
	text-decoration: underline;
	color: var(--link-hover);
}

a.nuolilinkki{
	/*display: inline-block;*/
	text-align: left;
	color: var(--text);
	background-image: url('images/nuoli-oikea.svg');
	background-repeat: no-repeat;
	background-position: left center;
	background-size: 20px auto;
	padding-left: 28px;
	margin-bottom: 25px;
	line-height: 25px;
	height: 25px;
	text-decoration: none;
}

footer a.nuolilinkki{
	color: #fff;
}

a.nuolilinkki:hover{
	text-decoration: underline;
}

.banaanilinkki{
	display: inline-block;
	background-image: url('images/banaani.svg');
	background-repeat: no-repeat;
	background-position: left center;
	background-size: 33px auto;
	padding-left: 40px;
	margin: 5px 0;
	font-weight: 400;
	font-size: 14px;
}

.centered{
	text-align: center;
}

#content ul, #content ol{
	margin-left: 25px;
	margin-bottom: 25px;
}

.centered ul, .centered ol{
	  list-style-position: inside;
}

strong{
	font-weight: 700;
}

blockquote{
	font-style: italic;
	font-size: 24px;
	width: fit-content;
	text-align: center;
	padding: 20px 30px;
	margin: 0 auto;
	background-image: url('images/quote.svg');
	background-repeat: no-repeat;
	background-size: 60px auto;
	background-position: top right;
}

blockquote strong{
	font-size: 16px;
	color: var(--oranssi);
}

@media (min-width: 768px){
h1{
	font-size: 50px;
}
	
.home #subhero-content h1, .error404 #subhero-content h1{
	font-size: 60px;	
}		
}

@media (min-width: 992px){
h1{
	font-size: 60px;
}	
	
.home #subhero-content h1, .error404 #subhero-content h1{
	font-size: 80px;	
}		

h2, .module-title-h2{
	font-size: 36px;
}	

h3, .module-title-h3, footer h2{
	font-size: 26px;
}

h4, .module-title-h4{
	font-size: 21px;
}	
	
blockquote{
	font-size: 30px;
	padding: 20px 40px;
	background-size: 80px auto;
}	
	
blockquote strong{
	font-size: 18px;
}	
	
.banaanilinkki{
	font-size: 16px;
}	
}

@media (min-width: 1440px){
h1{
	font-size: 60px;
}	
	
.home #subhero-content h1, .error404 #subhero-content h1{
	font-size: 120px;	
}	

h2, .module-title-h2{
	font-size: 40px;
}	

h3, .module-title-h3{
	font-size: 32px;
}

}


/* ===========
IMAGE STYLING
============= */

.perussisalto img, #contentarea img, #subhero img{
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

#thumbnail img{
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: 25px;
}

#contentarea .alignright.size-full, #contentarea .alignleft.size-full{
	width: 100%;
	height: auto;
	float: none;
}

#contentarea .wp-caption img.size-full, #contentarea img.size-full, #contentarea .size-full img{
	display: block;
	width: 100%;
	height: auto;
	line-height: 0;
}

.alignleft {
	display: inline;
	float: left;
	margin-right: 1.5em;
	max-width: 100%;
	height: auto;
}

.alignright {
	display: inline;
	float: right;
	margin-left: 1.5em;
	max-width: 100%;
	height: auto;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;
	height: auto;
}

/* pikkukuvien koko ei skaalaudu */
#contentarea .wp-caption img.size-medium, #contentarea .wp-caption img.size-thumbnail, #contentarea .wp-caption img.size-large, #contentarea img.size-large, #contentarea img.size-medium, #contentarea img.size-thumbnail, .perussisalto img.size-large, .perussisalto img.size-medium, .perussisalto img.size-thumbnail{
	display: block;
	max-width: 100%!important;
	width: auto;
	height: auto!important;
	line-height: 0;
}

/* ======
BUTTONS 
======= */

a.painike, a .painike, .painike a{
	display: inline-block;
	text-decoration: none;
	padding: 6px 30px;
	color: var(--button-text);
	background: var(--button-bg);
	font-size: 16px;
	font-weight: 700;
	transition: .4s;
	border-radius: 30px;
	margin-bottom: 25px;
}

a.painike:hover, a .painike:hover, .painike a:hover{
	text-decoration: none;
	background: var(--button-bg-hover);
	color: var(--button-text-hover);
	transition: .4s;
}

.layout-greybox a.painike:hover, .layout-greybox a .painike:hover, .layout-greybox .painike a:hover, .layout-greywide a.painike:hover, .layout-greywide a .painike:hover, .layout-greywide .painike a:hover{
	background: #fff;
	color: var(--button-text);
}

#subhero a.painike, #subhero a .painike, #subhero .painike a, .showroom-layout a.painike, .subpagehero-sisalto a.painike, .subpagehero-sisalto a .painike, .subpagehero-sisalto .painike a{
	background: var(--harmaa);
	color: #fff;
}

#subhero a.painike:hover, #subhero a .painike:hover, #subhero .painike a:hover, .showroom-layout a.painike:hover, .subpagehero-sisalto a.painike:hover, .subpagehero-sisalto a .painike:hover, .subpagehero-sisalto .painike a:hover{
	background: #fff;
	color: var(--harmaa);
}

#apunavigaatio a.painike{
	display: inline-block;
	text-decoration: none;
	padding: 2px 15px;
	color: var(--button-text);
	background: var(--button-bg);
	font-size: 14px;
	font-weight: 700;
	transition: .4s;
	border-radius: 30px;
	margin-bottom: 10px;
	margin-top: 10px;
	margin-left: 20px;
}

#apunavigaatio a.painike:hover{
	text-decoration: none;
	background: #fff;
	color: var(--button-text);
}

@media(min-width: 992px){
#apunavigaatio a.painike{
	padding: 6px 20px;
	font-size: 16px;
}
}

/* ====
MARGINS
====== */
.padding-small{
	padding-top: 25px;
	padding-bottom: 25px;
}

.padding-medium{
	padding-top: 60px;
	padding-bottom: 60px;
}

.kuvanostot .padding-medium{
	padding-top: 0;
	padding-bottom: 0;
}

.padding-large{
	padding-top: 90px;
	padding-bottom: 90px;
}

.padding-bottom{
	padding-bottom: 60px;
}

.padding-bottom-small{
	padding-bottom: 25px;
}

.padding-bottom-medium{
	padding-bottom: 60px;
}

.showroom-layout .sectionwrapper.padding-bottom-medium{
	padding-bottom: 0;
}	

.padding-top{
	padding-top: 60px;
}

.padding-top-small{
	padding-top: 25px;
}

.showroom-layout .sectionwrapper.padding-top-small{
	padding-top: 0;
}

.wrapper-wide, .layout-whitebox .wrapper, .layout-greybox .wrapper{
	margin: 0 20px;
}

@media (min-width: 768px){
.wrapper{
	margin: 0 25px;
}	
.wrapper-wide, .layout-whitebox .wrapper, .layout-greybox .wrapper{
	margin: 0 20px;
}		
	
#subhero .wrapper{
	margin: 0;	
}	
	
.kuvanostot .padding-medium{
	padding-top: 25px;
	padding-bottom: 0;
}
}

@media (min-width: 992px){
.narrow{
	width: 80%;
	margin-left: auto;
	margin-right: auto;
}

.narrow66{
	width: 66.66666%;	
}	

.narrow33{
	width: 33.3333332%;
}
	
.centered .narrow66, .centered .narrow33, .centered.narrow66{
	margin: 0 auto;
}		
	
.margin-auto{
	margin-left: auto;
	margin-right: auto;	
}	
	
.padding-small{
	padding-top: 40px;
	padding-bottom: 40px;
}

.padding-medium{
	padding-top: 80px;
	padding-bottom: 80px;
}
	
.kuvanostot .padding-medium{
	padding-top: 80px;
	padding-bottom: 80px;
}	
	
.padding-large{
	padding-top: 120px;
	padding-bottom: 120px;
}	
	
.padding-bottom{
	padding-bottom: 80px;
}	
	
.padding-bottom-small{
	padding-bottom: 40px;
}	
	
.padding-top-small{
	padding-top: 40px;
}		
	
.showroom-layout .sectionwrapper.padding-top-small{
	padding-top: 0;
}
	
.padding-bottom-medium{
	padding-bottom: 80px;
}		
	
.showroom-layout .sectionwrapper.padding-bottom-medium{
	padding-bottom: 0;
}	
	
.padding-top{
	padding-top: 80px;
}	
	
}

@media (min-width: 992px){		
.wrapper{
	margin: 0 6.25%;
} 
	
#subhero .wrapper{
	margin: 0;
}		
	
.wrapper-wide, .layout-whitebox .wrapper, .layout-greybox .wrapper{
	margin-top: 0;
	margin-bottom: 0;
	margin-left: 25px;
	margin-right: 25px;
	padding-left: calc(6.25% - 25px);
	padding-right: calc(6.25% - 25px);
}		
	
.narrow{
	width: 60%;
}		
}

@media (min-width: 1200px){	
#subhero .wrapper{
	margin: 0 25px;
}	
	
.showroom-template #subhero .wrapper{
	margin: 0 6.25%;
}		
}

@media (min-width: 1440px){		
.wrapper{
	margin: 0 8.3332%;
}
	
#subhero .wrapper{
	/*margin: 0 8.3332%;*/
	margin-left: 25px;
	margin-right: 25px;
}
	
.showroom-template #subhero .wrapper{
	margin: 0 8.3332%;
}		
	
.wrapper-wide, .layout-whitebox .wrapper, .layout-greybox .wrapper{
	margin-top: 0;
	margin-bottom: 0;
	margin-left: 25px;
	margin-right: 25px;
	padding-left: calc(8.3332% - 25px);
	padding-right: calc(8.3332% - 25px);
}			
}

@media (min-width: 1680px){	
.wrapper{
	width: 1440px;
	margin: 0 auto;
} 	
	
#subhero .wrapper{
	width: 1580px;
	margin: 0 auto;
}	
	
.showroom-template #subhero .wrapper{
	width: 1440px;
	margin: 0 auto;
}		
	
.wrapper-wide, .layout-whitebox .wrapper, .layout-greybox .wrapper{
	width: 1580px;
	margin: 0 auto;
	padding-left: 0;
	padding-right: 0;
}
	
.layout-whitebox .sectionwrapper, .layout-greybox .sectionwrapper{
	padding-left: 70px;
	padding-right: 70px;
}	
}

@media (min-width: 1920px){	
.wrapper{
	width: 1680px;
	margin: 0 auto;
} 	
	
#subhero .wrapper{
	width: 1820px;
	margin: 0 auto;
}
	
.showroom-template #subhero .wrapper{
	width: 1680px;
	margin: 0 auto;
}		
	
.wrapper-wide, .layout-whitebox .wrapper, .layout-greybox .wrapper{
	width: 1820px;
	margin: 0 auto;
}	
	
.layout-whitebox .sectionwrapper, .layout-greybox .sectionwrapper{
	padding-left: 70px;
	padding-right: 70px;
}	
}

/* ===
GRIDS 
====== */
@media (min-width: 768px){
.grid25, .grid20{
	width: 50%;
	float: left;
}	
	
.perussisalto-1 .grid25{
	width: auto;
	float: none;
}	
}

@media (min-width: 992px){
.grid50{
	width: 50%;
	float: left;	
}
	
.grid33{
	width: 33.333333%;
	float: left;
}	
	
.grid40{
	width: 40%;
	float: left;
}	
			
.grid66{
	width: 66.666666%;
	float: left;
}
		
.grid60{
	width: 60%;
	float: left;
}
		
.grid75{
	width: 75%;
	float: left;
}	
	
.grid25{
	width: 25%;
}
	
.perussisalto-1 .grid25{
	width: auto;
	float: none;
}	
	
.grid20{
	width: 20%;
}	
}
/* ===
FLEX
====== */
.mobile .flexboxwrap{
	display: flex;
	flex-wrap: wrap;
}	
	
.mobile .flexbox{
	display: flex;
}	
	
.mobile .flexmiddle{
	/*vertically*/
	align-items: center;
}	
	
.mobile .flexcenter{
	/*horizontally*/
	justify-content: center;
}	

@media (min-width: 992px){
	
.flexboxwrap{
	display: flex;
	flex-wrap: wrap;
}	
	
.flexbox{
	display: flex;
}	
	
.flexmiddle{
	/*vertically*/
	align-items: center;
}	
	
.flexcenter{
	/*horizontally*/
	justify-content: center;
}	
}
/* ===========
MOBILE VS DESKTOP
============= */

.desktop{
	display: none;
}

.mobile{
	display: block;
}	

@media (min-width: 992px){	
.desktop{
	display: block;
}

.mobile{
	display: none;
}	
}

/* ===========
HEADER AND NAVIGATION
============= */

/*header{
	background: #fff;
	border-bottom: 1px solid var(--line-dark);
}*/

.headerwrap{
	display: flex;
	align-items: center;
	justify-content: space-between;
	/*background-color: var(--bg);
	background-image: url('images/apina-tiled.png');
	background-repeat: repeat;*/
}	

.mega-menu-header-menu-mega-sticky #mega-menu-wrap-header-menu{
	background-color: rgba(241,137,0,0.8);
	transition: .4s;
}

#logo{
	width: 200px;
	float: left;
	display: block;
	margin: 10px 0;
}

#logo img{
	width: 100%;
	height: auto;
	display: block;
}

#paavalikko{
	width: 100%;
	float: right;
	position: relative;
	text-align: right;
	display: inline-block;
}	


ul.mega-sub-menu a{
	padding-left: 30px!important;
}	

#apunavigaatio{
	position: relative;
	text-align: right;
	display: block;
	background: var(--harmaa);
}

#apunavigaatio a{
	color: #fff;
	text-decoration: none;
}

#apunavigaatio a:hover{
	color: #fff;
	text-decoration: underline;
}

.apuwrap{
	width: 100%;
	text-align: center;
}

#paavalikko #mega-menu-wrap-header-menu #mega-menu-header-menu .mega-menu-item{
	font-family: "Averia Sans Libre", sans-serif;
  	font-weight: 700;
  	font-style: normal;
}

#paavalikko #mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-item > a.mega-menu-link{
	padding-left: 20px!important;
}

#paavalikko #mega-menu-wrap-header-menu #mega-menu-header-menu li.mega-menu-column ul.mega-sub-menu li.mega-menu-item .custom-html-widget{
	border-bottom: 1px solid var(--line); /* custom widget-linkkiin alaviiva */
}

/* Media-linkki megamenussa */
.mm-media-link {
  display: flex;
  align-items: center; /* vertikaalinen keskitys */
  gap: 16px;
  text-decoration: none;
  padding: 8px 0;
  font-size: 16px;
}

/* Kuvakontti */
.mm-media-img {
  flex: 0 0 80px;       /* kiinteä leveys */
  width: 80px;
}

/* Kuva */
.mm-media-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

/* Teksti */
.mm-media-text {
  font-weight: 400;
  color: var(--harmaa);
  line-height: 1.3;
}

/* Hover */
a.mm-media-link:hover .mm-media-text {
  	text-decoration: none;
	color: var(--oranssi);
}

/* Hover */
a.mm-media-link:hover {
  	text-decoration: none;
	color: var(--oranssi);
}

@media (max-width: 991px){
	
.headerwrap{
	padding-right: 10px;
}
	
.mega-menu-header-menu-mega-sticky #mega-menu-wrap-header-menu .mega-menu-toggle{
	padding-left: 20px;
	padding-right: 10px;
}
	
	
#paavalikko #mega-menu-wrap-header-menu .mega-menu-toggle + #mega-menu-header-menu{
	top: 105px;
	border-bottom: 1px solid var(--line);
	box-shadow: 0px 10px 10px 1px rgba(0,0,0,0.2);
-webkit-box-shadow: 0px 10px 10px 1px rgba(0,0,0,0.2);
-moz-box-shadow: 0px 10px 10px 1px rgba(0,0,0,0.2);	
}
	
#paavalikko #mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-megamenu > ul.mega-sub-menu{
	padding: 0;
}	
	
#paavalikko #mega-menu-wrap-header-menu #mega-menu-header-menu li.mega-menu-megamenu > ul.mega-sub-menu > li.mega-menu-row .mega-menu-column > ul.mega-sub-menu > li.mega-menu-item{
	padding: 0 10px;
}
	
#paavalikko #mega-menu-wrap-header-menu #mega-menu-header-menu li.mega-menu-column:last-child ul.mega-sub-menu li.mega-menu-item:last-child a.mega-menu-link,
	#paavalikko #mega-menu-wrap-header-menu #mega-menu-header-menu li.mega-menu-column:last-child ul.mega-sub-menu li.mega-menu-item:last-child .custom-html-widget{
	border-bottom: 0; /*megamenussa palstan viimeisen linkin alaviiva pois*/
}	

#paavalikko #mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-item {
	border-bottom: 1px solid var(--line);
}
	
#paavalikko #mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-item.mega-hide-on-desktop{
	border-bottom: 0;
	background: #fff;
}
#paavalikko #mega-menu-wrap-header-menu li.mega-current-menu-item a.mega-menu-link{
	color: var(--oranssi)!important;
}
	
ul.mega-sub-menu ul a{
	padding-left: 20px!important;
}		
}
@media (min-width: 992px){
.headerwrap{
	padding-left: 45px;
}	
	
#logo{
	display: none;
}
	
#paavalikko{
	position: relative;
	right: 0;
	width: 100%;
	height: auto;
	padding: 0;
	text-align: right;
	display: block;
}	

ul.mega-sub-menu a{
	padding-left: 20px!important;
}	
	
ul.mega-sub-menu ul a{
	padding-left: 20px!important;
}		

#paavalikko #mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-item > a.mega-menu-link{
	text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

#paavalikko #mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-item.mega-current-menu-item > a.mega-menu-link, #paavalikko #mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-item.mega-toggle-on > a.mega-menu-link, #paavalikko #mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-item.mega-current-page-ancestor > a.mega-menu-link, #paavalikko #mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-item > a.mega-menu-link:hover{
	text-shadow: none;
}
	
#paavalikko #mega-menu-wrap-header-menu #mega-menu-header-menu li.mega-menu-column ul.mega-sub-menu li.mega-menu-item:last-child a.mega-menu-link,
#paavalikko #mega-menu-wrap-header-menu #mega-menu-header-menu li.mega-menu-column ul.mega-sub-menu li.mega-menu-item:last-child .custom-html-widget	
	{
	border-bottom: 0; /*megamenussa palstan viimeisen linkin alaviiva pois*/
}

#apunavigaatio{
	right: 0;
	width: 100%;
	text-align: right;
	justify-content: flex-end;
}
	
.apuwrap{
	text-align: right;
}	
	
#menu-apuvalikko li{
	display: inline-block;	
	margin: 10px 15px;
}
}

@media (min-width: 1440px){
#logo{
	width: 250px;
}
}

/* ===========
FRONT PAGE
============= */

#subhero-image img{
	border-radius: 0;
}

#subhero-content{
	padding: 40px 0 0 0;
}
/* apinahahmo */
#subhero .wrapper, #subhero-image{
	position: relative;
}

.mobiilikuvitus{
	margin-bottom: 40px;
}

.mobiilikuvitus img{
	max-width: 80%;
	height: auto;
	margin: 0 auto;
}

#subhero .apinahahmo{
	width: 150px;
	z-index: 200;
	position: absolute;
	right: 20px;
	bottom: -40px;
	margin-top: -20px;
}

#subhero .apinahahmo img{
	width: 100%;
	height: auto;
}

@media (min-width: 992px){
#subhero .apinahahmo{
	width: 300px;
	bottom: -80px;
	margin-top: -40px;
}
	
.home #subhero{
	/*background-image: url('images/intro-monkeybusiness.svg');*/
	background-image: url('images/apina-teippaus-animoitu.svg');
	background-repeat: no-repeat;
	background-position: center right;
	background-size: auto 60%;
}	
	
#subhero-content{
	width: 75%;	
	padding: 40px 0;
}		

}

@media (min-width: 1200px){
.subherowrap{
	/*display: flex;
	align-items: center;
	flex-direction: row-reverse;*/
	/*padding-top: 80px;
	padding-bottom: 80px;*/
}	
	
#subhero-image{
	width: 50%;	
	padding: 0;
}
	
#subhero-image img{
	border-radius: 10px;
}		
	
.home #subhero{
	background-position: center right 40px;
	background-size: auto 70%;
}		
}

@media (min-width: 1440px){
#subhero-content{
	padding: 40px;
}		
}

@media (min-width: 1680px){
.home #subhero{
	background-size: auto 90%;
}		
}
@media (min-width: 1920px){
.home #subhero{
	background-position: center right 120px;
}			

}

/* ===========
SHOWROOM
============= */
.showroom-template #subhero-image img{
	border-radius: 0px;
}	

.showroom-template .subherowrap{
	padding-top: 20px;
	padding-bottom: 20px;
}	

.showroom-template .subhero-image{
	position: relative;
}

.showroom-template .apina-tuonne{
	z-index: 200;
	/*position: absolute;
	bottom: 0;
	left: 20px;*/
	margin-top: -100px;
	width: 200px;
	margin-left: 20px;
	line-height: 0;
}

.showroom-template .apina-tuonne img{
	width: 100%;
	height: auto;
}

.showroom-template #subhero-content{
	padding: 40px 0 80px 0;
}

@media (min-width: 1200px){
.showroom-template .subherowrap{
	display: block;
	padding-top: 40px;
	padding-bottom: 25px;
}	

.showroom-template .apina-tuonne{
	margin-top: -140px;
	margin-left: 0;
	width: 300px;
}	
	
.showroom-template #subhero-image{
	width: 100%;	
	padding: 0 20px;
}
	
.showroom-template #subhero-content{
	width: 100%;	
}	
	
.showroom-template #subhero-content .narrow66{
	width: 50%;	
}		
	
.showroom-template #subhero-image img{
	border-radius: 10px;
}		
}

@media (min-width: 1440px){
.showroom-template .subherowrap{
	padding-bottom: 40px;
}	
}
	
/* ===========
CONTENT PAGE
============= 
*/

/*#subpagehero{
	margin-top: 20px;
}*/

.subpagehero-with-image{
	padding-top: 40px;
	padding-bottom: 20px;
}

/* apinahahmo */
#subpagehero .subpagehero-with-image, #subpagehero .sectionwrapper, .subpagehero-mobile-image{
	position: relative;
}

.subpagehero-mobile-image .apinahahmo{
	width: 200px;
	z-index: 200;
	position: absolute;
	right: 40px;
	bottom: -40px;
	margin-top: -20px;
}

#subpagehero .apinahahmo.nomainimage{
	width: 200px;
	z-index: 200;
	position: absolute;
	right: 40px;
	bottom: -60px;
	margin-top: -20px;
}

#subpagehero .apinahahmo img, .subpagehero-mobile-image .apinahahmo img{
	width: 100%;
	height: auto;
}

.subpagehero-kuva{
	margin-bottom: 25px;
	position: relative;
	z-index: 1;
	overflow: hidden;
	text-align: center;
}

.subpagehero-kuva img{
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.subpagehero-mobile-image img{
	display: block;
	width: 100%;
}

@media (min-width: 992px){
/*#subpagehero{
	margin-top: 40px;
}*/
	
#subpagehero .subpagehero-with-image .apinahahmo{
	width: 300px;
	z-index: 200;
	position: absolute;
	right: 0px;
	bottom: -20px;
	margin-top: -80px;
}
	
#subpagehero .apinahahmo.nomainimage{
	width: 300px;
	z-index: 200;
	position: absolute;
	right: 0px;
	bottom: -100px;
	margin-top: -80px;
}	
			
.subpagehero-with-image{
	display: flex;
	align-items: center;
	flex-direction: row-reverse;
	padding-top: 25px;
	padding-bottom: 80px;
}

.subpagehero-kuva{
	width: 50%;
	margin-bottom: 0;
}
	
.subpagehero-sisalto{
	width: 50%;
}
}

/* ===========
CONTENT LAYOUTS
============= */
.layout-whitebox, .layout-greybox{
	margin-bottom: 20px;
	margin-top: 20px;
}

.layout-whitewide{
	background-color: #fff;
}

.layout-whitebox .wrapper{
	border-radius: 10px;
	background-color: #fff;
	box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.layout-greybox .wrapper{
	border-radius: 10px;
	background-color: var(--harmaa);
	color: #fff;
}

.layout-greywide{
	background-color: var(--harmaa);
	background-image: url('images/seal-of-approval.svg');
	background-repeat: no-repeat;
	background-size: 230px auto;
	background-position: right 20px bottom 20px;
	color: #fff;
}

@media(min-width: 992px){
.layout-whitebox, .layout-greybox{
	margin-bottom: 25px;
}
	
.layout-greywide{
	background-size: 450px auto;
}	
}

@media(min-width: 1440px){
.layout-whitebox, .layout-greybox{
	margin-bottom: 40px;
	margin-top: 40px;
}
}

/* ===========
FOOTER
============= */

footer{
	background-color: var(--bg-footer);
	color: var(--text-dark);
	background-image: url('images/seal-of-approval-dark.svg');
	background-repeat: no-repeat;
	background-size: 230px auto;
	background-position: right 20px bottom -20px;
}

footer a{
	color: var(--text-dark);
	text-decoration: none;
}

footer a:hover{
	color: var(--text-dark);
}

#footer-apupalkki{
	z-index: 999;
	position: relative;
	text-align: left;
	border-top: 1px solid var(--tummansininen);
	padding-top: 20px;
	/*padding-bottom: 20px;*/
}

.footer-linkit{
	margin-bottom: 25px;
}

.footer-linkit a{
	display: block;
	color: var(--lasinsininen);
	font-weight: 300;
	font-size: 14px;
}

.footer-linkit a:hover{
	color: var(--lasinsininen);
}

footer ul{
	list-style: none;
}

.footerpalstat .grid25, .footerpalstat .grid50{
	padding-bottom: 40px;
}

.footerpalstat .footeryhteystiedot .grid50:last-child, .footerpalstat .grid50.footeryhteystiedot{
	padding-bottom: 0;
}

.footerpalstat .grid25:last-child{
	padding-bottom: 0px;
}

.footerpalstat .grid25.logo-footer img{
	width: 100px;
}

.span-email{
	padding-left: 30px;
	background: url('images/email-icon.svg') no-repeat left 3px;
	background-size: 21px 21px;
	display: block;
}

.span-phone{
	padding-left: 30px;
	background: url('images/phone-icon.svg') no-repeat left 3px;
	background-size: 21px 21px;
	display: block;	
}

.span-address{
	padding-left: 30px;
	background: url('images/location-icon.svg') no-repeat left 3px;
	background-size: 21px 21px;
	display: block;	
}

.span-email p, .span-phone p{
	margin-bottom: 15px;
}

.somekuvakkeet{
	display: block;
	width: 100%;
}
.somekuvakkeet a{
	display: inline-block;
	margin-right: 10px;
	width: 40px;
}

.somekuvakkeet img{
	width: 100%;
	height: auto;
}

@media (min-width: 992px){
	
footer{
	background-size: 400px auto;
	background-position: right 60px bottom -20px;

}	
#footer-apupalkki{
	padding-bottom: 25px;
	padding-top: 25px;
}	
	
.footerpalstat .grid25.logo-footer{
	padding-left: 20px;
	padding-top: 0;
}	
	
.footerpalstat .grid25.logo-footer img{
	width: 120px;
}	
	
.footer-linkit{
	float: left;
	display: inline-block;
	margin-bottom: 0;
}
	
.footer-linkit a{
	display: inline-block;
	margin-right: 40px;
}		
	
.footerpalstat .grid25, .footerpalstat .footeryhteystiedot{
	padding-bottom: 0px;
	padding-top: 25px;
}
	
.somekuvakkeet{
	width: auto;
}

}

@media (min-width: 1440px){
.footerpalstat .grid25.logo-footer img{
	width: 150px;
}
}

/* ===
404 
===== */

@media (min-width: 992px){
	.error404 .subherowrap{
		padding-top: 80px;
		padding-bottom: 80px;
	}	
.error404 #subhero{
	/*background-image: url('images/intro-monkeybusiness.svg');*/
	background-image: url('images/apina404.svg');
	background-repeat: no-repeat;
	background-position: center right 60px;
	background-size: auto 80%;
}	
}

/* ===========
MISCELLANEOUS
============= */
.selekti{
/*	display: block;
	width: 100%;
	height: 60px;*/
	display: block; 
    width: 60px;
    position: absolute;
    right: 20px;
    bottom: 0px;
    height: 60px;
}

.selekti a{
	display: block;
	width: 60px;
	height: 60px;
	margin: 0 auto;
}

.selekti a img{
	display: block;
	width: 100%;
	height: auto;
}

.alaraita{
	border-bottom: 1px solid var(--line);
}

hr{
	padding: 10px 0 0 0;
	margin-bottom: 35px;
	border-bottom: 1px solid var(--line);
}

.harmaa{
	background-color: #cecece;
}

#scroll-to-topBtn{
	display: none;
	transition: .4s;
}

a#scroll-to-topBtn.showBtn {
	display: inline-block; 
	position: fixed;
	width: 40px;
	height: 40px;
	bottom: 20px; 
	right: 20px;
	z-index: 200; 
	background-image: url('images/svg/arrow-up-orange.svg'); 
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 34px 34px;
	border-radius: 20px;
	transition: .4s;
}

a#scroll-to-topBtn.showBtn:hover {
	background-image: url('images/svg/arrow-up-green.svg'); 
	transition: .4s;
}

@media (min-width: 992px){	
a#scroll-to-topBtn.showBtn{
	bottom: 20px; 
	right: 20px;	
}	
	
.selekti{
	display: block; 
    width: 60px;
    position: absolute;
    right: 20px;
    height: 60px;
	bottom: 0;;
}	
}

@media (min-width: 1200px){	
a#scroll-to-topBtn.showBtn{
	bottom: 40px; 
	right: 40px;	
}		
}
/* ======
TABLES
======== */

table{
width: 100%;	
margin: 0 0 25px 0;
font-size: 14px;
table-layout:fixed;
background: var(--bg-light-green);
border-spacing: 0;
border-collapse: collapse;
text-align: left!important;	
}

th, td{
padding: 5px 5px;	
vertical-align: top;
word-wrap: break-word;
line-height: 21px;
border: 1px solid var(--line);	
}

tr:nth-child(odd){
background: #fff;
}

th, thead{
font-weight: 700;
background: var(--bg-light-green);	
border-bottom: 2px solid var(--line);	
-webkit-hyphens: auto;
 	 -ms-hyphens: auto;
 	 hyphens: auto;	
}

thead tr:nth-child(odd), tfoot tr:nth-child(odd){
background: var(--bg-light-green);	
}

/* ====
FORMS
===== */

.wpcf7{
	width: 100%;
	padding-top: 40px;
	-webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -o-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
	text-align: left;
}
.wpcf7 input, .wpcf7 textarea{
background-color: #fff;
width: calc(100% - 20px);
padding: 5px 10px;	
border: 1px solid #ccc;
/*box-shadow: inset 0px 1px 4px rgba(0, 0, 0, 0.2);	*/
}

.wpcf7 textarea{
height: 143px;	
}

.wpcf7 input{
height: 32px;
line-height: 32px;
}

.wpcf7 input.wpcf7-submit{	
	display: inline-block;
	text-decoration: none;
	padding: 10px 30px 10px 30px;
	color: var(--button-text);
	background: var(--button-bg);
	font-size: 16px;
	font-weight: 700;
	transition: .4s;
	border-radius: 30px;
	margin-bottom: 25px;
	border: 0;
	border-shadow: none;
	width: auto;
	height: auto;
}

.wpcf7 input.wpcf7-submit:hover{
	text-decoration: none;
	background: var(--button-bg-hover);
	color: var(--button-text-hover);
}

.wpcf7 .wpcf7-checkbox input{
	width: auto;
	height: auto;
	display: inherit;
	margin-right: 10px;
}

/* ============ 
ACCESSIBILITY 
============== */

/* Text meant only for screen readers */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	background-color: #f1f1f1;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.2);
	color: #21759b;
	display: block;
	font-size: 16px;
	font-weight: 700;
	left: -9999em;
	outline: none;
	padding: 15px 23px 14px;
	text-decoration: none;
	text-transform: none;
	top: -9999em;
}

.skip-link:focus {
	clip: auto;
	height: auto;
	left: 6px;
	top: 7px;
	width: auto;
	z-index: 100000;
}
/*
a:focus{
	outline: 3px solid #109cde;
  	outline-offset: -3px;
}*/