/**
 * Style of navigation menu displayed on header
 */

.site_nav {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
}
.site_nav_ul {
    -webkit-box-shadow: -1px 2px 3px rgba(0, 0, 0, .3), 1px 0px 4px rgba(0, 0, 0, .3), rgba(0, 0, 0, 0.25) 0px -50px 30px -34px inset;
            box-shadow: -1px 2px 3px rgba(0, 0, 0, .3), 1px 0px 4px rgba(0, 0, 0, .3), rgba(0, 0, 0, 0.25) 0px -50px 30px -34px inset;
    border-radius: 10px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
	    -webkit-box-align: center;
            align-items: center;
	-webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
             -ms-flex-flow: row wrap;
                 flex-flow: row wrap;
	min-height: 35px;
}
.site_nav_li:first-child a {
    border-radius: 10px 0 0 10px;
}
.site_nav_li:last-child a {
    border-radius: 0 10px 10px 0;
}
.site_nav_li {
    border-right: 1px solid #bababa;
}
.site_nav_li:last-child {
    border-right: none;
}
.a_nav:not(.second_level) {
    padding: .6rem 2.5rem;
}
.a_nav.second_level {
    padding: .3rem .6rem;
}
.a_nav {
    background-color: lightgray;
    font: var(--body-font);
    font-size: .8rem;
    background: transparent;
    display: block;
    color: #6e6b6b;
    font-weight: 300;
    -webkit-transition: .2s;
    -o-transition: .2s;
    transition: .2s;
}
.a_nav:hover {
    color: lightgray;
    -webkit-box-shadow: rgba(0, 0, 0, 0.25) 0px -50px 30px -34px inset;
            box-shadow: rgba(0, 0, 0, 0.25) 0px -50px 30px -34px inset;
    -webkit-box-shadow: rgba(94, 94, 94, 0.9) 0px -58px 26px -26px inset;
            box-shadow: rgba(94, 94, 94, 0.9) 0px -58px 26px -26px inset;
    -webkit-box-shadow: rgba(94, 94, 94, 0.9) 0px -58px 12px -22px inset;
            box-shadow: rgba(94, 94, 94, 0.9) 0px -58px 12px -22px inset;
}
.a_nav.is-current {
    color: white;
    -webkit-box-shadow: rgba(0, 0, 0, .9) 0px -58px 12px -22px inset;
            box-shadow: rgba(0, 0, 0, .9) 0px -58px 12px -22px inset;
}
/* DROPDOWN */
/* border-radius already assigned to ul tag but on li tag for hovering */
.dropdown-content li:first-child,
.dropdown-content li:first-child a {
    border-radius: 10px 10px 0 0;
}
.dropdown-content li:last-child,
.dropdown-content li:last-child a {
    border-radius: 0 0 10px 10px;
}
/* DROPDOWN */
.dropdown {
    position: relative;
}
.dropdown-content {
    display: none;
    position: absolute;
    z-index: 1;
    top: 100%;
    left: 50%;
    -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
            transform: translateX(-50%);
    text-align: center;
    border-top: 6px solid transparent;
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
    border-radius: 10px;
    min-width: 120px;
}
.dropdown-content li {
    background-color: var(--main-grey);
}
/* MENU BURGER */
.div_link_burger {
    cursor: pointer;
    position: absolute;
    top: 15px;
    left: 15px;
    height: 35px;
    width: 35px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center; 
    -webkit-backdrop-filter: blur(2px); 
            backdrop-filter: blur(2px); 
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 999999;
    -webkit-backdrop-filter: blur(3px);
            backdrop-filter: blur(3px);
    background-color: rgb(165 162 162 / 35%);
    z-index: 999999;
    display: none;
}
#link_burger {
    display: none;
}
.dropdown_separator {
    background-color: rgb(190, 190, 190);
    width: 30%;
    display: none;
    margin: 0 auto;
    height: 1px;
}
#burger {
    width: 20px;
    height: 2px;
    background: rgb(255 255 255 / 50%);
    display: inline-block;
    position: relative;
}
#burger::before,
#burger::after {
    z-index: 999999;
    content: '';
    width: 20px;
    height: 2px;
    background: rgb(255 255 255 / 50%);
    display: inline-block;
    position: absolute;
    left: 0;
    -webkit-transform-origin: center;
        -ms-transform-origin: center;
            transform-origin: center;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
#burger::before {
    top:-7px;
}
#burger::after {
    top:7px;
}
#burger.open {
    background: transparent;
}
#burger.open::before {
    -webkit-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
            transform: rotate(45deg);
    top: 0;
    background-color: rgb(176, 174, 174);
}
#burger.open::after {
    -webkit-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
            transform: rotate(-45deg);
    top: 0;
    background-color: rgb(176, 174, 174);
}
/* RESPONSIVE */
@media (max-width: 900px) {
    #ul_burger .a_nav:hover {
        -webkit-box-shadow: none;
                box-shadow: none;
    }
    #ul_burger .a_nav.is-current {
        -webkit-box-shadow: none;
                box-shadow: none;
    }
    .a_nav:not(.second_level) {
        padding: 1.5rem;
    }
    .a_nav {
        font-size: 1.2rem;
        color: rgb(176, 174, 174);
    }
	.site_nav_ul {
		border-radius: 0;
	}
    .site_nav_li {
        border-bottom: 1px solid rgb(176, 174, 174);
		border-right: none;
		width: 100%;
    }
    #site_header {
        background-color: transparent;
        height: 40px;
    }
    .dropdown-content {
        display: none;
    }
    /* BURGER */
    .div_link_burger {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }
    .div_link_burger.open {
        background-color: transparent;
    }
    #link_burger {
        display: inline-block;
    }
    .ul_burger {
        background-color: black;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-flow: column nowrap;
                flex-flow: column nowrap;
        position: absolute;
        width: 100%;
        left: 0;
        top: 0;
        -webkit-transform: scaleY(0);
            -ms-transform: scaleY(0);
                transform: scaleY(0);
        -webkit-transform-origin: center top;
            -ms-transform-origin: center top;
                transform-origin: center top;
        -webkit-transition:all 0.3s ease;
        -o-transition:all 0.3s ease;
        transition:all 0.3s ease;
        z-index: 9999;
    }
    .ul_burger.open {
        -webkit-transform: scaleY(1);
            -ms-transform: scaleY(1);
                transform: scaleY(1);
        overflow-y: auto;
    }
    .portfolio_nav {
        width: 100%;
    }
    #link_burger {
        font-size: .5rem;
        line-height: .5;
    }
}
@media (max-width: 480px) {
    .div_link_burger {
        height: 35px;
        width: 35px;
    }
    .a_nav {
        font-size: 1.1rem;
    }
    #link_burger {
        padding: 0.1rem 0;
        font-size: .5rem;
        line-height: .5;
    }
    #burger,
    #burger:before,
    #burger:after {
        width: 20px;
    }
}
@media (max-width: 480px) {
    #burger {
        height: 1.5px;
    }
    #burger:before,
    #burger:after {
        height: 1.5px;
    }
}