body, html {
    height: 100%;
    font-size: 16px;
}
.frame {
    display: table;
    width: 100%;
    height: 100%
}
@media all and (device-width: 768px) and (device-height: 1024px) and (orientation: portrait) {
    .home #header,
    .home .header-background {
        height: 600px!important
    }
    body .frame,
    body .frame>#header {
        height: auto!important;
        width: auto!important;
        display: block!important
    }
}
@media all and (device-width: 768px) and (device-height: 1024px) and (orientation: landscape) {
    .above-the-fold-arrow {
        display: none!important;
        height: 10px!important
    }
    .home #header,
    .home .header-background {
        height: 600px!important
    }
    body .frame,
    body .frame>#header {
        height: auto!important;
        width: auto!important;
        display: block!important
    }
}
.header-background {
    background: #435384; 
color: #fff;
    position: relative;
    background-size: compact(cover, false, false, false, false, false, false, false, false, false);
    background-position: center 0;
    overflow: hidden
}
@media only screen and (min-width: 40.063em) {
    .header-background {
        min-height: 600px;
        height: 90vh
    }
}
.home .header-background {
    display: block
}
@media only screen and (max-width: 40em) {
    .home .header-background {
        padding-bottom: 50px
    }
    #content,
    #footer,
    #header,
    .frame {
        display: block
    }
    body #content {
        overflow: visible;
        height: auto
    }
    .section3 .header-background { position: initial !important; color: #444444; }
}


@media only screen and (min-width: 40.063em) {
    #ayima-canvas #header-content,
    .services-slide {
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        left: 0
    }
    #ayima-canvas {
        display: block
    }
    #ayima-canvas #header-content {
        height: 100%;
        line-height: 30px;
        z-index: 0
    }
    #ayima-canvas #header-content h1 {
        font-size: 30px
    }
 
}

#ayima-canvas,
#iphone,
#top-menu {
    position: absolute
}
#ayima-canvas,
#ayima-canvas canvas {
    width: 100%;
    height: 100%
}