#header > .wrap {
    position: relative;
    width: 1200px;
    /* width: 90%; */
    margin: auto;
}

#header nav {
    display: inline-block;
}
#header nav li {
    display: inline-flex;
    align-items: center;
    max-width: 180px;
    height: 50px;
    vertical-align: middle;
}
#header nav > li:hover {
    background-color: rgba(31, 25, 49, 1);
}
#header nav > li:hover:nth-child(1) {
    background-color: transparent;
}

#header nav ul {
    display: none;
    position: absolute;
    top: 50px;
    left: 0%;
    width: 100%;
}
#header nav ul > li {
    display: inline-table;
    height: 46px;
    margin: 2px;
}
#header nav > li:hover ul {
    display: block;
    background-color: rgba(31, 25, 49, 1);
}

#header nav > li > a,
#header nav > li > a:visited,
#header nav > li > a:active,
#header nav > li > a:focus {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    color: white;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    text-transform: capitalize;
}
#header nav > li:hover > a {
    color: white;
}
#header nav > li > .dropdown-button {
    display: none;
}

#header nav ul > li > a,
#header nav ul > li > a:visited,
#header nav ul > li > a:active,
#header nav ul > li > a:focus {
    display: table-cell;
    width: 150px;
    vertical-align: middle;
    color: white;
    background-color: rgba(31, 25, 49, 1);
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    text-transform: capitalize;
    box-sizing: border-box;
    border-radius: 10px;
}
#header nav ul > li:hover > a {
    color: white;
    background-color: rgba(48, 40, 72, 1);
}
/* menu-icon */
#header nav > li:first-child > #menu-icon-open,
#header nav > li:first-child > #menu-icon-close {
    display: none;
}
/* for logo only */
#header nav > li:first-child > a {
    padding: 0;
    padding-right: 10px;
    line-height: 0;
}
#header nav > li:first-child:hover > a {
    background-color: inherit;
}
#header nav > li:first-child > a > img {
    height: 50px;
}

#header .float-right {
    float: right;
    font-weight: bold;
}
#header .float-right > div {
    display: inline-block;
    vertical-align: middle;
    /* padding: 8px 0; */
    text-transform: capitalize;
}

#header .float-right > #search {
    position: relative;
    width: 250px;
    margin-top: 4px;
    padding-top: 8px;
}
#header .float-right > #search td.gsc-input {
    padding-right: 3px;
}
#header .float-right > #search .gsc-input-box {
    background-color: rgba(31, 25, 49, 1);
    border: none;
}
#header .float-right > #search .gsc-input-box input.gsc-input{
    color: white;
    background-color: rgba(31, 25, 49, 1) !important;
}
#header .float-right > #search td.gsc-search-button > button {
    background-color: rgba(31, 25, 49, 1);
    border-color: rgba(31, 25, 49, 1);
}
#header .float-right > #search td.gsc-search-button > button svg {
    fill: rgba(213, 29, 50, 1);
}

#header #search-text {
    width: 250px;
    height: 30px;
    padding-left: 10px;
    padding-right: 30px;
    border-radius: 15px;
    border: none;
}
#header #search-trigger {
    display: inline-block;
    position: absolute;
    top: 10px;
    right: 0;
    padding: 7px;
    font-size: 16px;
    cursor: pointer;
}

#header #user-dropdown {
    height: 100%;
    margin: 0;
    padding: 0;
    text-transform: none;
    cursor: pointer;
}
#header #user-dropdown:hover {
    color: white;
    background-color: rgba(31, 25, 49, 1);
}

