/*
Theme Name:		Otevřené Křivoklátsko
Theme URI:		https://www.otevrenekrivoklatsko.cz
Author:			Petr Šabach
Author URI:		https://sabach.studio
Version:		2022
*/

@import url('typo_180222.css');

body {
	font-family: 'Cabin';
	font-size: 1em;
	line-height: 1;
	background: #fff;
	color: #000;
}
body::after {
	content: '';
	position: absolute;
	z-index: -1;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	background: url(img/line.svg) bottom center / cover no-repeat;
}
body::after {
	background-position: left center;
	background-size: auto 100% ;
}

#header .wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	padding: 1.5em;
}

#logo {
	font-family: 'Recoleta-Black';
	font-weight: 700;
	font-size: 3.5em;
	text-decoration: none;
	flex-shrink: 0;
	width: 2em;
	height: 2em;
	background: #fbd7cb;
	color: #f04a1d;
	border-radius: 50%;
	text-align: center;
	overflow: hidden;
}
#logo span,
#logo b {
	position: relative;
	top: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	line-height: 1.25;
}
#logo span {
	font-size: 1rem;
}
#logo.alt b {
	top: 100%;
}
#logo.alt span {
	top: -100%;
}
#logo.alt {
	background: #01a657;
	color: #d5e9d8;
}

#menu {
	background: #000;
	color: #fff;
	border: none;
	padding: 0.75em 1.5em;
	border-radius: 50%;
	font: inherit;
	cursor: pointer;
	outline: inherit;
	-webkit-appearance: none;
    -moz-appearance: none;
	font-family: 'Recoleta-Black';
	font-weight: 700;
	font-size: 1.25em;
	text-transform: uppercase;
}

#header nav {
	overflow: hidden;
	max-height: 0;
	flex-basis: 100%;
}

body.menu-open #menu {
	background: #f04a1d;
}
body.menu-open #header nav {
	max-height: 200vh;
}
body.menu-open #menu-social {
	display: block;
}

.menu {
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: 1.25em;
	padding-top: 1em;
}
.menu li {
	display: inline-block;
	margin: .75rem 0;
}
.menu a {
	text-decoration: none;
	color: inherit;
}
#menu-menu {
	font-weight: 700;
}
#menu-menu li {
	display: block;
}
#menu-menu a:hover {
	color: #01a657;
}
.current-menu-item {
	color: #666;
}
#menu-more {
	display: flex;
	flex-wrap: wrap;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 2px;
}
#menu-more li {
	flex-basis: 50%;
}
#menu-more li:last-child {
	flex-basis: 100%;
	text-transform: none;
	letter-spacing: 0;
}

#menu-social {
	display: none;
	font-size: 0;
	flex: 100%;
	text-align: center;
}
#menu-social li {
	margin: 2px;
}

#menu-social svg path {
	fill: #F04A1D;
}
#menu-social a:hover circle {
	fill: #fbd7cb;
}

h1, #calendar h2 {
	font-family: 'Recoleta-Black';
	font-weight: 700;
	text-align: center;
	margin: 0;
	font-size: 2.5em;
}
article h2 {
	font-family: 'Recoleta-Black';
	font-weight: 700;
	font-size: 1em;
}
.feature h2 {
	font-size: 1.25em;
	line-height: 1.25;
}
h2 {
	font-size: 1em;
}
#content h2 {
	line-height: 1.5;
}
h3 {
	font-size: 1em;
}
#intro h1 + p,
h1 + dl {
	margin: 2em 0;
}
h1 + p {
	margin: 1em 0;
}
h1 + .desc {
	text-align: center;
}

.btn {
	display: inline-flex;
	align-items: center;
	padding: 0 1.5em;
	height: 3em;
	box-sizing: border-box;
	background: #000;
	color: #fff;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	border-radius: 99em;
	text-transform: uppercase;
	letter-spacing: 2px;
	cursor: pointer !important;
	font-weight: 700;
}
.btn:hover {
	background: #f04a1d;
}
.btn.alt {
	border: 2px solid;
	color: #000;
	background: none;
}
.btn.alt:hover {
	color: #f04a1d;
}
.btn + .btn {
	margin-left: 1.5em;
}

