.center-text {
  text-align: center;
}

body {
  min-height: 98vh;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  overflow: hidden;
}

main {
  flex: 1;
  max-width: 100%;
}
html {
  max-width: 100%;
  overflow-x: hidden;
  width: 100%;
  /* overflow-y: hidden;
  max-height: 100vh; */
}

footer {
  overflow-y: hidden;
}

.wrapper {
  margin-right: auto;
  margin-left: auto;
  padding-right: 30px;
  padding-left: 30px;
  max-width: 100%;

  @media screen and (width >= 800px) {
    max-width: calc(800px - (30px * 2));
  }
}

/*Navbar*/
.my-nav {
  background-color: light-dark(#e3f2fd, #212529);
  color: light-dark(black, #f0f8ff);

  .brand > img {
    background-color: white;
    vertical-align: middle;
  }

  .brand {
    vertical-align: top;
  }

  a,
  a:visited {
    color: light-dark(#015ed8, #559bf7);
  }

  .hamburger {
    float: right;
    margin-top: 15px;
    margin-right: 10px;
    cursor: pointer;

    span {
      height: 3px;
      width: 30px;
      color: black;
      background-color: light-dark(black, #f0f8ff);
      display: block;
      position: relative;
      margin-bottom: 5px;
      transition:
        transform 0.3s ease-in-out,
        opacity 0.3s ease-in-out,
        top 0.3s ease-in-out;
    }
  }

  .inner-nav {
    transition: max-height 0.3s ease-in-out;
    overflow: hidden;

    ul {
      list-style: none;
    }
  }

  a:hover {
    text-decoration: underline;
  }

  .ui-mode-picker {
    padding-block: 0;
    border: none;
    padding-inline: 0;
    margin-inline: 0;
  }
}

#expandNavbar {
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
}

#expandNavbar:checked ~ * .inner-nav {
  max-height: fit-content;
  display: block;
}

#expandNavbar:checked ~ * .hamburger > span:first-child {
  transform: rotate(45deg);
  top: 8px;
}

#expandNavbar:checked ~ * .hamburger > span:nth-child(2) {
  opacity: 0; /* Hide the middle span */
}

#expandNavbar:checked ~ * .hamburger > span:last-child {
  transform: rotate(-45deg);
  top: -8px;
}

.dropdown {
  .dropdown_title {
    background-color: transparent;
    border: none;
    font-family: inherit;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    font: inherit;
    display: inline-flex;
    align-items: center;

    &:before {
      content: '';
      border: 0.35rem solid transparent;
      border-top-color: black;
      margin-left: 0.25em;
      transform: rotate(-90deg);
    }
  }

  .dropdown_menu {
    box-shadow: 0 0.15em 0.25em rgba(black, 0.25);
    border-radius: 4px;
    transform: rotateX(-90deg);
    transform-origin: top center;
    opacity: 0.3;
    transition: 280ms all ease-out;
    height: 0;
    visibility: hidden;
    transition: 280ms all 120ms ease-out;
  }

  &:hover,
  &:focus-within {
    .dropdown_menu {
      opacity: 1;
      transform: rotateX(0);
      visibility: visible;
      height: fit-content;
    }

    .dropdown_title {
      &:before {
        transform: rotate(0deg);
      }
    }
  }
}

@media screen and (width >= 900px) {
  .my-nav {
    display: grid;
    grid-auto-flow: column;

    .hamburger {
      display: none;
    }

    #expandNavbar {
      display: none;
    }
  }

  .inner-nav {
    max-height: fit-content;
    display: inline-block;
    vertical-align: middle;

    .inner-nav-top-level {
      display: grid;
      grid-auto-flow: column;
      gap: 5px;
    }

    .ui-mode-picker {
      display: inline;
    }
  }
}

@media screen and (width < 900px) {
  .my-nav {
    .inner-nav {
      max-height: 0;
      display: none;
    }
  }
}

/* Slide Show*/
.carousel {
  --accent: red;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scroll-marker-group: after;
  anchor-name: --myCarousel;
  overflow-y: hidden;
}
.carousel li {
  scroll-snap-align: center;
}
.carousel::scroll-button(*) {
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: red;
  font-weight: bold;
  font-size: 20px;
  border-radius: 0 3px 3px 0;
  -webkit-user-select: none;
  user-select: none;
  background-color: transparent;
  border: none;
  position-anchor: --myCarousel;
  align-self: anchor-center;
}
.carousel::scroll-button(left) {
  content: '<' / 'Scroll Left';
  cursor: pointer;
  position: absolute;
  right: calc(anchor(left) - 45px);
}
.carousel::scroll-button(*):hover {
  background-color: #000c;
  color: #ff000080;
}
.carousel::scroll-button(*):disabled {
  background-color: #000c;
  color: #ff000080;
}
.carousel::scroll-button(right) {
  content: '>' / 'Scroll Right';
  cursor: pointer;
  position: absolute;
  left: calc(anchor(right) - 45px);
}
.carousel::scroll-button(*):focus-visible {
  outline-offset: 5px;
}
.carousel li::scroll-marker {
  content: ' ';
  border: 1px solid grey;
  border-radius: 50%;
  scroll-snap-align: center;
  outline-offset: 4px;
}
.carousel li::scroll-marker:target-current {
  background: var(--accent);
}
.carousel ul {
  list-style: none;
  display: grid;
  grid: 544px / auto-flow 247px;
}
.carousel::scroll-marker-group {
  justify-content: center;
  display: grid;
  grid: 30px / auto-flow 30px;
}

.li-no-decoration {
    list-style-type: none;
}