.offcanvas { z-index: 99; border-left: 0 solid rgba(0, 0, 0, .2); background-color: rgba(18, 42, 136, 0.9); backdrop-filter: blur(5px); } .offcanvas-center{ top:0; left: 0; } .navbar { background-color: transparent; grid-column-gap: 48px; grid-row-gap: 48px; justify-content: space-between; align-items: center; width: 100%; max-width: 1680px; margin-left: auto; margin-right: auto; padding-top: 12px; padding-bottom: 12px; display: flex; } .offcanvas.fade { opacity: 0; transition: opacity 0.3s ease-in-out; } .offcanvas.show.fade { opacity: 1; z-index: 2000; transition: opacity 0.3s ease-in-out; } .header_container { padding-left: 48px; padding-right: 48px; position: absolute; width: 100%; top: 0; z-index: 2000; } .logo_container { max-width: 100%; display: inline-block; } .header_container_in { grid-column-gap: 48px; grid-row-gap: 48px; justify-content: space-between; align-items: center; width: 100%; max-width: 1680px; margin-left: auto; margin-right: auto; padding-top: 12px; padding-bottom: 12px; display: flex ; } .navbar-toggler{ position: relative; width: 80px; height: 80px; border: 1px solid #c0c0c0; border-radius: 50px; transition: all 0.5s ease-in-out; } .navbar-toggler:hover{ transition: all 0.5s ease-in-out; background-color: rgba(255,255,255,0.2); backdrop-filter: blur(5px); } .navbar-toggler img{ position: absolute; top: 50%; /* position the top edge of the element at the middle of the parent */ left: 50%; /* position the left edge of the element at the middle of the parent */ transform: translate(-50%, -50%); } .navbar-toggler:focus { box-shadow: 0 0 0 .1rem #001d3f; } .offcanvas-body{ width: 100%; height: 100%; display: flex; margin-top: auto; margin-bottom: auto; align-items: center; padding-top: 160px; padding-left: 60px; } .offcanvas-body .nav-item > a { display: inline-block; padding-top: 12px; text-decoration: none; align-items: center; color: #fff; font-size: 24px; font-weight: 600; line-height: 30px; position: relative; margin-bottom: 10px; } .nav-item a:hover { color: #fff; } .nav-item a:hover::after, .nav-item a:hover::before { width: 100%; left: 0; } .nav-item a::after, .nav-item a::before { content: ''; position: absolute; top: calc(100% + 2px); width: 0; right: 0; height: 3px; } .nav-item a::before { transition: width .4s cubic-bezier(0.51, 0.18, 0, 0.88) .1s; background: rgba(122, 149, 255, 0.9); } .nav-item a::after { transition: width .2s cubic-bezier(0.29, 0.18, 0.26, 0.83); background: #fff; } @media screen and (min-width: 1440px) { .header_container { padding-left: 60px; padding-right: 60px; } } @media screen and (max-width: 991px) { .offcanvas-body { padding-left: 30px; } .header_container { padding-left: 30px; padding-right: 30px; } }