/*
Theme Name: Dzierganki	
Author: Wojtek Szałkiewicz
Author URI: http://szalkiewicz.pl/
Description: Wordpress theme for dzierganki.cal.pl
Version: 1.0
*/

html{
	height:100%;
}

body {
	background-color:rgb(220,220,220);
	height:100%;
	margin:0;
	position:relative;
	font-size:10px;
	font-family: 'Sorts Mill Goudy', serif;
}

a {
	text-decoration:none;
	color:black;
	color:rgba(0,0,0,0.6);
	outline:none;
}

img {
	border:none;
}

a:hover {
	color:black;
}

.page a {
	color:white;
	text-decoration:underline;
}

.page a:hover {
	text-shadow:0 0 3px white;
}

#img-wrapper img {
	display:block;
}

#sidebar .menu {
	margin-top:40px;
}

#footer {
	position:absolute;
	bottom:0;
	left:0;
	text-align:center;
	padding: 0 0 10px;
	color:rgba(0,0,0,.5);
	z-index:999;
}

#about-menu {
	float:left;
}

#gallery-menu {
	float:right;
	text-align:right;
}

.menu h2 {
	margin:0;
	font-size:1.8em;
	color:rgba(0,0,0,0.8);
	line-height:30px;
}

.menu ul {
	list-style:none;
	margin:0;
	padding:0;
}

.menu ul li {
	margin:0;
	padding:0;
	font-size:1.6em;
	line-height:28px;
}

#content {
	width:100%;
	height:100%;
	position:relative;
}

#element-description {
	background: rgba(0,0,0,.64);
	padding:20px;
	color:white;
	width:180px;
	margin:60px 0 0;
	font-size:1em;
	display:none;
}

#element-description p {
	margin:3px 0 !important;
	padding:0 !important;
	text-shadow:0 0 2px black;
}

#page {
	background:rgba(0,0,0,.64);
	box-shadow: 0 0 8px rgba(0,0,0,.25);
	height:100%;
	overflow:auto;
	color:white;
	text-shadow: 1px 1px 1px black;
	display:none;
}

#content h2 {
	margin:0;
	padding:0;
	font-size:2em;
	display:none;
}

#content h3 {
	margin:0;
	padding:0;
	font-size:1.8em;
	color:white;
}

#content p {
	text-align: justify;
	margin:0;
	font-size:1.6em;
}

#content.news,
#content.page {
	padding-top:80px;
}

#content > h2 {
	line-height:40px;
	margin:0 0 10px;
	color:white;
	text-shadow:0 0 7px black;
	font-size:3.2em;
	position:absolute;
	top:30px;
}

.breadcrumbs {
	font-size:1.4em;
	font-weight:bold;
	color:white;
	text-shadow: 0 0 2px black;
	height:20px;
	line-height:20px;
	margin-top:-5px;
	display:none;
}

#news {
	position:relative;
	width:100%;
	height:100%;
	margin:0;
	background:rgba(0,0,0,0.4);
	box-shadow: 0 0 8px rgba(0,0,0,.25);
	display:none;
}

#news-content {
	width:100%;
	height:100%;
	position:relative;
	background:rgba(0,0,0,0.4);
	padding:20px;
	color:white;
	overflow:auto;
}

#news-content h3 {
	font-size:2em;
}

#news-content .date {
	font-size:1.4em;
}

#news-content .content img {
	float:left;
	margin: 10px 20px 10px 0;
}

#news-content .content a {
	text-decoration:underline;
	color:white;
}

#news-sidebar {
	position:absolute;
	top:0;
	right:0;
	width:280px;
	height:100%;
}

#news-sidebar .content {
	display:none;
}

#news-sidebar a {
	display:block;
	margin: 0;
	padding:10px 20px;
	color:white;
	text-shadow: 0 0 10px black;
	position:relative;
	z-index:999;
	font-size:1.5em;
}

#news-sidebar a:hover, 
#news-sidebar a.current {
	background:rgba(0,0,0,0.4);
}

#news-sidebar .current a {
	border-bottom:10px solid rgba(0,0,0,0.4);
	padding-bottom:0;
}

