﻿html, body {
	background-color: #ffffff;
	color: #444444;
	margin: 0;
	padding: 0;
	font-family: 'Maven Pro', sans-serif;
}

#top:before {
/*	padding-top: 20px;*/
	display: block;
	content: "";
}

#main {
	width: 100%;
	min-height: calc(100vh); /* 100% visible height */
}

#menu {
	width: 100%;
	clear: both;
	position: fixed;
	top: 0px;
	text-transform: uppercase;
	text-align: center;
	background-color: #888888;
	border-bottom: 1px solid #cccccc;
}

#tags { margin-bottom: 60px; }

#contain {
	clear: both;
	line-height: 0.8cm;
	padding-bottom: 85px; /* wysokosc stopki + ramka + 40px */
	overflow: auto;
}

#comments { margin-top: 40px; }

#footer {
	width: 100%;
	clear: both;
	margin-top: -45px; /* wysokosc stopki + ramka */
	height: 44px;
	line-height: 44px;
	text-transform: uppercase;
	text-align: center;
	color: #ffffff;
	background-color: #888888;
	border-top: 1px solid #cccccc;
}

/* konfiguracja menu */

.home_icon {
	height: 32px;
	margin-left: 10px;
	margin-right: 10px;
	margin-top: 6px;
	margin-bottom: 6px;
}

.back_to_top_icon {
	height: 32px;
	position: fixed;
	bottom: 54px;
}

.rss_icon {
	height: 20px; /* zmienic rozmiar po zmianie stopki */
}

.menu_home {
	height: 44px;
	line-height: 44px;
	float: left;
}

.menu_tag {
	width: 7%;
	float: right;
	color: #80ff80;
}

.menu_tag ol {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

.menu_tag ul {
	clear: both;
	list-style-type: none;
	margin: 0;
	padding: 6px;
	line-height: 34px;
	position: fixed;
	left: 0;
	top: 44px; /* wysokosc menu (bez ramki) */
	visibility: hidden;
	text-align: justify;
	background-color: #888888;
	border-bottom: 1px solid #cccccc;
}

.menu_tag li:hover ul { visibility: visible; }

/* konfiguracja spisu tresci */

#table_of_content img {
	position: fixed;
}

#table_of_content ol {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

#table_of_content ol ul {
	position: fixed;
	max-width: 92%;
	overflow: auto;
	background-color: #888888;
	border: 1px solid #cccccc;
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
	border-bottom-right-radius: 10px;
	font-size: smaller;
	list-style-type: none;
	margin: 0;
	visibility: hidden;
}

#table_of_content ul ul {
	position: static;
	max-width: 100%;
	overflow: inherit;
	border: inherit;
	font-size: inherit;
}

#table_of_content li:hover ul { visibility: visible; }

/* konfiguracja zawartosci */

