:root { font-size: 16px; font-family: 'Open Sans'; --text-primary: #b6b6b6; --text-secondary: #5978f7; --bg-primary: #23232e; --bg-secondary: #141418; --transition-speed: 600ms; } body { color: var(--text-primary); background-color: black; margin: 0; padding: 0; } body::-webkit-scrollbar { width: 0.25rem; } body::-webkit-scrollbar-track { background: #1e1e24; } body::-webkit-scrollbar-thumb { background: #5978f7; } main { margin-left: 5rem; padding: 1rem; } #title { text-align: center; font-size: 3rem; font-weight: 300; margin-top: 1rem; } #subtitle { text-align: center; font-size: 1.5rem; font-weight: 300; margin-top: -3rem } .double-box-wrapper { margin-left: auto; margin-right: auto; width: 90%; } .box { list-style-type: none; overflow: hidden; border-radius: 8px; border: 0; background-color: var(--bg-primary); margin-left: auto; margin-right: auto; width: 90%; padding: 0; margin-bottom: 2rem; } .subheading { border: 0; background-color: black; float: left; margin-left: 5%; margin-top: -2rem; font-weight: 300; font-size: 2rem; width: 40%; padding: 0; } .innerbox { list-style-type: none; overflow: hidden; border-radius: 8px; border: 0; background-color: var(--bg-primary); float: left; width: 75%; padding: 0; margin-bottom: 2rem; } .boxtext { margin-left: 1.5rem; margin-right: 1.5rem; } #directorlink { margin-left: 7%; } .center { display: block; margin-left: auto; margin-right: auto; } .desc { font-size: 28px; font-weight: 300; text-align: center; } .navbar { position: fixed; background-color: var(--bg-primary); transition: width 600ms ease; } .navbar-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; align-items: center; height: 100%; } .nav-item { width: 100%; } .nav-link { display: flex; align-items: center; height: 5rem; color: var(--text-primary); text-decoration: none; filter: grayscale(100%) opacity(0.7); transition: var(--transition-speed); } .nav-link:hover { filter: grayscale(0%) opacity(1); background: var(--bg-secondary); color: var(--text-secondary); } .link-text { display: none; margin-left: 1rem; } .nav-link svg{ width: 2rem; min-width: 2rem; margin: 0 1.5rem; } .nav-link i { font-size: 28px; margin: 0 1.25rem; } .link-text { font-size: 1.25rem; } .fa-primary { color: #d57cff; } .fa-secondary { color: #ae49dd; } .fa-primary, .fa-secondary { transition: var(--transition-speed); } .logo { font-weight: bold; text-transform: uppercase; margin-bottom: 1rem; text-align: center; color: var(--text-secondary); background: var(--bg-secondary); font-size: 1.5rem; letter-spacing: 0.3ch; width: 100%; } .logo svg { transform: rotate(0deg); transition: var(--transition-speed); } .logo-text { display: inline; position: absolute; left: -999px; transition: var(--transition-speed); } .navbar:hover .logo svg { transform: rotate(-180deg); } /* Small screens */ @media only screen and (max-width: 1000px) { .navbar { bottom: 0; width: 100vw; height: 5rem; } .logo { display: none; } .navbar-nav { flex-direction: row; } .nav-link { justify-content: center; } main { margin: 0; } .innerbox { width: 100%; } #directorlink { margin-left: 30%; } #directorlink img { margin-top: -1.5rem; width: 40%; } .subheading { font-size: 1.15rem; } } /* Large screens */ @media only screen and (min-width: 1000px) { .navbar { top: 0; width: 5rem; height: 100vh; } .navbar:hover { width: 16rem; } .navbar:hover .link-text { display: inline; } .navbar:hover .logo svg { margin-left: 11rem; } .navbar:hover .logo-text { left: 0px; } }