#news-sidebar .date {
	font-family:sans-serif;
	display:block;
	color:#999999;
	padding:3px 4px;
	text-shadow: 1px 1px 0 black;
	font-size:0.8em;
	margin:0 0 4px;
}

#news-sidebar img {
	float:left;
	margin-right:10px;
	margin-bottom:10px;
}

#elements-wrapper {
	width:100%;
	position:absolute;
	bottom: 0;
	left:0;
	z-index:99;
}

#elements {
	width:100%;
	padding: 0;
	background:red;
	z-index:97;
	background: #7fb249;
	background: #7fb249 url(images/elements-bg.png) repeat-x;
	overflow: hidden;
}

#elements .element {
	float:left;
}

#elements .element img {
	border:5px solid rgba(255,255,255,.35);
}

#elements .element a:hover img {
	border:5px solid rgba(255,255,255,.7);
}

#images {
	max-height:100%;
	background:rgba(0,0,0,0.64);
	float:right;
	overflow:hidden;
	display:none;
}

#images a {
	display:block;
}

#images img {
	display:block;
}

.background-image {
	position:relative;
	z-index:98;
}

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

#preloader {
	position:absolute;
	width:100%;
	height:100%;
	background:rgba(0,0,0,.6);
	z-index:999;
	top:0;
	left:0;
	color:white;
	display:none;
}

#preloader .wrapper {
	height:100%;
}

#preloader .text {
	text-align:center;
	line-height:100px;
	font-size:2.4em;
	text-shadow:0 0 5px black;
}

.welcome {
	font-size:4.2em;
	color:white;
	text-shadow: 0 0 5px black;
}

.contact-form .ufo-customform-row {
	font-size:1.5em;
}

#random-gallery,
#last-news {
	position:absolute;
	background:rgba(0,0,0,.64);
	color:white;
}

#last-news a {
	color:white;
	display:block;
}

#random-gallery img{
	float:left;
	display:block;
}

#last-news a:hover {
	background:rgba(0,0,0,.4);
}

#last-news .date {
	font-size:1.4em;
	display:block;
}

#last-news .content {
	font-size:1.5em;
}

#last-news img {
	display:block;
	float:left;
	margin: 4px 10px 4px 0;
}

#random-gallery,
#last-news {
	display:none;
}

#random-gallery a {
	display:block;
}

@media screen and (min-width:1024px){
	#sidebar {width:350px;background:url(images/logo-bg-350.png) repeat-y;}
	#about-menu {width:150px;margin-left:20px;}
	#gallery-menu {width:160px;margin-right:20px;}
	#footer {width:350px;font-size:1.4em;}
	#content-wrapper{padding-left:350px;}
	#img-wrapper{padding-left:350px;}
	#elements-wrapper{padding-left:350px;}
	#logo {
		width:350;
		height:220px;
		background:url(images/logo-350.png);
	}
}

@media screen and (max-width:1023px){
	#sidebar {width:260px;background:url(images/logo-bg-260.png) repeat-y;}
	#about-menu {width:110px;margin-left:10px;}
	#gallery-menu {width:130px;margin-right:10px;}
	#footer {width:260px;font-size:1.4em;}
	#content-wrapper{padding-left:260px;}
	#img-wrapper{padding-left:260px;}
	#elements-wrapper{padding-left:260px;}
	#logo {
		width:260;
		height:163px;
		background:url(images/logo-260.png);
	}
}

@media screen and (min-width:1141px){

	#random-gallery {
		bottom:30px;
		left:30px;
		padding:20px 10px 20px 20px;
		width:330px;
	}

	#random-gallery img {
		margin:0 10px 0 0;
	}

	#last-news {
		bottom:30px;
		right:30px;
		width:340px;
	}

	#last-news a {
		padding:20px;
	}
}

@media screen and (max-width: 1140px) {

	#random-gallery {
		bottom:20px;
		left:20px;
		padding:10px 5px 10px 10px;
		width:285px;
	}

	#random-gallery img {
		margin:0 5px 0 0;
		width:90px;
		height:90px;
	}

	#last-news {
		bottom:20px;
		right:20px;
		width:280px;
	}

	#last-news a {
		padding:10px;
	}
}

