body,
html {
    margin: 0;
    height: 100%;
    position: relative;
}

body{
	text-rendering: optimizeLegibility;
}

iframe{
	margin-top: 20px;
}

.atab { tab-size:30;-moz-tab-size:30; -ms-tab-size:30}


noscript:not(.menu) div{
    height: 100px;
    padding: 20px;
    width: 260px;
    left: 50%;
    top: 50%;
    font-family: helvetica, verdana;
    font-size: 14px;
    margin-left: -140px;
    margin-top: -50px;
    background-image: linear-gradient(#eee, #fff);
    position: absolute;
    z-index: 10000;
    border-radius: 3px;
}

noscript p{
    margin-top: 0;
}

#wrapper{
    height: 100%;
}
    

#title_image {
    width: 100%;
    height: 60%;
}
#overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #444;
    opacity: 0.7;
    z-index: 99;
    display: none;
}
#content_wrapper {
    display: none;
    position: absolute;
    height: 600px;
    margin: 0;
    width: 60%;
    z-index: 100;
    top: 50%;
    background-color: #fff;
    margin-top: -300px;
    left: 50%;
    margin-left: -30%;
    border-radius: 4px;
    background-image: linear-gradient(#ebebeb, #fff);
    -webkit-transform-origin: top;
    transform-origin: top;
    -webkit-transition: -webkit-transform 0.5s;
    -moz-transition: -moz-transform 0.5s;
    -o-transition: -o-transform 0.5s;
    transition: transform 0.5s;
    transition-timing-function: cubic-bezier(.43, -0.05, .56, 1.46);
    -webkit-transform: perspective(600px) rotateX(-90deg) translate3d(0,0,0);
    -moz-transform: perspective(600px) rotateX(-90deg);
    -ms-transform: perspective(600px) rotateX(-90deg);
    transform: perspective(600px) rotateX(-90deg);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

#content h1{
	display: inline-block;
	margin-bottom: 0;
}


.content-active{
    -webkit-transform: rotateX(0deg) translate3d(0,0,0) !important;
    -moz-transform: rotateX(0deg) !important;
    -o-transform: rotateX(0deg) !important;
    -ms-transform: rotateX(0deg) !important;
    transform: rotateX(0deg) translate3d(0,0,0) !important;
}

.no-csstransform #close{
	background-image: url("cross.png");
}

.no-csstransform .line{
	display: none;
}

#content {
    margin: 20px 0 30px 0;
    padding: 0 10% 0 10%;
    width: 80%;
    height: calc(100% - 50px);
    font-family: "pontano-sans", helvetica, verdana;
    font-size: 1.1em;
    overflow-y: scroll;
}
.layout {
    opacity: 0.8;
    width: 100%;
    height: 20%;
    background-color: #fff;
    display: table;
}
#nav li {
    float: left;
    margin-left: 20px;
    line-height: 30px;
    padding: 0 8px 0 8px;
    border-radius: 3px;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
}

.js-on{
    display: none;
}

#nav noscript a{
    text-decoration: none;
    color: #000;
}

#nav li:hover {
    background-color: #000;
    color: #fff;
}

#nav li:hover noscript a{
    color: #fff;
}

#nav ul {
    margin-top: 15px;
    list-style-type: none;
    font-family: "pontano-sans", helvetica, verdana;
}
#nav a {
    text-transform: uppercase;
}
.bold {
    font-weight: 600;
}
#description p {
    margin: 0;
}
#nav {
    font-family: "pontano-sans", helvetica, verdana;
    height: auto;
    text-align: left;
    margin-top: 4%;
}
#description {
    font-size: 20px;
    line-height: 26px;
    padding-left: 60px;
}
.left-elements {
    font-family: "pontano-sans", helvetica, verdana;
    height: auto;
    text-align: left;
    display: table-cell;
    vertical-align: middle;
}
.right-elements {
    font-family: "pontano-sans", helvetica, verdana;
    text-align: right;
    padding-right: 60px;
    font-size: 20px;
    line-height: 26px;
    display: table-cell;
    vertical-align: middle;
}
#title p {
    margin: 0;
}
#address p {
    margin: 0;
}
body {
    background: url(willershaeuser_background.jpg) center no-repeat;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

#close{
    width: 35px;
    height: 35px;
    float: right;
    right: 0px;
    margin: 15px 15px 0 0;
    cursor: pointer;
    position: absolute;
    background-image: url(1425169424_basics-22.svg);
}


@media (max-height: 750px) {
    #header {
        height: 25%;
    }
    #title_image {
        height: 48%;
    }
    #footer {
        height: 27%;
    }
}
@media (max-height: 625px) and (min-width: 500px){
    #description {
        font-size: 17px;
        line-height: 23px;
    }
    .right-elements {
        font-size: 17px;
        line-height: 23px;
    }
}

@media (max-width: 880px){
    #nav{
        display: table-cell;
        vertical-align: middle;
    }
    
    #nav li{
        float: none;
        margin-top: 5px;
    }
    
    #content_wrapper{
        width: 80%;
        margin-left: -40%;
    }
}

@media (max-width: 760px){
    
    #content_wrapper{
        width: 85%;
        margin-left: calc(85% / 2 * -1);
    }
    
    .right-elements{
        font-size: 17px !important;
        line-height: 22px !important;
    }
    
    #description{
        font-size: 17px;
        line-height: 22px;
    }
}

/*
@media (max-height: 700px){
    #header p{
        font-size: 20px;
    }
}
*/

@media (max-width: 500px){
    #title{
        width: 100%;
        text-align: left;
        padding: 5px 0 0 28px;
        vertical-align: middle;
    }
    
    #title p{
        font-size: 15px;
        line-height: 18px;
    }
    
    
    
    #nav{
        position: absolute;
        top: 20%;
        background-color: rgba(255, 255, 255,1);
        border: 1px #d9d9d9;
        border-bottom-style: solid;
        border-top-style: solid;
        width: 100%;
        height: auto;
        line-height: 37px;
        margin-top: 0;
    }
}

@media (max-width: 680px){
    
    .layout{
        opacity: 1;
    }
    
    #nav{
        opacity: 0.9;
    }
    
    #title{
        padding-right: 6%;
    }
    
    #overlay{
        visibility: hidden;
    }
    
    #content_wrapper{
        height: 100%;
        width: 100%;
        background: linear-gradient(to bottom, rgba(235, 235, 235, 0.97), rgba(255, 255, 255, 0.97));
        margin: 0;
        left: 0;
        top: 0;
    }
    
    #content p{
    	font-size: 1em;
    }
    
    #mail{
        white-space: nowrap;
    }
    
    #header{
        height: 25%;
    }
    
    #nav li{
        margin-top: 0;
    }
    
    #nav li:hover{
        background-color: transparent;
        color: #000;
    }
    
    #nav ul{
        margin: auto;
        height: auto;
        padding: 15px 0 8px 0;
    }
    
    #body{
        background-image: none;
    }
    
    #title_image{
        background-image: url(willershaeuser_background.jpg);
        background-position: center;
        background-size: cover;
    }
    
    iframe{
        width: 100%;
    }
    
    #description{
        clear: both;
        padding: 30px 0 0 10%;
        width: 80%;
        display: block;
        text-align: left;
        padding-left: 10%;
    }
    
    #address{
        text-align: left;
        display: block;
        padding: 30px 0 30px 10%;
        clear: both;
        width: 80%;
    }
    
    #close{
        height: 55px;
        width: 55px;
    }
}