/* The Film: full-screen Vimeo player, with the "Can you spot a deepfake?"
   question over it. Values from the deployed build of moondisaster.org
   (film.tsx and question.tsx). film.js runs the timing. */

.film { position: relative; z-index: 0; opacity: 0; }
.film__player { width: 100%; height: 100vh; z-index: -1; }
.film__player iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Shown in place of the film when the Vimeo player can't load (film.js). */
.film__notice {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(36rem, calc(100vw - 2rem)); box-sizing: border-box;
  padding: 2rem; border: 1px solid rgb(255 255 255 / 0.5); background: var(--dark);
  font-size: 1rem; line-height: 1.5;
}
.film__notice[hidden] { display: none; }
.film__notice p { margin: 0 0 1rem; }
.film__notice-title {
  margin: 0 0 1rem; font-family: var(--font-header); text-transform: uppercase;
  font-size: 2rem; line-height: 1.1; letter-spacing: 0.03em;
}
.film__notice-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.5rem 0 0 !important; }
.film__notice-button {
  display: inline-block; padding: 0.6rem 1.2rem; border: 1px solid white; background: none; color: white;
  font-family: var(--font-header); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.05em;
  cursor: pointer; text-decoration: none;
}
.film__notice-skip { margin: 1.5rem 0 0 !important; text-align: center; }
.film__notice-skip a { color: var(--muted); border-bottom: 1px solid currentColor; }
.film__notice-skip a:hover { color: var(--highlight); }
.film__notice-button:hover { background: var(--highlight); border-color: var(--highlight); color: var(--dark); }
@media (max-width: 767px) {
  .film__notice { padding: 1.5rem; font-size: 0.95rem; }
  .film__notice-title { font-size: 1.6rem; }
}

/* A full-screen "screen", centred (CrtPage). Shared with the home page. */
.crt {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100vw; height: 100vh;
  font-family: var(--font-header);
  background-position: center; background-size: cover;
  overflow: hidden;
}
.crt[hidden] { display: none; }

.question { opacity: 0; background-image: url(/assets/img/question-background.jpg); }
.question.is-yes { background-image: url(/assets/img/hover-yes.jpg); }
.question.is-no { background-image: url(/assets/img/hover-no.jpg); }

.question__fill {
  position: absolute; inset: 0;
  display: flex; flex-flow: column nowrap; justify-content: center; align-items: center;
}
.question__fill[hidden] { display: none; }

.question__heading {
  font-size: 5rem; font-family: var(--font-header); text-align: center;
  position: absolute; top: 15%; margin-bottom: 30px;
}

.question__answers { position: absolute; top: 35vh; opacity: 0; display: none; }
.question__row { display: flex; flex-flow: row wrap; justify-content: center; padding: 10px 0; }
.question__row > * { margin-left: 20px; margin-right: 20px; }

/* Tall image button (TallButton): dim white, full green on hover. */
.tall-button {
  opacity: 0.5;
  /* the images are black; these filters turn them white, and green on hover */
  filter: invert(100%) sepia(0%) saturate(7500%) hue-rotate(353deg) brightness(112%) contrast(104%);
  font-size: 5rem; line-height: 5rem;
  margin: 0 5rem; color: white;
}
@media (hover: hover) {
  .tall-button:hover {
    opacity: 1; text-decoration: none;
    filter: invert(93%) sepia(5%) saturate(2399%) hue-rotate(55deg) brightness(94%) contrast(110%);
  }
}
/* Inner box that centres the image in the button (ButtonContents). */
.tall-button__contents { width: 100%; display: flex; flex-flow: column nowrap; align-items: center; letter-spacing: 0.03em; }
.question__answer-img { display: block; height: 200px; }

/* The answer */
.question__response-text { font-size: 1em; font-family: "Druk Wide Web", sans-serif; letter-spacing: 0.1rem; }
.question__yes-big {
  font-size: 18rem; font-style: italic; margin: 0.5rem 0;
  font-family: "Druk XCond Cy Web", sans-serif; letter-spacing: 0.8rem;
}
.question__no-big {
  font-size: 7rem; font-style: italic; margin: 2rem 0;
  font-family: "Druk XCond Cy Web", sans-serif; letter-spacing: 0.1em;
}

@media (min-width: 1280px) {
  .question__answer-img { height: 400px; }
  .question__response-text { font-size: 3rem; }
  .question__yes-big { font-size: 18rem; }
  .question__no-big { font-size: 11rem; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .question__heading { font-size: 4rem; }
  .question__answer-img { height: 300px; }
  .question__response-text { font-size: 3rem; }
  .question__yes-big { font-size: 18rem; }
  .question__no-big { font-size: 9rem; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .question__heading { font-size: 3rem; }
  .question__answers { top: 40vh; }
  .question__response-text { font-size: 2rem; }
  .question__yes-big { font-size: 12rem; }
}
@media (max-width: 767px) {
  .question__heading { font-size: 2.5rem; width: 80vw; top: 20%; }
  .question__answers { top: 45vh; width: 80vw; }
  .tall-button { font-size: 4rem; margin: 0 1.5rem; }
  .question__yes { width: 38%; }
  .question__response-text { font-size: 2rem; }
  .question__yes-big { font-size: 12rem; }
}