#header #header-username {
    display: inline-block;
    padding: 10px 25px;
    line-height: 30px;
}
#header #user-dropdown > .dropdown {
    display: none;
    position: absolute;
    right: 0;
    padding: 0;
    background-color: rgba(31, 25, 49, 1);
}
#header #user-dropdown > .dropdown > a {
    display: block;
    width: 100px;
    padding: 10px 0;
    color: white;
    text-align: center;
    text-decoration: none;
    text-transform: capitalize;
    border: 1px solid rgba(31, 25, 49, 1);
    border-top: none;
}
#header #user-dropdown > .dropdown > a:hover {
    color: rgba(0,84,127,1);
    background-color: rgba(241,243,245,1);
}
#header #user-dropdown:hover > .dropdown {
    display: block;
}

@media only screen and (max-width: 1024px) {
    #header > .wrap {
        width: 100%;
        color: white;
    }

    #header nav {
        display: block;
    }
    #header nav li {
        display: block;
    }
    
    #header nav ul {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
    }
    #header nav ul > li {
        /* width: calc(100%/3 - 4px); */
        width: 100%;
        max-width: none;
        margin: 0;
    }
    
    #header nav > li {
        display: none;
        max-width: none;
        height: auto;
        margin: 10px;
        border-bottom: 1px solid rgba(112, 112, 112, 1);
    }
    #header nav > li:hover:first-child,
    #header nav > li:first-child {
        display: block;
        text-align: center;
        margin: auto;
        border: none;
        background-color: rgba(48, 40, 72, 1);
    }
    #header nav > li:hover {
        background-color: transparent;
    }
    #header nav > li:hover ul {
        display: none;
        background-color: transparent;
    }
    #header nav > li ul {
        border-top: 1px solid rgba(112, 112, 112, 1);
    }
    
    #header nav > li > a,
    #header nav > li > a:visited,
    #header nav > li > a:active,
    #header nav > li > a:focus {
        display: inline-flex;
        width: calc(100% - 70px);
        min-height: 50px;
        padding-left: 10px;
        box-sizing: border-box;
    }
    #header nav > li > .dropdown-button {
        display: inline-block;
        width: 60px;
        line-height: 30px;
        margin: 10px 0;
        text-align: center;
        border-left: 1px solid rgba(112, 112, 112, 1);
        box-sizing: border-box;
    }
    #header nav > li > .dropdown-button > .angle {
        display: inline-block;
        transform: rotate(0deg) scaleY(2) scaleX(1)
    }

    #header nav ul > li > a,
    #header nav ul > li > a:visited,
    #header nav ul > li > a:active,
    #header nav ul > li > a:focus {
        display: inline-flex;
        align-items: center;
        width: 100%;
        height: 100%;
        padding-left: 20px;
        color: rgba(180, 178, 178, 1);
        background-color: transparent;
        border-radius: 0;
    }

    /* menu-icon */
    #header nav > li:first-child > #menu-icon-open,
    #header nav > li:first-child > #menu-icon-close {
        position: absolute;
        display: inline-block;
        left: 0;
        width: 50px;
        line-height: 50px;
        text-align: center;
        font-size: 20px;
        color: white;
        box-sizing: border-box;
    }
    #header nav > li:first-child > #menu-icon-close {
        display: none;
    }
    /* for logo only */
    #header nav > li:first-child > a {
        padding: 5px 0;
        width: auto;
    }
    #header nav > li:first-child:hover > a {
        background-color: transparent;
    }
    #header nav > li:first-child > a > img {
        height: 40px;
    }

    /* right side (search & acct) */
    #header .float-right {
        display: none;
        float: none;
        text-align: center;
    }
    #header .float-right > div {
        margin: 0;
    }
    
    #header .float-right > #search {
        width: calc(100% - 30px);
        margin: 0;
    }
    #header .float-right > #search .gsc-input-box {
        padding-bottom: 6px;
    }
    #header #search-text {
        width: 100%;
        height: 40px;
        padding-right: 50px;
        font-size: 16px;
        border-radius: 5px;
        box-sizing: border-box;
    }
    #header #search-trigger {
        width: 50px;
        padding: 10px 0;
        font-size: 18px;
        text-align: center;
    }
}
