* { margin: 0; padding: 0; box-sizing: border-box; background-color: var(--black); letter-spacing: 0.01rem; } img { background-color: unset; } /** COLOR VARIABLES */ :root { --white: #eeeeee; --oldBlack: #111111; --black: #191919; --gold: rgb(223, 200, 65); --dark-gold: rgb(158, 141, 44); --light-gold: rgba(255, 215, 0, 0.5); --ease: cubic-bezier(0.22, 1, 0.36, 1); } /** HEADER + NAV STYLING */ header { background-color: var(--oldBlack); position: sticky; top: 0; z-index: 999; } .navBanner { display: flex; justify-content: space-between; width: 100%; align-items: center; height: 4.5rem; margin: 0 auto; padding: 1rem 2rem; background-color: inherit; } .navLogo { background-color: unset; width: 3.5rem; height: 3.5rem; } .logo { font-size: 1.25rem; font-weight: bold; line-height: 1rem; letter-spacing: 1px; transition: color 0.5s ease; color: var(--gold); text-decoration: none; } .logo:hover { color: white; } nav { background-color: inherit; } .navLink { width: max-content; position: relative; color: var(--white); background-color: inherit; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; font-weight: bold; transition: color 0.3s ease; } .navLink:hover { color: var(--gold); } .navLink::after { content: ""; position: absolute; left: 0; bottom: -0.25rem; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform 300ms var(--ease); } .navLink:hover, .navLink:focus-visible { color: var(--gold); } .navLink:hover::after, .navLink:focus-visible::after { transform: scaleX(1); transform-origin: left; } #bookingBanner { display: flex; justify-content: center; background-color: var(--gold); font-weight: bold; } #bookingBannerLink { text-align: center; display: block; background-color: inherit; color: var(--black); width: 100%; height: 100%; text-decoration: none; } /** BODY TAGS */ @font-face { font-family: inter; src: url('../assets/fonts/Inter.ttf'); } body { color: var(--white); font-family: inter, sans-serif; line-height: 1.6; } main { display: flex; gap: 12rem; flex-direction: column; justify-content: flex-start; align-items: center; line-height: 1.6; text-align: center; width: 100%; padding: 0; margin: 0; } section { width: 90%; display: flex; flex-direction: column; align-items: center; } #mission { max-width: 40%; } /** TEXT TYPES */ a { color: var(--gold); text-align: center; } h1 { color: var(--white); } h2 { font-size: 2rem; color: var(--white); } h3 { font-size: 1.5rem; color: var(--white); } p { color: #fff; } .eyebrow { text-transform: uppercase; letter-spacing: 3px; font-weight: 800; color: var(--gold); margin-bottom: 1rem; } .emphasis { color: var(--gold); } /** FOOTER */ footer { display: flex; justify-content: space-between; margin: 5rem auto; max-width: 90%; color: var(--gold); text-align: center; } #footer-left { width: 50%; text-align: left; } #footer-right { width: 50%; text-align: right; } /** "skip link" for screen readers */ .skipLink { position: absolute; top: -50px; left: 6px; background: #fff; color: var(--black); padding: 8px; text-decoration: none; font-weight: bold; border-radius: 4px; z-index: 1000; } .skipLink:focus { top: 6px; } /** DESKTOP RULES */ @media screen and (min-width: 851px) { header { border-bottom: 1px solid var(--gold); } nav { display: flex; align-items: center; flex-direction: row; gap: 2rem; font-size: .8rem; list-style: none; } #bookingBanner { height: 2rem; } /** content */ h1 { font-size: 5.5rem; } } /* MOBILE RULES */ @media screen and (max-width: 850px) { /** header */ header { padding: 0; width: 100%; border-bottom: none; /* background-color: blue; */ background-size: cover; } .navBanner { /* background-color: orange; */ border-bottom: none; } #bookingBanner { height: 1.25rem; } nav { /* background-color: red; */ display: flex; flex-direction: column; align-items: center; position: fixed; gap: 2rem; padding: 4.8rem 0 4rem 0; transition: top 0.5s ease; top: -16.7rem; left: 0; width: 100%; font-size: 1rem; text-align: center; border-bottom: 1px solid var(--gold); box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05); z-index: -1; } nav.active { top: 2rem; } /** footer */ footer { font-size: 0.9rem; } /** content rules */ h1 { font-size: 2.5rem; } }