/*
Theme Name: mojzis
*/
* {
	box-sizing: border-box;
}
html {
	overflow-x: hidden;
	scroll-behavior: smooth;
}
body {
	overflow-x: hidden;
	min-height: 100vh;
	color: var(--wp--preset--color--contrast);
}

/**
------------------------------------------------------------- **/
div[class^="post-"],
.post,
article {
	position: relative;
}
a.post-edit-link {
	opacity: 0.8 !important; padding: 0 5px; text-transform: uppercase; display: inline-block; color: #000; position: fixed; bottom: 0; right: 0;
	font-size: 0; width: 25px; height: 25px; background: url('img/icon-edit.svg') no-repeat center center #ccc;
	background-size: 18px; z-index: 100000;
	border-bottom: none;
}
hr {
	height: 1px !important;
	border: none !important;
}

/**  accessibility
------------------------------------------------------------- **/
.sr-only {
	position: absolute ;
	left: -10000px;
	width: 1px;
	height: 1px;
	top: auto;
	overflow: hidden;
}

/**  header
------------------------------------------------------------- **/
:root {
	--header-height: 70px;
}
/* main {
	margin-top: var(--header-height);
} */
header.mainheader {
	width: 100%;
	z-index: 1000;
	position: fixed;
	top: 0;
	height: var(--header-height);
	background-color: rgba(255,255,255,0.5);
	border-bottom: 1px solid rgba(0,0,0,0.05);
}
header.mainheader a.logo {
	text-decoration: none;
	display: flex;
}
header.mainheader a.logo div.name {
	margin: 0;
	/* height: var(--header-height); */
	line-height: var(--header-height);
	font-family: "base-font", sans-serif;
	font-weight: 700;
	font-size: 1.5em;
}
header.mainheader a.logo {
	max-height: var(--header-height);
}
header.mainheader img {
	margin-left: 0.5em;
	margin-top: -1em;
	width: 25px;
	display: block;
	transition: all 0.2s;
}
header.mainheader:hover img {
	filter: saturate(0%) grayscale(100%) brightness(69%) contrast(1000%);
}
@media (min-width: 900px) {
	header.mainheader {
		overflow: visible;
		width: 100%;
		z-index: 1000;
		position: fixed;
		backdrop-filter: blur(10px);
	}
}

/** fix of header over content on the sub-pages
------------------------------------------------------------- **/
/* body:not(.home) {
	padding-top: var(--header-height);
} */

/**  minimized header
------------------------------------------------------------- **/
header.mainheader {
	transition: all 0.2s;
}
header.mainheader * {
	transition: all 0.2s;
}
header.mainheader.minimized {
	min-height: 0;
	height: 0;
}
header.mainheader.minimized * {
	opacity: 0;
	pointer-events: none;
}

header.mainheader.minimized .logo {
	transform: translateY(-50px);
}

/**  menu
------------------------------------------------------------- **/
/** global menu styling
------------------------------------------------------------- **/

.menu-container ul {
	list-style: none;
	margin: 0;
	padding: 0;
	font-weight: 300;
	font-size: 0.9em;
}

header.mainheader .flex {
	display: flex;
	justify-content: space-between;
	align-content: stretch;
	height: 100%;
	padding: 0 20px;
	align-items: center;
	max-width: 1400px;
	margin: 0 auto;
}


