*,
::after,
::before {
    box-sizing: border-box;
}

header.header {
    width: 100%;
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 10;
    backdrop-filter: blur(4px);
}

header.header:before {
    content: "";
    background: url(../images/header_bg2.svg) no-repeat center top;
    width: 100%;
    height: 125px;
    position: absolute;
    top: 0px;
    left: 0;
    pointer-events: none;
    z-index: 1;
    background-size: auto 140px;

}

header.header .leftBox,
header.header .rightBox {
    width: calc(50% - 170px);
}


header.header .container {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.head_menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.rightBox .head_menu {
    justify-content: flex-end;
}

.head_menu>li {
    list-style: none;
    position: relative;
}

.head_menu>li>a {
    color: var(--gray5);
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    display: block;
    padding: 12px 13px;
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
}


.head_menu>li>a.active,
.head_menu>li:hover>a {
    color: #F4B187;
}

/* .sub_menu { display: none; } */

@media (min-width:768px) {
    li.dropdown_menu>a:after {
        content: "";
        background: url(../images/menuArrow.svg) no-repeat center;
        width: 18px;
        height: 18px;
        display: inline-block;
        vertical-align: middle;
        margin-left: 5px;
    }

    .head_menu .sub_menu {
        position: absolute;
        top: 140%;
        opacity: 0;
        visibility: hidden;
        border-radius: 16px;
        background: linear-gradient(180deg, rgba(4, 11, 34, 0.70) 0%, rgba(2, 5, 17, 0.70) 100%);
        box-shadow: 0px 8px 50px 0px rgba(2, 5, 17, 0.30);
        backdrop-filter: blur(4px);
        padding: 20px;
        width: 200px;
        transition: all 0.5s ease;
        -webkit-transition: all 0.5s ease;
        -moz-transition: all 0.5s ease;
        -ms-transition: all 0.5s ease;
        -o-transition: all 0.5s ease;
    }

    .head_menu .sub_menu li {
        list-style: none;
        margin-top: 15px;
    }

    .head_menu .sub_menu li:first-of-type {
        margin-top: 0px;
    }

    .head_menu .sub_menu li a {
        color: var(--gray5);
        text-decoration: none;
        display: flex;
        align-items: center;
    }

    .head_menu .sub_menu li a:hover {
        color: #F4B187;
    }

    .head_menu .sub_menu li span {
        width: 32px;
        height: 32px;
        margin-right: 10px;
        border: 1px solid rgba(255, 255, 255, 0.4);
        border-radius: 2px;
        -webkit-border-radius: 2px;
        -moz-border-radius: 2px;
        -ms-border-radius: 2px;
        -o-border-radius: 2px;
    }

    .head_menu .sub_menu li span img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

    .head_menu li:hover .sub_menu {
        visibility: visible;
        opacity: 1;
        top: 115%;
    }
}

.logo {
    position: relative;
    top: 16px;
    padding: 1px 15px;
}

.logo svg{
    width: 250px;
    height: 50px;
}


.head_menu>li>a.defaultBtn {
    background: linear-gradient(180deg, #82ff6a 0, #1e7c0c 100%);
    color: var(--secondary);
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    display: inline-block;
    padding: 15px 30px;
    position: relative;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 35px;
    line-height: normal;
}

.head_menu>li>a.defaultBtn,
.head_menu>li>button.defaultBtn {
    color: var(--secondary);
    font-size: 16px;
    font-weight: 800;
    padding: 11px 25px;
    margin-left: 15px;
}

@media (max-width:1399px) {

    .logo svg {
        max-width: 240px;
    }

    .defaultBtn {
        font-size: 16px;
    }
}

@media (max-width:1199px) {
   
    .logo {
        padding: 1px 15px;
    }

    .head_menu>li>a {
        font-size: 14px;
        padding: 15px 15px;
    }

    .head_menu>li>a.defaultBtn {
        font-size: 14px;
        padding: 10px 20px;
        margin-left: 0px;
    }

    header.header .leftBox,
    header.header .rightBox {
        width: calc(50% - 115px);
    }

    .defaultBtn {
        font-size: 14px;
    }
}

@media (max-width:991px) {

    header.header::after {
        bottom: 0;
        background: linear-gradient(90deg, rgba(10, 27, 86, 0.00) 0%, #F19D69 25%, #CD4CCF 50%, #1C49DA 75%);
        animation: 2s lefttoright linear infinite;
    }

    @keyframes lefttoright {
        from {
            left: -100%;
        }

        to {
            left: 100%;
        }
    }

    @keyframes righttoleft {
        from {
            right: -100%;
        }

        to {
            right: 100%;
        }
    }

    .logo svg,
    .logo {
        padding: 0;
        top: 0;
    }

    header.header .leftBox, header.header .rightBox{
        display: none;
    }

    header.header .container{
        justify-content: center;
    }

    header.header:before {
        height: 85px;
        background-size: auto 126px;
        top: -20px;
    }

    .logo svg, .logo{
            top: 0;
     }
     header.header{
        backdrop-filter: blur(0px);
     }

      .logo svg {
        max-width: 200px;
    }



}

@media (max-width:767px) {

    .rightBox .head_menu{
        justify-content: space-between;
    }
    .rightBox .head_menu li {
        display: none;
    }

    .head_menu>li>a {
        font-size: 14px;
        padding: 15px 0px;
    }
   
}

@media (max-width:479px) {

    header.header:before {
        height: 105px;
        background-size: auto 110px;
        top: -18px;
    }

    .logo {
        padding: 0;
        max-width: none;
    }


    .fantasy .home .mnleft {
        padding-bottom: 40px;
        padding-top: 110px;
    }

    .head {
        margin: 20px auto;
    }

    .head_menu>li>a.defaultBtn {
        font-size: 13px;
        padding: 8px 16px;
        line-height: normal;
    }

    .logo svg {
        max-width: 180px;
    }

    .head_menu>li>a{
        padding: 10px 0px;
    }

    .logo {
        padding: 0px 10px;
    }
    
}