#header {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    right: 0;
    height: auto;
    display: block;
}

.header {
    min-height: 8vh;
    background-color: white;
    transition: .3s ease background-color;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2);
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.header .logo img {
    width: 130px !important;
    margin-top: 10px;
    cursor: pointer;
}

.nav-menu {
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    max-width: 1300px;
}

.menu-list ul {
    position: initial;
    display: block;
    height: auto;
    width: fit-content;
    background-color: transparent;
    list-style: none;
    left: 100%;
    top: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    overflow-x: hidden;
    transition: .5s ease left;
}

.menu-list ul.active {
    left: 0;
}

.menu-list ul span {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: .1rem;
    text-decoration: none;
    color: #D9323A;
    text-transform: uppercase;
    padding: 12px;
    display: block;
}

.menu-list .selected {
    background-color: #D9323A;
    color: white;
    border-radius: 5px;
}

.menu-list ul span::after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 13rem;
    letter-spacing: 50px;
    z-index: -1;
    transition: .3s ease letter-spacing;
}

.menu-list ul li {
    display: inline-block;
}

.menu-list ul li:hover span::after {
    transform: translate(-50%, -50%) scale(1);
    letter-spacing: initial;
}

.menu-list ul li:hover span {
    color: white;
    cursor: pointer;
    background-color: #D9323A;
    border-radius: 5px;
}

.menu-list ul li span {
    font-size: 1.4rem;
}

.menu-list ul span:after {
    display: none;
}

.menu-list ul ul {
    left: auto;
    max-width: 200px;
    text-align: left;

    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 0;
    position: absolute;
    top: auto;
    box-shadow: 0 4px 7px rgba(0, 0, 0, 0.2) !important;
    z-index: 1;
}

.menu-list ul ul span {
    color: #D9323A !important;
    background-color: white !important;
    font-size: 1rem;
    transition: all .5s ease;
}

.menu-list ul ul li {
    width: 100%;
}

.menu-list ul ul li:hover > span {
    color: white !important;
    background-color: #D9323A !important;
    margin: 10px;
}

.menu-list ul li:hover > ul {
    display: block;
    overflow: visible;
    opacity: 1;
    transition: all .5s ease;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2);
    background-color: white;
}

/* Responsive menu*/
.menu-mobile-icon {
    display: none;
}

.menu-mobile-icon {
    height: 60px;
    width: 60px;
    border: 3px solid #35456C;
    border-radius: 50%;
    position: relative;
    align-items: center;
    justify-content: center;
    z-index: 100;
    cursor: pointer;
    transform: scale(.8);
    margin-left: 50%;
}

.menu-mobile-icon:after {
    position: absolute;
    content: '';
    height: 100%;
    width: 100%;
    border-radius: 50%;
    border: 3px solid #35456C;
    animation: menu-mobile-icon_puls 2s;
}

.menu-mobile-icon .bar {
    height: 2px;
    width: 30px;
    position: relative;
    background-color: #35456C;
    z-index: -1;
}

.menu-mobile-icon .bar::after,
.menu-mobile-icon .bar::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    background-color: #35456C;
    transition: .3s ease;
    transition-property: top, bottom;
}

.menu-mobile-icon .bar::after {
    top: 8px;
}

.menu-mobile-icon .bar::before {
    bottom: 8px;
}

.menu-mobile-icon.active .bar::before {
    bottom: 0;
}

.menu-mobile-icon.active .bar::after {
    top: 0;
}


/* ProgressBar */
.progress {
    position: fixed;
    top: 0;
    z-index: 1001;
    margin-left: 0;
    width: 100%;
    background-color: #D9323A;
}

.progress-container {
    width: 100%;
    height: 3px;
    background: #ffffff;
}

.progress-bar {
    height: 2px;
    background: #D9323A;
    width: 0;
}

/* End ProgressBar */


.search {
    width: 100%;
    position: relative;
    display: flex;
    padding: 10px;
}

.header .search-term {
    width: 100%;
    border: 2px solid #D9323A;
    border-right: none;
    padding: 5px;
    height: 36px;
    border-radius: 5px 0 0 5px;
    outline: none;
    color: black;
}

.header .search-term:focus {
    color: black;
    border: 3px solid #D9323A;

}

.header .search-button {
    width: 40px;
    height: 36px;
    border: 1px solid #D9323A;
    background: #D9323A;
    text-align: center;
    color: #fff;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.header .search-button img {
    height: 70%;
    width: 70%;
    object-fit: contain;
}

.search-res {
    top: 100%;
    left: 75%;
    right: 0;
    width: 18%;
    position: absolute;
    background-color: white;
    z-index: 50;
    display: none;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2);
}

.search-res > table {
    border: none;
    width: 100%;
    padding: 5px;
    font-size: 13px;
}

.search-res > table tr {
    height: 30px;
}

.search-res > table td {
    height: 30px;
}

.search-res > table tr:hover {
    font-size: 13px;
    cursor: pointer;
    background-color: #35456C;
    color: white;
}

.search-res table tr:hover > td {
    font-size: 13px;
    cursor: pointer;
    background-color: #35456C;
    color: white;
    padding: 5px 10px;
}

.search-res > table tr td:nth-child(1) {
    min-width: 25px;
}

.search-res > table tr td:nth-child(2) {
    min-width: 5px;
}

.header-select {
    padding: 8px;
    color: #D9323A;
    background-color: white;
    border: none;
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: .1rem;
    cursor: pointer;
    border-radius: 5px;
}

.header-select:focus,
.header-select:hover {
    outline: none;
    border: 2px solid #D9323A;
}

.header-select option {
    background-color: white;
}

.to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: #D9323A;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 80%;
}

.to-top:hover {
    background-color: #35456C;
}

/* Tablet Landscape */
@media (max-width: 1200px) {
    .menu-mobile-icon {
        display: flex;
    }

    .nav-menu {
        padding: 0 100px;
    }

    .menu-list ul {
        position: absolute;
        background-color: white;
        width: 100vw;
        height: 100vh;
        display: flex;
    }

    .menu-list ul span:after {
        display: none;
    }

    .menu-list ul ul {
        max-width: 200px;
        height: auto;
        left: 25%;
        right: 25%;
        text-align: center;

    }

    .menu-list ul ul span {
        color: #D9323A !important;
        background-color: white !important;
        font-size: 1rem !important;
        transition: all .5s ease;
    }

    .menu-list ul ul li:hover > span {
        color: white !important;
        background-color: #D9323A !important;
        margin: 10px;
    }

    .menu-list ul li:hover > ul {
        display: block;
        overflow: visible;
        opacity: 1;
        transition: all .5s ease;
        box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2);
        background-color: white;
        left: auto;
    }

    .search-res {
        top: 80%;
        left: 25%;
        width: 50%;
    }

    .search-res > table {
        font-size: 16px;
    }


    .search-res table tr:hover > td {
        font-size: 16px;
    }
}