@media (max-width:1199px) {
/** menu on small displays
------------------------------------------------------------- **/
	.menu-toggle {
		display: block;
		cursor: pointer;
		position: absolute;
		right: 1em;
		width: 30px;
		height: 30px;
		z-index: 300;
		bottom: 0;
		top: 0;
		margin: auto;
	} 
	.menu-container {
		display: none;
	}
	.menu-container {
		position: fixed;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		z-index: 200;
		background: var(--wp--preset--color--contrast);
	}
	.menu-container ul {
		display: block;
		text-align: center;
	}
	.menu-container ul li {
		display: block;
		margin: 0;
		position: relative;
	}
	.menu-container ul li a {
		color: var(--wp--preset--color--base);
		border: none;
		line-height: 45px;
		/* text-transform: uppercase; */
		font-size: 2em;
		letter-spacing: 0.05em;
		display: block;
	}
	.menu-container ul.children li {
		background: #96BC3E;
	}
	.menu-container ul.children li a {
		color: var(--wp--preset--color--base);
	}
	.show-menu .menu-container {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
	}

	/* animated menu icon */
	.menu-toggle span, .menu-toggle span:before, .menu-toggle span:after {
		cursor: pointer;
		border-radius: 1px;
		height: 2px;
		width: 100%;
		background: var(--wp--preset--color--contrast);
		position: absolute;
		display: block;
		content: '';
		transition: all 0.2s ease-in-out;
	}
	.menu-toggle span {top:  calc(50% - 2px);}
	.menu-toggle span:before {top: -10px;}
	.menu-toggle span:after {bottom: -10px;}
	.show-menu .menu-toggle span {background-color: transparent;}
	.show-menu .menu-toggle span:before,
	.show-menu .menu-toggle span:after {top: 0; background: #fff;}
	.show-menu .menu-toggle span:before {transform: rotate(45deg);}
	.show-menu .menu-toggle span:after {transform: rotate(-45deg);}

	.menu-item.highlighted {
		background: #a40833;
	}
	.menu-item.highlighted a {
		color: #fff;
	}
	.show-menu li.menu-item-has-children > a[href*="#"] {
		pointer-events: none;
		font-size: 1em;
	}
	.show-menu li.menu-item-has-children > a[href*="#"]:after {
		content:':';
	}

	.menu-container > div > ul {
		margin-bottom: 2em;
	}

}

@media (min-width:1200px) {
/** menu on big displays
------------------------------------------------------------- **/
	.menu-toggle {
		display: none;
	}
	.menu-container {
		display: flex;
		gap: 2em;
	}
	/****** menu generated inner div vertically centered */
	.menu-container > * {
		height: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
	} 	/****** end */

	.menu-container ul {
		display: flex;
		justify-content: flex-end;
		gap: 2em;
	}
	.menu-container ul li {
		align-self: center;
		position: relative;
	}
	.menu-container ul li a {
		line-height: normal;
	}
	.menu-container ul.children li {
		background: #fff;
	}
	.menu-container ul li ul {
		display: none;
		text-align: left;
	}
	.menu-container ul > li > a {
		padding: 0.3em 0em;
		display: block;
		white-space: nowrap;
		align-self: center;
		border: 1px solid transparent;
	}
	
	/* image link in menu*/
	.menu-container li:has(img) a {
		padding: 0.5em 0.3em;
	}
	/*mouse over submenu*/
	.menu-container ul li a:has(~ ul.sub-menu):after {
		content:'';
		display: inline-block;
		margin-left: 4px;
		width: 8px;
		height: 8px;
		background: url("img/icon-arrow-down.webp") no-repeat center center;
		background-size: contain;
	}

	.menu-container ul li:hover ul {
		display: block;
		box-shadow: 0 0px 2px 0px gray;
	}
	.menu-container ul li ul {
		background: #fff;
		position: absolute;
		left: 0;
		top: 37px;
		width: 250px;
		font-size: 0.85em;
		line-height: 1.5em;

		padding: 15px !important;
	}
	.menu-container ul li ul li {
		display: block;
	}
	.menu-container ul li ul li a {
		color: #333 !important;
		padding: 0.5em 1em;
	}
	.menu-container ul ul ul {
		display: none !important;
	}

	.menu-item.highlighted {
		position: absolute;
		top: 20px;
		right: 20px;
	}

	/* hover*/
	.menu-container ul > li > a:hover {
		border-bottom: 1px solid var(--wp--preset--color--1);
		color: var(--wp--preset--color--1);
	}
	.menu-container ul > li.current-menu-parent > a,
	.menu-container ul > li.current_page_item > a {
		font-weight: 500;
	}


} /** end bid displays **/



/**  footer
------------------------------------------------------------- **/
footer {
	/* background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast); */
	padding: 1em;
}
footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
footer p {
	margin: 0 !important;
}

/**  mouse over effects
------------------------------------------------------------- **/
/**  media-text hover 
------------------------------------------------------------- **/
figure.wp-block-media-text__media {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: all 0.5s;
	overflow: hidden;
}
figure.wp-block-media-text__media img {
	transition: all 0.2s;
}
figure.wp-block-media-text__media:hover img {
	transform: scale(1.05);
}
/**  buttons
------------------------------------------------------------- **/
a.wp-block-button__link {
	transition: all 0.2s;
	line-height: 1.2em;
}
a.wp-block-button__link:hover {
	background: var(--wp--preset--color--contrast) !important;
	color: var(--wp--preset--color--base) !important;
}

/** bodycolor
------------------------------------------------------------- **/
body {
	background-color: var(--wp--preset--color--base);
}


/*********************************************
FORMFIELDS
*********************************************/
input,
textarea,
select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding: 10px;
	border: none;
	/* vertical-align: middle; */
	max-width: 100%;
	width: 100%;
	font-family: inherit;
	background: transparent;
	font-size: inherit;
	color: var(--wp--preset--color--contrast);
	border-radius: 3px;
	background: rgba(255,255,255,0.5);
	border: 1px solid var(--wp--preset--color--contrast);
}
textarea {
	resize: vertical;
	height: 5em;
}
input:focus,
textarea:focus,
select:focus {
	outline: 0;
	background: rgba(255,255,255,0.8);
}
select {
	background: url("img/arrow-down.svg") no-repeat center right 10px;
	background-size: 12px;
	padding-right: 35px;
}
select::-ms-expand {
	display: none;
}
option[disabled] {
	color: #666;
}
input[type="checkbox"],
input[type="radio"] {
	-webkit-appearance: none;
	appearance: none;
	display: inline-block;
	border: 1px solid var(--wp--preset--color--contrast);
	vertical-align: middle;
	/* border-radius: 20px; */
	background-color: #fff;
	cursor: pointer;
	width: 20px;
	height: 20px;
}
input[type="radio"] {
	border-radius: 100%;
}
input[type="checkbox"]:checked {
	background: url("img/icon-check.svg") no-repeat center center #fff;
	background-size: 70%;
}
input[type="radio"]:checked {
	background: url("img/icon-dot.svg") no-repeat center center #fff;
	background-size: 70%;
}

