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

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

* {
	box-sizing: border-box; 
}

body {
	padding: 0;
	max-width: 1600px;
	/*max-width: 960px;*/
	margin: 0 auto; 
    background-image: url("bg_fim_texture.png");
    background-repeat: repeat;
/*    background-position: top center;
    background-attachment: fixed;*/
}

#outer_body {
	max-width: 1060px;
	background: #a3a3a3;
	background: white;
	margin: 0 auto; 
	padding-top: 20px;
	/*margin-top: 30px;*/
	/*border-top: 30px solid #00aff0;*/
}

#inner_body {
	max-width: 960px;
	margin: 0 auto; 
}


body, td, input[type=text], textarea {
	/*font-family: 'Quattrocento', serif;*/
	font-family: 'Alegreya Sans', sans-serif;
	font-weight: 300;
	font-size: 110%; 
	line-height: 1.8em;
	color: #444; 
}

/*p {
	font-size: 15px;
}
*/
img {
	max-width: 100%; 
}

h1 {
	color:#00aff0;
	font-size: 28px;
}

h2 {
	color:#00aff0;
	font-size: 24px;	
}

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

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

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
 *
 */

.topnav, .topnav li {
	list-style: none; 
	padding: 0;
	margin: 0;
	margin-top: 10px;

}
	.topnav li {
		float: left; 
		margin-right: 1em;
		margin-bottom: 1em;
	}
	.topnav a {
		padding: 0.25em 0.5em;
		text-decoration: none; 
		display: block;
		background: #eee; 
		color: #333; 
		border: 1px solid #eee; 
	}
	.topnav a:hover {
		background: #ddd;
		border-color: #ddd; 
	}
	.topnav li.current a {
		background: #ddd; 
		border-color: #ddd; 
	}
	.topnav li.edit a {
		background: none; 
	}

.languages {
	list-style: none; 
	margin: 0;
	padding: 0; 
	float: right;
	width: 30%; 
	font-size: 80%; 
}

	.languages li {
		list-style: none; 
		display: inline-block;
		margin: 0;
		padding: 0;
	}

	.languages a {
		padding: 0 0.5em;
		border: none; 
		display: inline;
		border-left: 1px solid #ccc; 
	}
		.languages li.current a {
			font-weight: bold; 
		}
		.languages li:first-child a {
			border: none; 
			padding-left: 0;
		}



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

.breadcrumbs {
	font-size: 80%; 
	width: 70%; 
	float: left;
	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 {
	/*border-top: 1px solid #eee; */
	padding-top: 1em; 
	margin-top: 1em; 
	clear: both; 
	text-align: justify;
}

#content {
	width: 100%; 
}

#content, #sidebar {
	padding-bottom: 2em; 
}

body.has-sidebar #content {
	width: 70%; 
	float: left;
}

body.has-sidebar #sidebar {
	width: 30%;
	padding-left: 5%; 
	float: left; 
}

.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; 
	}

#sidebar img + blockquote {
	margin-top: 0; 
}

.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;
}

/*********************************************************************
 * 4. Footer
 *
 */

#footer {
	clear: both; 
	border-top: 1px solid #eee; 
	/*font-size: 80%; */
	/*margin-bottom: 40px;*/
	/*padding: 0 0 10px 0;*/
	border-bottom: 50px solid #00aff0;
	/*background: #00aff0;*/
	margin:20px -50px 0px -50px;
	padding:0 50px 0px 50px;
}

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

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

	.languages {
		width: 100%; 
		margin-bottom: 1em;
	}
	.topnav {
		float: none;
		clear: both; 
		width: 100%; 
	}
	.breadcrumbs {
		margin-bottom: 1em;
		margin-top: 0;
	}

	body, td, textarea {
		font-size: 100%; 
	}
	body.has-sidebar #content, 
	body.has-sidebar #sidebar {
		float: none;
		width: 100%; 
		padding: 0; 
	}
	form.search {
		float: none; 
		width: 100%; 
		padding-bottom: 0;
	}
	#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%; 
	}

}

/* MOJE RUZNE */

table {
	width: 100%;
}

table, table th, table td {
	border: 1px solid #ccc;
	border-collapse: collapse;
}

table td {
	padding: 2px 20px;
}

table th {
	background-color: #eee;
	text-align: left;
	padding: 2px 10px;
	font-size: 90%;
}

td.comment {
	font-size: 90%;
}

.exiled_entries td {
	/*background-color:#ff7777;*/
	background-color: rgba(255,119,119,0.8);
}

.tright {
	text-align: right;
}

.odkaz_v_tabulce {
	padding:0;
}


.odkaz_v_tabulce a {
	padding: 2px 20px;
	display: block;
	text-decoration: none;
	border-bottom: none;
}

.odkaz_v_tabulce a:hover {
	/*background-color: #D7D7D7;*/
	background: #4fcaf8;
}

@media only screen and (min-width: 900px) {
	.fright {
		float:right;
	}
}
.fclear {
	clear: both;
}

.created_by {
		margin-top: 20px;
}
.created_by a {
	color: #00aff0;	
}
.created_by a:hover {
	color:#4fcaf8;
}