/* the following is for the navbar */ :root { --navbar-bg-color: hsl(0, 0%, 15%); --navbar-text-color: hsl(0, 0%, 85%); --navbar-text-color-focus: white; --navbar-bg-contrast: hsl(0, 0%, 25%); --navbar-accent-color: rgb(255, 255, 255); } #navbar { --navbar-height: 4rem; --navbar-gradient-color: rgb(65, 64, 63); position: fixed; height: var(--navbar-height); background: linear-gradient(90deg, var(--navbar-gradient-color), transparent, var(--navbar-gradient-color) ); background-color: var(--navbar-bg-color); left: 0; right: 0; box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.15); z-index: 100; /* don't judge me ok -e */ } #navbar-accent { background-color: var(--navbar-accent-color); display:flex; height: 25%; } .navbar-container { display: flex; justify-content: space-between; height: 100%; align-items: center; } .home-link, .navbar-link { color: var(--navbar-text-color); transition: color 0.2s ease-in-out; text-decoration: none; display: flex; font-weight: 400; align-items: center; transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out; } .home-link:focus, .home-link:hover { color: var(--navbar-text-color-focus); } .navbar-link { justify-content: center; width: 100%; padding: 0.4em 0.8em; border-radius: 0.3125rem; } .navbar-link:focus, .navbar-link:hover { color: var(--navbar-text-color-focus); background-color: var(--navbar-bg-contrast); } .navbar-logo { background-color: var(--navbar-text-color-focus); border-radius: 0%; width: 8rem; height: 2rem; margin-right: 0.5em; } .icon-bar { display: block; width: 1.5625rem; height: 0.25rem; margin: calc(1/8)rem; transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out, opacity 0.2s ease-in-out; background-color: var(--navbar-text-color); } .navbar-links { list-style-type: none; max-height: 0; overflow: auto; position: absolute; background: transparent; /* background-color: var(--navbar-bg-color); */ display: flex; align-items: center; } .navbar-item { margin: 0.4em; white-space: nowrap; width: 100%; } #navbar .navbar-links, #navbar-links { margin: 0; padding: 0; box-shadow: none; position: static; flex-direction: row; list-style-type: none; max-height: max-content; width: 100%; height: 100%; } #options { display: flex; flex-direction: column; }