*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}

body, html, .container {
	font-family: Verdana,sans-serif;
	font-size: 15px;
	line-height: 3;
	margin: auto;
	max-width: 100%;
	width: 1000px;
	background-color: #eef;
}

body>div>p {
	text-indent: 3em;
}

svg text {
	opacity: 0.3;
	transition: all 0.5s;
}

svg :not(text):hover+text, svg :not(text):hover+g>text, svg g>text:hover~text, svg text:hover {
	opacity: 1;
}

td {
	line-height: 2;
}

td:first-child {
	padding: 5px 20px 5px 70px;
	font-size: 3em;
	line-height: 1;
	margin-left: 70px;
	vertical-align: top;
}

#terminy td {
	padding: 5px 10px;
	line-height: initial;
	font-size: initial;
	border-left: solid 1px gray;
	border-top: solid 1px gray;
}

#terminy td:first-child {
	text-align: right;
	border-left: none;
	vertical-align: middle;
}

#terminy tr:first-child td{
	border-top: none;
	font-weight: bold;
}

#menu {
	z-index: 1;
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	background-color: #eef;
	height: 123px;
	width: 100%;
	max-width: 1000px;
	margin: auto;
	padding: 0;
	box-shadow: 0px 0px 3px gray;
	overflow: initial;
}

#menu+div:not(.modal) {
	margin-top: 130px;
	color: #444;
}

#menu>a, #menu>span {
	text-decoration: none;
	display: inline-block;
	float: left;
	border-left: 1px solid #666;
	border-top: 3px solid #e30016;
	padding: 0 20px;
	margin: 0;
	margin-top: 57px;
	width: 25%;
	line-height: calc(120px - 57px);
	text-align: right;
	font-size: 18px;
	cursor: pointer;
	color: #e30016;
	opacity: 0.5;
	transition: 0.2s;
	position: relative;
}

#menu>a:hover, #menu>span:hover, #menu>span.clicked {
	border-top: 3px solid transparent;
	font-size: 24px;
	opacity: 1;
}

#menu>a::after, #menu>span::after {
	content: url(logo.png);
	position: absolute;
	width: 0;
	left: 0;
	overflow: hidden;
	top: -60px;
	text-align: right;
	opacity: 0;
	transition: width 0.7s linear, opacity 0s;
}

#menu>a:hover::after, #menu>span:hover::after, #menu>span.clicked::after {
	opacity: 1;
	width: 100%;
}

#menu>a:first-child {
	border-top: 3px solid transparent;
	border-left: none;
	padding: 0 0.2em;
	font-size: 18px;
	text-align: left;
	color: black;
	position: relative;
	top: -45px;
	left: 100px;
}

#menu>a:first-child::after {
	opacity: 1;
	position: absolute;
	left: -100px;
	top: -15px;
	width: 100%;
}

#menu>span>ul {
	display: none;
	z-index: 3;
	background-color: #eef;
	width: 100%;
	margin: 0;
	padding: 0;
	position: absolute;
	left: 0;
	box-shadow: 1px 2px 6px gray;
}

#menu>span>ul>li {
	list-style: none;
	position: relative;
	display: block;
}

#menu>span>ul>li>a {
	display: block;
	font-size: 18px;
	padding: 5px 20px;
	color: #e30016;
	text-decoration: none;
	opacity: 0.5;
}

#menu>span>ul>li>a:hover {
	opacity: 1;
	background-color: #cce;
}

#menu>span:hover>ul, #menu>span.clicked>ul {
	opacity: 1;
	display: block;
}

body>div {
	text-align: justify;
	padding: 20px 50px;
	overflow: hidden;
}

a {
	color: cadetblue;
}
a:hover {
	color: brown;
}

h2 {
	text-align: center;
	color: #e30016;
}

h2[id] {
	padding-top: 130px;
	position: relative;
	top: -130px;
	margin-bottom: -130px;
}

