html, body {
    margin:0;
    padding:0;
    border:0;
    width: 100%;

    background-color: #F0F0F0;
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}

#AppView {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#StartView {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    /* padding: 40%; */ /* IE8 */
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    -ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/bg_optimized.jpg', sizingMethod='scale')";
    background: url('../images/bg_optimized.jpg'), linear-gradient(transparent, transparent);
    background-size: cover;
    background-position: 50% 0%;
}

.NavigationBar {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 56px;
    z-index: 3;

    background-color: #e12a4c;
    /*background-color: rgba(255,255,255, 0.95);*/
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-bottom-color: #E0E0E0;
    border-bottom-color: rgba(102, 102, 102, 0.25);
    box-shadow: 0px 0px 7px #000000;
}

.NavigationBarContent {
    position: relative;
    width: 100%;
    /*max-width: 1356px;*/
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    overflow: visible;
}

.NavigationContent {
    position: relative;
    width: 100%;
    /*max-width: 1356px;*/
    top: 0px;
    bottom: 0px;
    overflow: hidden;
    height: 100%;

    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.NavigationBarLogo {
    position: absolute;
    left: 33px;
    top: 8px;
    width: 140px;
    height: 37px;

    background: white; /* make fully clickable in IE8 */
    -ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/idates_logo.png', sizingMethod='scale')";
    background: url('../images/idates_logo_rot.svg'), linear-gradient(transparent, transparent);
    background-size: cover;
}

.LoginButton {
    position: absolute;
    top: 7px;
    right: 32px;
    width: 144px;
    height: 40px;
    padding: 5px 5px 5px 5px;
    cursor: pointer;

    border-style: solid;
    border-width: 1px;
    border-color: #E0E0E0; /* IE8 */
    border-color: rgba(102, 102, 102, 0.5);
    border-radius: 4px;
    background-color: white;
}

.LoginButton:hover {
    border-color: #808080; /* IE8 */
    border-color: rgba(102, 102, 102, 0.25);

    box-shadow: 0px 0px 5px #C0C0C0;
}
.LoginButton:hover .LoginButtonLabel {
    color: #404040;
}

.LoginButtonLabel {
    position: absolute;
    left: 9px;
    top: 9px;
    bottom: 0px;
    right: 9px;

    color: #808080;
    font-size: 20px;
    text-align: center;
}

#StartViewRegisterView {
    position: relative;
    float: left;
    width: 360px;
    height: 556px;
    padding: 8px 0 0 0;
    margin: 10px 0px 10px 10px;
}

.RegisterLine {
    position: relative;
    width: 100%;
    height: 45px;
    float: left;
}

#registerFacebookButton {
    padding-left: 40px;
}

#RegisterFacebookLine {
    margin-top: 6px;
}

#RegisterGoogleLine {
    margin-top: 12px;
}

#RegisterFacebookHint {
    height: auto;
}

#RegisterEmailLine {
    height: 65px;
}
#RegisterAGBLine {
    height: 50px;
}

.RegisterTitleLabel {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 180px;
    height: 25px;

    font-size: 18px;
    text-align: right;
}

.RegisterSubTitleLabel {
    position: absolute;
    left: 0px;
    top: 25px;
    width: 180px;
    height: 15px;

    font-size: 11px;
    text-align: right;
}

.RegisterInput {
    position: absolute;
    left: 190px;
    top: 18px;
    width: 150px;
    height: 32px;

    font-size: 16px;
}

.LoginInput {
    position: absolute;
    left: 210px;
    top: 18px;
    width: 170px;
    height: 32px;

    font-size: 16px;
}

.RegisterCheckboxLabel {
    position: absolute;
    left: 20px;
    top: 0px;
    right: 20px;
    height: 40px;

    font-size: 15px;
}

.RegisterButton {
    position: absolute;
    left: 20px;
    top: 0px;
    right: 20px;
    height: 40px;

    font-size: 20px;
    text-align: center;
    color: #FFFFFF;
    line-height: 40px;

    cursor: pointer;
    background-color: #eb2c4f;
    border-radius: 4px;
}

.RegisterButton:hover {
    box-shadow: 0px 0px 5px #808080;
}

.FacebookButton {
    position: absolute;
    left: 20px;
    top: 0px;
    right: 20px;
    height: 40px;

    font-size: 20px;
    text-align: center;
    color: #FFFFFF;
    line-height: 40px;

    cursor: pointer;
    -ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/bt_facebook@2x.png', sizingMethod='scale')";
    background-image: url('../images/bt_facebook@2x.png'), linear-gradient(transparent, transparent);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 4px;
}

.FacebookButton .secondClick {
    display: none;
}
.FacebookButton.secondClick .firstClick {
    display: none;
}
.FacebookButton.secondClick .secondClick {
    display: block;
}

.GoogleButton {
    position: absolute;
    left: 20px;
    top: 0px;
    right: 20px;
    height: 42px;

    font-size: 20px;
    text-align: center;
    color: #FFFFFF;
    line-height: 40px;

    cursor: pointer;
    -ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/bt_google.png', sizingMethod='scale')";
    background-image: url('../images/bt_google.png'), linear-gradient(transparent, transparent);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 4px;
}


.DownloadLinkLabel, .RegisterTitleLabel, .RegisterSubTitleLabel, .RegisterInput, .LoginInput, .RegisterCheckboxLabel, .LoginTitleLabel {
    color: #404040;
}

