:root {
	--krestni-size: 96px;
	--prijmeni-size: 32px;
	--datum-size: 72px;
	--time-size: 24px;
	--padding-size: 16px;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: libre-baskerville;
}

body {
	background-color: #ffd5d5;
}

h2 {
	font: 72px 'alex-brush';
}

img.intro {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	object-fit: cover;
	filter: blur(8px) brightness(0.5) grayscale(0.5);
}

div.intro {
	position: absolute;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
}

div.intro .info {
	margin: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	color: white;
}

div.intro .names {
	font: 96px 'alex-brush';
	color: gold;
}

div.intro .day {
	font: 16px 'libre-baskerville';
}

div.intro .date {
	font: 24px 'libre-baskerville';
}

nav {
	position: sticky;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100;
	
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	background-color: gray;
}

nav div {
	height: 100%;
	padding: 16px;
}

nav form {
	margin: auto 8px;
}

nav input {
	padding: 8px 16px;
}

nav a {
	height: 100%;
	padding: 16px;
	color: white;
	text-decoration: none;
	font-size: 18px;
}

nav a:hover {
	background-color: rgba(0, 0, 0, 0.1);
}

.content {
	position: relative;
	margin-top: 100vh;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

section {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 16px;
	margin: 16px 0;
}

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

.card {
	flex: 1 10%;
	margin: 16px;
	padding: 16px;
	max-width: 26%;
	background-color: white;
	border-radius: 8px;
	box-shadow: 0 0 8px gray;

	display: flex;
	flex-direction: column;
	align-items: center;
}
/* 
@media (max-width: 1200px) {
	.cards {
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	.card {
		width: 80%;
	}
} */

.card * {
	text-align: center;
	padding: 8px 16px;
}

.card img {
	width: 128px;
	margin: 16px auto;
	object-fit: cover;
	border-radius: 8px 8px 0 0;
}

iframe {
	width: 60%;
	aspect-ratio: 16 / 9;
	margin: 16px 0;
	border-radius: 8px;
	box-shadow: 0 0 8px gray;
}

.content section .map {
	margin: 16px 0;
	border-radius: 8px;
	box-shadow: 0 0 8px gray;
}

.content > a {
	display: block;
	content: "";
	height: 60px;
	margin: -60px 0 0 0;
}

div.footer.crop {
	width: 60%;
	aspect-ratio: 4 / 3;
	margin: 16px 0;
	border-radius: 8px;
	box-shadow: 0 0 8px gray;
	overflow: hidden;
}

img.footer {
	width: 150%;
	height: auto;
	margin: -15% 0 0 -28%;
}

input[type="submit"] {
	border: 1px solid #444;
	border-radius: 8px;
	background-color: #eee;
	color: black;
}
input[type="submit"]:hover {
	background-color: #ccc;
	cursor: pointer;
}

.download {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
}

.download p {
	padding: 8px;
}

.download > * {
	margin: 4px;
}

.download form button, .upload form button, .upload form input[type="file"] {
	border: 1px solid #444;
	border-radius: 8px;
	background-color: #eee;
	color: black;
	padding: 8px;
}
.download form button:hover, .upload form button:hover {
	background-color: #ccc;
	cursor: pointer;
}

.upload {
	max-width: 400px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
}

.upload * {
	margin: 8px;
}

.upload form {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}