.nav{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--nav_color);
    height: 100%;
    box-shadow: 1px 1px 15px #eee;
    z-index: 10;
    position: fixed;
}
.nav_20{
    height: 100%;
    width: 10%;
    padding: .5px;
    position: fixed;

}
.nav a{
    text-decoration: none;
    white-space: nowrap
}
.nav_title_container{
    text-decoration: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    position: relative;
}

.nav_title{
    padding: 1rem;
    display: flex;
    align-items: center;
    color: grey;
    transition: all 0.3s;
    border-bottom: 1px solid #eee;
    position: relative;
}


.nav_title_sub_level_1_container{
    position: absolute;
    /*background-color: var(--primary_color);*/
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    min-width: 81vw;
    max-width: 85vw;
    /*justify-content: center;*/
    top: 0;
    bottom: 0;
    display: none;
    transition: all 0.5s;
}

.nav_title_sub_level_1_container .nav_title{

    background-color: var(--primary_color);

}
.nav_title_sub_level_3_container .nav_title,
.nav_title_sub_level_2_container .nav_title{
    z-index: 99999999;
}
.nav_title_sub_level_3_container .nav_title{
    color: var(--primary_color_light) !important;
    background-color: white;
    padding: 0.5rem
}

.nav_title_sub_level_3_dropdown,
.nav_title_sub_level_2_dropdown{
    position: relative;
    display: flex;
    align-items: center;
}
.nav_title_sub_level_3_dropdown{
    flex-direction: column;
}

.nav_title_sub_level_3_container,
.nav_title_sub_level_2_container{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    display: none;
    background-color: var(--primary_color);
    transition: all 0.3s;
    max-height: 400px;
    overflow: auto;
}
.nav_title_sub_level_3_container{
    display: flex;
    position: relative;
    width: 100%
}
.nav_title_sub_level_3_container .nav_title,
.nav_title_sub_level_2_container .nav_title{
    white-space: initial;
}

.nav_title_sub_level_2_container .nav_title:hover{
    background-color: var(--primary_color_light);
}

.nav_title_sub_level_3_container .nav_title:hover{
     background-color: white;
}

.nav_title_sub_level_3_dropdown:hover{
    z-index: 999999999;
}
.nav_title_sub_level_2_dropdown:hover {
    z-index: 99999999;
}
.nav_title_sub_level_3_container:hover .nav_title,
.nav_title_sub_level_2_container:hover .nav_title{
    z-index: 99999999;
}

.nav_title_sub_level_1_container .nav_title{
    color: white;
}


.nav_title_container:hover{
    background-color: var(--primary_color);
    color: white;
}

/*.nav_title_sub_level_1_container .nav_title:hover{
    background-color: var(--primary_color_light);
}*/

.nav_title_container:hover .nav_title{
    color: white;
}
.show_sub_menu{
    display:flex;
    animation: fade_animation 0.3s forwards;
}




.logo{
    height: 112px;
    padding-top: 4px;
}

.logo img{
    height: 100%;
}
.nav_options{
    display: flex;
    justify-content: center;
    align-items: center;
}
.change_lang{
    color: var(--primary_color);
    font-size: 2rem;
    margin: 0 1rem;
    cursor: pointer;
}

.toggle_menu {
    display: inline-block;
    cursor: pointer;
    display: none;
}

.bar1, .bar2, .bar3 {
    width: 35px;
    height: 5px;
    background-color: #333;
    margin: 6px 0;
    transition: 0.4s;
}

.change .bar1 {
    transform: translate(0, 11px) rotate(-45deg);
}

.change .bar2 {
    opacity: 0;
}

.change .bar3 {
    transform: translate(0, -11px) rotate(45deg);
}

@media screen and (max-width:1001px){
    .logo{
        height: 50px;
        padding:0px;
    }
    .rotate_ltr{
        transform: rotateZ(90deg);
    }
    .rotate_rtl{
        transform: rotateZ(-90deg);
    }
    .toggle_menu{
        display: inline;
    }
    .nav{
        flex-direction: row;
        height:4rem;
        justify-content: space-between;
        width: 100%;
        padding: 0 1rem;

    }
    .menu_container{
        transform: translateY(-100%);
        transition: all 0.3s;
        position: fixed;
        top: 0;
        right:0;
        left: 0;
        opacity: 0;
        display: flex;
        flex-direction: column;
        background-color: var(--primary_color);
        max-height: 90vh;
        overflow: auto;

    }
    .menu_container_show{
        top: 4rem;
        transform: translateY(0%);
        opacity: 1;
    }
    .nav_title_sub_level_3_container,
    .nav_title_sub_level_2_container,
    .nav_title_sub_level_1_container{
        flex-direction: column;
        position: relative;
        left: 0;
        right: 0;
    }
    .nav_title_sub_level_3_dropdown,
    .nav_title_sub_level_2_dropdown {
        position: relative;
        align-items: flex-start;
        flex-direction: column;
    }
    .nav_title{
        width: 100%;
        color: white;
        font-size: 1.2rem
    }

    /*    a.nav_title:hover{        
            color: var(--primary_color_light);
        }*/
    .menu_container{
        padding: 0 1rem;
        margin: 0 auto;
    }
    .nav_title_sub_level_3_container,
    .nav_title_sub_level_2_container,
    .nav_title_sub_level_1_container{
        background: white;
        margin-bottom: 0.5rem;
    }
    .nav_title_sub_level_3_container,
    .nav_title_sub_level_2_container{
        margin: 0;
        width:100%;

    }
    .nav_title_sub_level_3_container .nav_title,
    .nav_title_sub_level_2_container .nav_title{
        padding: 0.5rem 2.2rem;
    }
    .nav_title_container .nav_title_sub_level_3_container .nav_title,
    .nav_title_container .nav_title_sub_level_2_container .nav_title,
    .nav_title_container .nav_title_sub_level_1_container .nav_title{
        /*color: var(--primary_color);*/
    }

    /*    .nav_dropdown:after{
            color: var(--primary_color);
        }*/
}

.nav_title:hover .rotate_ltr{
    animation: 0.5s mymove;
}
.nav_title:hover .rotate_rtl{
    animation: 0.5s mymove;
}
.nav_dropdown:hover .down-arrow{
    animation: 0.5s mymove;
}

@keyframes mymove {
    0% {
        transform: rotateZ(5deg);
    }
    50% {
        transform: rotateZ(-10deg);
    }
    100% {
        transform: rotateZ(5deg);
    }
}



