/*!
Theme Name: Meita Base Two Child Pohjoinensaimaa
Theme URI: https://meita.fi
Template: meita-theme-basetwo
Author: Lauri Merisaari
Author URI: https://meita.fi
Description: Child theme for Meita Base Two. Block theme based and inspired of Meita Base one and Twenty Twenty Two
Requires at least: 6.0
Tested up to: 6.1
Requires PHP: 8.0
Version: 0.0.283
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: meitabasetwo
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, accessibility-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned
with others.

All files, unless otherwise stated, are released under the GNU General Public
License version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html)
*/

/* 
 * CSS Global variables
 *
 * Overwrite these in child theme to globally control defaults
 * Original can be found in src/css/variables.scss
 */
 :root {

    --meita-custom-nav-elements-border-width: 1px;
    
    --meita-custom-forms-input-border: 1px;
    --meita-custom-forms-input-border-style: solid;
    --meita-custom-forms-input-border-color: #191919;
    --meita-custom-forms-input-pg: white;
    --meita-custom-forms-input-border-radius: 0px;

    /* All buttons defaults, can be owerwriten in site editor */
    --meita-custom-default-border-radius: 15px;
    --meita-custom-button-padding: 10.7px;
    --meita-custom-button-hpadding: 16.7px;
    --megamenu-container-padding: 3em;
    --megamenu-nav-hpadding: 1em;

    /* Default animation duration */
    --animate-duration: 0.3s;

}

/* ----------------------------- */
/*     Basic mobile navigatio    */
/* ----------------------------- */
.wp-block-navigation__responsive-container:has(.is-meita-mobile-nav-base-two-mobile),
.editor-styles-wrapper .wp-block-navigation.is-meita-mobile-nav-base-two-mobile {
	--b2-mobile-nav-link-padding: 15px;										/* Item vertical padding and inner horizontal padding */
	--b2-mobile-nav-side-margins: 15px;										/* Extra left and right padding of the list */
	--b2-mobile-nav-submenu-items-indent: 15px;								/* Indent per level */
	--b2-mobile-nav-width: clamp(240px, 100%, 400px);						/* Overlay width */
	--b2-mobile-border-width: 1px;											/* Separator lines between items */
	--b2-mobile-nav-modal-shadow: var(--wp--preset--shadow--natural);
	--b2-mobile-nav-animate-duration: 0.2s;
	/*
	--b2-mobile-nav-fontfamily: inherit;
	--b2-mobile-nav-fontsize: 1em;
	*/
	--b2-mobile-label-line-height: 1.5em;

	/* Level colors. Level 1 = root items, level 2 = first submenu ... Level 1 defaults to overlay colors. */
	--b2-mobile-nav-l1-text: black;
	--b2-mobile-nav-l1-background: transparent;
	--b2-mobile-nav-l2-text: black;
	--b2-mobile-nav-l2-background: transparent;
	--b2-mobile-nav-l3-text: black;
	--b2-mobile-nav-l3-background: transparent;
	--b2-mobile-nav-l4-text: black;
	--b2-mobile-nav-l4-background: transparent;
	--b2-mobile-nav-l5-text: black;
	--b2-mobile-nav-l5-background: transparent;
	--b2-mobile-nav-l6-text: black;
	--b2-mobile-nav-l6-background: transparent;

	/* Icons are svg masks (url) colored with current text color */
	/*--b2-mobile-nav-close-icon: url(...);*/									/* Close button of the default overlay */
	/*--b2-mobile-nav-sub-closed-icon: url(...);*/								/* Toggle icon, submenu closed. Default plus */
	/*--b2-mobile-nav-sub-open-icon: url(...);*/								/* Toggle icon, submenu open. Default minus */
	--b2-mobile-nav-sub-icon-padding: 10px;									/* Toggle button horizontal padding */
	--b2-mobile-nav-sub-icon-width: 18px;
	--b2-mobile-nav-sub-toggle-bg: transparent;								/* Toggle button background */
	--b2-mobile-nav-sub-toggle-border: none;								/* Toggle button left border eg. 1px solid currentColor */
}


.wp-block-navigation:not(.has-background):not(.is-style-megamenu):not(.is-style-alwaysopen):not(.is-style-alanavi) .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-icon{
	display: block;
    min-width: 24px;
}


/*backup fontti kun ei abril fatface näy*/
body h1.wp-block-heading,body h2.wp-block-heading,body h3.wp-block-heading, body h4.wp-block-heading, body h2.wp-block-post-title, body h3.wp-block-post-title, body h4.wp-block-post-title {
	font-family: "Abril Fatface","Garamond, serif","Georgia, serif","Times New Roman" !important;
}

