/* ########## DEFAULTS ########## */

@import url('https://fonts.googleapis.com/css?family=Noto+Serif+SC:400,700');

html {
    font-family: 'Noto Serif SC', serif;
    overflow-x: hidden;
}

main {
    z-index: 1;
}

a#toTop {
    position: fixed;
    display: none;
    bottom: 50px;
    right: 50px;
    padding: 15px;
    text-decoration: none;
    font-size: 20px;
    color: rgb(112, 112, 112);
    box-shadow: 0px 5px 25px -10px rgba(0,0,0,0.3);
    transition: box-shadow 0.2s, color 0.2s;
    background-color: #eee;
}

a#toTop:hover {
    color: #000; /* Fallback for older browsers */
    color: rgba(112, 112, 112, 0.8);
    box-shadow: 0px 5px 30px -10px rgba(0,0,0,0.5);
    transition: box-shadow 0.2s, color 0.2s;
}

section:not(:nth-child(1)) {
    width: 1900px;
    margin: auto;
}

section .container {
    padding: 30px;
}

section h1 {
    color: #363636;
    margin-top: 0;
}

p {
    line-height: 2;
    max-width: 50%;
    text-align: justify;
}

@media screen and (max-width: 1450px) {
    p {
        max-width: 45em;
    }
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
    background-color: #fff;
    border-color: #eee;
    transition: .4s;
    margin: 0;
    padding: .75rem;
    outline: none;
    border: 2px solid #eee;
    box-shadow: 0;
    box-sizing: border-box;
    color: #40484a;
    width: 100%;
}

input[type="number"]::-webkit-inner-spin-button, 
input[type="number"]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

input:hover,
textarea:hover {
    border-color: #bfbfbf;
    transition: 0.4s;
}

input:focus,
textarea:focus {
    border-color: #999;
    transition: 0.4s;
}

textarea {
    height: 200px;
    width: 100%;
    resize: none
}

.action {
    border: none;
    text-align: center;
    text-decoration: none;
    display: block;
    cursor: pointer;
    padding: 15px;
    text-decoration: none;
    font-size: 20px;
    color: rgb(112, 112, 112);
    box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.3);
    transition: box-shadow 0.2s, color 0.2s;
    background-color: #eee;
}

.action:hover {
    color: #000; /* Fallback for older browsers */
    color: rgba(0, 0, 0, 0.6);
    color: rgb(112, 112, 112);
    box-shadow: 0px 5px 25px -10px rgba(0,0,0,0.3);
    transition: box-shadow 0.2s, color 0.2s;
}

input[type="number"] {
    width: 50px;
    -moz-appearance: textfield;
    margin: 10px;
    margin-right: 0px;
    cursor: text;
}

/* ##### NAV ##### */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 99;
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.05);
}

nav ul {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
    list-style: none;
    width: 1900px;
}

nav ul li {
    display: block;
    padding-left: 30px;
    padding-right: 30px;
    float: right;
}

nav ul li.logo {
    float: left;
    display: block;
}

nav ul li.logo2 {
    float: left;
    display: none;
}

nav ul li a {
    height: 100%;
    width: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
    text-decoration: none;
    font-size: 30px;
    color: #707070;
    opacity: 1;
    transition: opacity 0.2s;
}

nav ul li a:hover {
    opacity: 0.8;
    transition: opacity 0.2s;
}

nav ul li:nth-child(1) {
    display: none;
}

#hamburger-menu {
    width: 30px;
    height: 30px;
    position: relative;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    cursor: pointer;
}

#hamburger-menu span {
    display: block;
    position: absolute;
    height: 2.2px;
    width: 100%;
    background: #707070;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
  }

#hamburger-menu span:nth-child(1) {
    bottom: 0px;
}

#hamburger-menu span:nth-child(2),#hamburger-menu span:nth-child(3) {
    bottom: 10px;
}

#hamburger-menu span:nth-child(4) {
    bottom: 20px;
}

#hamburger-menu.open span:nth-child(1) {
    bottom: 12px;
    width: 0%;
    left: 50%;
}

#hamburger-menu.open span:nth-child(2) {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

#hamburger-menu.open span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

#hamburger-menu.open span:nth-child(4) {
    bottom: 10px;
    width: 0%;
    left: 50%;
}  

/* ##### PARALLAX ##### */