body>div>h4 {
	-webkit-animation: wahwah 3s; /* Safari 4.0 - 8.0 */
	animation: wahwah 3s 2s both;
	display: block;
	position: relative;
}

body>div>h4:first-of-type {
	animation-delay: 0s;
}

@-webkit-keyframes wahwah {
	from {
		left: 70%;
		opacity: 0;
	}
	to {
		left: 0;
		opacity: 0.9;
	}
}

@keyframes wahwah {
	from {
		left: 70%;
		opacity: 0;
	}
	to {
		left: 0;
		opacity: 0.9;
	}
}

.container {
	height: initial;
	margin-top: 100px;
}

.art {
	position: relative;
	color: #fff;
	line-height: initial;
	display: block;
	float: left;
	height: 210px;
	width: 210px;
	margin: 5px;
	overflow: hidden;
	cursor: pointer;
}

.art div {
	display: none;
}

.art h4 {
	position: relative;
	text-shadow: black 0 0 5px;
	text-align: center;
	transition: 0.5s;
}

.art:hover h4 {
	opacity: 0;
}

.art img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transition: 0.5s;
	background-color: white;
	-webkit-filter: blur(5px); /* Chrome, Safari, Opera */
    filter: blur(5px);
}

.art:hover img {
	-webkit-filter: none; /* Chrome, Safari, Opera */
    filter: none;
}

p:last-child {
	padding-bottom: 0;
}

////////////////////////////////////////////////////////////////////////////////////////
/* Add animation (Chrome, Safari, Opera) */
@-webkit-keyframes example {
	from {opacity: 0;}
	to {opacity:1;}
}

/* Add animation (Standard syntax) */
@keyframes example {
	from {opacity: 0;}
	to {opacity:1;}
}

.modal {
	z-index: 3;
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgb(0, 0, 0);
	background-color: rgba(0, 0, 0, 0.4);
}

.modal-dialog {
	display: table-cell;
	vertical-align: middle;
}

.modal-dialog .modal-content {
	margin: auto;
	background-image: url("bg.png");
	background-color: #f3f3f3;
	position: fixed;
	left: 0;
	top: 50%;
	margin-top: -350px;
	right: 0;
	padding: 0;
	outline: 0;
	text-align: justify;
	width: 1000px;
	max-width: 100%;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);

	transition: all 0.7s;

	-webkit-animation-name: example; /* Chrome, Safari, Opera */
	-webkit-animation-duration: 0.5s; /* Chrome, Safari, Opera */
	animation-name: example;
	animation-duration: 0.5s;
}

.modal-content header {
	background-color: #ccc;
	height: 100px;
	overflow: auto;
}

#prev, #next {
	font-size: 22px;
	cursor: pointer;
	color: #444;
	position: absolute;
	top: 0;
	line-height: 100px;
	padding: 0 16px;
}

#prev:hover, #next:hover {
	color: #000;
}

.modal-content header p i {
	padding: 0 16px;
}

#prev {
	left: 0;
}

#next {
	right: 0;
}

.modal-content h2 {
	padding: 16px 50px;
	margin:0;
	line-height: 68px;
	text-align: center;
}

#modcont {
	overflow: auto;
	height: 600px;
}

#modcont img {
	height: 600px;
	width: 150px;
	position: absolute;
	bottom: 0;
	right: 0;
}

.modal .lb, .modal .rt {
	font-size: 14px;
	line-height: 1.4;
	background-color: white;
	position: absolute;
	margin: 0;
	padding: 0;
	max-width: 350px;
}

.modal .lb {
	left: 0;
	bottom: 0;
	border-top-right-radius: 3em;
}

.modal .rt {
	right: 150px;
	top: 100px;
	border-bottom-left-radius: 3em;
}

.modal-content p, .modal-content dl {
	padding: 2em;
	margin: 0;
}

.modal-content p:last-of-type {
	padding-bottom: 0;
}

.modal-content p:last-child {
	padding-bottom: 2em;
}

.modal dd {
	margin-left: 16px;
}

