@font-face {
    font-family: 'Lato';
    font-display: swap;
    font-style: normal;
    font-weight: 400;
    src: local('Lato Regular'), local('Lato-Regular'),
    url('lato-v14-latin-regular.woff') format('woff');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Lato';
    font-display: swap;
    font-style: normal;
    font-weight: 700;
    src: local('Lato Bold'), local('Lato-Bold'),
    url('lato-v14-latin-700.woff') format('woff'),;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body {
    height: 100%;
    width: 100vw;
    margin: 0;
    padding: 0;
    font-family: 'Lato';
}

a {
    color: black;
}

.container {
    margin: 0 30px;
    /* account for footer height */
    height: calc(100% - 80px);
}

nav {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    width: 100%;
}

nav #logo {
    height: 30px;
}

nav #site-links {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    width: 50%;
}

nav a {
    text-decoration: none;
    font-weight: bold;
    padding-right: 50px;
    display: flex;
    font-size: 16px;
}

nav a:hover {
    text-decoration: underline;
}

nav .country-link {
    width: 100%;
    align-items: center;
    display: flex;
}

nav .flag {
    height: 20px;
}

nav span {
    margin-left: 10px;
    position: relative;
    top: -2px;
}

#hero {
    background-image: url("hero-desktop.jpg");
    background-position: left center;
    background-repeat: no-repeat;
    background-size: cover;
    background-clip: content-box;
    /* within container, account for nav height */
    height: calc(100% - 90px);
    padding-bottom: 20px;
    box-sizing: border-box;
}

footer {
    height: 80px;
    width: 100vw;
    box-sizing: border-box;
    padding: 32px 30px 0 30px;
    /* color: fog */
    background-color: #f5f6f6;
    color: black;
}

#legal {
    font-size: 16px;
    display: flex;
    float: left;
}

#legal span,
#legal a {
    margin-right: 7px;
}

#social {
    font-size: 18px;
    float: right;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    width: 100px;
}

#social a {
    /* width is required for IE */
    width: 18px;
    float: left;
    padding-left: 15px;
}

#social .socialIcon {
    height: 16px;
    cursor: pointer;
}

/* wide desktop screen */
@media only screen and (min-width: 1450px) {
    nav #site-links {
        width: 40%;
    }
}

/* narrow desktop screen */
@media only screen and (max-width: 1160px) {
    nav #site-links {
        width: 60%;
    }
}

/* mobile & tablet */
@media only screen and (max-width: 1024px) {
    .container {
        margin: 0 15px;
        /* account for footer height */
        height: calc(100% - 95px);
    }
    
    nav {
        flex-flow: column nowrap;
        height: 200px;
    }

    nav #logo {
        height: 30px;
        margin: 20px 0;
    }

    nav #site-links {
        flex-flow: column nowrap;
        width: 100%;

    }

    nav a {
        padding: 10px 0;
        border-top: 1px solid #f5f6f6;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    nav .country-link {
        width: 160px;
    }
    
    #hero {
        background-image: url("hero-mobile.jpg");
        background-position: center center;
        /* within container, account for nav height */
        height: calc(100% - 200px);
        padding: 10px 0;
    }

    footer {
        padding: 0 15px;
        flex-flow: column nowrap;
        justify-content: space-around;
        height: 95px;
    }

    #legal {
        float: none;
        padding-top: 10px;
        font-size: 14px;
        flex-flow: column nowrap;
        align-items: center;
    }

    #legal span,
    #legal a {
        margin: 0;
    }

    #legal span {
        text-align: center;
    }

    #social {
        float: none;
        margin: 0 auto;
        padding-top: 15px;
        width: 100px;
    }

    #social a {
        padding: 0;
    }

    .hide-on-mobile {
        display: none;
    }
}