a       { color: #888888; text-decoration: none; }
a:hover { color: #cccccc; cursor: pointer; }

a.menu_link       { color: #ffffff; }
a.menu_link:hover { color: #80ff80; }

a.table_of_content_link       { color: #ffffff; }
a.table_of_content_link:hover { color: #80ff80; }

a.tag       { color: #ffffff; }
a.tag:hover { color: #80ff80; }

a.teaser_link { color: #444444; }

.link_icon { height: 0.5cm; }

.tag {
	font-size: smaller;
	text-transform: uppercase;
	line-height: 34px;
	padding-top: 4px;
	padding-bottom: 4px;
	padding-left: 6px;
	padding-right: 6px;
	border: 1px solid #cccccc;
	border-top-left-radius: 10px;
	border-bottom-right-radius: 10px;
	background-color: #888888;
	white-space: nowrap;
}

h1, h2, h3, h4, h5, h6 { text-transform: uppercase; }

h1 { font-size: 200%; line-height: 1.1cm; margin-top: 80px;}
h2 { font-size: 180%; line-height: 1.0cm; margin-top: 70px;}
h3 { font-size: 160%; line-height: 0.9cm; margin-top: 60px;}
h4 { font-size: 140%; line-height: 0.8cm; margin-top: 50px;}
h5 { font-size: 120%; line-height: 0.7cm; margin-top: 40px;}
h6 { font-size: 100%; line-height: 0.6cm; margin-top: 30px;}

.teaser {
	padding: 20px;
	background-color: #eeeeee;
	border: 1px solid #cccccc;
	border-radius: 10px;
	margin-bottom: 40px;
	display: flex;
	align-items: center;
}

.teaser_mini { width: 25%; margin-right: 10px; }
.teaser_text { width: 75%; margin-left:  10px; }

.mini_icon { max-width: 100%; vertical-align: middle; }
.teaser h4 { margin-top: 20px; margin-bottom: 20px; }

.date { font-size: smaller; margin-bottom: 20px; }

.very_important {  /* zielone tlo */
	padding: 20px;
	background-color: #ccffcc;
	border: 1px solid #80ff80;
	border-radius: 10px;
}

.important { /* szare tlo */
	padding: 20px;
	background-color: #eeeeee;
	border: 1px solid #cccccc;
	border-radius: 10px;
}

.source {
	text-align: right;
	margin-top: 40px;
}

.left_indent { text-indent: 20px; }

.left_tab { margin-left: 20px; }

.picture {
	max-width: 98%;
	margin-left: auto;
	margin-right: auto;
	margin-top: 20px;
	margin-bottom: 20px;
}

.picture_graph {
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	margin-top: 20px;
	margin-bottom: 20px;
}

.picture_title { text-align: center; }

.picture_content { width: 100%; }

@media only screen and (min-width: 1281px) { /* komputer */

html, body { font-size: 20px; }

#tags { text-align: left; }

#contain {
	margin-left: 15%;
	margin-right: 15%;
	text-align: justify;
}

.back_to_top_icon { right: 54px; }

/* konfiguracja menu */

.menu_home { width: 5%; }

.menu_item {
	width: 11%;
	height: 44px;
	line-height: 40px;
	padding-top: 2px;
	padding-bottom: 2px;
	float: left;
}

.menu_tag {
	height: 44px;
	line-height: 44px;
}

/* konfiguracja spisu tresci */

#table_of_content img {
	left: 9px;
	bottom: 54px; /* taka sama wysokosc jak ikona back_to_top */
	height: 64px;
}

#table_of_content ol ul {
	max-height: calc(100vh - 189px); /* poczatek listy + wysokosc menu + ramka + 16px + 10px */
	left: 9px;
	bottom: 118px; /* polozenie "spis tresci" + wysokosc "spis tresci" */
	line-height: 30px;
	padding-left: 10px;
	padding-right: 10px;
	padding-top: 6px;
	padding-bottom: 6px;
}

#table_of_content ul ul {
	max-height: inherit;
	padding-left: 20px;
}

/* konfiguracja zawartosci */

.picture_graph { width: 80%; }

}

@media only screen and (min-width: 1023px) and (max-width: 1280px) { /* tablet poziomo */

html, body { font-size: 18px; }

#menu { font-size: smaller; }

#tags { text-align: left; }

#contain {
	margin-left: 12%;
	margin-right: 12%;
	text-align: justify;
}

#footer { font-size: smaller; }

.back_to_top_icon { right: 40px; }

/* konfiguracja menu */

.menu_home { width: 5%; }

.menu_item {
	width: 11%;
	height: 44px;
	line-height: 40px;
	padding-top: 2px;
	padding-bottom: 2px;
	float: left;
}

.menu_tag {
	height: 44px;
	line-height: 44px;
}

/* konfiguracja spisu tresci */

#table_of_content img {
	left: 9px;
	bottom: 54px; /* taka sama wysokosc jak ikona back_to_top */
	height: 56px;
}

#table_of_content ol ul {
	max-height: calc(100vh - 181px); /* poczatek listy + wysokosc menu + ramka + 16px + 10px */
	left: 9px;
	bottom: 110px; /* polozenie "spis tresci" + wysokosc "spis tresci" */
	line-height: 26px;
	padding-left: 10px;
	padding-right: 10px;
	padding-top: 6px;
	padding-bottom: 6px;
}

#table_of_content ul ul {
	max-height: inherit;
	padding-left: 20px;
}

/* konfiguracja zawartosci */

.picture_graph { width: 100%; }

}

@media only screen and (min-width: 641px) and (max-width: 1022px) { /* tablet pionowo */

html, body { font-size: 16px; }

#tags { text-align: left; }

#contain {
	margin-left: 12%;
	margin-right: 12%;
	text-align: justify;
}

.back_to_top_icon { right: 20px; }

/* konfiguracja menu */

.menu_home { width: 5%; }

.menu_item {
	width: 22%;
	height: 22px;
	line-height: 20px;
	padding-top: 1px;
	padding-bottom: 1px;
	float: left;
}

.menu_tag {
	height: 22px;
	line-height: 22px;
}

/* konfiguracja spisu tresci */

#table_of_content img {
	left: 9px;
	bottom: 54px; /* taka sama wysokosc jak ikona back_to_top */
	height: 48px;
}