.wrap {
	max-width: 1200px;
	margin: 0 auto;
	box-sizing: border-box;
}
main .wrap,
#footer .wrap {
	padding: 0 1.5em;
}

.wrap li {
	padding: .5em 0;
}
.wrap p,
#content ul,
#content ol {
	line-height: 1.5;
}
#content li {
	padding: .5em 0 .5em 1em;
}

#intro {
	position: relative;
	text-align: center;
	padding-bottom: 10vh;
}

#intro h1 {
	color: #01A657;
	margin: 0;
}
#intro h1,
#intro p {
	position: relative;
	z-index: 100;
}
#intro img {
	position: absolute;
	z-index: ;
	max-width: 100%;
	right: 30vw;
	bottom: 5vh;
	clip-path: url(https://www.otevrenekrivoklatsko.cz/wp-content/themes/ok.cz/style.css?ver=1709356264#shape);
}

#sign, #read {
	position: relative;
	z-index: 100;
	font-family: 'Recoleta-Black';
	font-weight: 700;
	font-size: 1.25em;
	letter-spacing: 0;
	justify-content: space-around;
	width: 9em;
	height: 4.5em;
	padding: 0 1em;
	border-radius: 50%;
	transform: rotate( 10deg );
}
#read {
	transform: rotate( -10deg );
}

#timeline {
	padding: 3.5em 0 7em;
	background: #F04A1D;
	color: #fff;
}
#timeline h1 {
	color: #fbd7cb;
}

#calendar {
	margin-top: 3em;
}
#calendar figure {
	position: relative;
	background: #fbd7cb;
	border-radius: 10px;
	color: #F04A1D;
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	justify-content: center;
	width: 12.5em;
	height: 16.5em;
	padding: 1em;
	margin: 1.5em 1.25em 0;
	box-sizing: border-box;
}
#calendar h2 {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: center;
	flex: 1;
	height: 50%;
	font-size: 2.5em;
}
#calendar .act {
	background: #01A657 !important;
	color: #d5e9d8 !important;
}
#calendar .act h2 {
	color: #fbd7cb !important;
	font-size: 5em;
}
#calendar a:not(.btn) {
	text-decoration: none;
	color: inherit;
	border-bottom: 1px solid;
}
#calendar .is-selected {
	background: #fff;
	color: #000;
}
#calendar figure small {
	display: block;
	font-size: 0.5em;
	line-height: 2;
}
#calendar figcaption {
	text-align: center;
	line-height: 1.5;
	font-size: .8125em;
}
#calendar figure::before,
#calendar figure::after {
	content: '';
	position: absolute;
	top: -1.5em;
	left: 1.5em;
	width: 1em;
	height: 3em;
	background: #DFDFDF;
	border-radius: 99em;
}
#calendar figure::after {
	right: 1.5em;
	left: auto;
}

#park {
	padding: 3.5em 0;
	position: relative;
	color: #D5E9D8;
	background: #01a657;
}
#park::after {
	content: '';
	position: absolute;
	z-index: 0;
	left: 0;
	right: 0;
	bottom: 0;
	height: 25%;
	background: url(img/park.svg) no-repeat;
	background-size: cover;
	background-position: 10% bottom;
}

#park h1 {
	color: #fff;
	text-align: left;
	position: relative;
	z-index: 2;
	font-size: 4.5em;
}
#park img {
	clip-path: url(https://www.otevrenekrivoklatsko.cz/wp-content/themes/ok.cz/style.css?ver=1709356264#parkShape);
	position: absolute;
	right: 10vh;
	top: -10vh;
	max-width: 100%;
}
#park .wrap > div + div {
	position: relative;
}

