/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

/*fonts*/
@font-face {
    font-family: "Xutura";
    src: url("fonts/xutura-webfont.eot");
    src: url("fonts/xutura-webfont.eot?#iefix") format("embedded-opentype"),
         url("fonts/xutura-webfont.woff") format("woff"),
         url("fonts/xutura-webfont.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
	margin: 0 10px;
    padding: 0;
    border: 0;
    
    font-family: Xutura, "Open Sans", sans-serif;
	font-size: 0.9em;
	font-weight: normal;
    line-height: 1.4em;
}

a {
	text-decoration: none;
}

.display-block {
	display: block;
}

.main-container {
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
}

.top-bar {
	margin: 1em 0;
}

#logo-line {
	display: inline-block;
	vertical-align: top;
	background-color: #DDDEDF;
	width: 1px;
	height: 21px;
	margin-right: 16px;
}

#lang-link {
	display: inline-block;
	position: relative;
	top: 6px;
	left: 27px;
}

#lang-link a {
	color: #F46A4A;
}

#lang-link a:hover {
	color: #4C4C4E;
}

/*menu*/
.menu-container {
	font-size: 1em;
}

.menu-container a {
	color: #919090;
}

.menu-container a:hover {
	color: #4C4C4E;
}

.menu-block, .submenu-block {
	display: block;
	width:  100%;
	padding: 10px 0;
	border: 1px solid #FFFFFF;
	background-color: #F1F1F2;
}

.block-selected {
	background-color: #535557;
}

a.item-selected {
	color: #FFFFFF;
}

.menu-block:hover, .submenu-block:hover {
	background-color: #DCDDDE;
}

.submenu-header, .submenu-menu, .submenu-menu a {
	display: block;
}

.menu-block a, .submenu-header a, .submenu-menu a {
	margin-left: 16px;
}

.menu-block a span, .submenu-header a span {
	margin-left: 8px;
}

.menu-arrow {
	display: none;
}

/*content*/
.content {
	padding: 20px 0;
}

.horizontal-spacer {
	height: 20px;
}

.bottom-spacer {
    padding-bottom: 20px;
}

/*headers*/
h4 {
    font-weight: normal;
}

.with-line {
	padding-left: 10px;
    border-left: 1px solid #F68D94;
}

/*texts*/

.txt-very-dark,
h4 {
	color: #4C4C4E;
}

.txt-dark,
.txt-very-dark span,
.txt-light span,
.project-info,
.gallery-thumbnails p {
	color: #4C4C4E;
}

.txt-light,
.txt-dark span,
.gallery-thumbnails span {
	color: #7e7e7e;
}

.txt-red {
	color: #F6967C;
}

/*liks*/

.link-black, .link-red {
	cursor: pointer;
}

.link-black {
	color: #4C4C4E;
}

.link-black:hover {
	color: #000000;
}

.txt-dark .link-black {
	color: #4C4C4E;
}

.txt-dark .link-black:hover {
	color: #000;
}

.link-red {
	color: #F6967C;
}

.link-red:hover {
	color: #F46A4A;
}

.with-links-red a {
	cursor: pointer;
	color: #F6967C;
}

.with-links-red a:hover {
	color: #F46A4A;
}

.with-links-black a {
	cursor: pointer;
	color: #4C4C4E;
}

.with-links-black a:hover {
	color: #000;
}

/*projects list*/

.project-info span.txt-dark {
	padding-right: 10px;
}

.project-info span.txt-red {
	padding-right: 0px;
}

/*standard table*/
.news-table {
}

.news-table td {
	padding-bottom: 10px;
	vertical-align: top;
}

.news-table td.left-column {
	width: 70px;
	padding-right: 10px;
}

/*project details*/
.project-table {
	width: 100%;
}

.project-table td {
	padding-bottom: 10px;
	vertical-align: top;
}

.project-table td.txt-light {
	width: 24%;
	padding-right: 20px;
}

#projectFullInfo {
	position: relative;
	display: none;
	left: 0;
	padding-bottom: 10px;
}

.projects-navigation {
	position: relative;
	top: 0;
	left: 0;
}

#projectPrev, #projectNext {
	position: absolute;
	font-size: 0.9em;
}

#projectPrev {
	left: 0;
}

#projectNext {
	right: 0;
}

#projectPrev img, #projectNext img {
	margin-top: -5px;
	opacity: 0.58;
	filter:alpha(opacity=58);
}

#projectPrev img {
	padding-right: 10px;
}

#projectNext img {
	padding-left: 10px;
}

#projectPrev:hover img, #projectNext:hover img {
	opacity: 1;
	filter:alpha(opacity=100);
}

/*bio*/
.bio-col-container {
	position:relative;
	clear:both;
	float:left;
	width:100%;
	overflow:hidden;
}

.bio-col-left, .bio-col-right {
	position:relative;
	float:left;
	width: 100%;
}

.bio-col-left {
	padding-right: 0px;
}

.bio-col-right {
	padding-left: 0px
}

.bio-col-left img, .bio-col-right img {
	float: none;
	margin-right: 0px;
	margin-bottom: 10px;
}

.bio-name {
	margin-top: 0px;
}

.bio-col-right .bio-name {
	margin-bottom: 0px;
}

.bio-details {
	position: relative;
	display: none;
	left: 0;
}

.bio-details p:first-child {
	margin: 0;
}

.bio-table {
	margin-bottom: 20px;
}

.bio-table td {
	vertical-align: top;
}

.bio-table .txt-light {
	width: 60px;
}

.structure {
	margin-bottom: 30px;
	line-height: 2em;
}

.structure span {
	margin-left: 20px;
}

/*images*/
.img-container {
	position: relative;
}