#table_of_content ol ul {
	max-height: calc(100vh - 173px); /* poczatek listy + wysokosc menu + ramka + 16px + 10px */
	left: 9px;
	bottom: 102px; /* polozenie "spis tresci" + wysokosc "spis tresci" */
	line-height: 22px;
	padding-left: 10px;
	padding-right: 10px;
	padding-top: 6px;
	padding-bottom: 6px;
}

#table_of_content ul ul {
	max-height: inherit;
	padding-left: 20px;
}

/* konfiguracja zawartosci */

.teaser { display: block; text-align: center; }

.teaser_mini { width: 100%; margin-right: 0px; margin-bottom: 10px; }
.teaser_text { width: 100%; margin-left:  0px; }

.picture_graph { width: 100%; }

}

@media only screen and (min-width: 481px) and (max-width: 640px) { /* telefon poziomo */

html, body { font-size: 16px; }

#tags { text-align: left; }

#contain {
	margin-left: 8%;
	margin-right: 8%;
	text-align: justify;
}

.back_to_top_icon { display: none; }

/* konfiguracja menu */

.menu_home { width: 8%; }

.menu_item {
	width: 23%;
	height: 22px;
	line-height: 20px;
	padding-top: 1px;
	padding-bottom: 1px;
	float: left;
}

.menu_tag { display: none; }

/* konfiguracja spisu tresci */

#table_of_content img {
	left: 6px;
	bottom: 51px;
	height: 40px;
}

#table_of_content ol ul {
	max-height: calc(100vh - 158px); /* poczatek listy + wysokosc menu + ramka + 12px + 10px */
	left: 6px;
	bottom: 91px; /* polozenie "spis tresci" + wysokosc "spis tresci" */
	line-height: 16px;
	padding-left: 8px;
	padding-right: 8px;
	padding-top: 4px;
	padding-bottom: 4px;
}

#table_of_content ul ul {
	max-height: inherit;
	padding-left: 16px;
}

/* konfiguracja zawartosci */

.teaser { display: block; text-align: center; }

.teaser_mini { width: 100%; margin-right: 0px; margin-bottom: 10px; }
.teaser_text { width: 100%; margin-left:  0px; }

.picture_graph { width: 100%; }

}

@media only screen and (max-width: 480px) { /* telefon pionowo */

html, body { font-size: 16px; }

#menu { font-size: smaller; }

#tags { text-align: center; }

#contain {
	margin-left: 8%;
	margin-right: 8%;
	text-align: center;
}

#footer { font-size: smaller; }

.back_to_top_icon { display: none; }

/* konfiguracja menu */

.menu_home { width: 8%; }

.menu_item {
	width: 23%;
	height: 22px;
	line-height: 20px;
	padding-top: 1px;
	padding-bottom: 1px;
	float: left;
}

.menu_tag { display: none; }

/* konfiguracja spisu tresci */

#table_of_content img {
	left: 6px;
	bottom: 51px;
	height: 26px;
}

#table_of_content ol ul {
	max-height: calc(100vh - 144px); /* poczatek listy + wysokosc menu + ramka + 12px + 10px */
	left: 6px;
	bottom: 77px; /* polozenie "spis tresci" + wysokosc "spis tresci" */
	line-height: 16px;
	padding-left: 8px;
	padding-right: 8px;
	padding-top: 4px;
	padding-bottom: 4px;
	text-align: left;
}

#table_of_content ul ul {
	max-height: inherit;
	padding-left: 16px;
}

/* konfiguracja zawartosci */

.teaser { display: block; text-align: center; }

.teaser_mini { width: 100%; margin-right: 0px; margin-bottom: 10px; }
.teaser_text { width: 100%; margin-left:  0px; }

.picture_graph { width: 100%; }

}

