﻿.home-header {
    position: absolute;
    top: 0;
    z-index: 900;
    width: 100%;
    height: 169px;
    padding-left: 9.9%;
    padding-right: 6.9%;
    display: flex;
    flex-direction: row;
    align-items: center;
    transition: 0.2s;
}

    .home-header.fixed,
    .home-header.scrolled {
        height: 100px;
        box-shadow: 0 2px 8px 0 rgba(0,0,0,0.09);
        transition: height 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
        background-color: #FFF;
    }

    .home-header.relative {
        position: relative;
    }

    .home-header .logo {
        margin-right: auto;
        width: auto;
        flex-direction: row;
        display: flex;
    }

    .home-header .topnav {
        display: none;
    }

        .home-header .topnav .topnav-content {
            display: flex;
            flex-direction: column;
            margin: auto 0;
        }

    .home-header .icon {
        display: none;
    }

    .home-header .text {
        padding-left: 20px;
        padding-right: 20px;
        margin-right: 4px;
        font-family: roboto-light;
        font-size: 20px;
        font-weight: 400;
        color: #fff;
        transition: 0.3s;
    }

        .home-header .text:hover {
            color: #799fff;
            font-weight: 800;
        }

        .home-header .text.active {
            color: #799fff;
            font-weight: 800;
        }

    .home-header.scrolled .text {
        color: #00207A;
        font-weight: 800;
    }
        .home-header.scrolled .text:hover {
            color: #799fff;
        }
        .home-header.scrolled .text.active {
            color: #799fff;
        }


    .home-header a {
        text-decoration: none;
        cursor: pointer;
    }

        .home-header a.logo {
            width: 181px;
        }

            .home-header a.logo img {
                max-width: 100%;
            }

    .home-header .button {
        margin-left: 20px;
        height: 40px;
        border-radius: 6px;
        background-color: #2f59cc;
        padding-left: 20px;
        padding-right: 20px;
        align-items: center;
        font-family: roboto-regular;
        font-size: 16px;
        color: #fff;
        transition: 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .home-header .bottom-section {
        display: none;
    }

    .home-header .header-container {
        width: 100%;
        height: auto;
        flex: 0 0 auto;
        display: flex;
        flex-direction: row;
        align-items: center;
    }

        .home-header .header-container .topnav {
            display: flex;
            flex-direction: row;
            align-items: center;
        }

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (max-width: 992px) {

    .home-header,
    .home-header.fixed {
        height: 75px;
        max-height: 75px;
        flex: 0 0 auto;
        background-color: #000320;
        box-shadow: 0 2px 8px 0 rgba(0,0,0,0.09);
        transition-property: height, max-height, background-color, padding, box-shadow;
        transition-duration: 0.3s;
        padding: 30px 50px;
        display: flex;
        flex-direction: column;
    }

        .home-header.scrolled {
            background-color: #fff;
            padding: 15px 50px;
        }

        .home-header .logo img {
            max-height: 44px;
        }

        .home-header a.icon {
            float: right;
            display: block;
            color: #00207A;
        }

            .home-header a.icon.active .fa.fa-bars {
                color: #3b6fff;
            }

        .home-header .topnav {
            margin: auto 13.58%;
            width: 100%;
            flex: 1 auto;
            opacity: 0;
            display: flex;
            flex-direction: column;
            color: #fff;
            transition-duration: 0.3s;
            /*transition-delay: 0.3s;*/
            overflow-y: auto;
            overflow: hidden;
            max-height: 0;
        }

            .home-header .topnav .topnav-content {
                display: flex;
                flex-direction: column;
                margin: auto 0;
            }

            .home-header .topnav a {
                margin-left: auto;
                flex: 0 0 auto;
                padding: 0;
                font-family: roboto-bold;
                font-size: 4.53vw;
                color: #00207a;
                cursor: pointer;
                margin-bottom: 3.57vw;
                transition: 0.3s;
            }

                .home-header .topnav a:last-child {
                    margin-bottom: 0;
                }

                .home-header .topnav a:not([disabled]):hover {
                    color: #3b6fff;
                }

                .home-header .topnav a[disabled] {
                    cursor: auto;
                    color: #434343;
                }

            .home-header .topnav .divider {
                margin: 13.93vw 0 12.73vw auto;
                width: 5.87vw;
                max-height: 0;
                flex: 0 0 auto;
                border: none;
                border-bottom: 0.54vw solid #00207a;
                padding: 0;
            }

        .home-header .bottom-section {
            width: 100%;
            height: 0;
            min-height: 0;
            flex: 0 0 auto;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-self: flex-end;
            opacity: 0;
            /*transition-delay: 0.3s;*/
            transition-duration: 0.3s;
        }

            .home-header .bottom-section :first-child {
                margin-right: auto;
            }

        .home-header .copyright {
            font-family: roboto-regular;
            font-size: 3.2vw;
            color: #00207a;
        }

        .home-header .header-container .topnav {
            display: none;
        }

        .home-header.active-menu {
            height: 100vh;
            max-height: 100vh;
            position: absolute;
            background: rgba(245, 245, 245, 0.95);
            box-shadow: 0 2px 8px 0 rgba(0,0,0,0.09);
        }

            .home-header.active-menu .topnav {
                opacity: 1;
                max-height: unset;
                overflow-y:auto;
            }

            .home-header.active-menu .bottom-section {
                opacity: 1;
                height: auto;
                min-height: 45px;
            }

            .home-header.active-menu .header-container .menu-icon .burger {
                background-color: #00207A;
            }

    .home-header-backdrop {
        opacity: 0;
        position: absolute;
        top: 0;
        width: 100%;
        height: 75px;
        background-repeat: no-repeat;
        background-position: top;
        background-attachment: fixed;
        background-size: cover;
        background-image: url('/images/home/Helyx App on iPhone-1.2 Vignette.jpg');
        z-index: 850;
        transition-property: height, opacity;
        transition-duration: 0.3s;
        flex: 0 0 auto;
    }

        .home-header-backdrop.active-menu {
            height: 100vh;
            opacity: 1;
        }
}