.img-description {
	position: absolute;
	right: 0;
	bottom: 0;
	margin-right: 10px;
	color: white;
	font-size: 0.8em;
	z-index: 6;
}

.slide-static {
	left: 0;
	width: 100%;
	height: auto;
}

.slide-animate {
	display: block;
	position: absolute;
	top: 0;
}

.slide-current {
	z-index: 5;
}

.slide-img {
	width: 100%;
	height: auto;
}

.big-picture {
	width: 100%;
	height: auto;
}

/* gallery thumbnails */
.gallery-thumbnails {
	
}

.gallery-thumbnails div {
	position: relative;
	float: left;
    padding: 1px 0.3%;
    width: 49%;
    background: #FFFFFF;
	cursor: pointer;
}

.gallery-thumbnails div a,
.gallery-thumbnails div a img {
	display: block;
	position: relative;
}

.gallery-thumbnails div a {
	overflow: hidden;
}

.gallery-thumbnails div a img {
    width: 100%;
	height: auto;
}

.gallery-thumbnails div a div {
	position: absolute;
    width: 100%;
    height: 100%;
    padding: 0;
    background-color: #FFFFFF;
}

.gallery-thumbnails p {
	display: block;
	font-size: 0.9em;
	line-height: 1.4em;
	padding: 5px 10px;
	margin: 0;
	border: 0;
	-webkit-margin-before: 0;
	-webkit-margin-after: 0;
	-webkit-margin-start: 0;
	-webkit-margin-end: 0;
}

div.img-loader {
	position: absolute;
	display: block;
	top: 0;
	left: 0px;
	width: 100%;
	height: 100%;
	background: rgb(255, 255, 255);
	z-index: 10;
}

div.img-loader img {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 65px;
	height: 65px;
	margin-top: -33px;
	margin-left: -33px;
}

.gallery-thumbnails div a div.info-animate {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

/* Initial state classes */
.gallery-slideFromTop {
    left: 0px;
    top: -100%;
}
.gallery-slideFromBottom {
    left: 0px;
    top: 100%;
}
.gallery-slideFromLeft {
    top: 0px; 
    left: -100%;
}
.gallery-slideFromRight {
    top: 0px;
    left: 100%;
}

/* Final state classes */
.gallery-slideTop {
    top: 0px;
}
.gallery-slideLeft {
    left: 0px;
}


/*slide show*/
.slides-container {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.slides-stage {
	position: relative;
	top: 0;
	left: 0;
	width: 100%;
	overflow: hidden;
}

.slides-img-static {
	left: 0;
	width: 100%;
	height: auto;
}

.slide-img-current {
	z-index: 5;
}

.slides-img-animate {
	display: block;
	position: absolute;
	top: 0;
}

.slides-navigation {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10;
}

.arrow-prev,
.arrow-next {
	position: absolute;
	display: block;
	top: 0;
	width: 60px;
	height: 100%;
	cursor: pointer;
}

.arrow-prev {
	left: 0;
}

.arrow-next {
	right: 0;
}

.arrow-prev img,
.arrow-next img {
	display: block;
	position: absolute;
	top: 50%;
	margin: -33px 8px 0 8px;
	opacity: 0.4;
	filter:alpha(opacity=40);
}

.arrow-prev:hover img,
.arrow-next:hover img {
	opacity: 1;
	filter:alpha(opacity=100);
}

/*slides-fullscreen*/
#slide-loupe {
	display: none;
	position: absolute;
	top: 0;
	right: 0;
	z-index: 15;
}

#slide-loupe, #slide-cross {
	width: 40px;
	height: 40px;
	cursor: pointer;
	opacity: 0.6;
	filter:alpha(opacity=60);
}

#slide-loupe:hover, #slide-cross:hover {
	opacity: 1;
	filter:alpha(opacity=100);
}

#fullScreenDiv {
	display: none; 
	position: static;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #FFFFFF;
	z-index: 100;
}


#fsContainer {
	position: relative;
	width: 100%;
	height: 100%;
	margin: 0 auto;
}

#slide-cross {
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	z-index: 110;
}

#imgVertical {
	display: block;
	position: relative;
	width: auto;
	height: auto;
	margin: 0;
}

/*slides-thumbnails*/
.slides-thumbnails {
	width: 100%;
}

.slides-thumbnails div {
	float: left;
	padding: 1px 0.3%;
    width: 49%;
}

.slides-thumbnails div img {
	width: 100%;
	height: auto;
	opacity: 1;
	filter:alpha(opacity=100);
}

.slides-thumbnails div:hover img {
	opacity: 0.6;
	filter:alpha(opacity=60);
}

.slides-thumbnails div.slide-selected:hover img {
	opacity: 0.5;
	filter:alpha(opacity=50);
}

.slides-thumbnails div.slide-selected {
	
}

.slides-thumbnails div.slide-selected img {
	opacity: 0.5;
	filter:alpha(opacity=50);
}

@media screen and (min-width: 480px) {
	.gallery-thumbnails div {
	    width: 32.7%;
	}
	
	.slides-thumbnails div {
	    width: 32.7%;
	}
}


@media screen and (min-width: 640px) {
	.submenu-header, .submenu-menu, .submenu-menu a {
		display: inline-block;
	}
	
	.gallery-thumbnails div {
	    padding: 1px 0.2%;
	    width: 24.6%;
	}
	
	.slides-thumbnails div {
	    padding: 1px 0.2%;
	    width: 24.6%;
	}
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    border: 0;
    margin: 1em 0;
    padding: 0;
    
    width: 100%;
	height: 1px;
	color: #BBBDBF;
	background-color: #BBBDBF;
}

hr.white {
	color: #FFFFFF;
	background-color: #FFFFFF;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

















/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 100%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
    /*for firefox*/
	clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow:none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
