header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    -webkit-transition: background-color 0.25s ease-in-out;
    -moz-transition: background-color 0.25s ease-in-out;
    transition: background-color 0.25s ease-in-out;
    display: flex;
    flex-direction: row;
    padding: 34px 50px;
    background-color: rgb(6,17,56);
}

body.at-top header.has-hero {
    background-color: rgba(0,0,0,0);
}

header .logo {
    flex-grow: 0;
    margin: auto 0;
}

    header .logo img {
        height: 38px;
    }

header nav {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
}

    header nav ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
        display: flex;
    }





    header nav li {
        float: left;
        margin-left: 5px;
    }

        header nav li:first-child {
            margin-right: 5px;
        }




        header nav li a, header nav li a:visited, header nav li a:hover, header nav li a:visited {
            text-decoration: none;
            opacity: 0.75;
            font-size: 16px;
            font-weight: bold;
            text-transform: uppercase;
            color: #fff;
            padding: 12px 32px;
            display: inline-block;
        }



            header nav li a:hover {
                opacity: 0.9;
            }

            header nav li a.btn, header nav li a.btn:visited, header nav li a.btn:hover, header nav li a.btn:visited {
                opacity: 1;
                font-weight: bold;
                padding: 12px 32px;
                display: inline-block;
                font-size: 16px;
            }

            header nav li a.underlined, header nav li a.underlined:visited, header nav li a.underlined:hover, header nav li a.underlined:visited {
                padding: 12px 0 5px 0;
                border-bottom: 3px solid rgba(35,66,129, 1);
                margin: 0 32px;
                opacity: 1;
                white-space: nowrap;
            }





                header nav li a.underlined:hover {
                    border-bottom: 3px solid rgba(191,222,246, 0.8);
                }


    header nav ul:first-child {
        margin-right: auto;
    }

header button.toggle {
    display: none;
    background: none;
    border: none;
    padding: 2px;
    margin-left: 10px;
}

header button.toggle-left {    
    margin-right: 10px;
    display: none;
    background: none;
    border: none;
    padding: 2px;
}




    content section:first-child {
        margin-top: 122px;
    }

content section.is-hero {
    margin-top: 0 !important;
}

@media only screen and (min-width:992px) {
    /* Quick hack for more space in menu */
    header nav li a.underlined, header nav li a.underlined:visited, header nav li a.underlined:hover, header nav li a.underlined:active {
        width: auto;
        margin-left: 0px;
    }
}

    /* Tablet */
    @media only screen and (max-width:992px) {

        content section:first-child {
            margin-top: 48px;
        }


        header {
            padding: 10px 10px 0 10px;
        }

            header .logo {
                flex-grow: 1;
            }

                header .logo img {
                    height: 30px;
                }


            header button.toggle {
                display: flex;
                flex-grow: 0;
            }

                header button.toggle .hamburger {
                    display: block;
                    width: 26px;
                    height: 26px;
                    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' width='26' height='26'%3E%3Crect width='26' height='6' style='fill:%23234281;'%3E%3C/rect%3E%3Crect x='10' y='12' width='16' height='6' style='fill:%23234281;'%3E%3C/rect%3E%3C/svg%3E");
                }

                header button.toggle .close {
                    display: none;
                    width: 26px;
                    height: 26px;
                    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' width='26' height='26'%3E%3Cline x1='2' x2='24' y1='2' y2='24'  stroke='%23234281' stroke-width='5'/%3E%3Cline x1='2' x2='24' y1='24' y2='2' stroke='%23234281' stroke-width='5'/%3E%3C/svg%3E");
                }

            header.open button.toggle .close {
                display: block;
            }

            header.open button.toggle .hamburger {
                display: none;
            }

            
            
                
            header button.toggle-left .close {
                display: none;
                width: 26px;
                height: 26px;
                background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' width='26' height='26'%3E%3Cline x1='2' x2='24' y1='2' y2='24'  stroke='%23234281' stroke-width='5'/%3E%3Cline x1='2' x2='24' y1='24' y2='2' stroke='%23234281' stroke-width='5'/%3E%3C/svg%3E");
            }
          

            header nav {
                background-color: #1C1E21;
                display: flex;
                position: absolute;
                top: 0;
                right: 0;
                width: 0;
                overflow: hidden;
                z-index: -1;
                flex-direction: column;
            }

                header nav ul {
                    flex-direction: column;
                    width: 100%;
                    text-align: center;
                }

                    header nav ul:first-child {
                        margin-top: 60px;
                        margin-bottom: auto;
                    }

                header nav li, header nav li:first-child {
                    float: none;
                    display: block;
                    margin: 0;
                    padding: 12px 32px;
                    width: 100%;
                }

                    header nav li a.underlined, header nav li a.underlined:visited, header nav li a.underlined:hover, header nav li a.underlined:active {
                        width: auto;
                    }


                    header nav li a, header nav li a:visited, header nav li a:hover, header nav li a:active {
                        padding: 0;
                        width: 100%;
                    }





            header.open nav {
                width: 350px;
            }
    }
    /* mobile */
    @media only screen and (max-width:576px) {
        header.open nav {
            width: 100%;
        }

        content section:first-child {
            margin-top: 55px;
        }
    }

    body.device-app content section:first-child {
        margin-top: 0px;
    }