p+dl, p+ul, p+ol, p+p {
	padding-top: 0 !important;
}

#modclose {
	line-height: initial;
	margin: 20px;
	padding: 0;
	text-decoration: none;
	float: right;
	font-size: 30px;
	font-weight: bold;
	color: #444;
}

#modclose:hover,
#modclose:focus {
	color: #000;
	text-decoration: none;
	cursor: pointer;
}

#gmod .modal-content, #gmod .modal-dialog {
	background-image: none;
	padding: 0;
	margin: initial;
	margin: auto;
	top: initial;
	width: 960px;
	height: auto;
	overflow: hidden;
}

#gmod .modal-content {
	position: relative;
}

#gmod .modal-dialog {
	position: absolute;
	left: 0;
	right: 0;
}

#gmod {
	z-index: 3;
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgb(0, 0, 0);
	background-color: rgba(0, 0, 0, 0.4);
}

.nextbtn, .prevbtn {
	padding: 5px 5px 0;
	margin-top: 45px;
	z-index: 3;
	position: absolute;
	bottom: 0;
	top: 0;
	height: 100%;
	font-size: 48px;
	color: white;
	opacity: 0.4;
	transition: 0.3s ease-out
}
.nextbtn {
	right:0;float:right
}
.prevbtn {
	left:0;float:left
}
.nextbtn:hover, .prevbtn:hover {
	opacity:0.9; background-color:rgba(0, 0, 112, 0.5)
}
.closebtn {
	float: right;
	margin-right: 8px;
	height: 45px;
	cursor: pointer;
	opacity: 0.8;
	transition: 0.2s;
}
.closebtn:hover {
	opacity: 1;
}

#gmod #modcont {
	text-decoration:none;
	font-size:24px;
	float:left;
	padding:8px 16px;
	line-height: 1;
	height: auto;
}

#modimg {
	max-width: 100%;
	max-height: 100%;
	width: 960px;
	height: auto;
	z-index:1;
}
#modloader {position: absolute; left: 0; top:45px; right:0; bottom:0; width:100%; height: 100%; font-size:200px; background: white; z-index:2;}
#modloader i{position: absolute; top: 50%; left: 50%; margin: -130px 0 0 -100px;}

/*8888888888888888888888888888888888888888888888888888888888888888888888888888*/
#gallery>div {
	border: solid 5px darkblue;
	border-top: none;
	background: darkblue;
	display: none;
}
#gallery>div.active {
	display: block;
}
#gallery>div:after {
	content: "";
	clear: both;
	display: table;
}

#gallery>#tab {
	border: none;
	background: inherit;
	height: 50px;
	display: block;
}
#gallery>#tab>span {
	display: block;
	float: left;
	padding: 0 30px;
	background: #003;
	border: solid 5px darkblue;
	border-bottom: none;
	border-radius: 15px 15px 0 0;
	height: 50px;
	line-height: 50px;
	cursor: pointer;
	transition: background 0.5s;
}
#gallery>#tab>span:hover {
	background: darkblue;
}
#gallery>#tab>span.active {
	padding: 0 35px;
	border: none;
	background: darkblue;
	background: -webkit-linear-gradient(blue, darkblue); /* For Safari 5.1 to 6.0 */
	background: -o-linear-gradient(blue, darkblue); /* For Opera 11.1 to 12.0 */
	background: -moz-linear-gradient(blue, darkblue); /* For Firefox 3.6 to 15 */
	background: linear-gradient(blue, darkblue); /* Standard syntax */
}
#gallery {
	padding: 0;
	margin: 100px auto;
	text-align: center;
	/* width: 970px; */
}

#gallery img {
	/* float:left; */
	text-align:center;
	cursor:pointer;
	margin: 30px 20px 30px;
	height:280px;
	width:200px;
	border: 1px solid #e30016;
	object-fit: cover;
}
#gallery img:hover {
	box-shadow:0 0 16px 5px rgba(227,0,22,0.8);
}
#gallery:after{content:"";display:table;clear:both}

