/* ==========================================================================
   Author's custom styles
   ========================================================================== */
/*
 * Design: Martin Hauser
 * Developed by: Martin Hauser
 *
 * Font:
 * "Open Sans"
 *
 * Colors:
 * black: #1e1e1e;
 * cyan: #009dcd;
 * cyan light: #08c5ff;
 * grey light: #f0f0f0;
 * white: #fff;
 */

/*
 * Fonts: OpenSans
 */

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Regular.eot');
    src: url('../fonts/OpenSans-Regular.eot?#iefix') format('embedded-opentype'),
         url('../fonts/OpenSans-Regular.woff') format('woff'),
         url('../fonts/OpenSans-Regular.ttf') format('truetype'),
         url('../fonts/OpenSans-Regular.svg#open_sansregular') format('svg');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Semibold.eot');
    src: url('../fonts/OpenSans-Semibold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/OpenSans-Semibold.woff') format('woff'),
         url('../fonts/OpenSans-Semibold.ttf') format('truetype'),
         url('../fonts/OpenSans-Semibold.svg#open_sanssemibold') format('svg');
    font-weight: 600;
    font-style: normal;
}

/*
 * Fonts: FontAwesome
 * Only those icons: F002, F053, F054, F099, F09A, F0E0
 */

@font-face {
    font-family: 'FontAwesome';
    src: url('../fonts/fontawesome.eot?v=4.1.0');
    src: url('../fonts/fontawesome.eot?#iefix&v=4.1.0') format('embedded-opentype'),
        url('../fonts/fontawesome.woff?v=4.1.0') format('woff'),
        url('../fonts/fontawesome.ttf?v=4.1.0') format('truetype'),
        url('../fonts/fontawesome.svg?v=4.1.0#fontawesomeregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

.fa {
    display: inline-block;
    font-family: FontAwesome;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
}
.fa-search:before {
    content: "\f002";
}
.fa-chevron-left:before {
    content: "\f053";
    padding-right: 3px;
}
.fa-chevron-right:before {
    content: "\f054";
    padding-left: 3px;
}
.fa-twitter:before {
    content: "\f099";
    padding-left: 3px;
}
.fa-facebook:before {
    content: "\f09a";
}
.fa-envelope:before {
    content: "\f0e0";
    padding-left: 1px;
}

/*
 * Base
 */

html {
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    font-family: "Open Sans", "Helvetica Neue", "Helvetica", "Verdana", sans-serif;
    font-size: 1.1em;
    font-weight: 400;
    color: #1e1e1e; /* black */
    text-align: center;
}

h1, h2, h3, h4, h5, h6 {
    margin: 40px 20px;
    padding: 0;
    font-weight: 400;
    line-height: 1.2em;
    text-transform: uppercase;
    letter-spacing: 1px;
}
h3, h4, h5, h6 {
    margin: 20px;
}
h1 { font-size: 2.8em; }
h2 { font-size: 1.8em; }
h3 { font-size: 1.4em; }
h4 { font-size: 1.1em; }
h5 { font-size: 1em; }
h6 { font-size: 0.9em; }

a {
    color: #009dcd; /* cyan */
    text-decoration: none;
    -webkit-transition: color 0.3s;
    transition: color 0.3s;
}
a:hover {
    color: #08c5ff; /* cyan light */
    text-decoration: underline;
}

hr {
    display: block;
    margin: 1em 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #f0f0f0; /* gray light */
}

p, pre {
    margin: 20px;
}
p {
    padding: 0;
    text-align: justify;
}
pre {
    padding: 1em;
    font-family: monospace, monospace;
    font-size: 1.2em;
    background: #f0f0f0; /* gray light */
    text-align: left;
    overflow: auto;
}

img {
    max-width: 100%;
    height: auto;
    border: 0;
    vertical-align: middle;
}

main {
    display: block;
    overflow: auto;
}
main ul {
    padding-left: 40px
}
main li {
    text-align: left;
}

/* Fix for Safari on OS X and Chrome */
input[type="search"] {
    -webkit-appearance: textfield;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

button {
    margin: 0;
    font: inherit;
    overflow: visible; /* Fix for IE 8/9/10/11 */
    cursor: pointer;
}

ul {
    padding: 0;
}

/*
 * Container / Site Alignment
 */
.content {
    margin: 90px auto 0;
    max-width: 1440px;
    padding: 0 20px;
}

/*
 * Navigation: bar
 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    width: 100%;
    height: 59px; /* height + border-bottom = 60px */
    background-color: #fff; /* white */
    background-color: rgba(255,255,255,0.95);
    border-bottom: 1px solid #f0f0f0; /* gray light */
    -webkit-box-shadow: 0 0 10px 0 rgba(50, 50, 50, 0.15);
    box-shadow: 0 0 10px 0 rgba(50, 50, 50, 0.15);
}

/*
 * Navigation: text
 */
.nav, .nav ul, .nav li, .nav form {
    display: inline-block;
    margin: 0;
}
.nav li, .nav form {
    padding: 0 10px;
}
.navmain1, .navmain2 {
    width: 44%;
}
.navmain1 {
    text-align: right;
}
.navmain2 {
    text-align: left;
}
.nav-text-main, .nav-text-sub {
    color: #1e1e1e; /* black */
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.nav-text-main:hover, .nav-text-sub:hover {
    text-decoration: none;
}
.nav-text-main {
    font-size: 1.1em;
    font-weight: 600;
    padding-bottom: 6px;
}
.nav-text-sub {
    font-size: 1em;
    padding-bottom: 3px;
}
.nav-text-active, .locale:checked + label {
    border-bottom: 2px solid #08c5ff; /* cyan light */
}

/*
 * Navigation: Search
 */
.searchbox {
    width: 4.5em;
    font-family: inherit;
    border: 0;
    border-bottom: 1px solid transparent;
    background: transparent;
    -webkit-transition: border-color 0.2s ease-in-out, width 0.2s ease-in-out;
    transition: border-color 0.2s ease-in-out, width 0.2s ease-in-out;
}
.searchbox:focus {
    width: 9em;
    border-bottom: 2px solid #08c5ff; /* cyan light */
    outline: none;
}
.searchbutton {
    padding: 10px 6px;
    background-color: transparent;
    border: 0 solid;
}

/*
 * Logo
 */
.logo {
    margin-bottom: 50px;
    cursor: default;
}
.logo-symbol {
    display: inline-block;
    width: 84px;
    height: 84px;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    background: #fff; /* white */
    background-image: url(../img/logo-symbol.png);
    -webkit-background-size: cover;
    background-size: cover;
    vertical-align: middle;
    color: transparent;
}
.logo-symbol-mobile {
    display: none;
}
.logo-text {
    margin: 30px auto 15px;
    font-size: 2em;
    line-height: 1.2em;
    letter-spacing: 4px;
}
.logo-text span {
    color: #08c5ff; /* cyan light */
}

.logo-text-sub {
    line-height: 0.5;
    text-transform: uppercase;
    letter-spacing: 3px;
}
.logo-text-sub span {
    display: inline-block;
    position: relative;
}
.logo-text-sub span:before,
.logo-text-sub span:after {
    content: "";
    position: absolute;
    top: 5px;
    width: 3.7em;
    border-bottom: 2px solid black;
}
.logo-text-sub span:before {
    margin-right: 15px;
    right: 100%;
}
.logo-text-sub span:after {
    margin-left: 15px;
    left: 100%;
}

/*
 * Main: Article Overview
 */

.article-overview {
    display: inline-block;
    width: 49%;
    vertical-align: top;
}
.article-overview > h2 {
    margin-bottom: 20px;
    font-size: 1.5em;
}

.article-archive {
    margin: 15px 0 15px 20px;
}
.article-archive h4,
.article-archive-list,
.article-archive-list > li {
    display: inline-block;
    margin: 0 5px;
    padding: 0;
    color: #1e1e1e; /* black */
}

/*
 * Main: Photography page
 */

.igrid {
    padding: 0;
    list-style: none;
}
.igrid li, .image {
    display: inline-block;
    margin: 0.5%;
    border: 1px solid #eee;
    vertical-align: top;
    text-align: center;
}
.igrid li {
    width: 250px;
}
.image img {
    max-height: 350px;
}
.image p {
    margin: 20px;
    font-size: 0.9em;
    color: #999;
    text-align: center;
}

/*
 * Circle
 */

.pagination a, .pagination-active,
.contact-list a {
    margin: 0 5px;
    width: 37px;
    height: 37px;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    font-size: 1.3em;
    line-height: 1.5em;
    text-decoration: none;
    -webkit-transition: color 0.2s ease-out, background 0.2s ease-out;
    transition: color 0.2s ease-out, background 0.2s ease-out;
}

/*
 * Pagination
 */

.pagination li, .pagination a {
    display: inline-block;
    margin-top: 60px;
    list-style: none;
}
.pagination a, .pagination-active {
    line-height: 1.65em;
    background: transparent;
    color: #009dcd; /* cyan */
}
.pagination a:hover, .pagination-active {
    color: #fff; /* white */
    background: #08c5ff; /* cyan light */
}

/*
 * Footer
 */

.footer {
    display: block;
    margin: 120px 0 30px;
}
.footer .logo {
    margin: 0;
}
.footer, .locale + label {
    text-transform: uppercase;
    letter-spacing: 1px;
}
.locale + label {
    display: inline-block;
    margin: 0 5px;
    cursor: pointer;
}
.locale + label {
    display: inline-block;
    margin: 0 5px;
    cursor: pointer;
    -webkit-transition: .3s;
    transition: .3s;
}
.locale + label:hover {
    color: #08c5ff; /* cyan light */
}
.langswitch {
    margin: 30px;
}
.locale {
    display: none; /* Hide radio button */
}

/*
 * Footer: Contact List
 */

.contact-list,
.contact-list li {
    display: inline-block;
    list-style: none;
}
.contact-list a {
    background: #08c5ff; /* cyan light */
    color: #fff; /* white */
}
.contact-list a:hover {
    background: none;
    color: #08c5ff; /* cyan light */
}


/*
 * Slideshow
 */
.slideWrapper {
    width: 100%;
    height: 400px;
    overflow: hidden;
}
.slideImages {
    /* This is the bit that moves. It has 4 images, so 4 * 450 = 1800. You could use javascript
    to work this out instead by counting images. */
    width: 10000px;
    -webkit-backface-visibility: hidden;    /* webkit flickering hack */
    -webkit-transition: all 1s ease-in-out;
    transition: transform 1s ease-in-out;
}
.slideImages img {
    height: 400px;
    float: left;
}

.slideshow > .fa-chevron-left, .slideshow > .fa-chevron-right {
    display: inline-block;
    margin-top: 20px;
    cursor: pointer;
    height: 50px;
    width: 49%;
    font-size: 3em;
    color: #08c5ff; /* cyan light */
}
.slideshow > .fa-chevron-left {
    text-align: left;
}
.slideshow > .fa-chevron-right {
    text-align: right;
}


/*
 * Helper classes
 */

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

/*
 * MediaQueries
 */
@media only screen and (max-width: 1024px) {
    .searchbox:focus {
        width: 6.5em;
    }
}

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

    h1 {
        font-size: 2.5em;
    }

    .content {
        margin-top: 10px;
        padding: 0;
    }

    .logo-symbol {
        display: none;
    }
    .logo-symbol-mobile {
        display: inline-block;
    }

    .navbar {
        position: static;
        padding-bottom: 10px;
        height: auto;
        -webkit-box-shadow: none;
        box-shadow: none;
    }
    .nav {
        display: block;
    }
    .nav li {
        margin: 10px 0;
    }
    .navmain1, .navmain2 {
        width: auto;
        text-align: center;
    }
    .nav-text-main {
        padding-bottom: 1px;
        font-size: 1.4em;
    }
    .nav-text-sub {
        padding-bottom: 0;
        font-size: 1.2em;
    }
    .searchbox:focus {
        width: 9em;
    }
}

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

    .igrid > li {
        max-width: 160px;
    }
    .image img {
        max-width: 250px;
        max-height: 250px;
    }
    .igrid li h4, .igrid li p,
    .image h4, .image p {
        margin: 10px;
    }

    .article-overview {
        width: auto;
        float: none;
    }

    .slideWrapper {
        height: 220px;
    }
    .slideImages img {
        height: 220px;
    }
}

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

    h1 {
        font-size: 1.75em;
    }

    .article-archive h4, .article-archive-list {
        display: block;
    }

    .logo-text {
        margin: 80px 0 15px;
    }
}

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

    .nav li, .nav form {
        display: block;
    }

    .logo-text-sub span:before,
    .logo-text-sub span:after {
      width: 3.4em;
    }

    .contact-list {
        display: block;
        margin: 40px;
        width: auto;
    }
}

/*
 * MediaQueries: HiDPI
 */
@media (-webkit-min-device-pixel-ratio: 1.3),
       (min--moz-device-pixel-ratio: 1.3),
       (min-device-pixel-ratio: 1.3),
       (min-resolution: 1.3dppx) {

    .logo-symbol {
        background-image: url(../img/logo-symbol@2x.png);
    }

}

/*
 * MediaQueries: Print
 */
@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) ")";
    }
    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    .navbar {
        position: static;
        padding-bottom: 10px;
        height: auto;
        -webkit-box-shadow: none;
        box-shadow: none;
    }

    .contact-list {
        display: none;
    }
}
