* {
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  vertical-align: baseline;
  font-size: 100%;

  --primary: black;
  --secondary: white;
  --accent: black;
  --background: #ff4837;

}

body {
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--background);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  color: black !important;
  scroll-behavior: smooth;
}

p {
  position: relative;
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  max-width: 65ch;
  text-wrap: pretty;
  background: white;
}

p::after {
  position: absolute;
  content: "";
  width: 200vw;
  top: -1rem;
  left: -50vw;
  height: calc(100% + 2rem);
  background: white;
  z-index: -1;
}

a {
  font-family: "Poppins", sans-serif;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: all 300ms;
}

body.modal-open {
  overflow: hidden;
}

body.modal-open .body-wrapper {
  -webkit-filter: blur(5px);
  filter: blur(5px);
}

nav {
  display: block;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  padding-block: .5rem;
  text-align: center;
  background-color: white;
}

nav ul {
  display: flex;
  justify-content: space-evenly;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  display: block;
  margin: 0;
  padding: 5px 10px;
  font-weight: 500;
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: .2em;
  cursor: pointer;
  text-decoration: underline solid transparent 2px;
  text-underline-offset: 4px;
  transition: all 300ms;
}

nav ul li:hover {
  text-decoration-color: var(--accent);
  text-underline-offset: 8px;
}

@media (max-width: 600px) {
  nav ul li {
    font-size: .9em;
    letter-spacing: normal;
    padding: 5px;
  }
}

header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin-top: 15vh;
  height: 85vh;
  min-height: 800px;
  width: 100vw;
  overflow: hidden;
}

header div {
  position: relative;
}

div.start-video {
  text-align: center;
  height: 10vh;
}

div.start-video .plyr, div.start-video video {
  background: transparent;
}

div.start-video .plyr .plyr__video-wrapper, div.start-video video .plyr__video-wrapper {
  background: transparent;
  position: relative;
  padding-bottom: 56.25%;
}

h1 {
  text-align: center;
  font-weight: 800;
  font-size: 2.5rem;;
  letter-spacing: -0.1ch;
  max-width: 80vw;
}

@media (width > 480px) {
  h1 {
    font-size: 3.5rem;
  }
}

@media (width > 680px) {
  h1 {
    font-size: 5.5rem;
  }
}

h2 {
  text-align: center;
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1.4;
  max-width: 80vw;
  margin-inline: auto;
}

h2.triathlon {
  font-size: 1.4rem;
}

@media (width > 480px) {
  h2.triathlon {
    font-size: 1.7rem;
  }
}

@media (width > 680px) {
  h2.triathlon {
    font-size: 2rem;
  }
}

h2.small {
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
}

@media (width > 480px) {
  h2.small {
    font-size: 1rem;
  }
}

@media (width > 680px) {
  h2.small {
    font-size: 1.2rem;
  }
}

hr.styled-lines {
  width: 100%;
  border-top: 2px dashed white;
  height: 6px;
  border-bottom: 2px dashed var(--primary);
  margin: 1rem 0;
  background-color: transparent;
  opacity: 1;
}

span.red {
  color: var(--secondary);
}

span.blue {
  color: var(--primary);
}

div.options-header {
  margin: 15rem 0 2rem 0;
  text-align: center;
}

div.options-header h2 {
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
  padding: 0 .5em;
  display: inline-block;
  letter-spacing: -0.05ch;
  word-spacing: 0.5ch;
  word-wrap: break-word;
  transform: translateY(-2.4ch);
  color: white;
  background-color: var(--background);
}

@media (width > 480px) {
  div.options-header h2 {
    font-size: 1.9rem;
    transform: translateY(-2.1ch);
  }
}

@media (min-width: 560px) {
  div.options-header h2 {
    font-size: 2.4rem;
    transform: translateY(-1.9ch);
  }
}

div.arrow-down {
  width: 20px;
  height: 20px;
  border-bottom: 2px solid var(--secondary);
  border-right: 2px solid var(--secondary);
  transform: rotate(45deg);
  margin: 30px auto;
}

section.options {
  width: 100vw;
  min-height: 100vh;
}

section.options ul + li {
  margin: 0;
  padding: 0;
  list-style: none;
}

section.options ul {
  display: flex;
  flex-direction: row;
  width: 100vw;
  max-width: 1280px;
  aspect-ratio: 2;
  margin: 0 auto;
  padding-left: 0;
}

