header { position: fixed; top: 0; left: 0; background: var(--second-bg); display: grid; grid-template-columns: 1.5fr 0.5fr; height: 7vh; align-items: center; width: 100%; z-index: 1; box-shadow: #111111 0 0 10px; } header span { font-size: 1.5rem; font-weight: bold; margin: 0.5rem 1rem; } header div { text-align: right; display: inline; } header div a { padding: 1.5rem; } /* side bar needs to be under header*/ #sidebar { background: var(--darkest-bg); height: 93vh; width: 20vw; position: fixed; top: 7vh; left: 0; z-index: 1; overflow-x: hidden; padding-top: 0.25rem; } #sidebar a { background: var(--inactive-item-bg); padding: 0.5rem 1rem; text-decoration: none; color: var(--default-text); display: block; margin-top: 0.5rem; transition: all 0.5s; } #sidebar a:hover { background: var(--second-bg); color: var(--default-text); } #sidebar a.active { border-left: 0.5rem solid var(--highlight-bg); background-color: var(--default-bg); color: var(--highlight-text); } #sidebar a.child { padding-left: 2rem; margin-top: 0; /* nice visual*/ border-left: 0.5rem solid var(--second-bg); } #sidebar a.child.active { border-left: 1rem solid var(--highlight-bg); } main { background: var(--default-bg); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; margin: 9vh 1vw 4vh 21vw; padding: 0; } .card { display: grid; background: var(--second-bg); width: 10vw; place-items: center; } .card .big-stat { font-size: 3rem; font-weight: bold; } /* form */ #showings { display: flex; flex-direction: column; } #showings .showing { display: grid; grid-template-columns: 2fr 1fr 1fr 0.25fr; gap: 0.5rem; margin: 0.5rem 0; padding: 1rem; background: var(--second-bg); border-radius: 0.5rem; } #showings .showing .actions { display: flex; flex-direction: column; justify-content: center; align-items: center; } .warning { background-color: rgba(255, 0, 0, 0.5); padding: 1rem; border-radius: 0.5rem; margin: 1rem 0; min-width: 25vw; } .warning h3 { margin: 0; }