:root {
  --menu-speed: 0.2s;
  interpolate-size: allow-keywords;
}

html,
body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  font-family: "Times New Roman", Times, serif;
  margin: 0;
  overflow-x: clip;
  overflow-anchor: none;
  scroll-behavior: smooth;
  min-height: 100vh;
}

h1,
h2,
p,
ul,
ol,
li {
  margin: 0;
  padding: 0;
}

a,
a:link,
a:visited,
a:hover {
  text-decoration: none;
  color: inherit;
}

/* ~~~~~~~~ Header ~~~~~~~~ */
.header {
  display: grid;
  background-color: #1d2545;
}

@media (max-width: 900px) {
  .header {
    position: sticky;
    top: 0;
    z-index: 99;
}}

.header .anchorwrapper {
  display: grid;
  place-items: center;
  grid-template-rows: 8rem auto auto;
  row-gap: 0;
  padding: 1rem 0;
}

.anchorwrapper > img {
  grid-column: 1;
  grid-row: 1;
  height: 100%;
}

.anchorwrapper > h1 {
  align-self: center;
  color: #ffffff;
  grid-column: 1;
  grid-row: 2;
  font-size: 2rem;
  font-weight: 700;
}

.anchorwrapper > h2 {
  align-self: center;
  color: #ffffff;
  grid-column: 1;
  grid-row: 3;
  font-size: 1.5rem;
  font-weight: 400;
}

.header > div {
  background-color: #ffffff;

  border-radius: 2px;
}

/* ~~~~~~~~ Mobile Navigation Bar ~~~~~~~~ */
.header .hamburger-btn {
  display: none;
}

.header .mobile-nav {
  display: none;
}

/* ~~~~~~~~ Desktop Navigation Bar ~~~~~~~~ */
.desktop-nav {
  position: sticky;
  background-color: #1d2545;
  top: 0;
  z-index: 99;
}

.desktop-nav .links {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  padding: 1rem 5%;
}

.links > li a {
  white-space: pre;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.links > li a:hover {
  background-color: #ffffff40;
  transition: background-color 0.1s;
}

.links > li > img {
  height: 0.75rem;
}

/* ~~~~~~~~ Hero ~~~~~~~~ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Image */
.imgwrapper {
  display: flex;
  overflow: hidden;
  position: relative;
}

.imgwrapper > img {
  width: 100vw;
  margin-top: 0%;
  margin-bottom: -10%;
}

.overlay {
  position: absolute;
  width: 10%;
  height: 100%;
  backdrop-filter: blur(5px);
}

.darken {
  background-color: black;
  width: 100%;
  height: 100%;
  opacity: 25%;
}

/* Quote */
.quote {
  display: flex;
  flex-direction: column;
  text-align: center;
  color: black;
  margin-top: 4rem;
  gap: 2rem;
  padding: 0 20%;
}

.quote .content {
  font-style: italic;
  font-size: 3rem;
  font-weight: 400;
}

.quote .author {
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 400;
  margin-left: auto;
}

/* Info Box */
.info {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  color: white;
  background-color: #141b5b;
  gap: 2rem;
  padding: 1rem;
  margin: 4rem 20% 0 20%;
}

.info .section {
  flex-basis: 1rem;
  flex-grow: 1;
}

.section > h1 {
  font-size: 3rem;
  margin: 0 auto;
}

.section > p {
  font-size: 1.5rem;
}

.info .seperator {
  display: block;
  background-color: #ffffff;
  height: auto;
  width: 2px;
  border-radius: 2px;
}

/* ~~~~~~~~ Page ~~~~~~~~ */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page > h1 {
  color: black;
  font-size: 3rem;
  font-weight: 400;
  margin-top: 4rem;
}

.page > img {
  margin-top: 1rem;
  width: 80vw;
  max-width: 900px;
}

.page > p {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  max-width: 80vw;
}

.page .buttons {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  margin: 0 10%;
}

.image p {
  font-size: 16px;
  max-width: 600px;
  margin-top: 25px;
}

/* Text Content */
.text {
  display: flex;
  flex-direction: column;
  align-items: left;
  margin: 0 20%;
  gap: 1rem;
  margin-top: 2rem;
}

.text h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 400;
  margin: 0 auto;
}

