/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
	 ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */
/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */
/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace;
  font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */
/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none;
  text-decoration: none;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: 500;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
	 ========================================================================== */
/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
  max-width: 100%;
}

/* Forms
	 ========================================================================== */
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type=button],
[type=reset],
[type=submit] {
  -moz-appearance: button;
       appearance: button;
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type=checkbox],
[type=radio] {
  box-sizing: border-box;
  padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type=search] {
  -moz-appearance: textfield;
       appearance: textfield;
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

/* Interactive
	 ========================================================================== */
/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Misc
	 ========================================================================== */
/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}

@font-face {
  font-family: "RedHatDisplay";
  src: url("../fonts/RedHatDisplay.woff2") format("woff2-variations");
  src: url("../fonts/RedHatDisplay.woff2") format("woff2") tech("variations");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "RedHatText";
  src: url("../fonts/RedHatText.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *:before, *:after {
  box-sizing: border-box;
}

@media screen and (min-width: 864px) {
  .mobile-only {
    display: none !important;
  }
}

@media screen and (max-width: 640px) {
  .desktop-only {
    display: none !important;
  }
}

::-moz-selection {
  background: rgba(238, 0, 0, 0.5);
  color: #FFFFFF;
  opacity: 0.5;
}

::selection {
  background: rgba(238, 0, 0, 0.5);
  color: #FFFFFF;
  opacity: 0.5;
}

::-moz-selection {
  background: rgba(238, 0, 0, 0.5);
  color: #FFFFFF;
  opacity: 0.5;
}

embed,
iframe,
object {
  max-width: 100%;
}

svg {
  display: block;
  width: 100%;
  height: auto;
}

audio {
  width: 100%;
  max-width: 640px;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.clearfix::after {
  display: block;
  content: "";
  clear: both;
}

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  color: white;
  background: black;
}

.nobr {
  white-space: nowrap;
}

.mediaClass {
  opacity: 1;
}
@media only screen and (max-width : 639px) {
  .mediaClass {
    opacity: 0;
  }
}

.center-block {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

body,
button,
input,
select,
optgroup,
textarea {
  color: #FFFFFF;
  font-family: RedHatText, Helvetica, sans-serif;
  font-size: clamp(0.75rem, 2vw, 1rem);
  line-height: 1.4;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: RedHatText, Helvetica, sans-serif;
  font-size: clamp(2.25rem, 7.8125vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 1.5em 0 0.375em 0;
}
h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child {
  margin-top: 0;
}
@media only screen and (max-width : 863px) {
  h1,
  h2,
  h3,
  h4,
  h5 {
    font-size: clamp(1.75rem, 6.25vw, 3rem);
  }
}

a,
a:hover,
a:active,
a:focus {
  color: inherit;
}

p {
  margin: 0 0 1.5em 0;
  line-height: 1.5;
}
p.intro {
  font-size: 1.25em;
}
p.text-emphasis {
  font-size: 1.125em;
}
p span.text-emphasis {
  text-decoration: underline;
}

html, body {
  height: 100%;
  min-height: 100dvh;
  margin: 0;
  background-color: #000000;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: rgba(238, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  background-color: #000000;
}
body.noscroll {
  height: 100%;
  overflow: hidden;
}

#SITE_HEADER,
#SITE_FOOTER {
  flex-shrink: 0;
}

#SITE_CONTAINER {
  flex: 1 0 auto;
  background: #000000 url("../images/background.png") no-repeat;
  background-size: cover;
  background-position: center center;
}
#SITE_CONTAINER .container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

main + section {
  padding: 6rem 0;
}

section {
  position: relative;
  margin: 0;
  padding: 8rem 0;
  overflow: hidden;
}
@media only screen and (max-width : 639px) {
  section {
    padding: 6rem 0;
  }
}

.container {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6.25vw;
}
.container--fullWidth {
  max-width: none;
}
.container--extraWide {
  max-width: 1400px;
}
.container--noPad {
  padding: 0;
}
.container--narrow {
  width: 80%;
  margin: 0 auto;
  min-width: 320px;
  max-width: 700px;
}
@media only screen and (max-width : 863px) {
  .container--narrow {
    width: auto;
  }
}

.header,
.footer {
  display: flex;
  justify-content: space-between;
  color: #FFFFFF;
}
.header div,
.footer div {
  text-align: left;
}
.header div:nth-child(2n),
.footer div:nth-child(2n) {
  text-align: right;
}

.header {
  padding-top: 2.5%;
}

.footer {
  border-top: 2px solid #FFFFFF;
  padding-top: 1.1vw;
  margin-top: 2.5%;
  padding-bottom: 2.5%;
}

.content {
  height: 100%;
}

.hidden {
  display: none !important;
}

.btn__wrapper {
  position: relative;
  text-align: center;
  display: flex;
  justify-content: space-between;
}

.btn {
  position: relative;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  padding: 0.5em 0.5em;
  min-width: clamp(100px, 20vw, 160px);
  background-color: #EE0000;
  color: #FFFFFF;
  display: inline-block;
  font-size: clamp(1rem, 3.125vw, 1.5rem);
  font-weight: 500;
  line-height: 1;
  border: none;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}
.btn--back {
  background-color: transparent;
  display: flex;
  align-items: center;
}
.btn--back .btn-icon {
  transform: rotate(180deg);
  margin-right: 1vw;
  width: clamp(1rem, 3.38vw, 1.625rem);
  height: auto;
}
.btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

.intro-head {
  color: #FFFFFF;
  font-family: RedHatDisplay, Helvetica, sans-serif;
  font-size: clamp(1.5rem, 6.25vw, 3rem);
  font-weight: 300;
  line-height: 1.1;
  text-align: center;
  margin: 0 auto;
}

.intro-text {
  font-size: clamp(1rem, 2.25vw, 1.25rem);
  line-height: 1.5;
  text-align: center;
}

#canvas {
  display: none;
}

