html {
  padding: 0;
  margin: 0;
}

a {
  color: #fff;
}

body {
  padding: 0;
  margin: 0;
  background-color: #1b2a39;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: left center;
  background-size: cover;
  background-image: url("/assets/flag-small-f7869824.jpg");
  display: block;
  min-height: 100vh;
  overflow: scroll;

  @media (min-width: 1024px) {
    background-image: url("/assets/flag-e3ccea87.jpg");
  }
}

.container {
  position: absolute;
  top: 0;
  display: block;
  min-height: 100vh;
  height: 100%;
  width: 100%;
  text-align: center;
  color: #fff;
  font-family: "Ledger", Georgia, serif;
}

.headline-text a {
  color: inherit;
  text-decoration: none;
}

.headline-text {
  font-size: 25px;
  line-height: 30px;
  padding: 10px 30px 5px;
  margin-top: 0;
  border-bottom: 2px solid #fff;
  font-weight: normal;
  display: inline-block;
  margin-bottom: 0;
  white-space: nowrap;

  @media (min-width: 321px) {
    font-size: 35px;
    line-height: 40px;
  }

  @media (min-width: 769px) {
    font-size: 55px;
    line-height: 55px;
    padding: 25px 75px 10px;
    border-bottom: 3px solid #fff;
    background: url("/assets/star-cd4d6f92.png") left center no-repeat, url("/assets/star-cd4d6f92.png") right center no-repeat;
    background-size: 40px 40px;
  }
}

.subhead-text {
  margin: 5px 0 0;
  font-size: 17px;
  padding-top: 0;
  font-weight: normal;
  white-space: nowrap;
  letter-spacing: 3px;

  @media (min-width: 321px) {
    font-size: 20px;
  }

  @media (min-width: 769px) {
    font-size: 30px;
  }
}

a.next-clue,
.button {
  background: #49749d;
  box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.5);
  border-radius: 3px;
  border: 0;
  font-family: inherit;
  font-size: 20px;
  color: #fff;
  letter-spacing: 0.5px;
  text-decoration: none;
  padding: 7px 15px;
  cursor: pointer;

  &:active {
    background: #2d5f8f;
  }
}

.flex-container {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: auto;
  justify-content: space-between;
  align-items: center;

  @media (min-width: 769px) {
    min-height: 100vh;
  }
}

.flex-header {
  display: flex;
  text-align: center;
  flex-direction: column;
}

.flex-body {
  display: flex;
  padding: 0;
  flex-grow: 2;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 70vh;

  @media (min-width: 321px) {
    min-height: 65vh;
  }

  @media (min-width: 769px) {
    min-height: 0;
  }
}

.flex-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 0 30px;
}

.clue {
  margin: 0 auto;
  padding: 0;
}

.clue .clue-inner {
  --ratio: 4 / 3;
  --available-height: calc(100dvh - 300px);
  position: relative;
  margin: auto;
  width: min(92vw, calc(var(--available-height) * var(--ratio)));
  aspect-ratio: var(--ratio);
  box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.5);
  background: linear-gradient(to right, rgba(255, 255, 255, 0.1) 8%, rgba(255, 255, 255, 0.05) 18%, rgba(255, 255, 255, 0.1) 33%);
  background-size: cover;
  animation: placeHolderShimmer 1s linear infinite forwards;

  @media (min-width: 769px) {
    --available-height: calc(100dvh - 340px);
    width: min(90vw, calc(var(--available-height) * var(--ratio)));
  }

  img,
  iframe,
  video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
  }
}

.video-player {
  position: absolute;
  inset: 0;
}

.unmute-video {
  position: absolute;
  left: 10px;
  bottom: 60px;
  padding: 10px;
  border: 0;
  border-radius: 0;
  background-color: #111;
  opacity: 0.9;
  color: #fff;
  font: inherit;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;

  &:hover {
    background-color: #fff;
    color: #000;
  }
}

@keyframes placeHolderShimmer {
  0% { background-position: -468px 0; }
  100% { background-position: 468px 0; }
}

.clue figcaption {
  display: block;
  text-align: center;
  font-size: 18px;
  padding: 0 20px;
  margin: 12px 0 0;

  p {
    margin: 0;
  }

  @media (min-width: 321px) {
    font-size: 20px;
  }
}

.site-footer {
  font-size: 13px;
  opacity: 0.8;
  padding-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;

  @media (min-width: 321px) {
    font-size: 14px;
  }

  @media (min-width: 769px) {
    font-size: 16px;
  }
}

.site-footer-links {
  display: block;
  list-style-type: none;
  width: 100%;
  padding: 0;
  margin: 10px 0;

  li {
    padding: 2px 10px 2px;
  }

  @media (min-width: 321px) {
    li {
      display: inline-block;
    }

    li + li::before {
      content: "•";
      position: relative;
      left: -10px;
    }
  }
}

.site-footer-made-by {
  display: block;
  margin-top: 20px;
}

.solve-the-mystery,
.panel {
  background-color: rgba(0, 0, 0, 0.8);
  flex-grow: 0;
  min-height: 0;
  height: auto;
  padding: 10px;
  margin: 30px auto;
  text-align: left;
  max-width: 600px;
  box-sizing: border-box;
  width: calc(100% - 20px);

  @media (min-width: 621px) {
    margin: 20px auto;
    padding: 20px 50px;
    font-size: 20px;
  }

  a {
    text-decoration: underline;
    color: red;
  }
}

.solve-the-mystery {
  @media (min-width: 621px) {
    text-align: center;
  }

  .sharing-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 10px;
  }
}

.solve-the-mystery-steps {
  text-align: left;
}

.solve-the-mystery-steps-header {
  text-transform: uppercase;
  font-size: 15px;
  text-align: left;

  @media (min-width: 621px) {
    font-size: 20px;
  }
}

.solve-the-mystery-steps-list {
  text-align: left;

  li {
    padding: 5px 0;
  }
}

.clue-list {
  list-style: none;
  padding: 0 20px;
  margin: 30px auto;
  font-size: 20px;
  line-height: 1.8;

  @media (min-width: 769px) {
    columns: 2;
    column-gap: 40px;
    max-width: 900px;
    text-align: left;
  }
}

.empty-message {
  font-size: 20px;
  padding: 0 20px;
}

.media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
  padding: 20px;
  font-size: 18px;
}
