@import url(/css/intro.css);
@import url(/css/transition.css);
@import url(/css/circle-to-search.css);
@import url(/css/photo-assist.css);
@import url(/css/translate.css);
@import url(/css/outro.css);

:root {
  --font-size-m: 0.875rem; /* 14px */
  --font-size-l: 1.5rem; /* 24px */

  --vh-100: 100vh;
  --page-padding: 1.25rem;

  --color-black: #000;
  --color-white: #fff;
  --color-red: #e52321;

  --font-grandmaster: "Grandmaster", "SamsungSharpSans", Arial, Helvetica,
    sans-serif;

  --bezier-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.175);
}

body {
  font-family: "SamsungSharpSans", Arial, Helvetica, sans-serif;
  font-size: var(--font-size-m);
  line-height: 1.25;
  height: var(--vh-100);
  width: 100%;
  background-color: var(--color-black);
  color: var(--color-white);
  overflow: hidden;
}

.main {
  background-image: url(/images/lines-dark.svg);
  background-size: cover;
  background-size: 270%;
  background-position: center;
}

.button {
  font-family: var(--font-grandmaster);
  background-color: var(--color-white);
  color: var(--color-red);
  border-radius: 5px;
  display: block;
  text-align: center;
  padding: 10px 1rem 5px;
  font-size: 1.5rem;
  line-height: 1;
  transition: color 100ms ease, background-color 100ms ease;
}

.button:active {
  background-color: var(--color-red);
  color: var(--color-white);
}

.home {
  display: flex;
  justify-content: center;
}

.home__logo-image {
  width: 100%;
  max-width: 550px;
}

.home__header {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.home__frame {
  height: var(--vh-100);
  max-width: 100%;
  width: 100%;
  background-color: var(--color-black);
  position: relative;
  border-left: 1px solid var(--color-black);
  border-right: 1px solid var(--color-black);
  transition: max-width 200ms ease;
}

.animation-section {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
}

.home__logo-wrapper {
  display: none;
  position: absolute;
  top: var(--page-padding);
  left: var(--page-padding);
  width: 240px;
}

.home__logo-image {
  width: 100%;
}

.home__logo {
  position: absolute;
  top: var(--page-padding);
  right: var(--page-padding);
  width: 100px;
}

@media (min-aspect-ratio: 7/10) {
  .state--framed .home__frame {
    max-width: 70vh;
    border-left: 1px solid var(--color-white);
    border-right: 1px solid var(--color-white);
  }
}

@media screen and (min-width: 1300px) {
  .home__logo-wrapper {
    display: block;
  }
}

/* Help Duck */

.home__help {
  display: none;
  position: absolute;
  right: 2rem;
  bottom: 0;
  width: 200px;
  z-index: 1;
}

.home__help-image {
  width: 100%;
  transition: transform 300ms ease 20ms, opacity 300ms ease 20ms;
}

.state--hidden .home__help-image {
  transform: translate3d(0, 20px, 0);
  opacity: 0;
}

.home__help-text-wrapper {
  position: absolute;
  top: 0;
  right: 50%;
  padding: 2rem 0.75rem;
  border-radius: 20px;
  width: 250px;
  background-color: var(--color-red);
  transform: translate3d(0, -90%, 0);
  opacity: 1;
  transition: transform 300ms ease, opacity 300ms ease;
}

.state--hidden .home__help-text-wrapper {
  transform: translate3d(0, -50%, 0);
  opacity: 0;
}

.home__help-text-wrapper::after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background-color: var(--color-red);
  transform: translate3d(0, 8px, 0) rotate(45deg);
  position: absolute;
  bottom: 0;
  right: 1.5rem;
}

.home__help-text {
  font-size: 1rem;
}

.home__help-text strong {
  font-weight: bold;
}

.home__help-close {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate3d(40%, -40%, 0);
  width: 42px;
}

.home__help-close-icon {
  width: 100%;
}

@media screen and (min-width: 1300px) {
  .home__help {
    display: block;
  }
}

/**
 * Animation Section
 */

.animation-section {
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.animation-section.state--active {
  opacity: 1;
  pointer-events: auto;
  transition: none;
}

.animation-section__header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 25%;
  pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
}

/* Star Explosion */

.star-explosion {
  position: relative;
  width: 0;
  height: 0;
  transform: scale(1.3);
}

.star-explosion__star {
  display: block;
  background-image: url(/images/star-white.svg);
  background-size: contain;
  transform: translate(-50%, -50%) translate3d(0, 0, 0) scale(1);
  position: absolute;
  left: 50%;
  top: 50%;
  opacity: 1;
  transition: transform 800ms ease, opacity 200ms ease 600ms;
}

.state--blobb .star-explosion__star {
  opacity: 0;
}

@media screen and (min-width: 400px) {
  .star-explosion {
    transform: scale(1.5);
  }
}

@media screen and (min-width: 500px) {
  .star-explosion {
    transform: scale(1.8);
  }
}

@media screen and (min-width: 650px) {
  .star-explosion {
    transform: scale(2);
  }
}

@media screen and (min-width: 800px) {
  .star-explosion {
    transform: scale(2.5);
  }
}

/* Help Overlay */

.help__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  padding: var(--page-padding);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  overflow: auto;
  transition: opacity 250ms ease;
}

.help__overlay.state--active {
  opacity: 1;
  pointer-events: auto;
}

.help__overlay-inner {
  position: relative;
  background-color: var(--color-white);
  color: var(--color-black);
  border-radius: 10px;
  padding: var(--page-padding);
  min-height: 100px;
  transform: translate3d(0, 100vh, 0);
  transition: transform 250ms var(--bezier-bounce);
}

.state--active .help__overlay-inner {
  transform: translate3d(0, 0, 0);
}

.help__overlay-close {
  position: absolute;
  top: 10px;
  right: 10px;
}

.help__overlay-close img {
  width: 42px;
}

.help__overlay-inner h4 {
  color: var(--color-red);
  font-size: var(--font-size-l);
  margin-bottom: 1.5rem;
  margin-top: 2rem;
  font-weight: bold;
  max-width: 240px;
}

.help__overlay-inner h4:nth-child(2) {
  margin-top: 0;
}

.help__overlay-inner p {
  margin-bottom: 1.25rem;
  max-width: 300px;
}

.help__overlay-inner img,
.help__overlay-inner video {
  display: block;
  width: 100%;
  margin-bottom: 1.25rem;
}

.help__overlay-inner img:last-child,
.help__overlay-inner video:last-child,
.help__overlay-inner p:last-child,
.help__overlay-inner h4:last-child {
  margin-bottom: 0;
}

/* AI Star animation */

.ai-star {
  position: relative;
  width: 100%;
  pointer-events: none;
}

.ai-star__video {
  opacity: 0;
  transform: scale(1);
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
  transition: opacity 50ms ease, transform 100ms ease 1000ms;
}

.state--star-animation .ai-star__video {
  opacity: 1;
  transform: scale(0);
}

.ai-star__image {
  width: 100%;
  transition: opacity 100ms ease;
}

.state--star-animation .ai-star__image {
  opacity: 0;
}

.state--initial.state--star-animation .ai-star__image {
  opacity: 1;
  animation: startInitial 1300ms linear;
}

@keyframes startInitial {
  0% {
    opacity: 1;
  }
  10% {
    opacity: 0;
  }
  70% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Cookie Consent */

.ccm--ctrl-init {
  font-family: Arial, Helvetica, sans-serif;
}
