* {
	font-family: 'Baloo 2', cursive;
}

html, body, p, h1, h2, h3, ul, nav, button {
	margin: 0;
	padding: 0;
	font-family: 'Baloo 2', cursive;
	font-size: 16px;
	color: black;
}

body {
	background-color: #ace2ef;
	font-size: 16px;	
	background-image: url("images/bpr_pozadie_tile_03.png");
    background-repeat: no-repeat;
	background-size: cover;
	min-height: 100vh;
	background: rgb(13,84,143);
background: -moz-linear-gradient(180deg, rgba(13,84,143,1) 35%, rgba(13,84,143,1) 65%, rgba(229,108,15,1) 95%);
background: -webkit-linear-gradient(180deg, rgba(13,84,143,1) 35%, rgba(13,84,143,1) 65%, rgba(229,108,15,1) 95%);
background: linear-gradient(180deg, rgba(13,84,143,1) 35%, rgba(13,84,143,1) 65%, rgba(229,108,15,1) 95%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#0d548f",endColorstr="#e56c0f",GradientType=1);
}

.indent {
	text-indent: 2em;
}

/*** MOBILE DISPLAY RULES ***/
header {
	background-color: #bf0000;
	/*background-color: rgb(229,107,16);*/
	color: white;
	padding: 35px 20px;
	text-align: center;
}

	#header-headline {
		
	}
	
	#header-logo {
		display: none;
	}

	#header-image {
		display: none;
	}

header h1 a {
	text-decoration: none;
	color: white;
	font-size: 190%;
	font-weight: 700;
}

header h2 {
	font-size: 100%;
	font-weight: lighter;
	color: white;
}

nav {
	background-color: white;
	padding: 0 5px;	
}

section {
	background-color: white;
	margin: 20px;
	padding: 20px;
	width: calc(100% - 80px);
}

	section h1 {
		margin: -20px;
		padding: 20px;
		color: #e56c0f;
		font-size: 180%;
	}

	section h2 {
		width: calc(100% - 20px);
		margin-top: 20px;
		padding: 10px;
		font-size: 120%;
		border-bottom: 5px solid #9fd8ef;
		color: rgba(8,21,57,1);
	}

	section p {
		margin: 10px 0;
		text-align: justify;
		padding: 0 5px;
	}

	section ul {
		margin: 10px 0 10px 1.5em; 
	}
	
	section p, section ul, section ul li {
		font-size: 100%;
	}

.center {
	display: block;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

aside {
	background-color: transparent;
	margin: 20px;
	width: calc(100% - 40px);
}

.aside-part {
	width: 100%;
	background-color: red;
	margin-bottom: 20px;
}

.aside-part-headline {
	width: calc(100% - 42px);
	border: 1px solid #d9d9d9;
	padding: 20px;
	font-weight: bold;
	background-color: #f2f2f2;
	font-size: 120%;
}

.aside-part-content {
	padding: 20px;
	background-color: white;
	font-size: 100%;
}

.aside-part-content img {
	width: 100%;
}

.aside-part-content ul {
	margin-left: 1.5em;
}

footer {
	padding: 15px calc(10% + 20px);
	bottom: 0;
	width: calc(80% - 40px);
	color: white;
	font-weight: lighter;
}

footer p {
	line-height: 1.2em;
	font-size: 100%;
	text-align: center;
	color: white;
}

footer a {
	text-decoration: none;
	color: white;
	font-weight: lighter;
}

	#footer-extra-contact {
		display: none;
		color: white;
	}
	
	#footer-contact {
		display: block;
		float: none;
		color: white;
	}

.warning { 
	background-color: #ffff66;
	padding: 5px;
}

.innovation { 
	border: none;
	padding: 5px;
}

/*** SPECIAL MESSAGE CLASSES ***/
.success {
	color: green;
}

.error {
	color: red;
}


/* POSTS - REPORTAZE THUMBNAILS */
.post {
	position: relative;
	padding: 10px;
}

.post img {
	display: none;
	width: 25%;
	float: left;
	
}

