/* BASIC */

html {
	scroll-behavior: smooth;
	min-width: 320px;
}

body {
	font-family: "Trebuchet MS", sans-serif;
	margin-top: 0;
	background: rgb(60, 60, 60);
	padding: 8px;
}

.chyba {
	clear: both;
	color: red;
}

.counter { 
	color: grey;
}

hr {
	margin: 30px 0;
    border-style: solid;
	border-color: grey;
}

a {
	text-decoration: none;
	color: rgb(70, 170, 180);
}

a:hover {
	color: rgb(250, 150, 0);
}

main > p, h4 {
	margin-left: 16px;
	margin-bottom: 4px;
}

h3 {
	margin-left: 12px;
	border-left: 6px solid rgb(70, 170, 180);
	padding-left: 6px;
}

h3 i {
	margin-right: 8px;
}

h2 {
	margin-top: 0;
	border-left: 10px solid rgb(250, 150, 0);
	padding-left: 6px;
}

h5 {
	margin: 20px 0;
	font-size: 1.1em;
}

/* HEADER */

@keyframes showUp {
	from {
	opacity: 0;
	bottom: -10px;
	} to {
		opacity: 1;
		bottom: 0;
	}
}

header {
	background-color: rgb(240, 240, 240);
	border-bottom: 2px solid black;
	border-radius: 10px;
	padding-top: 14px;
}

header .fa {
	margin: 0 16px;
}

header h1 {
	position: relative;
	display: inline-block;
	padding: 0;
	margin: 0;
	font-size: 1.8em;
	animation-name: showUp;
	animation-duration: 1s;
	animation-delay: 0s;
	animation-timing-function: ease;
}

/* MENU */

@keyframes rollDown {
    from {
		opacity: 0;
		margin-top: 28px;
	} to {
		opacity: 1;
		margin-top: 48px;
	}
}

nav {
	background-color: rgb(70, 170, 180);
	border-radius: 0 0 10px 10px;
	text-align: center;
	position: relative;
	height: 48px;
	margin-top: 14px;
}

nav input, nav .fa {
	display: none;
}

nav a {
    display: inline-block;
    color: white;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

nav a:hover {
	background-color: rgb(90, 190, 200);
	color: black;
}

@media screen and (max-width: 750px) {
	header h1 {
		font-size: 1.5em;
		display: block;
	}

	header .line {
		margin-left: 55px;
	}

	#menu {
		display: none;
		position: absolute;
		width: 100%;
		background: rgba(0, 0, 0, 0.8);
		margin-top: 48px;
		z-index: 10;
	}

	nav input:checked ~ #menu {
		display: block;
		animation-name: rollDown;
		animation-duration: 0.3s;
		animation-timing-function: ease;
	}

	nav .fa {
		display: block;
		color: white;
		position: absolute;
		top: 15px;
		right: 5px;
	}

	nav input {
		display: block;
		width: 40px;
		height: 40px;
		position: absolute;
		top: 0;
		right: 0;
		cursor: pointer;
		opacity: 0; /* hide this */
		z-index: 1; /* and place it over the hamburger */
	}

	nav a {
		margin-right: 30px;
		float: right;
		clear: both;
	}
}

/* CONTENT */

main {
	background-color: rgb(240, 240, 240);
	border-radius: 10px;
	margin-top: 10px;
	padding: 20px 15px 15px 15px;
	border-bottom: 2px solid black;
}

.sources {
	margin-top: 4px;
}

.sources li {
	margin-bottom: 4px;
}

/* GALLERY */

section {
	border-radius: 10px;
	background-color: rgb(70, 170, 180);
	margin: 5px;
}

section.single {
	padding: 20px;
}

section.single figure {
	width: 100%;
	margin: auto;
	float: none;
}

section.single figure img {
	border-radius: 0;
	box-shadow: none;
	margin-bottom: 0;
}

section:after {
	content: "";
	display: block;
	clear: both;
}

section figure {
	margin: 2%;
	text-align: center;
	float: left;
	width: 29.33%;
	color: white;
}

section figure img {
	width: 80%;
	height: auto;
	border-radius: 10px;
	box-shadow: 5px 5px rgb(60,60,60);
	margin-bottom: 15px;
}

/* FOOTER */

footer {
	color: rgb(180, 180, 180);
	text-align: center;
}
