html, body {
	height: 100%;
}
body {
	margin:0;
	padding:0;
	font:110%/150% Helvetica, Arial, sans-serif;
	background:url('http://wellagain.lt/img/bg.jpg') repeat-x 0 0;	
}
article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section {
	display:block;
}
@font-face {
    font-family: 'wellagainRegular';
    src: url('fonts/wellagain-webfont.eot');
    src: local('☺'), url('fonts/wellagain-webfont.woff') format('woff'), url('fonts/wellagain-webfont.ttf') format('truetype'), url('fonts/wellagain-webfont.svg#wellagainRegular') format('svg');
    font-weight: normal;
    font-style: normal;
}
h1, h2, h3, h4 {
	font-family:'wellagainRegular', georgia, sans-serif;
	font-weight:normal;
}
header nav, 
header h1 
{
	
}

p {
	margin:0 0 1em 0;	
}
.less {
	font-size:.9em;	
	line-height:1.4em;
}
.clear {
	clear:both;	
}
em {
	font-family:baskerville, times, georgia, serif;
	font-size:1.3em;
	font-style:italic;	
}


header nav a, 
header nav a:hover, 
a, a:hover, 
a span.pic, a:hover span.pic,
a span.pic img, a:hover span.pic img,
a span.title, a:hover span.title
{
	transition:  all 0.3s ease-out;
   -o-transition:  all 0.3s ease-out;
   -moz-transition:  all 0.3s ease-out;
	-webkit-transition: all 0.3s ease-out;	
}
a.picLink + p
{
	transition:  all 0.15s ease-out;
   -o-transition:  all 0.15s ease-out;
   -moz-transition:  all 0.15s ease-out;
	-webkit-transition: all 0.15s ease-out;	
}
a.picLink:hover + p
{
	transition:  all 0.6s ease-out;
   -o-transition:  all 0.6s ease-out;
   -moz-transition:  all 0.6s ease-out;
	-webkit-transition: all 0.6s ease-out;	
}

a:hover {
	color:#408AE0;	
}
::selection {
	background: #408AE0;
	color: white;
	text-shadow: none;
}

/* Header
-----------------------------------*/

body > header {
	margin:0;
	padding:0;
}
body > header {
	overflow:hidden;
}
body > header > h1 {
	font-size:6em;
	color:#303133;
	margin:-10px 0 -45px 5%;
	padding:1px 0 0 10px;
	line-height:1.1em;
	text-shadow: 0px 1px 1px #fff;
	-webkit-mask-image: url(../img/mask.png);
	-o-mask-image: url(../img/mask.png);
	-moz-mask-image: url(../img/mask.png);
	mask-image: url(../img/mask.png);
}
body > header nav {
	margin-right:5%;
	position:relative;
	z-index:999;
	text-align:right;
}
body > header nav a {
	display:inline-block;
	
	font-family:'wellagainRegular', georgia, sans-serif;
	font-size:1em;
	line-height:1.4em;
	text-transform:lowercase;
	color:#fff;
	text-decoration:none;
	white-space: nowrap;
	
	padding:.2em 1.5em;
	margin: 0 1% 1% 0;
	
	text-shadow: 0px -1px -1px #000;
	border-radius: 18px;
	-moz-border-radius: 18px; 
	-webkit-border-radius: 18px;
	background-color:#303133;
	background-image: url('../img/menu_texture.png');
	background-repeat: no-repeat;
	
	-webkit-box-shadow: inset 0px 0px 5px 0px rgba(000, 000, 000, .8), 0px 0px 2px 0px rgba(255, 255, 255, .8);
	-moz-box-shadow: inset 0px 0px 5px 0px rgba(000, 000, 000, .8), 0px 0px 2px 0px rgba(255, 255, 255, .8);
	box-shadow: inset 0px 0px 5px 0px rgba(000, 000, 000, .8), 0px 0px 2px 0px rgba(255, 255, 255, .8);
	
}
body > header nav a.item0{
	background-position:50% 40%;	
}
body > header nav a.item1{
	background-position:40% 55%;	
}
body > header nav a.item2{
	background-position:60% 45%;	
}
body > header nav a.item3{
	background-position:30% 45%;	
}
body > header nav a.item4{
	background-position:70% 55%;	
}
body > header nav a:hover, body > header nav a.active {
	background-color:#408AE0;
	background-position:50% 50%;	
	color:#fff;
}
body > header:after, section#about:after {
	content: ""; 
	display: block; 
	height: 0; 
	clear: both;
	visibility:hidden;
}
section.intro {
	background:rgba(255,255,255,.5);	
}
article.desc {
	width:14em;
}

