.nav_link_group_phone { display: none; } .toggler { display: none; } .Navbar_btn { display: none; } .toggler div { width: 1.5rem; height: 0.15rem; margin: 0.5rem; background: #0c1239; background-color: #0c1239; transition: 0.4s ease-in-out; } .toggler .toggle_item2 { width: 1rem; } .overflow { position: absolute; display: none; top: 0; height: 100%; background-color: rgba(66, 64, 64, 0.199); } @media (max-width: 580px) { .overflow.active { display: block; left: 0; bottom: 0; width: 100%; } .nav_link_group { display: none; } .toggler { display: block; width: 100%; } .toggler.toggle { display: flex; flex-direction: column; align-items: start; } /* animation toggle icon */ .toggler.toggle .toggle_item1 { transform: rotate(-45deg) translate(-20px, 5px); } .toggler.toggle .toggle_item2 { opacity: 0; } .toggler.toggle .toggle_item3 { transform: rotate(45deg) translate(-20px, -5px); } .nav_link_group_phone { position: absolute; z-index: 1; top: 0vh; left: 0; bottom: 0; height: 100vh; width: calc(40% + 100px); max-width: 100%; background-color: white; background: white; display: flex; flex-direction: column; justify-content: start; align-items: start; gap: 20px; padding: 0 10px 10px 10px; transform: translate(-100%); transition: 0.4s ease-in-out; } .overflow { position: absolute; display: none; width: 100vw; top: 0; bottom: 0; left: 0; right: 0; height: 100vh; background-color: rgba(66, 64, 64, 0.199); } } .active { transform: translate(0); }