.excerpt {
	float: right;
	width: 100%;
	max-height: 150px;
	overflow: hidden;
	margin: 0;
	text-align: justify;
	text-indent: 2em;
	display: block;
}

.post-excerpt-more-button {
	float: right;
	position: absolute;
	left: 0;
	bottom: 0;
	right: 0;
	padding: 10px;
	text-align: center;
	background-color: white;
	text-decoration: none;
}

.post-excerpt-more-button:hover {
	background-color: #7abcff;
	color: white;
}

.post-body {
	
}

.post-author {
	text-align: right;
	font-style: italic ;	
}

.post-part {
	text-indent: 2em;
	text-align: justify;
}

.justify-gallery {
	display: flex;
	flex-direction: row;
	justify-content: center;
   
	margin-top: 5px;	
	
}

.justify-gallery-column {
	display: flex;
	
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: center;
}

.post-img-description {
	clear: none;
	
}

.in-post-img {
	width: calc(100% - 10px);
	padding: 5px;
}

/* POST LIST PAGE NAVIGATION */
.page-select {
	padding: 10px 10px 0 10px;
	margin-top: 20px;
	border-top: 1px solid #7abcff;
	text-align: center;
}

.page-selector {
	border-right: 1px solid #7abcff;
	padding: 0 10px;
	text-decoration: none;
	width: auto;
	display: inline-block;	
}

.page-selector:last-of-type {
	border-right: none;
}

#current-page-selector {
	background-color: #7abcff;
	color: white;
}

.page-selector:hover {
	background-color: #7abcff;
	color: white;
}



/* BASIC RULES */
	.left {
		float:left;
	}
	
	.right {
		display: block;
		text-align: right;
		float: right;
	}
	
	.right img {
		max-height: 125px;
		/*transform: translatey(-20px);*/
		position: absolute;
		top: 20px;
		right: 10%;
	}


/* TABULKY: MBL-REGISTRACIA, MBL-VYSLEDKY */
	.basic-table {
		border-collapse: collapse;
		width: 100%;
		table-layout: auto;
		vertical-align: 50px;
	}
	
	.basic-table tr {
		border-bottom: 1px solid black;
	}
	
	.basic-table tr:nth-child(2n) {
		background-color: #e6f2ff;
	}
	
	.basic-table td {
		text-align: center;
	}
	
	/* *************** BPR REGISTRATION FORM *************** */
	#bpr-reg-form label {
		display: block;
		padding-top: 12px;
		font-size: 17px;
	}
	
	#bpr-reg-form input[type="text"], #bpr-reg-form input[type="email"] {
		width: calc(100% - 5px);
		font-size: 17px;
	}
	
	/*#bpr-reg-form input[type="checkbox"] {*/
	/*	width: auto;*/
	/*	background-color: red;*/
	/*}*/
	
	#bpr-reg-form fieldset {
		margin-top: 20px;		
	}
	
	#bpr-reg-form legend {
		font-weight: bold;
		font-size: 17px;		
	}
	
	#bpr-reg-form button {
		margin-top: 20px;		
	}
	
	.required:after {
		content: " *";
		color: red;
	}

	form button {
		padding: 10px;
	}

/* **************** MAIN NAVIGATION **************** */
nav a {
	display: block;
}

.dropbtn, #mobile-menu-button {
	color: black;
	font-size: 16px;
	border: none;
	text-align: center;
	border-bottom: 1px solid red;
	text-decoration: none;
	background-color: white;
	padding: 15px;
}

.nav-part {
	position: relative;
	display: block;
}

.dropdown-content, #nav-core {
	display: none;
	position: relative;
	min-width: 160px;
	z-index: 1;
}

.dropdown-content {
	background-color: #cce5ff;
	box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

.dropdown-content a, #nav-core a {
	color: black;
	padding: 16px;
	text-decoration: none;
	display: block;
	text-align: center;
}

.dropdown-content a {
	background-color: #cce5ff;
}

.dropdown-content a:hover, #nav-core a:hover {

}

