
header {
    padding: 10px 0 0px 0;
    background: #eff2f5;
}
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 li span {
    font-size: 14px;
    padding: 12px 18px;
    color: #f2f2f2;
    display: block
}
header nav.headstuff ul#ipv li {
    padding: 0;
    margin: 0;
    font-size: 12px;
    font-family: "Roboto Condensed", -apple-system,system-ui,BlinkMacSystemFont,"Helvetica Neue","Segoe UI",Roboto,Arial,sans-serif;
    letter-spacing: 1px;
    font-weight: lighter;
    list-style: none;
    color: #252833;
}

.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: 170px; 
}

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 {
    padding: 8px;
    font-family: "Roboto Condensed", -apple-system,system-ui,BlinkMacSystemFont,"Helvetica Neue","Segoe UI",Roboto,Arial,sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px; 
    color: #252833; 
}
header nav.headstuff ul:first-child>li a span {
    font-size: 12px
}
header nav.headstuff ul:first-child li a:hover {
    color: #007ae6
}
header nav.headstuff ul:first-child li ul {
    visibility: hidden;
    position: absolute;
    opacity: 0;
    z-index: 1;
    background: rgba(255,255,255,88%);
    backdrop-filter: blur(12px);
    padding: 0px;
    left: -20px;
    top: 28px;
    transition: all 0.3s ease-in-out;
    border-radius: 4px;
    box-shadow: -2px 2px 5px -1px rgb(79 112 149 / 15%), 2px 2px 5px -1px rgb(79 112 149 / 15%);
}
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 {
    font-family: -apple-system,system-ui,BlinkMacSystemFont,"Helvetica Neue","Segoe UI",Roboto,Arial,sans-serif;
    padding: 12px 18px;
    text-transform: capitalize;
    font-size: 10pt;
    font-weight: 500;
    letter-spacing: 1px;
    background: transparent !important;
    color: #1f2526;
}

header nav.headstuff ul:first-child li ul li a:hover {
    background: rgba(175,175,175,0.1) !important;
    color: #252833;
}

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: rgb(0,0,0,7%);
}

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 { 
    text-decoration: none;
}
header nav.menu ul li ul li:hover a { 
    color: #007ae6;
}

header nav.menu ul li:hover ul {
    display: block;
    transform: scale(1) translateY(0em);
    transform-origin: top;
    transition: all 0.3s 0s ease;
}

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

header nav.menu > ul > li > a {
    font-weight: 800;
    font-size: 10pt;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #252833;
}
header nav.menu > ul > li > a:hover {
    color: #007ae6;
}
header nav.menu ul li ul {
    display: none;
    overflow: hidden;
    position: absolute;
    width: max-content; 
    z-index: 2;  
    padding: 10px;
    border: 1px solid rgb(79, 112, 149, 9%); 
    border-radius: 7px; 
    opacity: 1;
    transform: scale(0.98) translateY(-1em);
    transform-origin: top;
    transition: all 0.3s 0s ease;
    text-align: left;
    background: #FFF;
    box-shadow: 0 0 5px 0px rgb(0 0 0 / 30%);
}

header nav.menu ul li ul li {
    padding: 0;
    clear: both;
    display: block
}
header nav.menu ul li ul li a {
    padding: 8px;
    font-size: 12pt;
    font-weight: 500;
    letter-spacing: 1px;
    color: #252833;
}
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
    }
}