/* Special cases */
@media only screen and (max-height : 800px) {
#intro h1 {
    font-size: 32px;
    margin-top: calc(5vh - 0px);
}

#intro p, #intro ul li {
    padding: 0;
    margin-bottom: 5px;
}	
}

@media only screen and (max-height : 600px) {
div#company {
    position: relative;
    bottom: auto;
    right: auto;
    text-align: center;
    margin: 20px 0;
}
}

@media only screen and (max-width : 1200px) {
div#company {
    position: relative;
    bottom: auto;
    right: auto;
    text-align: center;
    margin: 20px 0;
}
}

@media only screen and (max-width : 1600px) {
div#content {
    width: 80%;
}
}

@media only screen and (max-width : 1500px) {
div.left {
    width: 30%;
}

div.right {
    padding: 0 5% 0 0;
}
}

@media only screen and (max-width : 1600px) {
div#content {
    width: 90%;
}
}

@media only screen and (max-width : 1300px) {
div.left {
    padding: 0 0 0 5%;
}

div#content .box {
    width: 50%;
}
}

@media only screen and (max-width : 1150px) {
div.left {
    width: 35%;
    padding: 0 0 0 1%;
}
}

/* Switch to mobile Navigation */
@media (max-width: 1000px) {
div#header {
    position: relative;
    height: auto;
}

.mod-languages {
    top: 20px;
    z-index: 99;
}

div#header div#contact {
    top: 12px;
    right: 20px;
}

div#content {
    width: 96%;
}

/* Navigation */
div#header div#menu {
    display: none;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0 0 20px 0;
    border: 0;
    top: 12px;
    left: 0;
}

li.item-101.default {
    display: block;
}

div#MenBt {
    display: block;
    text-align: center;
    position: relative;
    padding: 15px 0;
}

div#MenBt a {
	display: block;
    font-size: 24px;
    color: #eee;
    text-decoration: none;
}

div#MenBt a:hover {
	text-decoration: none;
}

div#menu ul.nav.menu {
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background-color: #A0A0A0;
    opacity: 1;
	float: none;
	display: block;
	margin-top: -5px;
}

div#menu ul.nav.menu li {
    display: block;
    width: 100%;
	float: none;
    text-align: left;
    font-size: 18px;
    line-height: 26px;
}

div#menu ul.nav.menu li a {
    font-size: 24px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-left: 20px;
}

ul.nav-child.unstyled.small {
    left: 0;
    position: relative;
}

div.moduletable_menu ul li:hover ul li {
    background-color: transparent;
}
div#menu ul.nav.menu li ul li a {
	margin-left: 40px;
}

div.moduletable_menu ul li ul li a, div.moduletable_menu ul li.active ul li a, div.moduletable_menu ul li ul li ul li a, div.moduletable_menu ul li.active ul li.active ul li a, div.moduletable_menu ul li ul li ul li ul li a, div.moduletable_menu ul li.active ul li.active ul li.active ul li a {
    width: auto;
}

/* Homepage */
div.left {
    width: 20%;
}

img#one, img#two, img#three {
    height: calc(28.55vh - 0px);
}

div.right {
    width: 78%;
    padding: 0 1% 0 0;
}

div#gallery {
    width: 44%;
}
}

@media (max-width: 800px) {
div#slider .moduletable .custom {
    position: relative;
}

div#frontpageimg {
    position: absolute;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

div#intro {
    position: relative;
    top: 0;
    width: 100%;
    height: auto;
}


div.right {
    width: 75%;
}

#intro h1 {
    font-size: 26px;
    margin-top: 30px;
}

#intro p, #intro ul li {
    font-size: 18px;
}

img#one, img#two, img#three {
    height: auto;
    width: 100%;
}	
}

@media (max-width: 700px) {
div#content .box {
    margin-top: 20px;
}

div#content .box.one {
	margin-top: 50px;
}	
}

@media (max-width: 650px) {
div.left {
    display: none;
}

div.right {
    width: 96%;
    padding: 60px 2% 30px 2%;
    position: relative;
    float: none;
}

div#company {
    bottom: auto;
    right: auto;
    top: 40px;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}	
}

