#topbar {
    display: flex;
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    width: 100%;
    height: auto;
    padding:15px min(5%, 40px);
    box-sizing: border-box;
    text-align: center;
    flex-direction: row;
    transition: all 0.3s;
    align-items: center;
    justify-content: center;
    background-color: rgba(39,39,39,0.00);
	/* background-image: linear-gradient(0deg, var(--color01) 0%, var(--color05) 99%); */
    z-index: 6789;
}

#topbar #top{
	display: flex;
	width:100%;
	height:60px;
	margin:0px 0px;
	flex-direction: row;
	align-items: center;
	justify-content: center;
}

#topbar #top a{
	display: inherit;
	width:inherit;
	height:inherit;
}

#topbar #top a img{
	width:auto;
	height:30px;
    margin: auto 0px;
}


#topbar #menu{ display:none; }

#topbar #menuwrap {
    display:flex;
}

#topbar #menuwrap ul{
	display: flex;
	width:100%;
	height:auto;
	align-items: center;
	justify-content: flex-end;
	list-style: none;
	white-space: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	margin: 0px 0px;
	padding: 5px 0px;
}

#topbar #menuwrap ul li {
	display:inline-block;
	width: auto;
	height:42px;
	line-height: 42px;
	font-size: 18px;
	font-weight: 500;
	border-radius: 20px;
	letter-spacing: 0.2px;
	color:var(--color03);
	padding: 0px 25px;
	border:0px solid var(--color05);
    box-shadow: inset 0px -10px 10px var(--color03);
	margin:0px 3px;
    transition: all 0.5s;
    cursor: pointer;
}

#topbar #menuwrap ul li:hover {
    box-shadow: inset 0px -35px 15px var(--mainColor9);
    transform: scale(1.05);
}

#topbar #menuwrap ul li a {
	color:inherit;
	cursor: pointer;
	text-decoration: none;
}


@media screen and (max-width:800px){
	#topbar {
		padding: 10px min(15px, 5%);
		flex-direction:column;
	}

    #topbar #top a img {
        height:22px;
    }
    
	#topbar #menuwrap ul{
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
		justify-content: flex-end;
        gap:10px 5px;
	}
	
#topbar #menuwrap {
    display:none;
}      

#topbar #menu:checked + #menuwrap {
    display:flex;
    width:100%;
    height: auto;
    flex-direction: column;
}

#topbar #lb_menu{
    position: fixed;
    top:20px;
    right:20px;
    display:flex;
    width:45px;
    height:45px;
    transition: all 0.2s;
    flex-direction: column;
    gap:10px 0px;
    transform: scale(0.8);
    align-content: center;
    justify-content: space-evenly;
}

#topbar #lb_menu div{
    width:100%;
    height:6px;
    transition: all 0.2s;
    background-color:white;
    border-radius: 10px;
}

#topbar #menu:checked ~ #lb_menu { transform: rotate(45deg) scale(0.8); }
#topbar #menu:checked ~ #lb_menu div:nth-of-type(1) { transform: rotate(90deg) translateX(18px); transform-origin: center; }
#topbar #menu:checked ~ #lb_menu div:nth-of-type(2) { opacity:0;}
#topbar #menu:checked ~ #lb_menu div:nth-of-type(3) { transform: rotate(0deg) translateY(-17px); transform-origin: center; }

    
}