section.parallax {
    display: flex;
    max-height: 800px;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

section.parallax.short {
    max-height: 80px;
}

.parallax-window {
    z-index: 1;
    height: 600px;
    width: 100vw;
    background: transparent;
}

/* ##### GALLERIES ##### */

ul.thumbnails {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.thumbnails li {
    height: 342px;
    padding-right: 15px;
    display: inline-block;
}

ul.thumbnails li .tn {
    height: 100%;
    width: 100%;
}

ul.thumbnails li .tn a {
    text-decoration: none;
    color: #000;
}

ul.thumbnails li .tn a .img-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

ul.thumbnails li .tn a img {
    display: block;
    height: 100%;
    text-align: center;
}

ul.thumbnails li .tn a .desc {
    transform: translateY(-100%);
    background-color: #eee;
    background-color: rgb(255, 255, 255, 0.8);
    height: 22px;
    padding: 10px;
    font-size: 17px;
    transition: background-color 0.2s;
}

ul.thumbnails li .tn a:hover .desc {
    background-color: #eee;
    background-color: rgb(255, 255, 255, 0.5);
    transition: background-color 0.2s;
}

/* ##### CONTACT ##### */

section.contact {
    text-align: left;
}

/* ##### FOOTER ##### */

footer {
    background-color: #292929;
    height: 220px;
    color: #fff;
}

footer .container {
    max-width: 1900px;
    margin: auto;
}

footer .container .container-2 {
    padding: 30px;
    margin: auto;
}

footer a {
    text-decoration: none;
    color: #fff;
}

footer a.watermark {
    text-decoration: underline;
}

footer a.watermark-logo img {
    height: 40px;
    fill: white;
    margin-top: 10px;
}

footer ul {
    float: left;
    list-style: none;
}

footer ul li {
    padding-bottom: 10px;
}

footer ul:last-of-type {
    float: right;
}

#toTop.fixed {
    position: relative !important;
    float: right;
    margin-top: -34px;
}

/* ########## RESPONSIVE ########## */

@media screen and (max-width: 2000px) {
    section:not(:nth-child(1)), footer .container {
        width: 95%;
    }
}

@media screen and (max-width: 700px) {
    a#toTop {
        bottom: 25px;
        right: 25px;
    }
}

/* ##### NAV ##### */

@media screen and (max-width: 2000px) {
    nav ul {
        width: 95%;
    }
}

@media screen and (max-width: 1150px) {
    nav ul {
        width: 100%;
    }
    nav ul li:not(:nth-child(1)) {
        display: none;
    }
    nav ul li:nth-child(1), nav ul li.logo {
        display: block;
    }
    nav ul li.logo {
        padding-right: 0;
    }
    nav.opened {
        height: 300px;
    }
    nav.opened ul.topnav li:nth-child(4) a {
        margin-top: 30px;
    }
    nav.opened ul.topnav li:nth-child(4), nav.opened ul.topnav li:nth-child(5), nav.opened ul.topnav li:nth-child(6) {
        display: inline;
        float: none;
    }
    nav.opened ul.topnav li:nth-child(4) a, nav.opened ul.topnav li:nth-child(5) a, nav.opened ul.topnav li:nth-child(6) a {
        display: block;
        padding: 0;
        padding-top: 15px;
    }
}

@media screen and (max-width: 700px) {
    nav ul li.logo {
        display: none;
    }
    nav ul li.logo2 {
        display: block;
        padding-right: 15px;
        padding-left: 15px;
    }
    nav ul li:nth-child(1) {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media screen and (max-width: 380px) {
    nav.opened ul.topnav li:nth-child(4) a {
        margin-top: 0;
    }
}

/* ##### GALLERIES ##### */

@media screen and (max-width: 1150px) {
    ul.thumbnails li {
        max-width: 100%;
        height: auto;
    }
    ul.thumbnails li .tn a .img-container img {
        height: 100%;
        width: 100%;
    }
}

/* ##### PARRALAX ##### */

@media screen and (max-height: 1000px) {
    section.parallax .container .parallax-window {
        height: 600px;
    }
}

@media screen and (max-height: 700px) {
    section.parallax .container .parallax-window {
        height: 400px;
    }
}

/* ##### FOOTER ##### */

@media screen and (max-width: 776px) {
    footer {
        height: 380px;
    }
    footer ul:nth-child(3) {
        float: left;
    }
}

@media screen and (max-width: 490px) {
    footer {
        height: 480px;
    }
}