.text p,
li {
  font-size: 1.5rem;
  margin: 0;
}

.text ul {
  list-style-position: outside;
  margin-left: 1.5rem;
}

/* ~~~~~~~~ Image Carousel ~~~~~~~~ */
.image-carousel {
  position: relative;
  overflow: hidden;
  height: auto;
  width: 80vw;
}

.image-carousel ul {
  display: flex;
}

.image-carousel li {
  list-style: none;
  height: fit-content;
}

.image-carousel img {
  display: block;
  height: auto;
  width: 80vw;
}

.image-carousel button {
  position: absolute;
  border: none;
  font-size: 2vw;
  background-color: #c0c0c0;
  opacity: 90%;
  top: calc(50% - (25% / 2));
  height: 25%;
  width: 10%;
  border-radius: 1rem;
  margin: 0 5%;
  transition: opacity 0.1s linear;
  z-index: 2;
}

.image-carousel button:hover {
  opacity: 100%;
}

.move {
  transform: translateX(-80vw);
}

/* ~~~~~~~~ Footer ~~~~~~~~ */
.footer {
  background-color: #1d2545;
  padding: 1rem 0;
  margin-top: 4rem;
  bottom: 0;
}

.footer ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
}

.footer li {
  display: block;
  text-align: center;
}

.footer li:last-child {
  grid-column: 3;
}

.footer div {
  word-wrap: break-word;
  color: #ffffff;
  font-size: 0.75rem;
}

.footer img {
  height: 3rem;
}

/* ~~~~~~~~ Buttons ~~~~~~~~ */

/* Top of Page Button */
.top-button {
  position: fixed;
  text-align: center;
  cursor: pointer;
  height: 4rem;
  width: 4rem;
  bottom: 4rem;
  right: 4rem;
  z-index: 99;
}

@media (max-width: 400px) {
  .top-button {
    display: none;
  }
}

/* Navbar Highlight Button */
.highlight {
  border: none;
  cursor: pointer;
  background-color: #0d34b2;
  border-radius: 10px;
  padding: 10px 25px;
  margin-top: 50px;
}

.highlight > span {
  font-weight: 700;
  margin: auto;
  color: white;
}

/* Page Buttons */
.page .button {
  border: none;
  cursor: pointer;
  background-color: darkred;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  margin-top: 1rem;
}

.button > span {
  font-size: 1rem;
  font-weight: 700;
  margin: auto;
  color: white;
}

/* ~~~~~~~~ Links ~~~~~~~~ */

.link {
  color: #0d34b2;
  text-decoration: underline;
  font-weight: 700;
}

/* ~~~~~~~~ Spacers/Rules ~~~~~~~~ */

hr {
  display: block;
  background-color: black;
  height: 1px;
  width: 75%;
  border: 0;
}

/* ~~~~~~~~ Modifiers ~~~~~~~~ */
.nowrap {
  white-space: nowrap;
}

.left {
  left: 0;
}

.right {
  right: 0;
}

.fadein {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.1s linear;
}

.fadeout {
  visibility: hidden;
  opacity: 0;
  transition:
    visibility 0.1s linear,
    opacity 0.1s linear;
}

.notransition {
  transition: none !important;
}

