/*!
Theme Name: Meita Base Two Child Shapingethicaltourism
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.19
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: #808080;
    --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: 0px;
    --meita-custom-button-padding: 11.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 */
}

.mobile-menu button.wp-block-search__button.wp-element-button{
	padding: 0px;
}


/*header*/

.paa-navi{
	height:120px;
}
.paa-navi a{
	font-size: 22.5px;
}
.paa-navi ul.wp-block-navigation__submenu-container.wp-block-navigation-submenu a:hover{
	text-decoration:underline;
	color: #1e68a9;
}

.paa-navi ul.wp-block-navigation__submenu-container.wp-block-navigation-submenu .eka a{
	font-weight:600;
	font-size:20px;
}
.paa-navi ul.wp-block-navigation__submenu-container.wp-block-navigation-submenu .toka a{
	font-weight:400;
	font-size:18px;
	padding-left:40px;
}

.paa-navi ul.wp-block-navigation__submenu-container.wp-block-navigation-submenu{
	left: 0;
    right: 0;
    width: 100%;
    top: 100%;
    box-shadow: 0 10px 10px rgba(0, 0, 0, .8);
    padding: 1rem;
	opacity:1 !important;
	background-color: white !important;
}

.paa-navi ul.wp-block-navigation__submenu-container.wp-block-navigation-submenu li{
	border-radius: 0px !important;
	border: none !important;
	box-shadow:none !important;
	
}
.paa-navi .collaboration {
    background-color: #6b7c85;
    color: white;
	min-height: 120px;
	padding: 0 2rem;
}
.paa-navi .developer {
    background-color: #71992d;
    color: white;
	min-height: 120px;
	padding: 0 2rem;
}
.paa-navi .entrepreneuer {
    background-color: #00838a;
    color: white;
	min-height: 120px;
	padding: 0 2rem;
}

.paa-navi .collaboration >button >svg {
    width: 30px;
    height: 30px;
	fill: white;
}

.paa-navi .developer >button >svg{
	fill: white;
	width: 30px;
    height: 30px;
}

.paa-navi .entrepreneuer >button >svg{
	fill: white;
	width: 30px;
    height: 30px;
}


/*footer*/

footer{
	position: relative;
    margin-top: 0;
	background-color: #00838a;
}


footer::before {
    content: "";
    position: absolute;
    top: -6vw;
    left: 0;
	right:0;
    width: 100%;
    height: 6.35vw;
    display: block;
    background-image: url(https://shapingethicaltourism.eu/wp-content/uploads/2021/12/Footterinmuoto.png);
    background-size: 100% auto;
    background-position: center bottom;
    background-repeat: no-repeat;
    z-index: 1;
}
/*yleisiä asetuksia*/

.wp-block-button .wp-block-button__link:not(.has-background){
	background-color: #1e68a9;
	padding: 1.45rem 3.5rem;
	font-size: 21px;
}
.wp-block-button .wp-block-button__link:not(.has-background):hover{
	background-color: #6b7c85;
}

.wp-block-column:not(:first-child) {
    margin-left: 4rem;
}

.lainaus::before{
	display:none;
}

.entry-content > ul a{
	color: #1e68a9;
	font-size: 18px;
}
.entry-content > ul a:hover{
	text-decoration: underline;
}

.entry-content > ul li{
	margin-top: 5px;
}
.wp-block-table a{
	color: #1e68a9;
}
.wp-block-post-content > p > a{
	color: #1e68a9;
}
.wp-block-post-content > p > a:hover{
	text-decoration: underline;
}
.entry-content > p > a{
	color: #1e68a9;
}
.entry-content > p > a:hover{
	text-decoration: underline;
}
.wp-block-pullquote cite {
    color: #222;
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: 1.2rem;
	text-transform:capitalize;
}
.entry-content a:hover{
	text-decoration:underline !important;
}
a:hover, a:focus {
    -webkit-text-decoration-style: underline;
    text-decoration-style: underline !important;
}
/*etusivu*/

.etusivun-laatikot a{
	text-decoration: none;
}

.etusivun-laatikot a:hover{
	text-decoration: underline;
}

/*tiedosto*/

.wp-block-file {
	width: 100%;
    max-width: none;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
}

.wp-block-file >a{
	color:#1f68a9;	
}
.wp-block-file .wp-block-file__button{
	background-color: #1f68a9;
	color: white;
}

@media (max-width:900px){ 
	.wp-block-column:not(:first-child) {
    	margin-left: 0em;
		padding: 0px !important;
	}
	.wp-block-columns{
		gap: 1em !important;
	}
	
	h1{
		font-size: 2rem !important;
	}
	h2{
		font-size:1.5em !important;
	}
	h3{
		font-size: 1.8rem !important;
	}
	.wp-block-site-logo img {
		width:310px !important;
	}
	header{
		justify-content: space-between;
    	display: contents;
    	gap: 2rem;
		
	}
	header a{
		font-size: 16px !important;
	}
	header svg{
		width:32px !important;
		height:32px !important;
	}
	header .paa-navi{
		margin-left: 15px !important;
	}
	.wp-block-button a{
    		padding: 1rem 1.2rem !important;
	}
	.etusivun-laatikot p{
		font-size: 16px !important;
		line-height: normal !important;
	}
	.wp-block-file>a{
		font-size: 0.75rem;
	}
}

@media (max-width:442px){
	.wp-block-site-logo img{
		width: 230px !important;
	}
}