/** 
 * main.css
 * 
 * 1. General HTML tags
 * 2. Masthead area
 * 3. Main content and sidebar
 * 4. Footer
 * 5. Media queries for responsive layout
 * 6. Accessibility helpers
 * 
 */

/*********************************************************************
 * 1. General HTML tags
 *
 */

* {
	box-sizing: border-box; 
}

body {
	//background: #f5f5f5;
	//padding: 5%;
	padding-top: 0.5%;
	padding-bottom: 0.5%;
	//max-width: 1600px; 
	margin: 0 auto;
}

//body {
//	box-shadow:         3px 3px 5px 6px #ccc;
//}

body, td, input[type=text], textarea {
	//font-family: 'Lusitana', serif;
	font-family: 'Cabin', serif;
	/*font-family: 'Vollkorn', serif;*/
	font-size: 105%; 
	line-height: 1.8em;
	color: #444; 
}

img {
	max-width: 100%; 
}

h2 {
	font-weight: normal;
}

h3 {
	border-top: 1px solid #eee; 
	padding-top: 1em;
	color: #777; 
}

a {
	color: #333;
	text-decoration: none;
	border-bottom: 1px solid #ccc; 
}
	a:hover,
	.nav a:hover {
		color: #000;
		//border-color: #aaa; 
		border-color: #000000; 
	}

blockquote {
	margin-left: 0;
	padding-left: 1.5em;
	padding-right: 2em; 
	border-left: 4px solid #ddd; 
	font-style: italic; 
	color: #777; 
}

pre, code {
	background: #eee; 
	border: 1px solid #ddd; 
}

pre {
	font-size: 14px; 
	line-height: 1.4em;
	padding: 1em;
	border-left: 4px solid #ddd; 
}

/*********************************************************************
 * 2. Masthead area
 *
 */

.topnavdiv {
	display: flex;
	padding: 10px;
	background: linear-gradient(#2774c8, #1454a4);
	color: #fff;
}

nav.topnav {
	margin-left: 7.5em;
	margin-right: 2em;
}

.topnav, .topnav li {
	list-style: none; 
	padding: 0;
	margin: 0;
}
	.topnav li {
		float: left; 
		margin-right: 1em;
		//margin-bottom: 1em;
	}
	.topnav a {
		//padding: 0.25em 0.5em;
		padding: 0.25em 0.5em;
		text-decoration: none; 
		display: block;
		//background: #eee; 
		//color: #333; 
		color: #fff; 
		//border: 1px solid #eee; 
		//border: 1px solid #444; 
		border: 0;
		font-size: 115%;
		font-weight: bold;
	}
	.topnav a:hover {
		//background: #ddd;
		//border-color: #ddd; 
		//border-bottom: 2px solid #444;
		//border-bottom: 2px solid #fff;
		border-bottom: 2px solid rgb(92, 155, 223);
		//border-color: #000000; 
		//text-decoration: underline;
	}
	.topnav li.current a {
		//background: #ccc; 
		//border-color: #ccc;
		//border-bottom: 2px solid #444;
		//border-bottom: 2px solid #fff;
		border-bottom: 2px solid rgb(92, 155, 223);
	}
	.topnav li.edit a {
		background: none; 
	}


form.search {
	float: right; 
	margin: 0;
	width: 30%; 
}
	form.search input {
		margin: 0;
		padding: 0.25em 0.5em;
		border: 1px solid #ccc; 
		width: 100%; 
	}

.breadcrumbs {
	clear: both; 
	padding-top: 1em; 
}
	.breadcrumbs span:after {
		content: ">";
		color: #999; 
		padding-left: 0.5em;
		padding-right: 0.25em; 
	}

/*********************************************************************
 * 3. Main content and sidebar
 *
 */

#main {
	background: #ffffff;
	//border-top: 1px solid #eee; 
	//padding-top: 1em; 
	margin-top: 1em; 
	margin-left: 7.5em;
	margin-right: 2em;
	clear: both; 
}

#content {
	width: 65%; 
	float: left;
	//padding-bottom: 2em;
	padding-bottom: bottom: 0.5em;
}

#content-nosidebar {
	width: 100%; 
	float: left;
	padding-bottom: bottom: 0.5em;
}

#sidebar {
	width: 35%;
	padding-left: 5%; 
	float: left; 
	padding-bottom: 2em; 
}

.nav {
	margin-left: 0;
	padding-left: 0;
	list-style: none; 
}
	.nav .nav {
		padding-left: 1.5em;
		list-style: disc;
	}
	.nav li {
		margin: 1em 0;
	}

	.nav-tree li {
		margin-top: 0;
		margin-bottom: 0;
	}

	.nav a {
		font-weight: bold;
	}

	.nav-tree li a {
		color: #777; 
	}

	.nav .current > a {
		color: #333; 
	}

.align_left {
	/* for images placed in rich text editor */ 
	float: left;
	margin: 0 1em 0.5em 0; 
	position: relative;
	top: 0.5em;
	max-width: 50%; 
}

.align_right {
	/* for images placed in rich text editor */ 
	float: right;
	margin: 0 0 0.5em 1em;
	max-width: 50%; 
}

.align_center {
	/* for images placed in rich text editor */ 
	display: block;
	margin: 1em auto; 
	position: relative;
	top: 0.5em;
}

figure {
	display: table;
	width: 1px;
	margin: 1em 0;
}

figure img {
	display: table-row;
	margin-bottom: 0.5em;
}