.dropdown-content a:hover {
	background-color: #e6f2ff;
}

.nav-part:hover .dropbtn {
	background-color: #e6f2ff;
}

#mobile-menu-button {
	background-color: white;
	color: black;
}

.active .dropbtn {
	padding-bottom: 12px !important;
	border-bottom: 4px solid #f2a300 !important;
	background-color: #e6f2ff;
}

@media all and (min-width: 900px) {
	.dropbtn, #mobile-menu-button {
		padding: 10px 0 9px 0;
		color: white;
		text-align: center;
		text-decoration: none;
		border-bottom: none;
	}

	nav {
		text-align: center;
	}

	.nav-part {
		display: inline-block;
	}

	.dropdown-content, #nav-core {
		position: absolute;
		color: red;
	}
	
	.dropdown-content a {
		color: black !important;
		padding: 7px 16px !important;
		text-align: left !important;
		background-color: white;
	}

	#mobile-menu-button {
		display: none;
	}

	#nav-core {
		display: block !important;
		position: relative;
	}

	.nav-part:hover .dropdown-content, nav:hover #nav-core, .nav-part:hover .nav-part {
		display: block;
	}

	#nav-core a:hover {
		padding-bottom: 12px;
		border-bottom: 4px solid #0d548f;
	}

	.dropdown-content a:hover {
		padding-bottom: 7px !important;
		border-bottom: none !important;
		background-color: #f2a300 !important;
	}

	.nav-part:hover .dropbtn {
		padding-bottom: 12px !important;
		border-bottom: 4px solid #0d548f !important;
	}
}

@media all and (min-width: 700px) {
	/* ***** ZOZNAM REPORTAZI ***** */
	.post img {
		width: 25%;
		float: left;
		display: block;
	}

	.excerpt {
		width: calc(75% - 20px);
	}

	.post-excerpt-more-button {
		display: none;
	}
}
	
/* TABLET DISPLAY RULES */
@media only screen and (min-width: 1000px) {
	header {
		padding: 20px;
		text-align: center;
		background-color: #bf0000;
	}
	
	header h1 a {
		font-size: 250%;
	}
	
	header h2 {
		font-size: 100%;
	}
	
	nav {
		background-color: white;
		padding: 0 calc(10% + 20px);
		text-align: center;
	}
	
	section {
		background-color: white;
		margin: 20px 0 20px 20px;
		/* margin-bottom: calc(4.8em + 50px); */
		padding: 20px;
		float: left;
		width: calc(70% - 60px);
	}
	
	section h1 {
		font-size: 2em;
	}
	
	section h2 {
		width: calc(100% - 10px);
		margin-top: 20px;
		padding: 5px;
		font-size: 1em;
	}
	
	section p {
		margin: 10px 0;
	}
	
	section ul {
		margin: 10px 0 10px 30px; 
	}
	
	section p, section ul, section ul li {
		font-size: 1em;
	}
	
	section img {
		display: block;
		margin-left: auto;
		margin-right: auto;
		max-width: 100%;
	}
	
	.center {
		display: block;
		margin-left: auto;
		margin-right: auto;
		width: auto;
	}
	
	aside {
		background-color: transparent;
		margin: 20px 20px 0 0;
		float: right;
		width: calc(30% - 40px);
	}
	
	.aside-part {
		width: 100%;
		background-color: red;
		margin-bottom: 20px;
	}
	
	.aside-part-headline {
		width: calc(100% - 42px);
		border: 1px solid #d9d9d9;
		padding: 20px;
		font-weight: bold;
		background-color: #f2f2f2;
		font-size: 1em;
	}
	
	.aside-part-content {
		padding: 20px;
		background-color: white;
		font-size: 1em;
	}
	
	.aside-part-content ul {
		margin-left: 30px;
	}
	
	/*	
	.aside-part:last-of-type {
		margin-bottom: calc(4.8em + 50px);
	}
		
	footer {
		background-color: rgba(191, 64, 64, 0.7);
		padding: 15px calc(10% + 20px);
		position: fixed;
		bottom: 0;
		width: calc(80% - 40px);
		color: white;
		font-weight: lighter;
	}
	*/
	
	footer p {
		line-height: 1.2em;
		font-size: 1em;
		text-align: center;
	}
}		
	
