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; } 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; } #sidebar a:hover { filter: brightness(1.5); } #sidebar a.active { background: var(--highlight-bg); color: var(--highlight-text); } #sidebar a.child { padding-left: 2rem; margin-top: 0; /* nice visual*/ border-left: 1rem solid var(--second-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; } #movies { display: flex; flex-direction: column; } #movies a { display: flex; flex-direction: row; margin: 0.5rem 0; padding: 0.5rem; background: var(--second-bg); border-radius: 0.5rem; } #movies a img { width: 10vw; height: 16vw; object-fit: cover; transition: transform 0.5s; } #movies a:hover { filter: brightness(1.5); } #movies a .details { display: flex; flex-direction: column; margin-left: 1rem; } /* form */ .form { display: flex; flex-direction: column; margin: 0.5rem 0; padding: 0.5rem; background: var(--second-bg); border-radius: 0.5rem; } .form .form-group { display: flex; flex-direction: column; margin: 0.5rem 0; } .form .form-group label { margin: 0.5rem 0; } form .form-group button, form .form-group select, form .form-group textarea, form .form-group input { padding: 0.5rem; border-radius: 0.5rem; background: var(--default-bg); color: var(--default-text); outline: none; border: none; } form .form-group button:hover, form .form-group select:hover, form .form-group textarea:hover, form .form-group input:hover, form .form-group button:focus, form .form-group select:focus, form .form-group textarea:focus, form .form-group input:focus { filter: brightness(1.5); } form .form-group button { background: var(--highlight-bg); color: var(--highlight-text); cursor: pointer; } form .form-group button:hover { filter: brightness(1.5); }