header {
    padding: 10px 0 0px 0;
    box-shadow: 0 0 30px 1px rgb(0 0 0 / 3%), 0 0 5px 0 rgb(79 112 149 / 30%);
}
header div {
    display: grid;
    grid-template-columns: min-content 1fr;
    grid-template-areas:
        "logo headstuff"
        "menu menu";
    align-items: center;
}
header nav.headstuff ul:first-child li ul::before {
    content: "";
    display: block;
    border: 1em solid #606060;
    border-right-color: transparent;
    border-left-color: transparent;
    border-top-color: transparent;
    position: absolute;
    top: -.75em;
    left: 0;
    margin: -1em 0 0 2em
}
header nav.headstuff ul:first-child li ul li span {
    font-size: 14px;
    padding: 12px 18px;
    color: #f2f2f2;
    display: block
}
header nav.headstuff ul#ipv li {
    font-size: 12px;
    font-family: helvetica;
    color: #58595b;
    padding: 0;
    margin: 0;
    letter-spacing: 1px;
    font-weight: lighter;
    list-style: none
}

.aui-form {
    display: grid;
    grid-template-columns: 1fr min-content;
    align-items: center; 
}
.aui-form input[type=search] {
    color: #555;
    font-size: 16px;
    transition: 1s ease box-shadow;
    margin: auto;
    padding: 10px;
    width: 100%;
}
.aui-form button {
    font-size: 18px;
    background: #323232;
    padding: 12px;
    color: #FFF;
}

.aui-form input i {
    color: #fff;
    font-size: 15px
}
.aui-form input[type=image]:hover {
    background: rgba(0,0,0,.9)
}
header div nav#logo {
    grid-area: logo;
}
header div nav#logo img {
    width: 190px; 
}

header div nav#newhead {
    display: none
}

header nav.headstuff {
    grid-area: headstuff;
}

header nav.headstuff ul {
    float: right;
    clear: both
}

header nav.headstuff ul:first-child>li a {
    color: #666;
    font-size: 20px;
    text-align: center;
    padding: 8px
}
header nav.headstuff ul:first-child>li a span {
    font-size: 12px
}
header nav.headstuff ul:first-child li a:hover {
    color: #009acb
}
header nav.headstuff ul:first-child li ul {
    visibility: hidden;
    position: absolute;
    opacity: 0;
    z-index: 1;
    background: #606060;
    border: 1px solid #444;
    padding: 0;
    left: -30px;
    top: 30px;
    backdrop-filter: blur(3px) saturate(30%);
    -webkit-backdrop-filter: blur(10px) saturate(80%);
    -webkit-moz-filter: blur(10px) saturate(80%);
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
    border-radius: 3px;
    box-shadow: inset 0 -1px 3px -1px #afafaf
}
header nav.headstuff ul:first-child li:hover ul {
    visibility: visible;
    opacity: 1;
    display: block;
    transition: all .3s ease-in-out
}
header nav.headstuff ul:first-child li ul li,header nav.headstuff ul:first-child li ul li a {
    display: block
}

header nav.headstuff ul:first-child li ul li a {
    text-transform: capitalize;
    font-size: 14px;
    padding: 12px 18px;
    color: #f2f2f2
}

header nav.headstuff ul:first-child li ul li a:hover {
    background: rgba(175,175,175,.3);
    color: #fff
}

header nav.headstuff ul:first-child li ul li:nth-child(2) a {
    border-top-width: 1px;
    border-bottom-width: 1px;
    border-style: solid;
    border-color: #444
}

header nav.headstuff ul#ipv {
    margin-top: 15px;
    text-align: right;
    float: right
}

header nav.menu {
    grid-area: menu;
    margin: 10px 0 0;
}
header nav.menu ul {
    display: grid;
    grid-auto-flow: column;
}
header nav ul li {
    display: inline-block;
    position: relative;
}
header nav.menu ul li:hover > a {
    background: #eff2f5;
    text-decoration: none;
}
header nav.menu ul li ul li:hover a {
    background: #d4dee9;
}

header nav.menu ul li:hover ul {
    display: block
}

header nav.menu ul li a {
    display: block; 
    font-size: 12pt; 
    padding: 12px 8px;
    color: #004c62; 
}

header nav.menu > ul > li > a {
    text-align: center;
}
header nav.menu ul li ul {
    display: none;
    position: absolute;
    z-index: 2;
    width: 250px; 
    text-align: left; 
    box-shadow: -2px 2px 5px -1px rgb(79 112 149 / 15%), 2px 2px 5px -1px rgb(79 112 149 / 15%);
}

header nav.menu ul li ul li {
    padding: 0;
    clear: both;
    display: block
}
header nav.menu ul li ul li a {
    background: #eff2f5;
} 
header nav#bars {  
    display: none;
    grid-area: bars;
}
 
@media only screen and (max-width:980px) {
    header {
        padding: 10px 0 10px 0; 
    }
    header div {
        grid-template-columns: min-content 1fr max-content;
        grid-template-areas: "bars logo headstuff";
    }
    header div img {
        width: 150px;
        height: 80px
    }
    
    header nav#bars {
        display: block; 
    }
    header nav.menu {
        display: none
    }
    header nav.headstuff ul:first-child li:hover ul {
        visibility: hidden
    }

    header nav.headstuff ul:first-child li ul{
        display: none
    }
}
@media only screen and (max-width:520px) {
    header nav:first-child>ul>li {
        display: block;
        float: left
    }
    header div img {
        width: 120px
    }
    header nav.headstuff ul#ipv {
        display: none
    }
}
@media only screen and (max-width:520px) {
    header nav.headstuff {
        border: 1px solid rgba(175,175,175,.8);
        border-radius: 30px;
    }
    header nav#bars {
        display: block; 
    }
    header div nav#logo {
        text-align: center;
    }

    header nav.headstuff ul {
        float: left
    }
    header nav.headstuff ul:first-child>li a:hover {
        background: #f1f1f1
    }
    header nav ul li,header nav.headstuff ul:first-child>li a {
        display: block;
    }
    
    header nav.headstuff ul:first-child > li a span {
        display: none
    }
    header nav.headstuff ul:first-child li:first-child a {
        border-radius: 30px 30px 0 0
    }
    header nav.headstuff ul:first-child li:nth-child(2) a {
        border-bottom: 1px solid rgba(175,175,175,.8);
        border-top: 1px solid rgba(175,175,175,.8)
    }
    header nav.headstuff ul:first-child li:last-child a {
        border-radius: 0 0 30px 30px
    }
}