input[type="checkbox"]:focus,
input[type="radio"]:focus {
	border: 1px solid #000;
}
input[type="submit"] {
	background: #000;
	color: #fff;
}

.flex {
	display: flex;
	gap: 10px;
}

/** custom-glass: breakpoint grid
------------------------------------------------------------- **/
@media (max-width: 800px) {
	.break-grid .is-layout-grid {
		grid-template-columns: 100%;
		gap: 1em;
	}
}


/** table styling
------------------------------------------------------------- **/
.table table {
	width: auto !important;
	min-width: 300px;
}
.table table td {
	border: 0;
	border-bottom: 1px solid #fff;
}
.table table td:nth-child(1) {
	width: 10px;
	white-space: nowrap;
}
/** selection
------------------------------------------------------------- **/
::selection {
	background: var(--wp--preset--color--1);
	color: var(--wp--preset--color--contrast);
	text-shadow: none;
}


/* fix difference text-media gaps - same as column gaps
------------------------------------------------------------- **/
.wp-block-media-text {
	gap: 24px !important;
}
.wp-block-media-text > .wp-block-media-text__content {
	padding: 0 !important;
}
/* lazyblocks contact link
------------------------------------------------------------- **/
.wp-block-lazyblock-contactlink a {
	display: block;
	padding: 2em 0 0 0;
	border-top: 1px solid #BFBDBD73;
	transition: all 0.2s;
}
.wp-block-lazyblock-contactlink .flex {
	justify-content: space-between;
}
.wp-block-lazyblock-contactlink h3 {
	margin-bottom: 0.45em;
}
.wp-block-lazyblock-contactlink svg {
	opacity: .4;
}
.wp-block-lazyblock-contactlink a:hover {
	opacity: .6;
}
.wp-block-lazyblock-contactlink a:hover svg {
	opacity: 1;
}
/* lazyblocks faq
------------------------------------------------------------- **/
/* lazyblocks FAQ
------------------------------------------------------------- **/
.question {
	text-align: left;
	border-top: 1px solid #BFBDBD73;
}
.question > input[type="checkbox"] {
	position: absolute;
	left: -100vw;
}

.question .answer {
	display: grid; 
	grid-template-rows: 0fr;
	transition: 250ms grid-template-rows ease;
}
.question .answer > div {
	overflow: hidden;
	padding: 0;
}
.question > input[type="checkbox"]:checked ~ .answer {
	height: auto;
	max-height: 1300px;
	grid-template-rows: 1fr;
}
.question label {
	display: block;
	padding: 1em 50px 1em 0;
	cursor: pointer;
	background-color: transparent;
}
.question header h3 {
	margin: 0;
}
.question header {
	position: relative;
	transition: all 0.2s;
	font-weight: 500;
}
.question header:hover {
	opacity: .6;
}
.question header:after {
	content: '';
	position: absolute;
	top: 0;
	right: 1rem;
	width: 1.2rem;
	height: 100%;
	background: url('img/icon-plus.svg') no-repeat center center;
	background-size: auto;
	background-size: 24px;
	transition: all 0.5s;
	pointer-events: none;
}
.question > input[type="checkbox"]:checked + header:after {
	transform: rotate(45deg);
}
.question .answer > div > div {
	padding-bottom: 1rem;
}
.question .answer > div {
	max-width: 850px;
}
