html, body{
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}
body{
    background-image: url('../image/bg.jpg');
    background-repeat: repeat-x;
    background-position: top left;
    background-color: #fafafa;
    background-attachment: fixed;
    color: #484847;
    font-family: Calibri;
    font-size: 10pt;
}
h1, h2{
    color: #394d60;
    font-size: 19px;
    padding: 0;
    margin: 0;
}
a{
    color: #295670;
    text-decoration: none;
}
a:hover{
    text-decoration: underline;
}
.error{
    border: 1px solid #622A7A!important;
}
.clear{
    clear: both;
}
#container{
    width: 1000px;
    height: auto;
    position: relative;
    margin: 0 auto 0; 
    padding: 40px 0 0;
}
#container #header{
    width: 100%;
    height: auto;
    position: relative;
    float: left;
}
#header #logo{
    width: 100%;
    height: 225px;
    position: relative;
    float: left;
    background-image: url('../image/header.png');
    background-position: top right;
    background-repeat: no-repeat;
}
#header #menu{
    width: 100%;
    height: 27px;
    position: relative;
    float: left;
    background-image: url('../image/nav.png');
    background-repeat: no-repeat;
    background-position: top left;
}
#menu ul{
    margin: 0;
    padding: 0;
    list-style: none;
}
#menu ul li{
    position: relative;
    float: left;
}
#menu ul li a{
    height: 23px;
    color: #c2cfdb;
    padding: 4px 18px 0;
    display: block;
}
#menu ul li a:hover, #menu ul li a.active{
    color: #c526c5;
    text-decoration: none;
}
.iterator{
    width: 1px;
    height: 27px;
    background-image: url('../image/iterator.png');
    background-repeat: no-repeat;
    background-position: top left;
}
#container #content{
    width: 96%;
    height: auto;
    min-height: 150px;
    position: relative;
    float: left;
    padding: 0 2%;
}
#container #footer{
    width: 100%;
    height: 27px;
    position: relative;
    float: left;
    background-color: #484847;
    text-align: center;
    color: #c2cfdb;
    font-size: 11px;
    line-height: 27px;
}
#container #footer a{
    color: #c2cfdb;
}


#overlay_bg{
    width: 100%;
    height: 100%;
    position: fixed;
    background-image: url('../image/bg_trans.png');
    z-index: 100;
}
#overlay{
    width: 910px;
    height: 500px;
    position: fixed;
    left: 50%;
    top: 50%;
    margin-left: -460px;
    margin-top: -260px;
    padding: 5px;
    background-color: #ffffff;
    z-index: 100;
    text-align: center;
}
#overlay_close{
    font-weight: 900;
    color: #000000;
    position: absolute;
    float: right;
    right: 10px;
    top: 10px;
    margin: 0;
    z-index: 200;
    background-color: #ffffff;
    padding: 3px;
}
#overlay_close a, #overlay_next a, #overlay_previous a{
    color: #000000;
    text-decoration: none;
}
#overlay_next{
    font-weight: 900;
    font-size: 24px;
    height: 27px;
    color: #000000;
    position: absolute;
    float: right;
    right: 10px;
    top: 245px;
    margin: 0;
    z-index: 200;
    background-color: #ffffff;
    padding: 2px;
}
#overlay_previous{
    font-weight: 900;
    font-size: 24px;
    height: 27px;
    color: #000000;
    position: absolute;
    float: left;
    left: 10px;
    top: 245px;
    margin: 0;
    z-index: 200;
    line-height: normal;
    background-color: #ffffff;
    padding: 2px;
}
.portfolio_thumb{
    margin: 10px 10px 10px 0;
}
.par_left, .par_right, .contact_form{
    position: relative;
    float: left;
    width: 50%;
}
.par_right{
    float: right;
}

.contact_thanks{
    width: 400px;
    position: relative;
    float: left;
    display: none;
}
.contact_form{
    width: 400px;
    position: relative;
    float: left;
    margin: 20px 10px 0 0;
}
.contact_input{
    width: 96%;
    height: 25px;
    padding: 3px 2%;
    border: 1px solid #bfbfbf;
    font-family: verdana;
    font-size: 13px;
    line-height: 18px;
    color: #000000;
}
.contact_text{
    width: 96%;
    height: 70px;
    padding: 3px 2%;
    border: 1px solid #bfbfbf;
    font-family: verdana;
    font-size: 13px;
    line-height: 18px;
    color: #000000;
}
.btn{
    background-color: #bfbfbf;
    color: #ffffff;
    border: 1px solid #bfbfbf;
    padding: 3px 10px;
    cursor: pointer;
}
.btn:hover{
    background-color: #622A7A;
    border: 1px solid #622A7A;
}
#maps{
    width: 100%;
    height: 250px;
    position: relative;
    float: right;
    margin: 20px 0 20px;
}
@media only screen and (max-width:1000px) {
    #container{
        width: 100%;
        height: auto;
        padding: 0;
    }
    .par_left, .par_right, .contact_form{
        width: 100%;
    }
    
    .photo_big{
	max-width: 100%;
    }
    #overlay{
	width: 98%;
	height: auto;
	margin: 0!important;
	left: 0;
	top: 50px!important;
	padding: 1%;
    }
}