/* General styles */
html {
	height: 100%;
}

html, body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, p, blockquote, th, td {
	margin: 0;
	padding: 0;
}

body {
	border: 0;			/* This removes the border around the viewport in old versions of IE */
	width: 100%;
	background: #fff;
	min-width: 600px;
	font-size:90%;
	height: 100%;
	font-family: Verdana,Helvetica,Arial,Sans-serif;
	font-size: 9pt;
	background: #d60912;
}

a {
	color:#369;
}

a:hover {
	text-decoration:none;
}

div.cleaner {
	clear: both;
}

#wrap {
	min-height: 500px;
}

/* Header styles */
#header {
	width:100%;
	min-width: 1136px;
	height: 75px;
	background: #8f0107 url('images/header_repeat.png') repeat-x left top;
}

#header h1, h2 {
	color: #fff;
	margin: 0;
	padding: 0;
	font-weight: normal;
}

#header h1 {
	float: left;
	padding: 28px 0 0 25px;
	font-size: 2.5em;
}

#header span.header_logo {
	width: 238px;
	height: 60px;
	margin: 10px 0 0 30px;
	display: block;
	float: left;
	background: url('images/logo.png') no-repeat left top;
}

#header .header_captions {
	float: left;
	margin-left: 30px;
	margin-right: 10px;
	padding-top: 7px;
}

#header .header_captions .header_caption_second {
	font-style: italic;
}

#header h2 {
	font-size: 1.5em;
	margin-top: 5px;
}

#nase_mapy {
	display: block;
	width: 128px;
	width: 261px;
	height: 75px;
	background: url('images/nase_mapy_logo.png') no-repeat center center;
	float: left;
	border-right: 1px solid #820006;
}

#nase_mapy span {
	display: none;
}

#header ul {
	float: right;
	list-style: none;
	margin: 0 10px 0 0;
	padding: 0;
	height: 75px;
	border-left: 1px solid #820006;
}
#header ul li {
	display:inline;
	list-style:none;
	margin:0;
	padding:0;
}
#header ul li a {
	display: block;
	float: left;
	text-align: center;
	color: #fff;
	text-decoration: none;
	height: 60px;
	width: 80px;
	background-position: 0 0;
	margin-left: 10px;
	margin-top: 8px;
}
#header ul li a img{
    filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */
    filter: gray; /* IE6-9 */
    -webkit-filter: grayscale(100%); /* Chrome 19+, Safari 6+, Safari 6+ iOS */
}
#header ul li a:hover {
	background-color: #820006;
	border-bottom: 3px solid #fff;
	border-top: 3px solid #fff;
	margin-top: 5px;
}
#header ul li a:hover img {
    filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 1 0\'/></filter></svg>#grayscale");
    -webkit-filter: grayscale(0%);	
}

#header ul li a.active,
#header ul li a.active:hover {
	color:#fff;
	background:#000;
	font-weight:bold;
}
#header ul li a.active img {
    filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 1 0\'/></filter></svg>#grayscale");
    -webkit-filter: grayscale(0%);	
}

#header ul li a span {
	display:block;
}
#main {
	background-color: #f1f1f1;
	border-left: 10px solid #d60912;
	border-right: 10px solid #d60912;
	min-width: 1136px;
    -moz-box-sizing:border-box;
    -webkit-box-sizing:border-box;
    box-sizing:border-box;
}
/* Footer styles */
#footer {
	clear: both;
	height: 41px;
	width: 100%;
	min-width: 1136px;
	background: #f1f1f1;
	border: 10px solid #d60912;
	border-top: none;
    -moz-box-sizing:border-box;
    -webkit-box-sizing:border-box;
    box-sizing:border-box;
}

#footer #copyright {
	width: 100%;
}

#footer p {
	font-size: 0.8em;
	margin: 0;
	text-align: center;
	padding: 4px 0 0 10px;
}

#application {
	margin-left: 250px;
	display: block;
	border-top: 1px solid #3B746B;
	border-top: 1px solid #E6D38B;
}

#float_panel {
	width: 250px;
	display: block;
	position: relative;
	border-top: 1px solid #3B746B;
	border-top: 1px solid #E6D38B;
	float: left;
	z-index: 90;
}

#float_panel_slideshow {
	margin: 15px;
	height: 140px;
}

#float_panel_content {
	text-align: justify;
	padding: 15px;
	line-height: 1.5em;
}

#float_panel_content h3 {
	margin: 10px 0;
	font-size: 1.2em;
}

#float_panel_content ul {
	list-style: square;
	margin-left: 12px;
}
#float_panel_content ul li {
	margin-top: 5px;
}

#float_panel_handle {
	position: relative;
	display: block;
	float: right;
	top: 0;
	left: 38px;
	height: 36px;
	width: 35px;
	background-color: #820006;
}

#float_panel_handle h1 {
	font-size: 3.1em;
	color: #fff;
	line-height: 30px;
}

#close_hint {
	width: 217px;
	height: 126px;
	display: block;
	position: absolute;
	top: -127px;
	left: 315px;
	background-image: url('images/close_hint.png');
	z-index: 999999;	
}

a.map_links {
	background-position: 0 0;
}

#header ul li a.visited {
	background-position: 80px 0;
}

.map_overlay {
	position: absolute;
	display: block;
	text-align: center;
	color: #fff;
	text-decoration: none;
	height: 55px;
	width: 76px;
	color: #fff;
    z-index: 10;
    padding: 2px;
    padding-top: 5px;
	font-size: 1.2em;
	color: #fff;
	font-weight: bold;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0,0,0,0) 100%) repeat scroll 0 0 transparent
}

.popup_window {
  min-height: 20px;
  padding: 19px;
  margin-bottom: 20px;
  background-color: #f5f5f5;
  border: 2px solid #e3e3e3;
  line-height: 1.5em;
  z-index: 100;
}

.popup_window blockquote {
  border-color: #ddd;
  border-color: rgba(0, 0, 0, 0.15);
}

.popup_window h1 {
	color: #222;
	font-size: 1.5em;
	margin: 0 0 15px 0;
}

.popup_window p {
	text-align: justify;
	font-size: 1.2em;
	line-height: 1.5em
}

.popup_window #popup_window_close {
	text-decoration: none;
	font-size: 2em;
	font-weight: bold;
	color: #2C534E;
}

.popup_window #popup_window_button {
	margin: 15px 0 0 0;
	font-size: 1.2em;
	padding: 5px;
}

#popup_window_open {
	display: block;
	float: left;
	height: 75px;
	width: 75px;
	background: url('images/map_info_smaller.png') no-repeat left center;
}

#popup_window_open:hover {
	background-position: right center;
}
#header ul li a.selected {
	/*border: 5px solid #ffff09;*/
	border-bottom: 7px solid #FFD737;
}