h2 >a, h3>a{
	font-family: "Abril Fatface" !important;
}
/* headerin haku */

.navi-haku input[type="search"]{
	width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.navi-haku button{
	margin-left: 0px;
}

/*Artikkelin hero kuva */

.artikkelin-herokuva img{
	object-position: top;
}

/* sivuston uudistus */

/*.editor-visual-editor .editor-styles-wrapper{
	background-color: #f7f4f0;
}*/

.page-template-wp-custom-template-etusivu-uusi header, .page-template-wp-custom-template-englanti-etusivun-sivupohja header, .page-template-wp-custom-template-saksa-etusivun-sivupohja header{
	position: absolute;
    z-index: 2;
    justify-content: center;
    display: inline-block;
    width: 85%;
	margin-block-start: 0rem !important;
}

.alasivujen-hero-kuva img{
	object-position: 50% 50% !important;
}

.wp-block-navigation__responsive-container-open svg{
	height: 40px;
	width:40px;
}

/* headerin haku */

.wp-block-search .wp-block-search__inside-wrapper .wp-element-button{
	background-color: var(--wp--preset--color--foreground) !important;
}
.navi-haku .wp-block-search__inside-wrapper{
	line-height: 1rem;
}


.paavalikko >li >a{
	padding: 10px 0 !important;
}

.paavalikko .wp-block-navigation-submenu ul.wp-block-navigation__submenu-container > li:first-child a:before{
	top: -27%;
    left: 25px;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-color: rgba(0, 0, 0, 0);
    border-left: 10px solid transparent;
    z-index: 10;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
    border-top-color: transparent;
    z-index: 10;
}

.paavalikko .wp-block-navigation-submenu ul.wp-block-navigation__submenu-container > li:first-child a:after {
    border-color: rgba(0, 0, 0, 0);
    border-top-color: #f1f2f2;
    border-left: 10px solid transparent;
    z-index: 10;
    border-right: 10px solid transparent;
    border-bottom: 10px solid blue;
    margin-left: 1px;
    z-index: 11;
    top: -27%;
    left: 25px;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
 
}
.yritysnosto h2 >a{
	text-decoration: none;
}
.yritysnosto h2 >a:hover{
	text-decoration: underline;
}

.page-template-wp-custom-template-etusivu-uusi header{
	margin-block-start: 0rem !important;
}

.wpcf7 input[type="email"], .wpcf7 input[type="text"] {
	width: 86%;
}
.wpcf7 input[type="submit"]{
	width: 98%;
}

.wpcf7 textarea{
	width: 95%;
}

.wp-block-heading > a{
	font-family: var(--wp--preset--font-family--abril-fatface);
	text-decoration: none;
}
.wp-block-heading > a:hover{
	text-decoration: underline;
}
.wp-block-file .wp-block-file__button, .wp-element-button{
	padding: 8px 20px;

}

.feikki-valikko a{
	text-decoration: none;
}
.feikki-valikko a:hover{
	text-decoration:underline;
}

/* outdoor active */

.oax-embed-widget >div{
	display: none;
}
.oax-embed-widget .oax .oax_semi_bold{
	font-family: var(--wp--preset--font-family--abril-fatface) !important;
	color: var(--wp--preset--color--primary) !important;
}

/* tapahtumakalenteri */

.bubster-list-4.bubster-css-default .bubster-more{
	border: 1px solid black !important;
}
 
 

@media only screen and (max-width:600px){ 
	/*.paavalikko{
		justify-content: flex-start !important;
	}*/
	.beige-navi-yla nav, .beige-navi-en nav{
		justify-content: flex-start !important;
	}
	.beige-navi-yla nav > button.wp-block-navigation__responsive-container-open:after{
		content: "Valikko";
    	margin-top: 8px;
    	margin-left: 5px;
	}
	.beige-navi-en nav > button.wp-block-navigation__responsive-container-open:after{
		content: "Menu";
    	margin-top: 8px;
    	margin-left: 5px;
	}
 
} 

/* ----------------------- */




/*ETUSIVUN HEADER*/

.page-template-page-no-title header, .page-template-wp-custom-template-saksa-etusivun-sivupohja header, .page-template-wp-custom-template-englanti-etusivun-sivupohja header{
	position: absolute;
    z-index: 2;
    justify-content: center;
    display: inline-block;
	width:85%;
}

.page-template-page-no-title header, .page-template-wp-custom-template-saksa-etusivun-sivupohja header, .page-template-wp-custom-template-englanti-etusivun-sivupohja header{
	position: absolute;
    z-index: 2;
    justify-content: center;
    display: inline-block;
	width:85%;
}
.page-template-page-no-title header .etusivun-header, .page-template-wp-custom-template-englanti-etusivun-sivupohja header .etusivun-header, .page-template-wp-custom-template-saksa-etusivun-sivupohja header .etusivun-header {
	min-width:100%;
}

.page-template-page-no-title header .etusivun-header > div, .page-template-wp-custom-template-englanti-etusivun-sivupohja header .etusivun-header.etusivun-header> div, .page-template-wp-custom-template-saksa-etusivun-sivupohja header .etusivun-header > div{
	justify-content: space-between;
}

/*sininen navi*/
header .wp-block-navigation-submenu ul li{
	border-radius:0px !important;
}
header .wp-block-navigation-submenu ul.wp-block-navigation__submenu-container > li:first-child a:before{
	top: -27%;
    left: 25px;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
	border-color: rgba(0, 0, 0, 0);
	border-left: 10px solid transparent;
    z-index: 10;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
    border-top-color: transparent;
    z-index: 10;
}
header .wp-block-navigation-submenu ul.wp-block-navigation__submenu-container > li:first-child a:after{
	border-color: rgba(0, 0, 0, 0);
    border-top-color: #f1f2f2;
	border-left: 10px solid transparent;
    z-index: 10;
    border-right: 10px solid transparent;
    border-bottom: 10px solid blue;
    margin-left: 1px;
    z-index: 11;
	top: -27%;
    left: 25px;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}


/*vaalea navi*/
header .main-menu1 .wp-block-navigation-submenu ul li{
	background-color: #425BA6 !important;
	color: white;
	border-radius:0px !important;
}
header .main-menu1 .wp-block-navigation-submenu ul.wp-block-navigation__submenu-container > li:first-child a:before{
	top: -27%;
    left: 25px;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
	border-color: rgba(0, 0, 0, 0);
	border-left: 10px solid transparent;
    z-index: 10;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #425BA6;
    border-top-color: transparent;
    z-index: 10;
}
header .main-menu1 .wp-block-navigation-submenu ul.wp-block-navigation__submenu-container > li:first-child a:after{
	border-color: rgba(0, 0, 0, 0);
    border-top-color: #f1f2f2;
	border-left: 10px solid transparent;
    z-index: 10;
    border-right: 10px solid transparent;
    border-bottom: 10px solid blue;
    margin-left: 1px;
    z-index: 11;
	top: -27%;
    left: 25px;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

/* FOOTER */

footer a{
	text-decoration:none;
}

footer a:hover{
	text-decoration:underline;
}

footer .eu-logo img{
	background-color:white;
}
footer .suomi-kartta img{
	max-width:85% !important;
}

/*ETUSIVUN HERO*/

.page-template-page-no-title .wp-block-cover.etusivun-hero, .page-template-etusivu-en header .wp-block-cover.etusivun-hero {
	position: relative;
}

/*CAROUSEL*/

.owl-carousel .owl-nav  button.owl-prev, .owl-carousel .owl-nav  button.owl-next{
	color: #425BA6;
}


/*SISÄLTÖLISTAUS*/

.wp-block-query h2 a{
	text-decoration: none;
	font-weight: 500;
	hyphens: auto;
	word-break:break-word;
}
.wp-block-query h2 a:hover{
	text-decoration: underline;
}

p.wp-block-post-excerpt__more-text a{
	text-decoration: none;
}
p.wp-block-post-excerpt__more-text a:hover{
	text-decoration: underline;
}

.syo-ja-juo .wp-block-post-excerpt__more-link{
	background-color: var(--wp--preset--color--primary);
    padding: 8px 12px;
    color: white;
}

/* tarinat listaukset */

.tarina-listaus .wp-block-post-excerpt__more-text >a{
	background-color: var(--wp--preset--color--primary);
    border-radius: 30px;
    color: var(--wp--preset--color--background);
    font-size: var(--wp--preset--font-size--medium);
	padding: calc(0.667em + 2px) calc(1.333em + 2px);
    text-decoration: none;
}

.tapahtumat-kategoria a{
	text-decoration: none;
}

.tapahtumat-kategoria a:hover{
	text-decoration: none;
}

/*LISÄNAPPULAT*/

.is-style-right-angle{
	position:relative;
}
.is-style-right-angle > img{
	border-top-right-radius: 33% !important;
	
}
.wp-block-post-content .is-style-right-angle img{
	border-top-right-radius: 33% !important;
}
.is-style-right-angle .wp-element-caption{
	font-size: 64px;
    font-family: var(--wp--preset--font-family--abril-fatface);
    color: currentcolor;
    position: absolute;
    top: 35%;
    left: 4%;
    /*bottom: 20%;*/
	font-weight: 600;
    transform-origin: 0 0;
    transform: rotate(90deg);
	margin-bottom: 0px;
}
.wp-block-post-content .is-style-right-angle-bottom img{
	border-top-right-radius: 33% !important;
}
.is-style-right-angle-bottom img{
	border-top-right-radius: 33% !important;
}
.is-style-right-angle-bottom .wp-element-caption{
	font-size: 64px;
    font-family: var(--wp--preset--font-family--abril-fatface);
    color: currentcolor;
    position: absolute;
    top: 88%;
    right: 32%;
    bottom: 3%;
    transform-origin: 0 0;
	font-weight: 600;
    transform: rotate(00deg);
}

.is-style-text-right .wp-element-caption{
	font-size: 64px;
    font-family: var(--wp--preset--font-family--abril-fatface);
    color: currentcolor;;
    position: absolute;
    top: 70%;
    right: -34%;
    bottom: 20%;
	font-weight: 600;
    transform-origin: 0 0;
    transform: rotate(270deg);
}
.is-style-text-left .wp-element-caption{
	font-size: 64px;
    font-family: var(--wp--preset--font-family--abril-fatface);
    color: currentcolor;;
    position: absolute;
    top: 35%;
    left: 4%;
    bottom: 20%;
    transform-origin: 0 0;
    transform: rotate(90deg);
	font-weight: 600;

}

.is-style-text-bottom .wp-element-caption{
	font-size: 64px;
    font-family: var(--wp--preset--font-family--abril-fatface);
    color: currentcolor;
    position: absolute;
    top: 88%;
    right: 32%;
    bottom: 3%;
	font-weight: 600;
    transform-origin: 0 0;
    transform: rotate(0deg);
}

figure.is-style-right-angle-bottom{
	position:relative;
}

figure.is-style-text-left{
	position:relative;
}
figure.is-style-text-bottom{
	position:relative;
}
figure.is-style-text-right{
	position:relative;
}

figure.is-style-beige-box{
	position:relative;
}

figure.is-style-beige-box::after {
    content: "";
    position: absolute;
    width: 100%;
    max-width: 90%;
    height: 100%;
    bottom: -20%;
    right: -50px;
    background-color: var(--wp--preset--color--custom-vaalea-rusk) !important;
    z-index: -1;
}
.editor-styles-wrapper figure.is-style-beige-box{
	position:relative;
	
}
.editor-styles-wrapper figure.is-style-beige-box::after {
   content: "";
    position: absolute;
    width: 100%;
    max-width: 90%;
    height: 100%;
    bottom: -20%;
    right: -50px;
    background-color: var(--wp--preset--color--custom-vaalea-rusk) !important;
    z-index: -1;
  
}
figure.is-style-beige-box2{
	position:relative;
}



.editor-styles-wrapper figure.is-style-box::after {
   content: "";
    position: absolute;
    width: 100%;
    max-width: 90%;
    height: 100%;
    bottom: -20%;
    right: 100px;
    background-color: currentcolor !important;
    z-index: -1;
  
}
.editor-styles-wrapper figure.is-style-box{
	position:relative;
	
}

figure.is-style-box{
	position:relative;
}

figure.is-style-box::after {
    content: "";
    position: absolute;
    width: 97%;
    max-width: 90%;
    height: 100%;
    bottom: -20%;
    right: 100px;
    background-color: currentcolor !important;
    z-index: -1;
}




figure.is-style-beige-box2::after {
    content: "";
    position: absolute;
    width: 100%;
    max-width: 90%;
    height: 100%;
    bottom: -20%;
    right: -50px;
    background-color: currentcolor !important;
    z-index: -1;
}
.editor-styles-wrapper figure.is-style-beige-box2::after {
   content: "";
    position: absolute;
    width: 100%;
    max-width: 90%;
    height: 100%;
    bottom: -20%;
    right: -50px;
    background-color: currentcolor !important;
    z-index: -1;
  
}

figure.is-style-white-box{
	position:relative;
	z-index:1;
}
figure.is-style-white-box::after {
    content: "";
    position: absolute;
    width: 100%;
    max-width: 75%;
    height: 100%;
    bottom: -20%;
    left: 49%;
    background-color: currentcolor;
    z-index: -1;
    transform: rotate(90deg);
    transform-origin: 0 0;
} 

.editor-styles-wrapper figure.is-style-white-box{
	position:relative;
}

.editor-styles-wrapper figure.is-style-white-box::after {
    content: "";
    position: absolute;
    width: 100%;
    max-width: 75%;
    height: 100%;
    bottom: -20%;
    left: 49%;
    background-color: currentcolor;
    z-index: -1;
    transform: rotate(90deg);
    transform-origin: 0 0;
} 


/* footer */

.footer-navi p > a:before{
	content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 20 20'%3E%3Cpath fill='%23fff' d='m6 15l5-5l-5-5l1-2l7 7l-7 7z'/%3E%3C/svg%3E");
    vertical-align: sub;
    margin-left: 6px;
	margin-right: 6px;
}


@media only screen and (max-width:660px){
	.ingressi{
		font-size: 1.5rem !important;
	}
}


@media only screen and (max-width:782px){
	.wp-block-column >h1{
		padding-top:3rem;
		font-size: 2.2rem;
	}
}

@media only screen and (max-width:600px){
	.page-template-page-no-title .wp-block-cover.etusivun-hero, .page-template-etusivu-en header .wp-block-cover.etusivun-hero{
		min-height: 400px !important;
	}
	.is-style-right-angle .wp-element-caption, .is-style-text-right .wp-element-caption, .is-style-text-left{
		display:none !important;
	}
	figure.is-style-beige-box2::after, figure.is-style-box::after{
		display:none !important;
	}
	figure.is-style-beige-box2 img, figure.is-style-box img{
		height:100%;
	}
	body h2{
		font-size: 2.375rem;
	}
	
	body h1.wp-block-heading{
		font-size: 2.25rem;
    	hyphens: auto;
    	margin-top: 25px !important;
		font-family: "Abril Fatface","Georgia, serif","Times New Roman" !important;
	}
	.main-menu1 .wp-block-navigation__responsive-container-open svg{
		height:34px;
		width:34px;
	}
	.header-valike{
		height: 100px !important;
	}
	.paavalikko >li >a{
		padding: 0 0 !important;
	}
	.etusivun-logo{
		display:none;
	}
	.etusivun-header > .wp-block-group{
		justify-content: end;
	}
	.navi-haku{
		max-width: 75%;
	}
	.kaikki-artikkelit.wp-block-query h2 a{
		font-size: 1.125rem !important;
	}
	
}
@media only screen and (max-width:1000px)and (min-width: 600px){
	
	
	 .wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content{
		display: flex;
        justify-content: right;
	}
	.haku-navi .wp-block-search__inside-wrapper .wp-block-search__input {
		background-color: transparent;
		border: none;
		cursor: pointer;
		height: 37px;
		margin: 3px 0;
		padding: 0 0 0 10px;
		position: relative;
		-webkit-transition: width 400ms ease, background 400ms ease;
		transition: width 400ms ease, background 400ms ease;
		width: 0 !important;
	}

	.haku-navi .wp-block-search__inside-wrapper .wp-block-search__input:focus {
		background-color: #fff;
		cursor: text;
		outline: 0;
		/*width: 230px !important;*/
	}
	
	.search-form .search-submit { 
		display:none !important;
	}
	figure.is-style-beige-box2:after, figure.is-style-box:after{
		width:85% !important;
	}
	
}

@media only screen and (max-width:800px){
	.page-template-page-no-title header .etusivun-header{
	     min-width:100%;
	 }

}
@media only screen and (max-width:600px){
	.en-menu nav{
		justify-content: end;
	}
	.haku-navi .wp-block-search__inside-wrapper{
		width: 100% !important;
	}
	.haku-navi .wp-block-search__inside-wrapper .wp-block-search__input {
		background-color: transparent;
		border: none;
		cursor: pointer;
		height: 37px;
		margin: 3px 0;
		padding: 0 0 0 10px;
		position: relative;
		-webkit-transition: width 400ms ease, background 400ms ease;
		transition: width 400ms ease, background 400ms ease;
		width: 0 !important;
		max-width: 80%;
	}

	.haku-navi .wp-block-search__inside-wrapper .wp-block-search__input:focus {
		background-color: #fff;
		cursor: text;
		outline: 0;
		/*width: 230px !important;*/
	}
}

@media only screen and (max-width:473px){
	.kielet-ja-haku nav{
		justify-content: end;
	}
}

@media only screen and (max-width:326px){
	.header-valike{
		height: 60px !important;
	}
	
	
}