/* Footer
-----------------------------------*/
body > footer {
	background:#1e2a37 url('../img/bg_footer.jpg') repeat-x 0 0;
	padding:0 5%;
	color:#fff;
	text-shadow: 0px -1px -1px #000;
}
body > footer nav {
	overflow:auto;
}
body > footer nav article {
	float:left;
	width:25%;
	margin-right:5%;
	padding-bottom:1em;
}
body > footer nav ul {
	list-style:none;
	margin:0;
	font-size:.8em;
}
body > footer nav a {
	color:#fff;
	text-shadow: 0px -1px -1px #000;
}
body > footer h3 {
	margin-left:50px;
	font-size:1.6em;
}

/* icons */
footer ul li {
	margin-bottom:.5em;
	padding-left:80px;
}
footer .gmail {
	background:url(../img/ico.gmail.png) no-repeat 40px 50%;	
}
footer .gtalk {
	background:url(../img/ico.gtalk.png) no-repeat 40px 50%;	
}
footer .linkedin {
	background:url(../img/ico.linkedin.png) no-repeat 0 50%;	
}
footer .vimeo {
	background:url(../img/ico.vimeo.png) no-repeat 0 50%;	
}
footer .picasa {
	background:url(../img/ico.picasa.png) no-repeat 40px 50%;	
}
footer .da {
	background:url(../img/ico.da.png) no-repeat 15px 50%;	
}
footer .lj {
	background:url(../img/ico.lj.png) no-repeat 40px 50%;	
}
footer .gplus {
	background:url(../img/ico.gplus.png) no-repeat 40px 50%;	
}
footer .twitter {
	background:url(../img/ico.twitter.png) no-repeat 0 50%;	
}
footer .last {
	background:url(../img/ico.last.png) no-repeat 10px 50%;	
}

/* featured */
section.featured {
	overflow:auto;
	margin:0;
	padding:2em 5%;
}
section.featured a {
	display:block;
	position:relative;	
	color:#fff !important;
	text-decoration:none;
	text-shadow: 0px -1px 1px #000;
}
section.featured span {
	display:inline-block;
	border-radius: 10px;
	-moz-border-radius: 10px; 
	-webkit-border-radius: 10px;
	margin:0;
	padding:0;
	width:100%;
	height:20em;
	overflow:hidden;
	-webkit-box-shadow:  0 1px 5px rgba(0, 0, 0, 0.5);
	-moz-box-shadow:  0 1px 5px rgba(0, 0, 0, 0.5);
	box-shadow:  0 1px 5px rgba(0, 0, 0, 0.5);
}
section.featured span img {
	width:100%;
	margin-top:-10em;
}
section.featured div.desc {
	position:absolute;
	bottom:2em;
	left:0;
	width:18em;
	padding:.5em 1em;
	background: rgba(0,0,0,.8);
	
	-moz-border-radius-topleft: 0px;
	-moz-border-radius-topright: 18px;
	-moz-border-radius-bottomright: 18px;
	-moz-border-radius-bottomleft: 0px;
	-webkit-border-radius: 0px 18px 18px 0px;
	border-radius:0px 18px 18px 0px;
}
section.featured h4 {
	font-family:'wellagainRegular';
	font-size:1.5em;
	line-height:.8em;
	text-decoration: none;
	margin:.5em 0;
}
section.featured p {
	font-size:.9em;
	line-height:1.2em;	
}


/* Articles
-----------------------------------*/
section.intro, section.sector {
	overflow:auto;
	border-top:1px solid #fff;
	margin:0;
}
section.sector {
 	padding:2em 5%;
}
section.intro {
	padding:4em 5%;
}

section.sector header {
	width:25%;
	float:left;
	margin-left:2em;
}
section.intro header h2 {
	font-size:3em;
	line-height:.8em;
	margin:0 1em 0 0;
	color:#303133;
	position:relative;
	float:left;
	display:inline-block;
}
section.intro header section {
	position:relative;
	display:inline-block;
	float:left;
	margin:0 5% 0 0;
	width:32%;
}


/* Picture squares
-----------------------------------*/

section article {
	position:relative;
	float:left;
	margin:2em;
}
section.collector article, #photo section.collector header, #pictures section.sector header {
	padding:1em 0;
	height:20em;
	width:14em;
	margin:2em 2em 0 2em;
}
body#home section.collector article {
	width:25%;
	margin:0 2em 1em 2em;
}
body#home article h2 {
	margin-top:2em;
}
/* text articles */
article.text {
	padding:1em;
	height:auto;
	width:40%;
	margin:2em 4em;
}
article.column {
	padding:1em;
	height:auto;
	width:30%;
	margin:2em 4em;
}
section.collector article h2, #photo section.collector header h2, #pictures section.sector header h2 {
	font-size:3em;
	line-height:1em;
}
section.sector a.picLink {
	text-decoration: none;
	display:block;
}
a span.pic {
	display:inline-block;
	border-radius: 10px;
	-moz-border-radius: 10px; 
	-webkit-border-radius: 10px;
	margin:1em;
	padding:0;
	height:16em;
	width:16em;
	overflow:hidden;
	-webkit-box-shadow:  0 1px 5px rgba(0, 0, 0, 0.5);
	-moz-box-shadow:  0 1px 5px rgba(0, 0, 0, 0.5);
	box-shadow:  0 1px 5px rgba(0, 0, 0, 0.5);
}