section.options ul li {
  display: inline-block;
  position: relative;
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center top;
  transition: 500ms ease-out;
  cursor: pointer;
  border-right: 2px solid black;
}

section.options ul li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.15) grayscale(0.8);
  transition: 500ms ease-out;
}

section.options ul li h3 {
  display: block;
  position: absolute;
  top: 45%;
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  border: 0 solid transparent;
  padding: 0 1vw;
  background-color: transparent;
  transition: 500ms ease-out;
  opacity: 0.5;
}

@media (min-width: 560px) {
  section.options ul li h3 {
    padding: 0.5vw 1.5vw;
    font-size: 2rem;
  }
}

section.options ul li:first-child {
  border-right: 2px solid black;
}

section.options ul li:first-child h3 {
  text-align: right;
  right: 1em;
  top: 1em;
}

section.options ul li:nth-child(2) {
  border-left: 2px solid black;
  border-right: none;
}

section.options ul li:nth-child(2) h3 {
  text-align: left;
  left: 1em;
  top: 1em;
}

section.options ul li.selected {
  width: 100%;
}

section.options ul li.selected img {
  filter: none;
}

section.options ul li.selected h3 {
  opacity: 1;
  font-weight: 900;
}

section.options ul li.selected h3.bg-blue {
  color: white;
  background-color: black;
  border-color: white;
}

section.options ul li.selected h3.bg-red {
  color: black;
  background-color: white;
  border-color: black;
}

section.options ul li.selected h3.bg-gray {
  background-color: rgba(0, 0, 0, 0.5);
}

section.options ul li:hover {
  width: 150%;
}

section.options ul li:hover img {
  filter: brightness(0.5) grayscale(0.8);
}

section.options ul li:hover h3 {
  opacity: 1;
}

section.options ul li.selected:hover img {
  filter: none;
}

section.result {
  position: relative;
  min-height: 100vh;
  margin-top: 20vh;
  padding-bottom: 12vh;
}

footer {
  display: flex;
  flex-flow: column wrap;
  margin: 0;
  padding-block-start: 3rem;
  padding-block-end: 1.5rem;
  padding-left: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  text-align: left;
  font-size: 0.7em;
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.05em;
  word-spacing: 0.15em;
}

@media (width > 480px) {
  footer {
    font-size: 0.8rem;
  }
}

@media (width > 680px) {
  footer {
    font-size: 0.85rem;
    text-align: center;
    padding-right: 7rem;
  }

}

footer p {
  font-weight: 400;
  background: transparent;
  margin: 0;
  max-width: revert;
}

footer p::after {
  display: none;
}

footer a {
  text-decoration: underline !important;
}

footer a:hover {
  text-decoration-color: var(--primary) !important;
  color: var(--secondary);
}


.banner.scroll-up {
  position: fixed;
  bottom: 0;
  right: 3%;
  width: 65px;
  height: 75px;
  background-color: var(--accent);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translate(0, 10px);
  box-shadow: 3px -2px 1px rgba(0, 0, 0, 0.2);
  transition: all 300ms;
}

.banner.scroll-up:hover {
  background: var(--primary);
  transform: translate(-2px, 5px);
  box-shadow: 5px -4px 2px 0 rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.modal.fade .modal-dialog {
  transform: none;
}

.modal-in .modal-dialog {
  transform: none;
}

.modal-content {
  border-radius: .75em;
  border: none;
}

.modal p::after {
  display: none;
}

.modal-content:nth-child(2) {
  margin-top: 20px;
}

.modal-content.modal-close {
  justify-content: center;
}

.modal-content.modal-close .close:focus {
  outline: none;
}

.modal-content h4, .modal-content h5, .modal-content h6 {
  margin: 1em 0;
}

.modal-header {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  border-bottom: none;

  button {
    position: absolute;
    z-index: 1000;
    top: 2rem;
    right: 2rem;
    outline: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    font-size: 2rem;
    background-color: transparent;
    color: var(--primary);
    text-shadow: none;
    opacity: 1;

    &:hover {
      opacity: 1;
      color: var(--secondary);
      background-color: var(--background);
    }
  }
}

dl.credits {
  display: grid;
  width: 100%;
  grid-template-columns: fit-content(45%) fit-content(45%);
  justify-content: space-around;
  padding-top: 1em;
}

dl.credits dd {
  font-family: "Poppins", sans-serif;
  margin-bottom: 1.2rem;
  font-weight: 300;
}