#video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#photo,
#userPhoto {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#countdown {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: RedHatDisplay, Helvetica, sans-serif;
  font-weight: 600;
  font-size: clamp(9rem, 40vw, 18rem);
}

#currentCount.fade-out {
  transition: 900ms opacity linear;
  opacity: 0;
}

#userTheme {
  font-family: RedHatDisplay, Helvetica, sans-serif;
  font-weight: 600;
  text-transform: capitalize;
}

.screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  max-width: 48rem;
}
.screen__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  padding-top: 0;
  padding-right: clamp(2.5rem, 11vw, 5.5rem);
  padding-bottom: 6.25vh;
  padding-left: clamp(2.5rem, 11vw, 5.5rem);
}
.screen__main--center {
  justify-content: center;
  padding: 0;
  padding-right: clamp(2.4rem, 10vw, 4.8rem);
  padding-left: clamp(2.4rem, 10vw, 4.8rem);
}
.screen__footer {
  flex: 0;
  padding-bottom: clamp(0.75rem, 2.25vw, 1.25rem);
}

.screen--splash .intro-logo {
  margin-top: 1rem;
}
.screen--splash .intro-logo img {
  display: block;
  width: clamp(2.25rem, 11.5vw, 5.25rem);
  height: auto;
}
.screen--splash .intro-head {
  margin-top: 0.5em;
  font-size: clamp(1.5rem, 6.25vw, 3rem);
}
.screen--splash .intro-text {
  font-size: clamp(1rem, 4.25vw, 2rem);
  margin: 2.25em auto 1.125em auto;
}
.screen--splash .intro-legal {
  font-size: clamp(0.75rem, 1.83vw, 1rem);
  text-align: center;
}
.screen--splash .intro-links {
  margin-top: clamp(15px, 4vw, 30px);
}
.screen--splash .intro-links .link__wrapper {
  display: flex;
  justify-content: center;
  gap: 5vw;
}
.screen--splash .intro-links .link__wrapper .link {
  flex: 0 0 12vw;
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: clamp(2.25rem, 12vw, 5.75rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  text-align: center;
}
.screen--splash .intro-links .link__wrapper .link--qr {
  width: clamp(2.25rem, 10.9375vw, 5.25rem);
  border: 0.4vw solid #000000;
  margin-bottom: 0.5em;
}

.screen--theme .screen__main {
  padding-bottom: 9.375vh;
}
.screen--theme .intro-head {
  font-size: clamp(2.25rem, 7.8125vw, 3.75rem);
  text-align: left;
  margin-left: 0;
  margin-bottom: 0.5em;
}
.screen--theme .theme__wrapper {
  display: grid;
  grid-template-columns: 43% auto 43%;
  gap: 3.25vh 0;
  position: relative;
  margin: 0 auto;
}
.screen--theme .theme__wrapper .theme {
  font-size: clamp(1rem, 2.75vw, 1.375rem);
}
.screen--theme .theme__wrapper .theme--inner {
  height: 0;
  padding-bottom: 72.5%;
  border-radius: 1em;
  overflow: hidden;
}
.screen--theme .theme__wrapper .theme--inner a {
  display: block;
  position: relative;
}
.screen--theme .theme__wrapper .theme--inner a.active::after {
  opacity: 1;
  border-width: 4px;
}
.screen--theme .theme__wrapper .theme--inner a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0px solid #FFFFFF;
  border-radius: 1em;
  opacity: 0;
  transition: 200ms all ease;
}
.screen--theme .theme__wrapper .theme--inner img {
  width: 100%;
  height: auto;
}
.screen--theme .theme__wrapper .theme:nth-child(even) {
  grid-column: 3/4;
}
.screen--theme .theme__wrapper .theme:nth-child(odd) {
  grid-column: 1/2;
}