@media (max-width: 500px) {
div#gallery {
    width: 80%;
    margin: 10px 10% 0 10%;
}

div#content .box {
    width: 98%;
}
}

@media (max-width: 400px) {
div#gallery {
    width: 98%;
    margin: 10px 1% 0 1%;
}
}

/* For stupid Apple */
/* IPad */
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px)  {
.navbar.mod_fwrealestate_horizontal_search input[type="text"] {
    width: 35px !important;
    height: 30px !important;
    background-color: #fff !important;
    font-size: 20px !important;
    margin-top: 10px;
}

.navbar.mod_fwrealestate_horizontal_search .row-resp-form:nth-child(1) .in-row-resp:nth-child(1) input[type="text"] {
	width: 100px !important;
}
}

/* IPad mini */
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px)
and (-webkit-min-device-pixel-ratio: 1)  {
.navbar.mod_fwrealestate_horizontal_search input[type="text"] {
    width: 35px !important;
    height: 30px !important;
    background-color: #fff !important;
    font-size: 20px !important;
    margin-top: 10px;
}

.navbar.mod_fwrealestate_horizontal_search .row-resp-form:nth-child(1) .in-row-resp:nth-child(1) input[type="text"] {
	width: 100px !important;
}
}

/* IPhone 6 */
@media only screen 
and (min-device-width : 375px) 
and (max-device-width : 667px) {
#header div#companyname a {
	font-size: 20px;
}
.navbar.mod_fwrealestate_horizontal_search input[type="text"] {
    width: 35px !important;
    height: 30px !important;
    background-color: #fff !important;
    font-size: 20px !important;
    margin-top: 10px;
}

.navbar.mod_fwrealestate_horizontal_search .row-resp-form:nth-child(1) .in-row-resp:nth-child(1) input[type="text"] {
	width: 100px !important;
}

.camera_thumbs {
    margin-top: -430px;
}
}

/* IPhone 6 plus */
@media only screen 
and (min-device-width : 414px) 
and (max-device-width : 736px) {
#header div#companyname a {
	font-size: 20px;
}
.navbar.mod_fwrealestate_horizontal_search input[type="text"] {
    width: 35px !important;
    height: 30px !important;
    background-color: #fff !important;
    font-size: 20px !important;
    margin-top: 10px;
}

.navbar.mod_fwrealestate_horizontal_search .row-resp-form:nth-child(1) .in-row-resp:nth-child(1) input[type="text"] {
	width: 100px !important;
}

.camera_thumbs {
    margin-top: -380px;
}
}

/* IPhone 5 + 5s */
@media only screen 
and (min-device-width : 320px) 
and (max-device-width : 568px) {
#header div#companyname a {
	font-size: 20px;
}
.navbar.mod_fwrealestate_horizontal_search input[type="text"] {
    width: 35px !important;
    height: 30px !important;
    background-color: #fff !important;
    font-size: 20px !important;
    margin-top: 10px;
}

.navbar.mod_fwrealestate_horizontal_search .row-resp-form:nth-child(1) .in-row-resp:nth-child(1) input[type="text"] {
	width: 100px !important;
}
}

/* iPhone 5 & 5S in portrait */
@media only screen 
and (min-device-width : 320px) 
and (max-device-width : 568px) 
and (orientation : portrait) {
.camera_thumbs {
    margin-top: -360px;
}
}

/* IPhone 2 - 4 */
@media only screen 
and (min-device-width : 320px) 
and (max-device-width : 480px) {
#header div#companyname a {
	font-size: 20px;
}
.navbar.mod_fwrealestate_horizontal_search input[type="text"] {
    width: 35px !important;
    height: 30px !important;
    background-color: #fff !important;
    font-size: 20px !important;
    margin-top: 10px;
}

.navbar.mod_fwrealestate_horizontal_search .row-resp-form:nth-child(1) .in-row-resp:nth-child(1) input[type="text"] {
	width: 100px !important;
}
}