/*
Theme Name: PRO Plzeň Simple
Theme URI: https://proplzen.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: 
*/

:root {
	--primary-color: #042d57;
	--secondary-color: #707070;
	--highlighting-color: #0073aa;
	--very-highlighting-color: #ce0d19;
	--bg-color: white;
	--secondary-bg-color: #f5f5f5f5;
	--wp--style--global--content-size: 1200px;
	--wp--style--global--wide-size: 1600px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

/* latin-ext */
@font-face {
	font-family: 'Raleway';
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url(fonts/ralewayLatin-extItalic100900.woff2) format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
	font-family: 'Raleway';
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url(fonts/ralewayLatinItalic100900.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url(fonts/ralewayLatin-extNormal100900.woff2) format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url(fonts/ralewayLatinNormal100900.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body,
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "Raleway", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 1em 0px;
	text-align: center;
	font-weight: 900;
}

h1,
h2 {
	display: none;
}

body {
	background-color: var(--bg-color);
}

body.openMenu {
	overflow: hidden;
}

header {
	display: flex;
}

header .primaryMenuPlace {
	flex: 1;
}

.hide {
	display: none;
}

.header-image img {
	width: 100%;
	height: auto;
	display: block;
}

.wpTemplateSimple body {
	margin: 0;
	padding: 0;
}

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

.wpTemplateSimple header .menu-item a:hover,
.wpTemplateSimple a:hover {
	color: var(--very-highlighting-color);
}

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

.latest-posts-wrapper .post-item img {
	transition: scale .3s ease;
}

.latest-posts-wrapper .post-item:hover img {
	scale: 1.05;
}

.latest-posts-wrapper {
	padding-top: 1em;
}

.wpTemplateSimple .primaryBlock h3,
.wpTemplateSimple .primaryBlock h4,
.wpTemplateSimple .primaryBlock h5 {
	color: var(--bg-color)
}

.wpTemplateSimple h3 a,
.wpTemplateSimple h3 {
	color: var(--primary-color);
}

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

.wpTemplateSimple .verticalMargin,
.wpTemplateSimple .main-content .page-content .wp-block-columns.verticalMargin,
.wp-singular .main-content>.wp-block-paragraph,
.wp-singular .main-content>.wp-block-columns,
.wp-singular .main-content>.wp-block-media-text,
.category .main-content>.post-item,
.page-content>* {
	padding-right: 30px;
	padding-left: 30px;
}

header,
footer {
	padding: 0px 30px;
	text-align: center;
}

.footerAuthorship {
	padding-bottom: 1em;
}

.main-content {
	flex: 1;
}

.wpTemplateSimple .home .half img {
	animation: moveImg 40s linear infinite;
}

.wpTemplateSimple .homeProgram img {
	border-radius: 20px;
}

.wpTemplateSimple .homeProgram {
	background-color: var(--secondary-bg-color);
	padding: 1em 2em;
}

.wpTemplateSimple .home .homeProgram .wp-block-columns.is-layout-flex {
	gap: 2em;
}

.wpTemplateSimple .homeProgram h4 {
	color: var(--very-highlighting-color);
}

.wpTemplateSimple .home .wp-block-columns.is-layout-flex {
	gap: 0px;
	padding: 0px;
}

.wpTemplateSimple .home .wp-block-columns.half .wp-block-column figure {
	margin: 0px;
	height: 100%;
}

.wpTemplateSimple .home .wp-block-columns.half .wp-block-column img {
	height: 100%;
	width: auto;
	object-fit: cover;
}

.wpTemplateSimple .primaryBlock {
	background-color: var(--primary-color);
	color: var(--bg-color);
}

.wpTemplateSimple .primaryBlock .post-item {
	color: var(--primary-color);
}

.wpTemplateSimple .secondaryBlock {
	background-color: var(--very-highlighting-color);
	color: var(--bg-color);
	padding: clamp(20px, 5vw, 80px);
}

.wpTemplateSimple .secondaryBlock h4 {
	text-align: left;
}

.wpTemplateSimple .wp-block-button a,
.wpTemplateSimple .button {
	font-weight: bold;
	padding: 1ex 1em;
	border-radius: 3px;
	color: var(--very-highlighting-color);
	border: 1px solid var(--very-highlighting-color);
	background-color: transparent;
}

.wpTemplateSimple .wp-block-button a:hover,
.wpTemplateSimple .button:hover {
	color: var(--bg-color);
	background-color: var(--very-highlighting-color);
}

.wpTemplateSimple .secondaryBlock .wp-block-button a,
.wpTemplateSimple .secondaryBlock .button,
.wpTemplateSimple .secondaryBlock .wp-block-button.secondary a,
.wpTemplateSimple .secondaryBlock .button.secondary,
.wpTemplateSimple .secondaryBlock .wp-block-button.primary a,
.wpTemplateSimple .secondaryBlock .button.primary {
	border: 1px solid var(--bg-color);
}

.wpTemplateSimple .secondaryBlock .wp-block-button.secondary a,
.wpTemplateSimple .secondaryBlock .button.secondary {
	border: 1px solid var(--primary-color);
	color: var(--primary-color);
}

.wpTemplateSimple .secondaryBlock .wp-block-button.secondary a:hover,
.wpTemplateSimple .secondaryBlock .button.secondary:hover {
	color: var(--highlighting-color);
}

.wpTemplateSimple .secondaryBlock .wp-block-button.primary a,
.wpTemplateSimple .secondaryBlock .button.primary {
	background-color: var(--primary-color);
}

.wpTemplateSimple .secondaryBlock .wp-block-button a,
.wpTemplateSimple .secondaryBlock .button {
	color: var(--bg-color);
}

.wpTemplateSimple .secondaryBlock .wp-block-button a:hover,
.wpTemplateSimple .secondaryBlock .button:hover {
	color: var(--primary-color);
	border: 1px solid var(--primary-color);
}

.wpTemplateSimple .wp-block-button.primary a,
.wpTemplateSimple .button.primary {
	color: var(--bg-color);
	background-color: var(--very-highlighting-color);
}

.wpTemplateSimple .wp-block-button.primary a:hover,
.wpTemplateSimple .button.primary:hover {
	background-color: var(--bg-color);
	color: var(--very-highlighting-color);
}

.wpTemplateSimple .wp-block-button.secondary a,
.wpTemplateSimple .button.secondary {
	color: var(--bg-color);
	border: 1px solid var(--bg-color);
}

.wpTemplateSimple .wp-block-button.secondary a:hover,
.wpTemplateSimple .button.secondary:hover {
	color: var(--very-highlighting-color);
	background-color: transparent;
}


.people .wp-block-group .fullWidth img {
	border-radius: unset;
}

.people .wp-block-media-text {
	margin-top: 1em;
}

.people .wp-block-group .wp-block-heading {
	padding-top: 1em;
}

.category .post-item,
.people .wp-block-group,
.people .wp-block-media-text,
.program .wp-block-columns {
	border-radius: 20px;
}


.people .city .wp-block-media-text:nth-of-type(even),
.people .wp-block-group:nth-of-type(even):not(.city),
.category .post-item-wrapper:nth-of-type(even) .post-item,
.program .wp-block-columns:nth-of-type(even) {
	background-color: var(--secondary-bg-color);
}

.people .city .wp-block-media-text:nth-of-type(odd),
.people .wp-block-group:nth-of-type(odd):not(.city),
.category .post-item-wrapper:nth-of-type(odd) .post-item,
.program .wp-block-columns:nth-of-type(odd) {
	background-color: antiquewhite;
}


.people .wp-block-media-text {
	padding: 2em;
}

.people .wp-block-columns,
.program .wp-block-columns {
	padding: 2em;
}


.wp-block-group.people .wp-block-heading,
.program .wp-block-columns .wp-block-heading {
	color: var(--primary-color);
}

.people .wp-block-media-text img,
.people .wp-block-image img {
	border-radius: 20px;
}


.wpTemplateSimple header .menu-item a {
	font-size: 1.2em;
}

.wpTemplateSimple footer .menu-item a {
	padding-top: 1ex;
	font-size: 0.85em;
	color: var(--secondary-color);
}

.wpTemplateSimple .fullWidth img,
.wpTemplateSimple .fullWidth {
	width: 100%;
	padding: 0px;
}

/* TODO: Dodelat submenu*/
.wpTemplateSimple .sub-menu {
	display: none;
}

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

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

#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;
}

.featured-image img {
	max-height: 35vh;
	width: auto;
	display: block;
}

.home .post-item {
	border-radius: 20px;
	display: block;
	background-color: var(--bg-color);
	position: relative;
	padding-bottom: 50px;
}

.home .post-content {
	padding: 25px;
	display: flex;
	flex-direction: column;
}

.home .post-content .button {
	align-self: center;
	margin-top: auto;
	bottom: 20px;
	position: absolute;
}

.home .post-thumbnail img {
	max-width: 100%;
	max-height: auto;
	width: 100%;
	height: auto;
}

.home .post-thumbnail {
	max-height: 250px;
	height: 250px;
	overflow: hidden;
	border-radius: 20px 20px 0px 0px;
}

.home .latest-posts {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	padding: 20px 7vw;
}

.home .wp-block-heading.has-large-font-size {
	font-size: 3em !important;
}

.latest-posts .button {
	text-align: center;
}

.center {
	display: flex;
	justify-content: center;
	width: 100%;
}

.aligncenter {
	margin: auto;
}

.main-nav {
	font-weight: bold;
}

header {
	align-items: center;
	position: sticky;
	z-index: 1000;
	top: 0;
	background-color: var(--bg-color);
}

.site-logo img {
	width: 250px;
	height: auto;
}

.wpTemplateSimple .category-aktuality .header-image {
	margin-bottom: 1em;
}

.wpTemplateSimple .category-aktuality .post-thumbnail img,
.wpTemplateSimple .program .wp-block-image img {
	border-radius: 20px;
}

.wpTemplateSimple .program .wp-block-heading {
	margin-top: 0px;
}

.is-type-video.is-provider-youtube .wp-block-embed__wrapper {
	text-align: center;
}

.is-type-video.is-provider-youtube .wp-block-embed__wrapper iframe {
	margin: 0px auto;
}

.home .heart {
	position: relative;
	animation: heartbeat 1.6s ease-in-out infinite;
	transform-origin: center;
}

@media (max-width: 767px) {

	.home .heart {
		bottom: 5vw;
		left: 30px;
		width: 10vw;
	}

	.home .heartPlace {
		height: 5vw;
	}

	.wpTemplateSimple .program .wp-block-image img {
		aspect-ratio: 3 / 2 !important;
		width: 100%;
	}

	.site-logo img {
		width: 180px;
	}

	header {
		padding: 0px 10px;
	}

	.social-icons .dashicons {
		font-size: 30px;
	}

	.wpTemplateSimple .wp-block-image.alignleft,
	.wpTemplateSimple .wp-block-image.alignright {
		text-align: center;
		margin: 0px;
		display: block;
		float: none;
		display: block;
	}

	.wpTemplateSimple .wp-block-image.alignleft img,
	.wpTemplateSimple .wp-block-image.alignright img {
		margin: auto;
	}
}

@media (min-width: 768px) {

	/* .people .wp-block-heading,
	.people .wp-block-paragraph {
		padding-left: 1em;
		padding-right: 1em;
	}

	.people .wp-block-image {
		height: 100%;
	}

	.people .wp-block-image img {
		height: 100%;
	} */


	body.category .main-content .post-item-wrapper .post-item {
		padding: 1em;
	}

	body.category .main-content .post-item-wrapper,
	body:not(.home):not(.category) .main-content {
		padding-left: 10vw;
		padding-right: 10vw;
	}

	.wpTemplateSimple .home .wp-block-columns.half .wp-block-column {
		max-width: 50%;
		flex: 1;
		flex-wrap: wrap;
	}

	body {
		font-size: 19px;
	}

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

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

	.home .heart {
		bottom: 150px;
		left: 30px;
	}
}


@media (max-width: 1239px) {

	.footerAuthorship {
		padding: 1em;
	}

	.wpTemplateSimple header .menu-item a {
		font-size: 1.5em;
	}

	.last-in-header {
		display: flex;
	}

	.category .post-text .button {
		display: block;
		width: fit-content;
		margin: 0 auto;
	}

	.category .post-item {
		padding-bottom: 2em;
	}

	.category .post-thumbnail {
		text-align: center;
	}

	.category .post-thumbnail img {
		margin: auto;
	}

	.last-in-header .social-icons {
		flex: 1;
	}

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

	.main-nav {
		background: var(--bg-color);
		position: fixed;
		display: none;
		height: 100vh;
		width: 60vw;
		left: 0;
		top: 0;
		z-index: 1000;
	}

	.main-nav li {
		padding: 1ex;
	}

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

@media (min-width: 1240px) {

	.category .post-item {
		display: flex;
		gap: 30px;
		margin-bottom: 30px;
	}

	.category .post-thumbnail img {
		max-width: 20vw;
		height: auto;
	}

	body {
		font-size: 22px;
	}

	footer .social-icons,
	footer .footer-nav {
		padding-top: 22px;
	}

	.columns {
		align-items: stretch;
	}

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

	.primaryMenuPlace {
		padding-top: 10px;
	}

	footer ul {
		margin: 0px;
	}

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

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

	.home .post-item {
		flex: 1 1 calc(33.333% - 20px);
	}

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

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

	h1 {
		font-size: 215%;
	}

	h2 {
		font-size: 165%;
	}

	h3 {
		font-size: 135%;
	}

	h4 {
		font-size: 120%;
	}

	h5 {
		font-size: 110%;
	}

	h6 {
		font-size: 105%;
	}
}

@media (min-width: 1400px) {

	.firstHomeBlock .wp-block-paragraph,
	.firstHomeBlock .wp-block-heading {
		padding-right: 5vw;
		padding-left: 5vw;
	}

	.firstHomeBlock {
		margin-bottom: 0px;
	}

	body {
		font-size: 22px;
	}

	.nav-menu {
		gap: 2ex;
	}

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

@keyframes moveImg {
	0% {
		object-position: left top;
	}

	50% {
		object-position: right bottom;
	}

	100% {
		object-position: left top;
	}
}


@keyframes hideDialog {
	to {
		opacity: 0;
		transform: scale(0.1);
	}

	from {
		opacity: 1;
		transform: scale(1);
	}
}


@keyframes showDialog {
	from {
		opacity: 0;
		transform: scale(0.1);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes zoom {
	0% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.15);
	}

	100% {
		transform: scale(1);
	}
}


@keyframes heartbeat {
	0% {
		transform: scale(1);
	}

	20% {
		transform: scale(1.25);
	}

	40% {
		transform: scale(1);
	}

	60% {
		transform: scale(1.25);
	}

	80% {
		transform: scale(1);
	}

	100% {
		transform: scale(1);
	}
}