.screen--photo {
  width: 100%;
}
.screen--photo .intro-head {
  margin-bottom: 0.5em;
}
.screen--photo .video__wrapper {
  width: 100%;
  margin-top: 3.25vh;
  position: relative;
  font-size: clamp(1.5rem, 6.25vw, 3rem);
  border-radius: 1rem;
  overflow: hidden;
}
.screen--photo .video__wrapper .video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 120%;
  transform: rotateY(-180deg);
}
.screen--photo .video__wrapper .output {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
.screen--photo #videoPreview {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #171717;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: clamp(1rem, 2.5vw, 2rem);
}

.screen--processing .intro-head {
  font-size: clamp(1.75rem, 4.6875vw, 2.25rem);
  margin-bottom: 1.75em;
}
.screen--processing .brain-icon {
  width: clamp(3rem, 10.9375vw, 5.25rem);
}
.screen--processing .brain-icon img {
  width: 100%;
  max-width: none;
  height: auto;
}

.screen--error .intro-head {
  font-size: clamp(1.75rem, 4.6875vw, 2.25rem);
  margin-bottom: 0.75em;
}
.screen--error .intro-text {
  margin-bottom: 3em;
}
.screen--error .brain-icon {
  width: clamp(3rem, 10.9375vw, 5.25rem);
  margin-bottom: clamp(1.625rem, 5.46875vw, 2.625rem);
}
.screen--error .brain-icon img {
  width: 100%;
  max-width: none;
  height: auto;
}

.screen--result {
  width: 100%;
  max-width: 768px;
}
.screen--result .intro-head {
  font-size: clamp(2.25rem, 7.8125vw, 3.75rem);
  text-transform: none;
}
.screen--result .intro-text {
  font-size: clamp(1rem, 3.125vw, 1.5rem);
}
.screen--result .photo__wrapper {
  width: 100%;
  margin-top: 3.25vh;
  position: relative;
  font-size: 1.125rem;
  border-radius: 1rem;
  overflow: hidden;
}
.screen--result .photo__wrapper .photo {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 120%;
}
.screen--result .photo__wrapper .output {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
.screen--result .result__wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  gap: 2vh;
}
.screen--result .result__wrapper .result-photo {
  width: 60vw;
  max-width: 406px;
}
.screen--result .result__wrapper .result-photo img {
  width: 100%;
  height: auto;
}
.screen--result .result-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.screen--result .result-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen--download {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.8);
  max-width: none;
}
.screen--download .intro-text {
  font-size: clamp(1rem, 3.125vw, 1.5rem);
  margin-bottom: 1em;
}
.screen--download .result-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.screen--download .result-qr img {
  width: 36vw;
  max-width: 270px;
  height: auto;
}
.screen--download .result-qr .result-text {
  font-size: clamp(0.75rem, 2vw, 1rem);
  margin-top: 1em;
}

.screen--user {
  align-items: center;
}
.screen--user .screen__main {
  width: 100%;
  max-width: 768px;
  padding-left: clamp(16px, 6vw, 64px);
  padding-right: clamp(16px, 6vw, 64px);
  font-size: clamp(18px, 3.125vw, 34px);
}
.screen--user .intro-logo {
  width: clamp(64px, 11.5vw, 128px);
  margin-bottom: 1em;
}
.screen--user .intro-logo img {
  display: block;
  width: 100%;
  height: auto;
}
.screen--user .intro-head {
  color: #EE0000;
  font-size: clamp(18px, 3.125vw, 34px);
}
.screen--user .intro-text {
  font-size: clamp(18px, 3.125vw, 34px);
}
.screen--user .photo__wrapper {
  width: 100%;
  margin: 1em 0 2em 0;
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}
.screen--user .photo__wrapper .photo {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 120%;
}
.screen--user .photo__wrapper .output {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
.screen--user .btn {
  padding: 0.5em 1em;
  min-width: 0;
  font-size: clamp(14px, 3.125vw, 34px);
}