article a {
	text-decoration: none;
	color: #000;
}
article a:hover {
	color: #f04a1d;
}
.meta {
	display: inline-flex;
}
.meta a {
	color: #f04a1d;
	text-transform: uppercase;
	letter-spacing: 2px;
}
.meta a:hover {
	border-bottom: 1px solid;
}
.meta span::before {
	color: #000;
	content: '\2022';
	display: inline;
	margin: 0 1em;
}

.feature {
	margin-top: 1.5em;
	padding: 2.5em 1em;
	text-align: center;
	background: #fbd7cb;
	border-radius: 10px;
}
.feature h2 {
	margin: .5em auto;
	max-width: 12em;
}

.items article {
	position: relative;
	margin-top: 1.5em;
	padding: 2.5em 1.5em;
	border: 3px solid #DFDFDF;
	border-radius: 10px;
	background: #fff;
}
.items h2 {
	margin: .5em auto 0;
	min-height: 2em;
}
article small {
	font-size: .8125em;
}
article.fill {
	background: #f04a1d;
	color: #fff;
	border: none !important;
}
.items article a::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
}
.fill a {
	color: #fff;
}
.fill a:hover {
	color: #fbd7cb;
}

main {
	padding-top: 10vh;
	padding-bottom: 3.5em;
}
main h1 {
	color: #f04a1d;
}
#places {
	margin-bottom: 7em;
}
#map {
	margin-top: 2.5em;
	background: #dfdfdf;
	height: 65vh;
	border-radius: 10px;
}
.leaflet-container {
	font-family: inherit;
	font-size: 1rem;
}
.leaflet-popup-content {
	font-weight: 700;
}
.leaflet-popup-content a {
	color: inherit;
}

#content dt {
	font-size: 1.5em;
	line-height: 1.5;
	font-weight: 700;
	cursor: pointer;
	margin-bottom: 1.5em;
}
#content dt:hover,
#content dt.active {
	color: #01a657;
}
#content dd {
	display: none;
	margin: 1em 0 3.5em;
}
#content blockquote {
	margin: 3.5em 0;
	padding-left: 1.5em;
	border-left: 3px solid #01a657;
	color: #666;
	font-style: italic;
}
#content a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid;
}
#content img {
	max-width: 100%;
	height: auto;
}
#content .wp-block-image {
	margin: 2.5em 0;
}

.notice {
	text-align: center;
	max-width: 80%;
	margin: auto;
	font-weight: 700;
}

#footer {
	position: relative;
	background: url(img/foot.svg) 75% / cover no-repeat;
	color: #fff;
	text-align: center;
}
#footer::after {
	content: '';
	position: absolute;
	z-index: 0;
	left: 0;
	right: 0;
	bottom: 70%;
	height: 80%;
	background: url(img/mushroom.svg) no-repeat;
	background-size: cover;
	background-position: 90% 100%;
}
#footer .wrap {
	padding: 3.5em 1.5em 1.5em;
}
#footer h3 a {
	position: relative;
	z-index: 1000;
	font-family: 'Recoleta-Black';
	font-weight: 700;
	color: #d5e9d8;
	text-decoration: none;
}
#footer h3 a:hover {
	color: #fff;
}
#foot-social li {
	margin: 2px;
}
#foot-social svg path {
	fill: #f04a1d;
}
#foot-social svg circle {
	fill: #d5e9d8;
}
#foot-social a:hover circle {
	fill: #fff;
}

.flickity-button {
	background: #fff;
	opacity: 1 !important;
}
.flickity-prev-next-button {
	width: 2.5em;
	height: 2.5em;
}
.flickity-button-icon {
	fill: #f04a1d;
}
.flickity-button:hover .flickity-button-icon {
	fill: #000;
}
.flickity-button:active {
	background: #fbd7cb;
}

section#blog {
	padding: 5em 0 3.5em;
}