figure figcaption {
	display: table-row;
	font-size: smaller;
	color: #777;
	line-height: 1.4em;
}

/* mmtj edits */
li {
	//list-style-image: url('../arrow-right.png');
	list-style-image: url('../checkmark.png');
}
li.address {
	list-style-image: url('../home.png');
}
li.map {
	list-style-image: url('../map.png');
}
li.phone {
	list-style-image: url('../phone.png');
}
li.email {
	list-style-image: url('../envelope.png');
}
li.web {
	list-style-image: url('../sphere.png');
}
li.fb {
	list-style-image: url('../facebook.png');
}
/* kod.djpw.cz/jenc */
#kontakty li {
	list-style-image: none;
	list-style-type: none;
}
#kontakty ul {
	margin: 0;
	padding: 0;
}

div.address_footer {
	//color: #fff;
	padding: 5px 10px 5px 10px;
}

.address_footer ul {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-start;
	
	margin: 0;
	padding: 0;
}

.address_footer li {
	background: url(../arrow-right.png) left center no-repeat;
	padding-left: 20px;
	margin-left: 0.5em;
	list-style-type: none;
	list-style-image: none;
}
.address_footer li::after {
	content: " |";
}
.address_footer li:last-child::after {
	content: "";
}

.address_footer li.address {
	background: url(../home.png) left center no-repeat;
}
.address_footer li.phone {
	background: url('../phone.png') left center no-repeat;
}
.address_footer li.email {
	background: url('../envelope.png') left center no-repeat;
}
.address_footer li.web {
	background: url('../sphere.png') left center no-repeat;
}
.address_footer li.fb {
	background: url('../facebook.png') left center no-repeat;
}

/* top dividing line */
hr {
	margin-bottom: 0;
}
/*********************************************************************
 * 4. Footer
 *
 */
div.header {
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	justify-content: space-between;
	margin-left: 7.5em;
	margin-right: 10em;
}
.nav li {
	diplay: inline-block;
}

.header h2 {
	margin-left: 1em;
}
.header h2:first-child {
	margin-left: 0;
}

.header h2.first {
	font-size: 200%;
}

.header h2.second {
	font-size: 150%;
}

.header h2.logo {
	font-size: 130%;
	font-style: italic;
}

#footer {
	clear: both; 
	//border-radius: 10px 10px 10px 10px;
	border-top: 2px solid #2774c8; 
	font-size: 80%; 
	//background: linear-gradient(#2774c8, #1454a4);
	//background: #f5f5f5;
	//background: rgb(92, 155, 223);
	//background: rgba(236, 239, 243, 0.8);
	//background: #e0f5ff;
	margin-top: 2em;
	margin-left: 7.5em;
	margin-right: 2em;
}

/*********************************************************************
 * 5. Media queries for responsive layout
 *
 */

@media only screen and (max-width: 767px) {
	/* mobile layout */ 

	body, td, textarea {
		font-size: 100%; 
	}
	div.header {
		margin-left: 1vw;
		margin-right: 1vw;
	}
	ul.topnav {
		display: flex;
		flex-direction: column;
	}
	nav.topnav {
		margin-left: 1vw;
		margin-right: 1vw;
	}
	.second-logo {
		visibility: hidden;
	}
	#main {
		margin-top: 0; 
		margin-left: 1vw;
		margin-right: 1vw;
	}
	#content, 
	#sidebar {
		float: none;
		width: 100%; 
		padding: 0; 
		margin-left: 0;
		margin-right: 0;
	}
	form.search {
		float: none; 
		width: 100%; 
	}
	#content {
		width: 100%; 
	}
	#sidebar {
		border-top: 1px solid #eee;
		padding-top: 1em; 
	}
	.align_left, .align_right, .align_center {
		display: block;
		float: none; 
		margin: 1em auto;
		max-width: 100%; 
	}
	#footer {
		margin-top: 0;
		margin-left: 1vw;
		margin-right: 1vw;
	}

}

@media only screen and (min-width: 1200px) {
	/* extra-wide desktop layout */ 
	
	body, td, textarea {
		font-size: 115%; 
	}
}
/** 
* Article:
* https://superdevresources.com/css-hamburger-menu/ 
**/

// hamburger menu
.hamburger {
    position: relative;
    display: inline-block;
    width: 1.25em;
    height: 0.8em;
    margin-right: 0.3em;
    border-top: 0.2em solid #fff;
    border-bottom: 0.2em solid #fff;
}

.hamburger:before {
    content: "";
    position: absolute;
    top: 0.3em;
    left: 0px;
    width: 100%;
    border-top: 0.2em solid #fff;
}
/*********************************************************************
 * 6. Accessibility helpers
 *
 */

/* Hide visually, but remain approachable for screenreader */

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	white-space: nowrap;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	border: 0;
}

/* Show bypass link on hover */

.element-focusable:focus {
	clip: auto;
	overflow: visible;
	height: auto;
}

/* Sample styling for bypass link */

.bypass-to-main:focus {
	top: 0;
	left: 0;
	width: 100%;
	height: 40px;
	line-height: 40px;
	text-align: center;
	background: #333;
	color: #fff;
}

/* logos */

img.main-logo {
	//width: 25vw;
	//height: 25vh;
	max-width: 100%;
}

img.second-logo {
	//width: 8%;
	//height: 8%;
	margin-bottom: 22.908px;
	max-width: 100%;
}
