body {
    font-family: 'Open Sans', sans-serif;
    padding:0;
    margin:0;
    font-size: 15px;
}

h1, h2, h3, h4, h5 {
    font-weight: normal;
    font-family: 'Raleway', sans-serif;
}

h1 {
    font-size: 50px;
}

h2{
    text-align: center;
    font-size: 50px;
    margin-top: 20px;
    margin-bottom: 10px;
}

#page-desc-content p, .c-header-content p {
    font-family: 'Raleway', sans-serif;
    margin-top: 10px;
    font-size: 18px;
    text-align: center;
    z-index: 1;
}

.c-header-content p {
    margin-bottom: 40px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

h4 {
    font-size: 20px;
}

#onboarding h1 {
    font-weight: bold;
    font-family: 'Open Sans', sans-serif;
    font-size: 60px;
    text-align: center;
    margin-bottom: 10px;
    z-index: 1;
}

p {
    font-size: 15px;
}

a {
    color: #3366ff;
}

#onboarding {
    position: relative;
    top:0;
    left:0;
    width: 100%;
    height: 100vh;
    min-height: 650px;
    background-color: #007bff;
    background-image: url("../images/numbers_landscape_3840.webp");
    background-size: cover;
    color: white;
    overflow: hidden;
}

header {
    height: 40px;
    padding: 25px;
}

header .center {
    margin: 0 auto;
    max-width: 900px;
}

#header-logo, nav {
    height: 40px;
    display: inline-block;
    line-height: 40px;
    vertical-align: top;
}

#header-logo {
    width: 170px;
    box-sizing: border-box;
}

nav {
    float: right;
}

nav a {
    color: white;
    text-decoration: None;
    font-size: 20px;
    padding: 0px 10px;
}

#page-header {
    width: 100%;
    min-height: 300px;
    background-color: #007bff;
    background-image: url("../images/header_bg_3840.webp");
    background-size: cover;
    color: white;
    overflow: auto;
}

.c-header {
    position: relative;
    overflow: visible;
    margin: auto auto;
    margin-top: 8%;
    padding: 30px;
    max-width: 400px;
}

.page-desc {
    margin: 0 auto;
    max-width: 600px;
    text-align: center;
    padding: 0 15px;
}

.page-desc h3 {
    font-size: 28px;
    margin: 25px 0;
}

#page-desc-content {
    margin: 0 auto;
    max-width: 430px;
}

a:hover {
    cursor: pointer;
}

.c-header > img {
    position: absolute;
    top: -10%;
    left: -17%;
    width: 200%;
    z-index: 1;
}

.c-header-content {
    z-index: 2;
    position: relative;
}

.c-header-content a {
    text-decoration: underline;
    font-weight: bold;
    color: inherit;
}

#hamburger {
    display: none;
    height: 30px;
    width: 30px;
    margin: 5px 0;
    background-image: url("../images/hamburger.svg");
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: top;
    float: right;
    cursor: pointer;
}

main {
    color: #282f39;
    padding-bottom: 1px;
}

.centered p {
    margin-top: 5px;
}

.centered {
    margin: 0 auto;
    max-width: 600px;
    padding: 20px 15px;
}

.centered > h3, .centered .subtitle {
    text-align: center;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
}

.tinted-background {
    background-color: #f7f9ff;
}

.nskew-box-tinted {
    position:relative;
    padding: 20px 0;
}

.nskew-box-tinted::before {
    position: absolute;
    content: '';
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    display: block;
    background-color: #f7f9ff;
    transform: skewY(-2deg);
    z-index: -1;
}

.nskew-box-tinted::after {
    position: absolute;
    content: '';
    left: 0px;
    bottom: -2vw;
    width: 100%;
    height: 4vw;
    display: block;
    background-color: #f7f9ff;
    z-index: -1;
}


@media all and (max-width: 600px) {
    .c-header > img {
        width: 150%;
        top: 0;
        left: -1%;
    }
}

/* Save bandwidth by loading smaller images */
@media all {
    @media (max-width: 1920px) and (max-resolution:192dpi) {
        #onboarding {
            background-image: url("../images/numbers_landscape_1920.webp");
        }
        #page-header {
            background-image: url("../images/header_bg_1920.webp");
        }
    }

    @media (max-width: 1080px) {
        #onboarding {
            background-image: url("../images/numbers_landscape_1080.webp");
        }
        #page-header {
            background-image: url("../images/header_bg_1080.webp");
        }
    }

    @media (max-width: 1080px) and (min-resolution: 192dpi) {
        #onboarding {
            background-image: url("../images/numbers_landscape_1920.webp");
        }
        #page-header {
            background-image: url("../images/header_bg_2160.webp");
        }
    }

    @media (max-width: 440px) {
        #onboarding {
            background-image: url("../images/numbers_portrait_440.webp");
        }
        #page-header {
            background-image: url("../images/header_bg_440.webp");
        }
    }

    @media (max-width: 440px) and (min-resolution: 192dpi) {
        #onboarding {
            background-image: url("../images/numbers_portrait_880.webp");
        }
        #page-header {
            background-image: url("../images/header_bg_880.webp");
        }
    }
}

@media all and (max-width:520px) {
    nav {
        float: none;
        width: 100%;
        position: absolute;
        top: 89px;
        left: 0px;
        transform: translate(0, -250px);
        transition: transform 0.2s ease;
        background-color: white;
        display: block;
        z-index: 3;
        height: auto;
    }

    nav a {
        display: inline-block;
        width: 100%;
        height: 40px;
        color: #646464;
        padding: 5px 0;
        text-align: center
    }

    #hamburger {
        display: inline-block;
    }

    nav.open-menu {
        transform: translate(0, 0);
        box-shadow: 0px 20px 20px rgba(0, 0, 0, .3);
    }

    header.open-menu {
        background-color: white;
    }

    header.open-menu #header-logo {
        background: url("../images/OpenDaL_logo_dark.svg") no-repeat;
        background-size: contain;
        padding-left: 170px;
        position: relative;
        z-index: 5;

    }

    header.open-menu #hamburger {
        background-image: url("../images/cross.svg");
    }
}

@media all and (max-width: 440px) {
    h2{
        font-size: 42px;
        margin-top: 10px;
    }

    #page-header {
        min-height: 250px;
    }

    .c-header {
        margin-top: 50px;
    }
    .c-header > img {
        top: -4%;
    }

    .c-header {
        padding: 20px;
    }

    #onboarding h1 {
        font-size: 40px;
    }

    #page-desc-content p, .c-header-content p {
        font-size: 15px;
    }
}