@media screen and (max-width: 900px) {

	#random-gallery {
		bottom:10px;
		left:10px;
		padding:10px 5px 10px 10px;
		width:195px;
	}

	#random-gallery img {
		margin:0 5px 0 0;
		width:60px;
		height:60px;
	}

	#last-news {
		bottom:10px;
		right:10px;
		width:205px;
	}

	#last-news a {
		padding:10px;
	}

	#images {padding: 0 10px;}
	#images a {
		margin: 10px auto 0;
		width:100px;
		height:100px;
	}
	#images a img {
		width:100px;
		height:100px;
	}
	#images a:last-child {margin-bottom:10px;}
	#content {padding: 10px 10px 10px 13px}
	.gallery #content > h2 {top:30px;}
	#page {padding:20px;}

	#page.contact-page {
		width:410px;
	}
	#quick-contact {
		margin-top:8px;
	}
}

@media screen and (min-width:901px){
	#images {padding: 0 20px;}
	#images a {
		margin: 20px auto 0;
		width:120px;
		height:120px;
	}
	#images a:last-child {margin-bottom:20px;}
	#content {padding: 30px 30px 30px 33px;}
	.gallery #content > h2 {top:50px;}
	#page {padding:50px;}
	#page.contact-page {
		width:470px;
	}
	#quick-contact {
		margin-top:20px;
	}
}

@media screen and (max-height:540px) or (max-width: 800px) {

	#sidebar .menu {
		margin-top:20px;
	}

	.menu ul li {
		margin:0;
		padding:0;
		font-size:1.6em;
		line-height:24px;
	}
}

@media screen and (max-height:480px) {

	#sidebar .menu {
		margin-top:10px;
	}

	.menu ul li {
		margin:0;
		padding:0;
		font-size:1.6em;
		line-height:20px;
	}
}

@media screen and (min-width:801px){
	body {overflow:hidden;}
	#sidebar {
		height:100%;
		position:absolute;
		box-shadow: 0 0 5px black;
		z-index:100;
	}

	#img-wrapper {
		position:absolute;
		overflow:hidden;
		width:100%;
		height:100%;
		background:#888;
	}

	#content-wrapper {
		height:100%;
		width:100%;
		position:absolute;
		top:0;
		left:0;
		z-index:98;
	}

	#content p {padding:10px 0 0;}
	#news{padding-right:280px;}
}

@media screen and (max-width:800px){
	#sidebar {
		position:relative;
		z-index:100;
		min-height:171px;
		width:100%;
		box-shadow: 0 0 5px black;
		background: #7fb249 url(images/logo-bg-171-landscape.png) repeat-x;
	}

	#container {
		position:relative;
		margin:0;
		padding:0 0 1px 0;
		background-color:#7fb249;
	}

	#wrapper {
		position:relative;
		margin-bottom:40px;
	}

	#content-wrapper {
		position:absolute;
		z-index:98;
		padding-left:0;
		width:100%;
		top:0;
		height:100%;
	}

	#logo {
		position:absolute;
		z-index:1;
		width:240px;
		height:170px;
		background:url(images/logo-240-landscape.png);
	}

	#sidebar .menu {
		position:relative;
		z-index:2;
	}

	#img-wrapper {
		width:100%;
		background:#888;
		padding-left:0;
	}

	#img-wrapper img {
		width:100%;
		height:auto;
		position:static;
	}

	#about-menu {
		margin-left:250px;
	}
	#content p {padding:4px 0 0;}

	.article {
		padding-bottom:10px;
	}

	#article-wrapper img {
		width:160px;
		height:auto;
	}
}

@media screen and (min-height:601px){
	#elements-wrapper,#elements{height:160px;}

	#elements-scroller {
		height:120px;
		padding: 20px 0 10px 10px;
	}

	#elements .element {margin-right:10px;width:140px;}
}

@media screen and (max-height:600px){
	#elements-wrapper,#elements{height:120px;}

	#elements-scroller {
		height:100px;
		padding: 15px 0 5px 5px;
	}

	#elements .element {margin-right:5px;width:100px;}
	#elements .element img {height:90px;width:auto;}
}
