html {
    box-sizing: border-box;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 300;
}

header {
    width: 100%;
    min-width: 400px;
    height: 100px;
    background: rgb(41, 54, 79);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.5) 60%,
            rgba(0, 0, 0, 0) 99%);
    position: absolute;
    z-index: 2;
}

.upper-hdr {
    background-color: #29364F;
    height: 27%;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.upper-item {
    display: flex;
    align-items: center;
}

.upper-item li::selection,
.upper-item img::selection {
    background-color: #FFBF00;
    color: #29364F;
}

.upper-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    padding-right: 12px;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}

.wrapper-item {
    color: white;
    font-size: calc(1em + 0.1vw);
    font-weight: 300;
    letter-spacing: 1px;
    padding-right: 8px;
    display: flex;
    align-items: center;
}

.wrapper-item:hover {
    cursor: default;
}

.wrapper-item:first-child:hover {
    cursor: pointer;
}

.wrapper-item img {
    width: calc(1em + 0.1vw);
}

nav {
    margin: 0 auto;
    width: 100%;
    height: 73%;
    display: flex;
    justify-content: center;
    align-items: center;

}

nav .logo {
    height: 100%;
    width: 25%;
    display: flex;
    justify-content: center;
}

nav .logo>a {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px, 0;
}

nav .logo img {
    height: 58%;
}

nav .nav-menu {
    height: 100%;
    width: 75%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
}

nav .menu-item {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1em;
    font-weight: 400;
    color: white;
    height: 100%;
    width: 25%;
    margin: 0 auto;
    padding: 0 0.5%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease-out;
}

nav a::selection,
nav .logo img::selection {
    color: #29364F;
    background-color: #FFBF00;
}

.menu-item:nth-of-type(1) {
    width: 27%;
    min-width: 212px;
    flex: 1 1 auto;
}

.menu-item:nth-of-type(2) {
    width: 22.75%;
    min-width: 110px;
    flex: 1 2 auto;
}

.menu-item:nth-of-type(3) {
    width: 24.75%;
    min-width: 168px;
    flex: 1 0 auto;
}

.menu-item:nth-of-type(4),
.menu-item:nth-of-type(5) {
    width: 12.75%;
    flex: 0 4 auto;
}

nav .menu-item a {
    text-decoration: none;
    height: 100%;
    display: flex;
    align-items: center;
}

nav .menu-item:hover,
nav .menu-item:focus {
    background-color: #FFBF00;
}

nav .menu-item:hover a,
nav .menu-item:focus a {
    color: #29364F;
}

.menu-item:hover>.dropdown .dropdown-item a {
    color: #29364F;
}

.menu-item>.dropdown .dropdown-item:hover a {
    color: #29364F;
}

nav a,
nav a:visited {
    color: white;
}

.dropdown {
    display: none;
    top: 100px;
    background-color: #FFBF00;
    position: absolute;
    width: 60%;
    min-width: 700px;
    left: 25%;
}


.menu-item:hover>.dropdown {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.dropdown-item {
    list-style-type: none;
    display: flex;
    justify-content: center;
    flex: 1 0 auto;
}


/* .dropdown-item:nth-child(1),
.dropdown-item:nth-child(2) {
    flex: 1 0 auto;
} */


.dropdown-item:hover {
    background-color: #e8ae00;
}

.menu-item:hover .dropdown .dropdown-item {
    animation: display 0.2s forwards;
}

@keyframes display {
    0% {
        height: 0px;
    }

    100% {
        height: 50px;
    }
}

.arrow:after {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid white;
    margin-left: 10px;
}

.menu-item:hover .arrow:after {
    border-top: 5px solid #29364F;
}

.ctr-flex {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 1400px) {

    .menu-item a,
    .dropdown-item a {
        font-size: calc(1em + 0.15vw);
    }
}

@media (max-width: 980px) {
    .logo {
        width: 15%;
        padding: 3%
    }

    .nav-menu {
        width: 85%;
        font-size: .9em;
    }

    nav .nav-menu {
        display: none;
    }
}