.LoginButtonLabel, .RegisterCheckboxLabel, .RegisterButton, .FacebookButton, .GoogleButton {
    -moz-user-select:none;
    -webkit-user-select:none;
    -o-user-select:none;
    -ms-user-select:none;
    user-select: none;
}

.LoginTitleLabel {
    position: absolute;
    left: 0px;
    top: 3px;
    width: 200px;
    height: 25px;

    font-size: 18px;
    text-align: right;
}

.ToastMessage {
    position:absolute;
    left: 50%;
    width: 280px;
    max-width: 100%;
    margin-left:-140px;
    height: 20px;
    height: auto;

    display: none;
    z-index: 4;
    -webkit-transform: translate3d(0, 0, 0); /* fix appearing above scrollbar */

    background-color: #383838;
    color: #F0F0F0;
    font-size: 15px;
    padding: 4px;
    text-align:center;
    border-radius: 2px;
    box-shadow: 0px 0px 12px -1px rgba(56, 56, 56, 1);
}

.SuccessToastMessage {
    position:fixed;
    top: 50%;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    width: 320px;
    max-width: 100%;
    height: 100px;
    height: auto;
    margin-top: -50px;

    display: none;
    z-index: 5;
    -webkit-transform: translate3d(0, 0, 0); /* fix appearing above scrollbar */

    background-color: #F0FFF0;
    color: #808080;
    font-size: 30px;
    padding: 16px;
    text-align:center;
    border-radius: 4px;
    box-shadow: 0px 0px 12px -1px rgba(56, 56, 56, 1);
}

.StartViewFooter {
    position: fixed;
    left: 0px;
    right: 0px;
    bottom: 0px;
    height: 56px;

    background-color: rgba(255, 255, 255, 0.25);
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#40FFFFFF', endColorstr='#40FFFFFF')";

    text-align: center;

    z-index: 99999;

    position: relative;
    float: left;
    width: 100%;
}

.StartViewLinks {
    margin-left: auto;
    margin-right: auto;
    color: #404040;

    margin-top: 16px;
    display: inline-block;
}

.FooterButton {
    cursor: pointer;
    text-decoration: underline;
}

#StartViewContent {
    margin-top: 56px;
    bottom: initial;
    height: auto;
    overflow: auto;
}

#StartViewDescription {
    /*
    width: 360px;
    max-width: 100%;
    height: auto;

    font-size: 18px;
    color: #404040;
    margin: 10px 0px 10px 10px;
    */
    float:left;
    width: 100%;
    margin-bottom: 10px;
}

.InlinePopover, #StartViewDescription {
    position: relative;
    float: left;
    display: inline-block;
    padding: 20px;

    background-color: white;
    background-color: rgba(255, 255, 255, 0.9);

    border-style: solid;
    border-width: 1px;
    border-color: #666666;
    border-color: rgba(102, 102, 102, 0.25);
    box-shadow: 0px 0px 5px #C0C0C0;

    z-index: 1;
}

.StartAppStoreGroup {
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.StartAppStoreLink {
    width: 45%;
    margin: 4px;
    float: left;
    cursor: pointer;
}

.StartAppStoreLink img {
    width: 100%;
}

.StartViewHighlightText {
    color: #e12a4c;
}

.StartViewTitleText {
    font-size: 24px;
    text-align: center;
}

/* Fonts */

.DownloadLinkLabel, .RegisterSubTitleLabel, .RegisterInput, .LoginInput, .RegisterCheckboxLabel, .ToastMessage, .SuccessToastMessage, #StartViewDescription {
    font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
    font-weight: 300;
}

.LoginButtonLabel, .RegisterButton, .RegisterTitleLabel, .LoginTitleLabel, .FacebookButton, .GoogleButton, .StartViewLinks, .StartViewHighlightText {
    font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
    font-weight: 300;
}

/* Responsive */

@media screen and (min-width: 768px) {
    #StartView {
        padding: initial;
    }
}

@media screen and (max-width: 767px) {
    html, body {
        height: auto;
        background: white;
    }
    #AppView {
        position: relative;
        height: auto;
    }
    #StartView {
        position: relative;
        height: 100vh;
        padding: initial;
    }
    .NavigationContent {
        height: auto;
    }
    #StartViewContent {
        margin-top: 44px;
    }

    .NavigationBar {
        height: 44px;
    }

    #MainViewNavigationBar .NavigationBarLogo, .DownloadLink {
        visibility: hidden;
    }
    .NavigationBarLogo {
        left: 8px;
        top: 0px;
    }
    .LoginButtonLabel {
        top: 6px;
    }

    #StartViewRegisterView {
        width: 100%;
        margin: 7px 0 7px 0;
    }
    #StartViewDescription {
        width: 100%;
        margin: 7px 0 0 0;
        font-size: 16px;
    }
    .StartViewTitleText {
        font-size: 20px;
    }
    #StartViewLoginButton {
        top: 2px;
        right: 8px;
        width: 120px;
    }
    .RegisterTitleLabel, .RegisterSubTitleLabel, .LoginTitleLabel {
        width: 50%;
    }
    .RegisterInput, .LoginInput {
        left: 53%;
        width: 42%;
    }

    /*
    .StartViewFooter {
        position: relative;
        float: left;
        width: 100%;
    }
    .StartViewMiddleText {
        display: none;
    }
    */
}

