/* app css stylesheet */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

@font-face {
    font-family: 'Euclid_BP_Bold';
    src: url('../font/Euclid-2JN64867YM696931S.eot');
    src: url('../font/Euclid-2JN64867YM696931S.eot?#iefix') format('embedded-opentype'),
    url('../font/Euclid-2JN64867YM696931S.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/*
    ugly fix to circumvent problems with windows font rendering!
    is same file as _Bold above. Access restricted via .htaccess
*/
@font-face {
    font-family: 'Euclid_BP_Text';
    src: url('../font/Euclid-Text.eot');
    src: url('../font/Euclid-Text.eot?#iefix') format('embedded-opentype'),
    url('../font/Euclid-Text.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* GENERAL STYLES */
html {
    background-color: #000;
    font-family: 'Euclid_BP_Text', Arial, sans-serif;
    overflow-y: scroll;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

a, a:hover, a:visited {
    color: #000;
    text-decoration: none;
}

a img {
    border: none;
}

/* TYPO */
.thinTypo {
    font-family: 'Lekton', Arial, sans-serif;
}

/* TEMPLATE */
.centered-container {
    height: 100%;
    width: 100%;
}

#content-container {
    display:table;
}

#content-container .centered {
    display:table-cell;
    vertical-align:middle;
}

#view {
    height: 100%;
}

@media all and (max-height: 629px) {
    #view.centered.text .template-view {
        max-height: 95%;
        margin-top: 0;
    }

    .menu {
        border: 2px solid #000000;
    }
}

@media all and (min-height: 630px) {
    #view.centered.text .template-view {
        max-height: 80%;
        margin-top: 0;
    }
}

#category h1 {
    font-family: 'Euclid_BP_Bold', Arial, sans-serif;
    font-size: 10em;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    margin: 0;
    padding: 0;
}

.loading-container {
    background-color: #FFFFFF;
    display: block;
    line-height: 18em;
    margin: 0;
    padding: 15% 0 0 0;
    text-align: center;
    /* put over index and imprint containers */
    z-index: 999;
    position: fixed;
    width: 100%;
    height: 100%;
}

.error-container {
    background-color: #FFFFFF;
    height: 100%;
    width: 30%;
    margin: auto;
    text-align: center;
}

.index-container,
.toNav-container {
    position: fixed;
    margin: 0;
    z-index: 9;

    line-height: 1.4em;
    height: 1.4em;
    overflow: hidden;
}

.index-container {
    top: 42px;
    left: 10px;
}

.toNav-container {
    top: 10px;
    left: 10px;
}

.index-container a,
.toNav-container a {
    color: #000;
    background-color: #ccc;
    text-transform: uppercase;
    padding: 0.2em 0.2em 0em 0.2em;
}

.index-container a:hover,
.toNav-container a:hover {
    background-color: #eee;
}

/* BACKGROUND IMAGES */
#bg {
    background-size: cover;
    z-index: -1;
}

/* NAVIGATION */
.menu-container {
    position: relative;
    width: 100%;
    z-index: 1;
}

#menu {
    width: 100%;
    position: absolute;
    margin: 0;
    list-style: none;
    padding: 0.5em;
    background-color: #fff;
    text-align: center;
}
#menu > li {
    display: block;
    padding: 0.3em 0;
}

#menu > li:before {
    padding-right: 0.3em;
}

#menu > li:nth-child(1):before {
    content: "";
    padding: 0;
}

#menu li a {
    text-decoration: none;
}

#menu li a:hover,
#menu li a.active {
    text-decoration: line-through;
}


@media only screen and (max-width: 767px) {
    #category h1 {
        font-size: 3em;
    }

    .menu-container {
        top: 0;
    }

    .centered-container {
        height: none;
        min-height: 100%;
    }
}
@media only screen and (min-width: 768px) {

    .menu-container {
        display: block !important;
        position: fixed;
        bottom: 2em;
    }

    #menu {
        width: 80%;
        position: relative;
        margin: 0 auto !important;
    }

    #menu > li {
        display: inline;
        padding: 0 1.1em;
    }

    .toNav-container {
        display: none;
    }

    .index-container {
        top: 10px;
    }
}


/* KATE'S WORLD */
.katesworld {
    position: fixed;
    top: 10px;
    right: 10px;

    min-width: 100px;
    width: 15%;
}

.katesworld a img {
    max-width: 100%;
    min-width: 50%;
}

.katesworld a img.static,
.katesworld a:hover img.flashy {
    display: inline;
}

.katesworld a:hover img.static,
.katesworld a img.flashy {
    display: none;
}

/* IMPRINT */
.copy-imprint {
    position: fixed;
    left: 10px;
    bottom: 0;
    text-transform: uppercase;
    padding: 0 0.2em;
    z-index: 9;
}

.copy-imprint,
.copy-imprint a {
    font-size: 0.9em;
    color: #fff;
}

