/*
Theme Name: WP Template Simple
Theme URI: https://priklad.cz
Author: Stanislav Šec
Author URI: https://sec.stanislav.eu
Description: Jednoduchá WordPress šablona s 1 a 2 sloupcovým layoutem.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wpTemplateSimplee
*/

:root {
	--primary-color: #16223a;
	--secondary-color: lightgrey;
	--highlighting-color: #0073aa;
	--very-highlighting-color: #cf2e2e;
	--bg-color: white;
}

* {
	box-sizing: border-box;
}

.mobile-menu-toggle,
header .social-icons {
	padding-bottom: 5px;
	padding-right: 5px;
	text-align: right;
	color: var(--primary-color);
}

.mobile-menu-toggle .dashicons,
.social-icons .dashicons {
	font-size: 30px;
	width: auto;
	height: auto;
	margin: 3px;
	cursor: pointer;
}

.wp-block-search__input {
	border: 1px solid var(--secondary-color);
	background-color: var(--secondary-color);
	color: var(--primary-color);
	width: 100%
}

body {
	font-size: 20px;
	background-color: var(--bg-color);
}

body.openMenu {
	overflow: hidden;
}

.hide {
	display: none;
}

.wpTemplateSimple body {
	font-family: Arial, sans-serif;
	margin: 0;
	padding: 0;
}

.wpTemplateSimple a {
	text-decoration: none;
	color: var(--highlighting-color);
}

.wpTemplateSimple a:hover {
	color: var(--very-highlighting-color);
}

footer {
	background-color: var(--primary-color);
	color: var(--secondary-color);
	text-align: center;
}

header h1 {
	display: none;
}

header h1,
header h2 {
	margin: 0px;
	text-align: center;
}

.nav-menu {
	list-style: none;
	padding: 0;
}

.left-sidebar,
.right-sidebar,
.main-content {
	padding: 30px;
}

header,
footer {
	padding: 10px 30px;
}

.main-content {
	flex: 1;
}

.wpTemplateSimple .menu-item a,
.wpTemplateSimple .button {
	color: var(--secondary-color);
	background-color: var(--primary-color);
	padding: 1ex 1em;
}

.wpTemplateSimple footer .menu-item a {
	padding: 1ex;
}

.wpTemplateSimple .menu-item a:hover,
.wpTemplateSimple .button:hover {
	color: var(--primary-color);
	background-color: var(--secondary-color);
}

.wpTemplateSimple footer li {
	margin-right: 1ex;
	margin-left: 1ex;
}

.mobile-menu-toggle {
	display: none;
}

.nav-menu li,
.nav-menu a {
	display: block;
}

.main-nav {
	z-index: 1000;
	top: 0;
}

#myOverlay {
	display: none;
}

.overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 999;
}

.wp-element-caption {
	text-align: center;
}

@media (max-width: 767px) {
	.search-form {
		display: none;
	}

	.site-logo img {
		width: 100%;
		height: auto;
	}

	header {
		text-align: center;
	}

	.mobile-menu-toggle {
		text-align: right;
	}

	.openMenu #myOverlay,
	.openMenu .main-nav,
	.mobile-menu-toggle {
		display: block;
	}

	.main-nav {
		background: var(--primary-color);
		position: fixed;
		display: none;
		height: 100vh;
		width: 75vw;
		left: 0;
	}

	body.admin-bar nav {
		top: 46px;
	}
}

@media (min-width: 768px) {

	.main-nav {
		background-color: var(--bg-color);
		position: sticky;
	}

	.main-nav ul {
		padding: 0px 0px 4px 0px;
		margin: 0px;
	}

	.main-nav li {
		background-color: var(--secondary-color);
	}

	.last-in-header {
		margin-right: 1em;
		text-align: right;
	}

	body.admin-bar nav {
		top: 32px;
	}

	footer .social-icons,
	footer .site-logo {
		margin-top: 15px;
	}

	footer .social-icons span {
		padding: 5px;
	}

	header,
	footer .oneLine,
	.columns {
		display: flex;
	}

	header {
		align-items: center;
		border-bottom: 5px solid var(--primary-color);
	}

	.oneLine .footer-nav {
		flex: 1;
	}

	.right-sidebar,
	.left-sidebar {
		flex: 0 0 200px;
		max-width: 200px;
		background-color: var(--secondary-color);
	}

	.columns {
		align-items: stretch;
	}

	.nav-menu {
		gap: 1ex;
		display: flex;
		justify-content: center;
	}

	.site-name {
		flex: 1;
	}

	h1 {
		font-size: 190%;
	}

	h2 {
		font-size: 150%;
	}

	h3 {
		font-size: 115%;
	}

	h4 {
		font-size: 110%;
	}
}

@media (min-width: 1100px) {

	.right-sidebar,
	.left-sidebar {
		flex: 0 0 250px;
		max-width: 250px;
	}

	h1 {
		font-size: 215%;
	}

	h2 {
		font-size: 165%;
	}

	h3 {
		font-size: 125%;
	}

	h4 {
		font-size: 110%;
	}
}


@media (min-width: 1400px) {

	.right-sidebar,
	.left-sidebar {
		flex: 0 0 300px;
		max-width: 300px;
	}
}