@media (max-width: 900px) {
  /* ~~~~~~~~ Header (Mobile) ~~~~~~~~ */
  .header {
    position: sticky;
    top: 0;
    z-index: 99;
  }

  .header .anchorwrapper {
    display: inline-grid;
    place-items: unset;
    grid-template-columns: 4rem auto 1fr;
    grid-template-rows: 2rem 2rem;
    column-gap: 0.5rem;
    padding: 0.5rem;
  }

  .anchorwrapper > img {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 100%;
  }

  .anchorwrapper > h1 {
    align-content: end;
    height: 100%;
    grid-column: 2;
    grid-row: 1;
    font-size: 1rem;
    font-weight: 700;
  }

  .anchorwrapper > h2 {
    align-content: start;
    height: 100%;
    grid-column: 2;
    grid-row: 2;
    font-size: 0.75rem;
    font-weight: 500;
  }

  .desktop-nav {
    display: none;
  }

  .hamburger-btn + label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    grid-column: 2;
    grid-row: 1;
    cursor: pointer;
    height: 2rem;
    width: 2rem;
    padding: 0.5em;
    margin: 1rem 1rem 1rem auto;
    line-height: 4em;
    border-radius: 0.5em;
    transition: background-color 0.1s;
  }

  .hamburger-line {
    display: block;
    background-color: #ffffff;
    height: 0.25rem;
    width: 100%;
    border-radius: 0.25em;
  }

  .header > div {
    display: block;
    grid-row: 2;
    grid-column: 1 / span 2;
  }

  .header .mobile-nav {
    display: block;
    overflow: hidden;
    grid-column: 1 / span 2;
    grid-row: 3;
    height: 0;
  }

  .mobile-nav > .links {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    list-style: none;
    padding: 0.5rem 0.5rem;
  }

  .mobile-nav > .links li {
    opacity: 1;
    transform: translateX(25%);
    transition: none;
  }

  .mobile-nav > .links a {
    display: block;
    text-align: left;
    padding: 0.5rem;
    font-size: 1rem;
    line-height: 1rem;
  }

  .mobile-nav > .links div {
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background-color: #ffffff;
  }

  .header .hamburger-btn:checked ~ div {
    display: block;
  }

  .header .hamburger-btn:checked ~ .mobile-nav {
    height: var(--menu-size);
    transition: height var(--menu-speed) linear;
  }

  .header .hamburger-btn:checked ~ .mobile-nav > .links li {
    opacity: 100;
    transform: translateX(0px);
    transition:
      transform var(--menu-speed) cubic-bezier(0.3, 0.6, 0.5, 1),
      opacity var(--menu-speed) linear;
  }

  .header .hamburger-btn:checked ~ .mobile-nav > .links a:hover {
    transition: background-color 0.1s;
  }

  .header .hamburger-btn:checked + label {
    background-color: #ffffff40;
  }

  /* Quote */
  .quote {
    margin-top: 3rem;
    gap: 1rem;
    padding: 0 10%;
  }

  .quote .content {
    font-size: 2rem;
  }

  .quote .author {
    font-size: 1rem;
  }

  /* Info Box */
  .info {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    margin: 3rem 20% 0 20%;
  }

  .info .section {
    flex-basis: 1rem;
    flex-grow: 1;
  }

  .section > h1 {
    font-size: 2rem;
  }

  .section > p {
    font-size: 1rem;
  }

  .info .seperator {
    height: 2px;
    width: auto;
  }

  /* ~~~~~~~~ Page ~~~~~~~~ */
  .page > h1 {
    font-size: 2rem;
    margin-top: 3rem;
  }

  .page > p {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    padding: 0 10%;
  }

  .page .buttons {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin: 0 10%;
  }

  .image img {
    width: 800px;
    margin-top: 50px;
  }

  .image p {
    font-size: 16px;
    max-width: 600px;
    margin-top: 25px;
  }

  /* Text Content */
  .text {
    margin: 0 10%;
    gap: 1rem;
    margin-top: 2rem;
  }

  .text h2 {
    font-size: 1.5rem;
  }

  .text p,
  li {
    font-size: 1rem;
  }

  .text ul {
    margin-left: 1rem;
  }
}