.copy-imprint:hover {
    color: #ddd;
}

/* SINGLE */
a.previous,
a.next {
    position: absolute;
    top: 50%;
    color: #fff;
    text-indent: -9999em;
}

.previous {
    left: 2em;
    width: 22px;
    background: url(../img/icons/nav_arrows.png) left;
}

.next {
    right: 2em;
    width: 22px;
    background: url(../img/icons/nav_arrows.png) right;
}

.preloader {
    display: none;
}

.portfolio-container {
    width: 70%;
    overflow: hidden;
    margin: 0 auto;
}

img.portfolio {
    display: block;
    margin: 0 auto;
}

.caption-container {
    font-size: 0.8em;
    text-align: center;
    margin-top: 1em;
}

span.number,
span.caption {
    color: #fff;
}

span.caption:before {
    content: "|";
    padding-left: 10px;
    margin-right: 10px;
}

/* OVERVIEW */
ul.overview {
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.overview li.group {
    display: block;
    float: left;
    height: 400px;
    margin: 0 1% 1% 0;
    width: 33%;
    background-color: white;
}

ul.overview li.group:nth-child(3n) {
    margin-right: 0;
    width: 32%;
}

@media all and (max-width: 649px) {

    ul.overview li.group {
        margin: 0 0 2% 0;
        width: 100%;
    }

    ul.overview li.group:nth-child(3n) {
        margin-right: 0;
        width: 100%;
    }
}

@media all and (min-width: 650px) and (max-width: 1249px) {

    ul.overview li.group {
        margin: 0 2% 2% 0;
        width: 49%;
    }

    ul.overview li.group:nth-child(2n) {
        margin-right: 0 !important; /* needs to overwrite 3n setting for x=6, x=12, ..*/
        width: 49%;
    }

    ul.overview li.group:nth-child(3n) {
        margin-right: 2%;
        width: 49%;
    }
}

ul.overview li.group a {
    display: block;
    height: 100%;
    width: 100%;
    background-position: center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    position: relative; /* required for absolute positioning of child container */
}

ul.overview li.group a .overlay {
    width: 100%;
    height: 100%;
    background: none;
}

ul.overview li.group:hover a .overlay {
    background-color: rgba(255,255,255,0.2);
}

ul.overview li.group a .label-container {
    width: 92%;
    position: absolute;
    bottom: 10%;
    right: 5%;
    text-align: right; /* align contained spans to right */
}

ul.overview li.group a .label-container .label {
    font-size: 2.5em;
    line-height: 1.5em;
    text-transform: uppercase;
    display: inline;

    color: #fff;
}

ul.overview li.group a .label-container .label span {
    background-color: #000;

    margin: 0;
    padding: 0.2em 0 0 0;
}

ul.overview li.group:hover a .label-container .label {
    color: #ddd;
    background-color: #222;
}

/* INDEX */
ul.photo-index {
    list-style: none;
    margin: 0;
    padding: 0;
}

li.photo {
    float: left;
    width: 24.7%;
    margin: 1px 0.1%;
    padding: 0;
    background-color: transparent;
}

li.photo a {
    display: block;
    width: 100%;
}

li.photo a img {
    display: block;
    width: 101%;
    height: auto;
}

li.photo:hover {
    background-color: #fff;
}

li.photo:hover a img {
    opacity: 0.8;
}

/* TEXT */

.text-container {
    width: 70%;
    height: 96%;
    overflow-y: auto;
    padding: 2% 5%;
    margin: auto;
    background-color: #fff;
}

.text-container .uppercase {
    text-transform: uppercase;
}

.text-container p.uppercase {
    line-height: 1em;
    height: 1em;
    margin: 0.5em 0;
    padding: 0;
}

.text-container p.uppercase:last-child {
    margin-bottom: 20px;
}

.text-container p.thinTypo.headline {
    margin: .5em 0;
}

.text-container h1 {
    margin: 1em 0;
}

.text-container h1 .headline {
    color: #fff;
    background-color: #000;
    text-transform: uppercase;
}

.text-container ul {
    width: 100%; /* use full width to enable percentage li widths */
    display: inline-block;
    list-style: none;
    margin: 0;
    padding: 0;
}

.text-container ul li {
    display: inline-block;
    width: 100%;
}

.text-container ul li span.name {
    display: block;
    float: left;
    padding: 0.4em 0;
    text-transform: uppercase;
    width: 50%;
}

.text-container ul li span.details {
    font-size: 0.8em;
}


/* CONTACT */

.contact-container {
    width: 100%;
    height: 100%;
    background-color: #000;
}

.contact-container a.address {
    color: #fff;
    display: table;
    font-size: 4em;
    margin: 0 auto;
    text-transform: uppercase;
}
.contact-container a.address.fixed {
    text-align: center;
    font-size: 3em;
}