@media only screen and (min-width: 768px) {
	body {
		font-size: 1.25em;
	}
	
	#logo span {
		font-size: 1.25rem;
	}
	
	#header .wrap {
		padding: 1.5em 2em;
	}
	#header nav {
		display: flex;
	}
	#header nav ul {
		flex-basis: 50%;
	}
	
	#menu-more {
		display: block;
	}
	#menu-more li {
		padding-top: 1.75em;
		display: block;
	}
	
	#menu-social {
		min-width: 140px;
	}
	
	h1, #calendar h2, #logo {
		font-size: 3.5em;
	}
	article h2 {
		font-size: 2em;
	}
	.feature h2 {
		font-size: 2.5em;
		line-height: 1;
	}
	h2 {
		font-size: 1.5em;
	}
	h3 {
		font-size: 1.5em;
	}
	
	#main h1 {
		margin: 0 -1em 1em;
	}
	
	#intro .wrap,
	#content .wrap {
		max-width: 36em;
	}
	
	#intro p {
		font-size: 1em;
	}
	#intro img {
		max-width: 50%;
		right: 5vw;
		bottom: 10vh;
	}
	
	#calendar figure {
		width: 16.5em;
		height: 20em;
		padding: 2%;
	}
	#calendar figcaption {
		font-size: 1em;
	}
	
	#park {
		padding: 3.5em 2em;
	}
	#park .wrap {
		display: flex;
		justify-content: space-between;
		flex-wrap: nowrap;
	}
	#park h1 {
		font-size: 4em;
	}
	#park .wrap div {
		width: 50%;
	}
	#park .wrap div:first-child {
		position: relative;
	}
	#park::after {
		height: 50%;
		background: url(img/park.svg) center / 100% auto no-repeat;
	}
	#park img {
		right: auto;
		top: -15vh;
		max-width: 150%;
	}
	
	#blog {
		padding: 0 2em;
	}
	section#blog {
		padding: 7em 2em 3.5em;
	}
	
	.items {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-gap: 1.5rem;
	}
	.feature {
		padding: 5em 20%;
	}
	
	.flickity-prev-next-button {
		width: 3.5em;
		height: 3.5em;
	}
}

@media only screen and (min-width: 1200px) {
	#logo {
		transition: 0.5s background-color;
	}
	#logo span,
	#logo b {
		transition: 0.5s top;
	}
	#logo.alt,
	#logo:hover {
		background: #01a657;
		color: #d5e9d8;
	}
	#logo.alt:hover {
		background: #fbd7cb;
		color: #f04a1d;
	}
	#logo:hover b {
		top: 100%;
	}
	#logo:hover span {
		top: -100%;
	}
	#logo.alt:hover b {
		top: 0;
	}
	#logo.alt:hover span {
		top: 0;
	}	
	
	#menu {
		display: none;
	}
	#header nav {
		overflow: visible;
		flex: 1;
		flex-wrap: wrap;
		max-height: none;
		align-self: center;
		text-align: center;
	}
	#header nav ul {
		flex: 100% 1 0;
	}
	#menu-menu {
		font-size: 1em;
		order: 2;
	}
	.menu li {
		margin: 0 1em;
	}
	#menu-menu li,
	#menu-more li {
		display: inline-block;
	}
	#menu-more {
		order: 1;
		font-size: 80%;
		margin-top: -3em;
	}
	#menu-more li {
		border-bottom: 1px solid transparent;
	}
	#menu-more li:hover,
	#menu-more .current-menu-item {
		border-bottom: 1px solid;
	}
	#menu-social {
		display: block;
		flex: 140px 0 0;
		align-self: center;
	}

	#park h1 {
		font-size: 6em;
	}
	
	.items {
		grid-gap: 2.5rem;
	}
	.items article {
		padding: 2.5em 5em 2.5em 1.5em;
	}
	
	#content {
		background: #fff;
	}
	
	#footer {
		background-position: center top;
	}
	#footer::after {
		height: 125%;
		bottom: 40%;
		background-position: center top;
	}
}