section.sector > article:hover a span.pic {
	margin:0;
	padding:0;
	height:18em;
	width:18em;
}

a span.pic img.w {
	height:19em;
	margin:-2em 0 0 -6em;
}
section.sector > article:hover a span.pic img.w {
	margin:-.2em 0 0 -8em;
}
a span.pic img.v {
	height:19em;
	margin:-1em 0 0 -3em;
}
section.sector > article:hover a span.pic img.v {
	margin:-.2em 0 0 -4em;
}
a span.pic img.h {
	width:19em;
	margin:-1em 0 0 -.2em;
}
section.sector > article:hover a span.pic img.h {
	margin:-2em 0 0 -1em;
}

a.picLink + p {
	opacity:0;
	color:#eee;
	text-shadow: -1px -1px 1px #000;	
}
a.picLink:hover + p, section.sector > article:hover a.picLink +p {	
	opacity:1;
}
a.picLink + p a {
	color:#fff;	
}

article a.picLink > h4 {
	position:absolute;
	bottom:0;
	left:.5em;
	min-width:8em;
	max-width:14em;
	display:inline-block;
	background:transparent;
	font-family:'wellagainRegular';
	font-size:2em;
	line-height:.8em;
	text-decoration: none;
	margin:.1em 0 0 0;
}
section.sector > article a+p {
	position:absolute;
	bottom:4em;
	left:0;
	width:18em;
	padding:.5em;
	background: rgba(0,0,0,.8);
	font-size:.9em;
	line-height:1.2em;
	
	-moz-border-radius-topleft: 0px;
	-moz-border-radius-topright: 18px;
	-moz-border-radius-bottomright: 18px;
	-moz-border-radius-bottomleft: 0px;
	-webkit-border-radius: 0px 18px 18px 0px;
	border-radius:0px 18px 18px 0px;
}
/* Colors
-----------------------------------*/
section.black {
	background:#303133 url('../img/stripes.png') repeat 0 0;
	color:#ccc;
	text-shadow: 0px -1px 1px #000;
	
	-webkit-box-shadow: inset 0px 0px 15px 0px rgba(000, 000, 000, .6);
	-moz-box-shadow: inset 0px 0px 15px 0px rgba(000, 000, 000, .6);
	box-shadow: inset 0px 0px 15px 0px rgba(000, 000, 000, .6);

}
section.black a {
	color:#fff;	
}
section.black a:hover {
	color:#408AE0;	
}
section.black h2 {
	color:#eee;	
}
section.white {
	background: url('../img/whiteTexture.png') top left repeat, #f1f1f1;
	color:#111;
	text-shadow: 0px 1px 1px #fff;
}
section.white a, section.intro a {
	color:#303133;	
}
section.white a:hover, section.intro a:hover {
	color:#408AE0;	
}
section.white h2 {
	color:#303133;	
}

 /* Pictures */
.size_l, .size_m, .size_s {
	width:auto;
}
.size_l {
	height:700px;
}
.size_l img {
	max-height:600px;
}
.size_m {
	height:550px;
}
.size_m img {
	max-height:400px;
}
.size_s {
	height:400px;
}
.size_s img{
	max-height:300px;
}
.size_l p, .size_m p, .size_s p {
	width:80%;
	max-width:18em;
	margin:0;
}
.size_l h4, .size_m h4, .size_s h4 {
	font-size:1.5em;
	margin:.5em 0;
}
article object {
	margin:2em 2em 0 0;	
}
.size_l img, .size_m img, .size_s img, article object {
	border-radius: 10px;
	-moz-border-radius: 10px; 
	-webkit-border-radius: 10px;
	-webkit-box-shadow:  0 1px 5px rgba(0, 0, 0, 0.5);
	-moz-box-shadow:  0 1px 5px rgba(0, 0, 0, 0.5);
	box-shadow:  0 1px 5px rgba(0, 0, 0, 0.5);
}
#about .desc {
	float:left;
	height:auto;
	width:18em;
}
body#error section.intro header h2{
	font-size:2em;
	line-height:1.3em;
	margin-right:2em;
}
