header { display: flex; flex-direction: row; margin: 1%; margin-top: 1svh; padding-right: 0.5svw; /* width: 100%; */ align-items: center; justify-content: space-between; background-color: #1f1f1f; /* position: absolute; */ z-index: 1; top: 0; left: 0; right: 0; } header a { text-decoration: none; color: inherit; cursor: pointer; } header div button { cursor: pointer; height: 3rem; width: 3rem; justify-content: end; background-color: inherit; border: solid 2px gray; border-radius: 1rem; } header div button img { height: 2rem; } header div { display: flex; justify-content: flex-end; align-items: center; } #logo { height: 10svh; /* width: 10svw; */ padding: 0.15rem; margin-left: 3svw; } /* naviagation section */ nav ul { display: flex; flex-direction: row; justify-content: space-between; list-style: none; margin: 0px; padding: 0px; column-gap: 2svw; } nav a { text-decoration: none; color: inherit; cursor: pointer; background-color: #1f1f1f; color: whitesmoke; font-size: larger; /* border-left: solid 2px white; */ } /* removes first divider */ /* can be removed if no borders from above */ nav a:first-child { border-left: none; } nav a li:hover { color: #a80029; } /* correct colour of links in dark mode */ .darkmode nav a li::hover { filter: hue-rotate(180deg); } /* creates drop downs */ /* makes it so that the tags look the same whist having removing browser error */ .DropDownHeader { display: inline-block; background-color: white; padding: 0.5rem; border: solid 1px gray; } .DropDownHeader:hover { background-color: gray; } .Hide { display: none; } .DropDown { position: relative; } .DropDown a { cursor: default; } /* makes dropdown visible */ .DropDown:hover .Hide { display: block; position: absolute; width: 100%; text-align: center; } /* For Banner */ #BannerHeader { height: 100svh; width: 100%; display: flex; position: relative; z-index: 0; top: 0; left: 0; background-repeat: no-repeat; background-size: cover; background-position: center; /* -webkit-mask-image: linear-gradient( to bottom, black var(--fade-starts-at-bottom), transparent ); mask-image: linear-gradient( to bottom, black var(--fade-starts-at-bottom), transparent ); */ } #BannerHeader::after { content: ""; position: absolute; inset: 0; background: linear-gradient( to bottom, rgba(0, 0, 0, 0) var(--fade-starts-at-bottom, 70%), whitesmoke 100% ); pointer-events: none; z-index: 1; } :root { --fade-starts-at-bottom: 90%; --fade-starts-at-top: 96%; --banner-text-background: #1f1f1fcc; --banner-text-padding: 2svh 2svw; --banner-text-rounding: 1rem; --banner-text-colour: white; } /* #BannerHeader img { position: relative; height: 100svh; width: inherit; top: 0; left: 0; background-size: cover; background-position: center; z-index: -2; } */ /* used to postiion title and sub title */ #BannerHeader div { margin-top: 30svh; padding-left: 15svw; } #BannerHeader h1 { display: flex; width: fit-content; margin: 0px; font-size: 80px; /* todo make larger */ font-weight: normal; background-color: var(--banner-text-background); border-radius: var(--banner-text-rounding); color: var(--banner-text-colour); padding: var(--banner-text-padding); } #BannerHeader h2 { display: flex; width: fit-content; font-size: xx-large; font-weight: normal; background-color: var(--banner-text-background); border-radius: var(--banner-text-rounding); color: var(--banner-text-colour); padding: var(--banner-text-padding); } /* for dark mode */ .darkmode { filter: invert(95%) hue-rotate(180deg); background-color: white; } #root.darkmode #logo.logoAfterDark { filter: hue-rotate(180deg); } #root.darkmode #darkModeToggle { filter: hue-rotate(180deg); } a { cursor: pointer; }