/*! responsive-nav.js 1.0.39 by @viljamis */

/* mobile */

img.hfd-logo {
	width: 100px; 
}

header {
    position: relative;
	top: 0;
    width: 100%;
	z-index: 99;
    margin: 1em 0 3em 0; 
    display: inline-block;
}

.nav-collapse ul {
    text-align: right;
	margin: 0 auto;
}

.nav-collapse a {
    display: inline-block;
    width: 100%;
	text-decoration: none;
    margin: 0;
    font-size: 1em;
    padding: 1em .75em;
    text-align: center;
	text-transform: uppercase !important;   
}

.nav-collapse a:hover {
    color: #008c95;
	text-decoration: none;
}

.nav-collapse a.selected {
	font-weight: 400;
    color: #008c95;
	text-decoration: none;
}

.js .nav-collapse {
    clip: rect(0 0 0 0);
    max-height: 0;
    position: absolute;
    display: block;
    overflow: hidden;
    zoom: 1;
    width: 100%;
}

.nav-collapse.opened {
    max-height: 9999px;
}

.nav-toggle {
    z-index: 99999;
    float: right;
    color: #444444;
    text-decoration: none;
    margin-top: .25em;
    font-size: 2em;
    line-height: 2em;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;  
}

.nav-toggle:hover {
    text-decoration: none;
    color: #008c95;
}


/* regular size */
@media screen and (min-width: 768px) {
    img.hfd-logo {
        width: 130px;
    }

    .js .nav-collapse {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
        height: 4em;
        width: 100%;
        margin: 0 auto;
    }
    
    .js .nav-collapse.closed {
        max-height: none;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .nav-collapse a.selected {
        font-weight: 400;
        color: #008c95;
        text-decoration: none;
    }

    header {
        box-sizing: border-box;
        position: relative;
        top: 0;
        height: 7em;
        width: 100%;
        background-color: white;
        z-index: 99;
        margin: 2em 0 5em 0;
        display: flex;
        align-items: center;
    }

    .nav-collapse a {
        display: inline-block;
        width: auto;
        text-transform: uppercase;
        text-decoration: none;
        margin: 0;
        font-size: 1em;
        padding: 0 0 0 2em;
    }
}


@media only screen and (max-device-width: 414px) and (orientation:portrait) {
    
    img.hfd-logo {
        width: 100px; 
        float: left;
    }

    header {
        position: relative;
        top: 0;
        width: 100%;
        z-index: 99;
        margin: 1em 0 3em 0; 
    }

    .nav-collapse ul {
        text-align: right;
        margin: 0 auto;
    }

    .nav-collapse a {
        display: inline-block;
        width: 100%;
        text-decoration: none;
        margin: 0;
        font-size: 1em;
        padding: 1em .75em;
        text-align: center;
        text-transform: uppercase !important;   
    }

    .nav-collapse a:hover {
        color: #008c95;
        text-decoration: none;
    }

    .nav-collapse a.selected {
        font-weight: 400;
        color: #008c95;
        text-decoration: none;
    }

    .js .nav-collapse {
        clip: rect(0 0 0 0);
        max-height: 0;
        position: absolute;
        display: block;
        overflow: hidden;
        zoom: 1;
    }

    .nav-collapse.opened {
        max-height: 9999px;
    }

    .nav-toggle {
        z-index: 99999;
        float: right;
        color: #444444;
        text-decoration: none;
        margin-top: .25em;
        font-size: 2em;
        line-height: 2em;
        -webkit-tap-highlight-color: rgba(0,0,0,0);
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        -o-user-select: none;
        user-select: none;  
    }

    .nav-toggle:hover {
        text-decoration: none;
        color: #008c95;
    }
}