header { overflow: hidden; position: fixed; top: 2rem; left: 0; right: 0; margin-left: auto; margin-right: auto; width: 75%; /* Adjust width as needed */ height: var(--topBarHeight); align-items: center; text-align: center; z-index: 1000; background-color: rgba(0,0,0,0.3); border-radius: 32px; -webkit-user-select: none; /* Safari */ -ms-user-select: none; /* IE 10 and IE 11 */ user-select: none; /* Standard syntax */ } .navBar { display: flex; justify-content: space-between; align-items: center; } .navBar a { font-family: var(--font-jetbrains); position: relative; height: 100%; text-align: center; font-size: 2rem; font-weight: 500; text-transform: capitalize; text-align: center; text-decoration: none; margin-left: 10mm; margin-right: 10mm; padding-top: 4mm; /* padding-bottom: 3mm; */ border-radius: 32px; color: #F4E8C1; transition: all .3s; user-select: none; /* Standard syntax */ } .navBar .hleft a {float: left;} .navBar .hright a {float: right;} .hleft, .hright { display: flex; } .hright { gap: 1rem; /* Adjust the gap between links as needed */ } .navBar a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1mm; background: rgba(128, 128, 128, 0.2); border-radius: 1mm; transform: scaleX(0); transition: all 0.3s; } .navBar a:hover::after { position: absolute; transform: scaleX(1); } .navBar a:hover { transition: all 1s } .navBar a.active::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1mm; background: rgba(128, 128, 128, .9); border-radius: 1mm; transform: scaleX(1); } .navBar:active, .navBar:hover, header:hover, #navBarHeader:hover { transform: scale(1.005); transition: all 0.5s } header:active, #navBarHeader:active, .navBar:active { transform: scale(1.01) /* transition: transform 700ms; */ } .navBar, header, #navBarHeader { /* -webkit-backdrop-filter: blur(2.5px); backdrop-filter: blur(2.5px); */ transition: all 0.5s } header.minimizedIsland { opacity: 0; scale: 0; transform: translateY(-100%); animation-fill-mode: forwards; transition: all 3s }