/*** DESKTOP DISPLAY RULES ***/
@media only screen and (min-width: 1150px) {
	
	#header-headline {
		float:left;
		border-left: 5px solid white;
		padding-left: 11px;
	}
	
	#header-logo {
		display: block;
		text-align: right;
		float: right;
	}
	
	header {
		padding: 50px calc(10% + 20px);
		text-align: left;
		background-color: #bf0000;
	}
	
	header h1 a {
		font-size: 250%;
	}
	
	header h2 {
		font-size: 100%;
	}

	#header-image {
		display: block;
		float: right;
		width: calc(20% * 0.6);
		margin-right: calc((20% * 0.2) + 10px);
		
	}
	
	nav {
		background-color: white;
		padding: 0 calc(10% + 20px);
		text-align: left;
	}
	
	section {
		background-color: white;
		margin: 20px 0 20px 10%;
		/* margin-bottom: calc(4.8em + 50px); */
		padding: 20px;
		float: left;
		width: calc(60% - 50px);
	}
	
	section h1 {
		font-size: 2em;
	}
	
	section h2 {
		width: calc(100% - 10px);
		margin-top: 20px;
		padding: 5px;
		font-size: 120%;
	}
	
	section p {
		margin: 10px 0;
	}
	
	section ul {
		margin: 10px 0 10px 30px; 
	}
	
	section p, section ul, section ul li {
		font-size: 1em;
	}
	
	section img {
		display: block;
		margin-left: auto;
		margin-right: auto;
		max-width: 100%;
	}
	
	.center {
		display: block;
		margin-left: auto;
		margin-right: auto;
		width: auto;
	}
	
	aside {
		background-color: transparent;
		margin: 20px 10% 0 0;
		float: right;
		width: calc(20% - 10px);
	}
	
	.aside-part {
		width: 100%;
		background-color: red;
		margin-bottom: 20px;
	}
	
	.aside-part-headline {
		width: calc(100% - 42px);
		border: 1px solid #d9d9d9;
		padding: 20px;
		font-weight: bold;
		background-color: #f2f2f2;
		font-size: 1em;
	}
	
	.aside-part-content {
		padding: 20px;
		background-color: white;
		font-size: 1em;
	}
	
	.aside-part-content ul {
		margin-left: 30px;
	}
	
	/*	
	.aside-part:last-of-type {
		margin-bottom: calc(4.8em + 50px);
	}
		
	footer {
		background-color: rgba(191, 64, 64, 0.7);
		padding: 15px calc(10% + 20px);
		position: fixed;
		bottom: 0;
		width: calc(80% - 40px);
		color: white;
		font-weight: lighter;
	}

	*/		

	
	footer p {
		line-height: 1.2em;
		font-size: 1em;
		float: left;
		text-align: left;
	}
		#footer-contact {
			display: block;
			float: left;
		}
		#footer-extra-contact {
			display: block;
		}
	
	.left {
		float:left;
	}
	
	.right {
		display: block;
		text-align: right;
		float: right;
	}
	
	.right img {
		max-height: 125px;
		/*transform: translatey(-20px);*/
		position: absolute;
		top: 20px;
		right: calc(10% + 20px);
	}
	
}

#form-mbl-change-delete input, textarea {
	width: 100%;
}

#form-mbl-change-delete input[type="radio"] {
	width: auto;
	text-align: left;
	float: left;
	padding-top: 12px;
}

#form-mbl-change-delete label {
	float: left;
	width: auto;
}

.table-container {
	overflow-x: auto;
}

.clearfix {
	clear: both;
}

input[type=button] {
	font-family: Baloo 2;
}

.no-decor {
	text-decoration: none;
}

.flex-wrapper {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
}

.basic-table td[rowspan] {
	background-color: white;
}