@media screen and (max-width: 740px) {
	body>div>p {
		text-indent: 2em;
	}
#menu>a, #menu>span {
	text-align: center;
}

#menu>a:hover, #menu>span:hover {
	border-top: 3px solid #e30016;
}

#menu>span>ul>li>a {
	padding: 5px 10px;
	font-size: 16px;
	line-height: 32px;
}

#menu>a:first-child {
	border-top: 3px solid transparent;
}

#menu>a::after, #menu>span::after {
	content: "";
}

#menu>a:first-child::after {
	content: url(logo.png);
}

}

/*
@media screen and (max-width: 1000px) {
	html, body {
		line-height: 2;
	}

	#menu+div:not(.modal) {
		margin-top: 90px;
	}
	#menu a {
		width: 40%;
		line-height: 39px;
		margin: 0;
	}
	#menu a:first-child {
		width: 20%;
	}

	.container {
		padding: 10px;
	}

	#gallery img {
		margin: 30px 10px 30px;
	}
	#gallery {
		width: 100%;
	}
}
*/


/*
@media screen and (max-width: 850px) {
	.modal-dialog .modal-content {
		top: 0;
		margin-top: 0;
		max-width: 100%;
		height: 700px;
		max-height: 100%;
	}
	#modcont {
		position: initial;
		max-height: 100%;
		padding-bottom: 100px;
	}
	#modcont img {
		height: 100%;
		width: auto;
		max-height: 100%;
		max-width: 20%;
		float: right;
		position: initial;
	}
	#prev, #next {
		visibility: hidden;
	}
	.modal-content header p i {
		visibility: visible;
	}
	.modal .lb, .modal .rt {
		font-size: 12px;
		max-width: 40%;
	}
	.modal .rt {
		position: initial;
		float:right;
	}
}
*/

@media screen and (max-width: 600px) {
	body, html {
		line-height: 2;
	}
	body>div>p {
		text-indent: 1em;
	}
	#menu {
		height: 120px;
		z-index: 2;
	}
	#menu+div:not(.modal) {
		margin-top: 120px;
		position: relative;
	}
	#menu>a, #menu>span {
		float: right;
		width: calc(100% - 160px);
		line-height: 37px;
		margin: 0;
	}
	#menu>a:first-child {
		border: none;
		float: left;
		left: 0;
		top: 0;
		margin: auto;
		visibility: hidden;
		height: 120px;
		width: 160px;
	}
	#menu>a:first-child::after {
		visibility: visible;
		left: 0;
		height: 120px;
		top: 0;
	}

	#menu>a:first-child:hover {
		height: 120px;
	}

	.postac {
		position: absolute;
		top:100%;
	}

	.container {
		margin-top: 120px;
	}
	.art img {
		-webkit-filter: none; /* Chrome, Safari, Opera */
		filter: none;
	}
	
	.modal .lb, .modal .rt {
		max-width: initial;
		border-radius: 1em;
		font-size: 14px;
		line-height: 1.6;
		background-color: white;
		position: initial;
		float: none;
		margin: 10px;
		padding: 0;
		display: table;
	}
	.modal .rt {
		margin-bottom: 100px;
	}
	.modal-content h2 {
		padding: 16px 50px;
		margin:0;
		line-height: 34px;
		text-align: center;
	}
	#modcont img {
		margin-left: 10px;
		max-width: initial;
	}

	#gallery>div.active {
		margin-top: 5px;
	}
	#gallery>#tab.active>span {
		position: relative;
	}
	#gallery>#tab>span {
		width: 100%;
		position: absolute;
		border-radius: 15px;
	}
	#gallery>#tab>span.active {
		z-index: 1;
	}
	#gallery>#tab>span.active:after {
		content: "\f0c9";
		font-family: FontAwesome;
		float: right;
	}
	#gallery>#tab.active>span.active:after {
		content: "";
	}
}
