@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,300,600);

/*  debug */

/*
* {
    border: 1px solid rgba(128, 0, 0, 0.6);
}
*/

html {
    background-color: #333;
    
    font-family: 'Open Sans', sans-serif;
    font-size:62.5%;
}

body {
    margin: 16px auto;
}

.noscroll {
    overflow: hidden;
}

footer {
    position: relative;
    width: 1020px;
    margin: 0 auto;
}

footer p {
    font-size: 1.2rem;
    padding: 0;
    margin: 1.2rem 0;
    color: #666;
}

p {
    font-size: 1.6rem;
    color: #181818;
    line-height: 3.2rem;
}

.hidden {
    display: none !important;
}

nav[role='section'] {
    font-size: 1.4rem;
    padding: 0;
    margin: 0;
    margin-bottom: 3.6rem;
    margin-top: 2.4rem;
}

nav[role='section'] a.active {
    color: #f89a3c;
}

nav[role='section'] a {
    color: black;
    text-transform: uppercase;
}

nav[role='section'] a:not(:first-child) {
    padding-left: 2.4rem;
}

div.page {
    box-shadow: 0px 3px 7px rgba(24, 24, 24, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    
    position: relative;
    
    margin: 0 auto;
    width: 1000px;
    
    padding: 0 120px;
    padding-bottom: 32px;
    
    background-image: url(../images/shared/background-main.png);
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #E9E8EF;
    
    border-radius: 5px;
    
    min-height: 720px;
}

nav[role="social"] {
    position: absolute;
    top: 32px;
    right: 0;
    max-height: 48px;
}

nav[role="social"] > a {
    display: inline-block;
    width: 48px;
    height: 48px;
    overflow: hidden;
    color: transparent;
    opacity: 0.5;
    
    background-size: 48px 48px;
    background-position: center center;
    background-repeat: no-repeat;
    
    -webkit-transition-property: all;
    -moz-transition-property: all;
    -o-transition-property: all;
    transition-property: all;
    
    -webkit-transition-duration: 200ms;
    -moz-transition-duration: 200ms;
    -o-transition-duration: 200ms;
    transition-duration: 200ms;
}

nav[role="social"] > a:hover {
    opacity: 1.0;
}

nav[role="social"] > a#facebook {
    background-image: url(../images/shared/facebook.png);
}

nav[role="social"] > a#email {
    background-image: url(../images/shared/contact.png);
}

nav[role="main"] {
    font-size: 1.6rem;
    line-height: 2.2rem;
    
    color: #181818;
    
    padding: 0 0 0 1.2rem;
    margin: 0;
}

nav[role="main"] ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav[role="main"] ul li {
    float: left;
    padding: 4px 12px;
    border-bottom: 2px solid transparent;
}

nav[role="main"] ul li:not(:last-child) {
    margin-right: 0.8rem;
}

nav[role="main"] ul li:hover,
nav[role="main"] ul li.active {
    border-bottom: 2px solid #F89A3C;
}
    
    
nav[role="main"] a:visited,
nav[role="main"] a:active,
nav[role="main"] a {
    text-decoration: none;
    color: #181818;
}

a:visited,
a:active,
a {
    text-decoration: none;
    color: #F89A3C;
}

a:hover {
    text-decoration: underline;
    cursor: pointer;
}

nav[role="main"] a:hover {
    color: #F89A3C;
}


section.header {
    position: relative;
    display: block;
    height: 272px;
}

section.header #language a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 0 0.8rem;
    font-size: 1.3rem;
    -webkit-transition-property: color;
    -moz-transition-property: color;
    -o-transition-property: color;
    transition-property: color;
    
    -webkit-transition-duration: 50ms;
    -moz-transition-duration: 50ms;
    -o-transition-duration: 50ms;
    transition-duration: 50ms;
    
    text-transform: uppercase;
}

section.header #language a:hover {
    color: white;
}
    
section.header #language {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;

    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    
    position: absolute;
    bottom: 8px;
    right: 0px;
}

section.header #icon {
    position: absolute;
    display: block;
    
    width: 180px;
    height: 120px;
    
    top: 42px;
    
    background-image: url(../images/shared/logo.png);
    background-size: 180px 120px;
    background-repeat: no-repeat;
}

section.header nav {
    position: absolute;
    bottom: 0;
}

section.content {
/*    background-color: rgba(255, 255, 255, 0.43);*/
    min-height: 520px;
    
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row; 
    flex-direction: row;
    -webkit-align-items: flex-start;
    align-items: flex-start;
}

