* {
	padding: 0;
	box-sizing: border-box;
}

*before,
*after {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

:root {
	--background: rgb(247, 244, 102);
}

body {
	font-family: "work sans", sans-serif;
	font-weight: 400;
	margin: 0;
	width: 100%;
}

header {
	text-align: center;
	position: relative;
	width: 100%;
	z-index: 1000;
	display: grid;
	grid-template-columns: 1fr 3em;
	align-items: center;
	justify-content: center;
	margin: 0;
	background: var(--background);
}

main {
	width: 100%;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

nav {
	position: absolute;
	text-align: justify;
	top: 100%;
	width: 100%;
	border-top: solid 2px;
	padding-top: 0.5rem;
	transform: translateY(-150%);
	background: var(--background);
	grid-row: 2/2;
}

nav[data-visible="true"] {
	transform: translateY(0);
}
nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

nav li {
	margin-bottom: 1em;
	margin-right: 1em;
}

nav a {
	color: rgb(0,0,0);
	text-decoration: none;
	font-size: 1.2rem;
	text-transform: uppercase;	
}

.nadpis {
	grid-column: 1/2;
	position: relative;
	top: 0rem;
	width: 100%;
	margin: 0.2em;
	text-transform: uppercase;
	color: rgb(0, 0, 0);
	background: var(--background);
}

.button {
	grid-column: 2/2;
	position: relative;
	border: none; 
	width: 2em;
	height: 2em;
	background-color: transparent;
	right: -1em;
}

img {
	width: 2em;
	height: 2em;
}

.ubytovani {
	justify-content: center;
	align-items: center;
	width: 95%;
	max-width: 1200px;
	padding: 1rem;
	position: relative;
	display: flex;
	flex-direction: column;
	background: rgb(255, 255, 255);
}

.foto {
	justify-content: center;
	align-items: center;
	width: 95%;
	max-width: 1200px;
	padding: 1rem;
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--background);
}

.mapa {
	align-items: center;
	width: 95%;
	max-width: 1200px;
	padding: 1em;
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--background);
}

.cenik {
	width: 95%;
	max-width: 1200px;
	padding: 1rem;
	position: relative;
	flex-direction: column;
	background: rgb(255,255,255);
}

.kontakt {
	justify-content: center;
	align-items: center;
	width: 95%;
	max-width: 1200px;
	padding: 1rem;
	position: relative;
	display: flex;
	flex-direction: column;
	background: rgb(255, 255, 255);
}


.obsah h1 {
	margin-bottom: 0.5rem;
}

.obsah p {
	text-align: justify; 
	padding: 1rem;
}

.kontakt {
	text-align: center;
}

.card {
	padding: 0.5rem;
	width: 98%;
	margin: auto;
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fill, minmax(320px, 500px));
	justify-content: center;

}

.vylet {
	border: solid 2px rgb(0,0,0);
	height: 200px;
	padding: 0.2rem;
	box-shadow: 0.3em 0.3em 0.6em rgb(73, 73, 73);
	display: flex;
	flex-direction: column;
}

.vylet h1 {
	font-size: 1.5rem;
	color: rgb(0,0,0);
	margin: 0.1rem;
}

.vylettext {
	text-align: justify;
	text-overflow: ellipsis;
	overflow-y: hidden;
}
.vylet a {
	color: rgb(51, 26, 194);
	text-align: right;
	position: relative;
	right: 0;
	bottom: 0;
}


a {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: rgb(0,0,0);
}


.cenik ul {
	Padding: 0.5rem;
}

table {
	border: solid 2px;
}

table li {
	list-style: none;
}

.gallery {
	padding: 10px;
	width: 98%;
	margin: auto;
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fill, 300px);
	justify-content: center;
}

.gallery img {
	width: 100%;
	height: 100%;
	box-shadow: 0.3em 0.3em 0.6em rgb(73, 73, 73);
	cursor: pointer;
	transition: 1s;
}

.gallery img:hover {
	filter: grayscale (100%);
	transform: scale(1.1);
}

.close {
	position: absolute;
	top: 1em;
	right: 1.5em;
	font-size: 1.5em;
	cursor: pointer;
}

.modal.appear {
	opacity: 1;
	pointer-events: all;
}

.modal.appear .modalImg,
.modal.appear .modalTxt {
	animation: zoom 0.3s linear;
}

@keyframes zoom {
	from {
		transform: scale(0);
	}
	to {
		transform: scale(1);
	}
}

@media screen and (min-width: 820px) {
	nav ul {
		display: grid;
		grid-template-columns: repeat(5, 1fr);
	}
	nav li {
		display: grid;
		justify-content: center;
		align-items: center;
		margin: 0.5em;
		transform: 0;

	}
	.button {
		display: none;
	}

	header {
		width: 100%;
		z-index: 1000;
		align-items: center;
		justify-content: center;
		background: var(--background);
		display: flex;
		flex-direction: column;
	}
	.nadpis {
		grid-row: 1/2;
		position: relative;
		top: 0rem;
		width: 100%;
		margin: 0.5em;
		text-transform: uppercase;
		color: rgb(0, 0, 0);
	}

	nav {
		position: relative;
		grid-row: 2/2;
		padding: 0;
		transform: translateY(0);
	}

	nav a:hover {
		transform: scale(1.1);
	}

	nav a:after {
		content: "";
		position: relative;
		background-color: rgb(0,0,0);
		height: 3px;
		width: 0;
		left: 0;
		bottom: 0;
		transition: 0.2s;
	}

	nav a:hover:after {
		width: 100%;
	}
}



