@font-face {
    font-family: Helvetica;
    src: url(../font/HelveticaLTStd-Roman.otf);
}
body, html {
	height: 100%;
	width: 100%;
    margin: 0;
    font-family: "Helvetica", serif;
    overflow: hidden;
}
.downloads a {
    text-decoration: none;
}

#main-nav {
    display: inline-block;
    list-style-type: none;
    /* font-weight: bold; */
    font-weight: normal;
    left: 300px;
	color: #FF3F00;
    font-size:18px;
    /*font-family: 'Vollkorn', serif;*/
    width: 100%;
    text-align: center;
    -webkit-padding-start: 0;
}
#main-nav li {
height: 33px;
    width: 30%;
    display: inline-block;
    vertical-align: middle;
}
#main-nav li a {
    color: #FF3F00;
	line-height: 33px;
    text-decoration: none;
}

p.slogan {
	display: block;
    /*width: 500px;*/
    margin-left: auto;
    margin-right: auto;
	color: black;
	vertical-align: middle;
	text-align: center;
	/*font-family: 'Vollkorn', serif;*/
	font-size: 20px;
    margin-bottom: 0px;
    padding-bottom: 10px;
    padding-top: 0px;
}
#main {
    padding-top: 30px;
    width: 900px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    height: 100%;
    padding-top: 5%;
}
#main-left {
    display: inline-block;
    max-width: 40%;
    min-width: 30%;
    vertical-align: top;
    height: auto;
    position: relative;
    border: 2px solid #FF3000;
    border-radius: 10px;
}
img#main-logo {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}
#app-preview {
	position: relative;
    height: 90vh;
    display: inline-block;
    width: 45%;
    background: url(../img/hipsrv-base2-screen.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position-y: 10%;
    float:right;
    /*background-position: 40px;*/
}

img.hipsrv-screen {
    width: 300px;
}
.downloads {
    text-align: center;
    position: initial;
    width: 100%;
    text-align: center;
    margin-bottom: 150px;
    margin-top: 0px;
}
.downloads img {
    display: inline-block;
    height: 50px;
}
img#preview-screen {
	position: absolute;
    right: 53px;
    width: 220px;
    top: 169px;
}

#overlay {
    display: none;
    width 100%;
    position: absolute;
    top: 20;
}
#about-nav {
    list-style-type: none;
}
#about-nav li {
    padding: 15px;
}
#about-nav li img {
    width: 70px;
    height: 70px;
}
div.coming-soon {
    width: 25%;
    margin-right: auto;
    margin-left: 65px;
    color: grey !important;
}
/* BEGIN MOBILE */
@media screen and (max-width: 640px) {
    body {
    }
    #main {
        width: 100%;
        padding-top: 12px;
    }
    div.column, #main-left, #app-preview {
        height: 95vh;
        width: 90%;
        display: block ;
        max-width: none ;
        min-width: auto ;
        margin-left: auto;
        margin-right: auto;
        float: none;
        padding-top: 0;
        margin-bottom: 15%;
        position: relative;
    }
    div.downloads {
        margin-bottom: 10px;
        height: 80%;
    }
    #main-nav {
        position: absolute;
        bottom: 5px;
        left: 0;
        right: 0;
    }
}


/* iPhone 5 begins */
@media screen and (device-aspect-ratio: 40/71) {
     div.downloads img {
         height: 40px;
    }
}

/* iPhone 5 ends */

/* detect safari for iOS to account for browser panels 
http://stackoverflow.com/questions/16348489/is-there-a-css-hack-for-safari-only-not-chrome
*/
@media screen and (min-color-index:0) and(-webkit-min-device-pixel-ratio:0) 
{ @media {
    div.column, #main-left, #app-preview {
        height: 87vh;
    }
}}