section.content div {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

div.content {
    background-color: rgba(255, 255, 255, 0.86);
    
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    
    padding: 0.8rem 3.2rem;
    
    width: 840px;
    
    min-height: 520px;
}

nav.submenu {
    background-color: rgba(255, 255, 255, 0.43);
    
    list-style: none;
    padding: 0;
    margin: 0;
    
    width: 160px;
    text-align: center;
}

nav.submenu > div.complex:hover,
nav.submenu > div.complex[data-active],
nav.submenu > a:hover,
nav.submenu > a:active,
nav.submenu > a.active {
    background-color: rgba(255, 255, 255, 0.8);
}

nav.submenu > div.complex a.visited,
nav.submenu > div.complex a {
    width: 100%;
}

nav.submenu > div.complex a:first-child {
    color: #181818;
    text-decoration: none;
}

nav.submenu > div.complex a:not(:first-child) {
    font-size: 1.2rem;
}

nav.submenu > div.complex,
nav.submenu > a:visited,
nav.submenu > a {
    width: 160px;
    height: 80px;
    
    margin: 0;
    padding: 0;
    
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
}

nav.submenu.text > a {
    height: 80px;
}

nav.submenu.text a h1 {
    font-size: 1.6rem;
    font-weight: 400;
}

nav.submenu > a,
nav.submenu > a:visited {
    -webkit-transition-property: background-color;
    -moz-transition-property: background-color;
    -o-transition-property: background-color;
    transition-property: background-color;
    
    -webkit-transition-duration: 100ms;
    -moz-transition-duration: 100ms;
    -o-transition-duration: 100ms;
    transition-duration: 100ms;
    
    color: #181818;
    text-decoration: none;
    
    border-radius: 3px;
    
    height: 80px;
}

nav.submenu a h1 {
    font-size: 1.4rem;
    font-weight: 300;
    padding: 0;
    margin: 0;
    margin-top: 0.8rem;
}

form.subpagelink {
    display: inline;
}

form.subpagelink button:hover {
    text-decoration: underline;
}

form.subpagelink button {
    font-family: 'Open Sans', sans-serif;
    background-color: transparent;
    border: none;
    font-weight: 300;
    font-size: 1.4rem;
    color: #F89A3C;
    cursor: pointer;
}


div.image-preview {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;

    background-color: rgba(0,0,0, 0.86);

    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;

    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;

    cursor: -webkit-zoom-out; 
    cursor: zoom-out; 

    z-index: 200;
    
    -webkit-backdrop-filter: blur(10px);
}

div.image-preview * {
    pointer-events: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

div.image-preview div.image {
    box-shadow: 0px 5px 15px rgba(0,0,0, 0.3);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 75%;
    height: 75%;
}

div.image-preview::after,
div.image-preview:after {
    content: " ";
    display: block;
    position: absolute;
    width: 42px;
    height: 42px;
    top: 24px;
    right: 24px;
    background-image: url('../images/shared/preview-close-button.png');
    background-size: 42px 42px;
    background-repeat: no-repeat;
    background-position: center center;
}

div.image-preview p {
    padding: 0;
    margin: 0;
    
    font-size: 1.2rem;
    height: 1.8rem;
    color: white;
    opacity: 0.5;
}

div.image-preview p:not(:first-child) {
    margin-top: 8px;
}

div.image-preview p.info {
    padding: 1.6rem 0 0 0;
    opacity: 1.0;
    font-size: 1.6rem;
}

div.dark-window-background,
#contact-form {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;

    background-color: rgba(0,0,0, 0.8);
    
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    
    -webkit-align-items: center;
   align-items: center;
   -webkit-justify-content: center;
   justify-content: center;
    
    z-index: 200;
}

div.message-sent {
    display: block;
    border: none;
    width: 128px;
    height: 74px;
    background-image: url('../images/shared/message-sent-success.png');
    background-size: 128px 74px;
    background-position: center center;
    margin: 0 auto 1.8rem auto;
}

div.window.feedback {
    text-align: center;
}

div.window {
    position: relative;
    border-radius: 5px;
    background-color: #fafafa;
    box-shadow: 0px 3px 5px rgba(0,0,0, 0.3);
    
    margin: 0;
    padding: 32px;
}

div.window h1 {
    font-size: 1.8rem;
    padding: 0;
    margin: 0;
    text-align: center;
    margin-bottom: 1.6rem;
}

div.window h1:last-child {
    margin-bottom: 0;
}

div.window button {
    -webkit-appearance: push-button;
    -moz-appearance: push-button;
}

div.window table td:first-child {
    padding-right: 1.4rem;
}

div.window table tr:last-child td {
    text-align: right;
}

div.window table td input[type="text"] {
    width: calc(99% - 4px);
}

div.window table td textarea {
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
}

div.window table td:first-child {
    text-align: right;
}

div.window * {
    color: #181818;
    font-size: 1.6rem;
}

ul.simple {
    padding: 0;
    margin: 0;
    font-size: 1.6rem;
    line-height: 2.8rem;
    list-style: none;
}

/* ------------------------------ */
/* ------ retina overrides ------ */
/* ------------------------------ */

@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) 
{
    section.header #icon {
        background-image: url(../images/shared/logo@2x.png);
    }
    
    nav[role="social"] > a#facebook {
        background-image: url(../images/shared/facebook@2x.png);
    }

    nav[role="social"] > a#email {
        background-image: url(../images/shared/contact@2x.png);
    }
    
    div.message-sent {
        background-image: url('../images/shared/message-sent-success@2x.png');
    }
}