@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/contrib/fonts/Roboto-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(contrib/fonts/Roboto-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  src: url(/contrib/fonts/Montserrat.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light only;
}

body {
  font-family: 'Roboto', sans-serif;
  /* background-image: url('https://images.pexels.com/photos/167092/pexels-photo-167092.jpeg'); */
  /* background-size: cover; */
  /* background-repeat: no-repeat; */
  /* background-attachment: fixed; */
  background: linear-gradient(90deg, #e52e71, #ff8a00);
  color: #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  /* position: absolute;  */
  /* inline-size: 100%; */
}

h1 {
  font-size: 7.0rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 2px 2px 4px #000;
  text-align: center;
}

#game-container {
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;

  /* background-color: #17141d; */
}

#game-container.blackbg {
  background-color: #17141d;
}

button {
  font-family: 'Roboto', sans-serif;
  background-color: rgba(76, 175, 80, 0.8);
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  margin: 1rem;
  outline: none;
  padding: 0.5rem 1rem;
  text-transform: uppercase;
  transition: background-color 0.3s, transform 0.3s;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#start-button {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
}

#start-button p {
  bottom: 0;
  position: fixed;
  width: 100%;
  text-align: center;
  animation: fadeInStart 10s;
}

#question-points {
  /* display: none;
  bottom: 1em;
  position: fixed;
  width: 100%;
  text-align: center; */

  bottom: 0.5rem;
  position: fixed;
  left: 1rem;
  z-index: 99999;

  text-shadow: 1px 1px #444;
}

@keyframes fadeInStart {
  0% {
    opacity: 0;
  }

  80% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

button:hover {
  background-color: rgba(61, 139, 64, 0.8);
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

.hidden-animation {
  animation: fadeOut 0.5s forwards;
}

.non-visible {
  visibility: hidden;
}

.invisible {
  opacity: 0;
}

#question-container {
  perspective: 35em;
  margin-top: 3rem;
  /* text-align: center;
  margin-bottom: 1rem;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); */
}

.answers {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* .answer:hover {
  background-color: rgba(211, 47, 47, 0.8);
  transform: translateY(-2px);
} */

.answer:active {
  transform: translateY(0);
}


#start-wrapper {
  scale: 1.0;
  position: relative;
  width: 100%;
}

#intro-wrapper {
  width: 100%;
  height: 100%;
}

#correct,
#wrong {
  position: fixed;
  font-size: calc(20px + 10vw);
  font-weight: 700;
  color: black;
}


/* Start background animation */
.slider-thumb::before {
  position: absolute;
  content: "";
  left: 0;
  top: -15%;
  width: 100%;
  height: 125%;
  background-color: #17141d;
  border-radius: 62% 47% 82% 35% / 45% 45% 80% 66%;
  will-change: border-radius, transform, opacity;
  display: block;
  z-index: -1;
  /* -webkit-animation: sliderShape 5s linear infinite; */
  /* animation-name: scaleIn, sliderShape; */
  animation-name: var(--animnames);
  animation-duration: 3s, 5s;
  animation-iteration-count: 1, infinite;
  animation-timing-function: linear, linear;
  /* animation-delay: 0s, 3s; */

  /* scale: 10.0; */
  scale: var(--scale);
}

@keyframes sliderShape {

  0%,
  100% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    transform: translate3d(0, 0, 0) rotateZ(0.01deg);
    /* scale: 1.0; */
  }

  34% {
    border-radius: 70% 30% 46% 54% / 30% 29% 71% 70%;
    transform: translate3d(0, 5px, 0) rotateZ(0.01deg);
    /* scale: 1.0; */
  }

  50% {
    transform: translate3d(0, 0, 0) rotateZ(0.01deg);
    /* scale: 1.0; */
  }

  67% {
    border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
    transform: translate3d(0, -3px, 0) rotateZ(0.01deg);
    /* scale: 1.0; */
  }
}

@keyframes scaleIn {
  0% {
    scale: 10.0;
  }

  50% {
    scale: 0.7;
  }

  60% {
    scale: 1.3;
  }

  70% {
    scale: 0.8;
  }

  80% {
    scale: 1.2;
  }

  90% {
    scale: 0.95;
  }

  100% {
    scale: 1.0;
  }
}



/* Category selection */
#category-selection {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.category {
  transition: all 1.5s ease;

  position: absolute;
  z-index: 0;
  width: 50%;
  height: 50%;
  overflow: hidden;
  cursor: pointer;
  transform: scale(1);
  will-change: transform, contents;
  transition-property: all;
  transition-duration: 500ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);

  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 400;
}

.category:nth-child(1) {
  top: 0;
  left: 0;
  background: #f06060;
}

.category:nth-child(2) {
  top: 0;
  left: 50%;
  background: #fa987d;
}

.category:nth-child(3) {
  top: 50%;
  left: 0;
  background: #72cca7;
}

.category:nth-child(4) {
  top: 50%;
  left: 50%;
  background: #10a296;
}

.category.is-expanded {
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 100%;
  cursor: initial;
}

.category div {
  transition: all 1.0s ease;
  /* width: 100%; */
  text-align: center;
  /* hyphens: auto; */
  padding: 0 0.25rem;
}

.category div div:first-child {
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.category div div:nth-child(2) {
  min-height: 3rem;
}

.category div div {
  transform: all 1.0s ease;
}

.section.is-expanded .close-section {
  opacity: 1;
  transition-delay: 500ms;
  pointer-events: initial;
}

.category-text {
  display: flex;
  height: 100%;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 300;
}

/* Page transition 1 */
#pagetransition1 {
  position: fixed;
  top: 0;
  /* z-index: 999; */
  width: 100%;
  height: 100%;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.square {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.square.black {
  background: #F5FFC9;
  top: -50%;
  left: -20%;
  z-index: 3;
}

.square.white {
  background: #B3E5BE;
  height: 200%;
  right: -50%;
  top: -130%;
  z-index: 5;
}

.square.gold {
  background: #A86464;
  right: -20%;
  bottom: -50%;
  z-index: 4;
}

.square.grey {
  background: #804674;
  height: 200%;
  left: -50%;
  bottom: -130%;
  z-index: 4;
}

/* WRONG Animation 1: Black Mirror */
.wrong1 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 0 0.15em #1da9cc;
  user-select: none;
  white-space: nowrap;
  filter: blur(0.007em);
  animation: shake 2.5s linear forwards;
}

.wrong1 span {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  -webkit-clip-path: polygon(10% 0%, 44% 0%, 70% 100%, 55% 100%);
  clip-path: polygon(10% 0%, 44% 0%, 70% 100%, 55% 100%);
}

.wrong1::before,
.wrong1::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
}

.wrong1::before {
  animation: crack1 2.5s linear forwards;
  -webkit-clip-path: polygon(0% 0%, 10% 0%, 55% 100%, 0% 100%);
  clip-path: polygon(0% 0%, 10% 0%, 55% 100%, 0% 100%);
}

.wrong1::after {
  animation: crack2 2.5s linear forwards;
  -webkit-clip-path: polygon(44% 0%, 100% 0%, 100% 100%, 70% 100%);
  clip-path: polygon(44% 0%, 100% 0%, 100% 100%, 70% 100%);
}

@keyframes shake {

  5%,
  15%,
  25%,
  35%,
  55%,
  65%,
  75%,
  95% {
    filter: blur(0.018em);
    transform: translateY(0.018em) rotate(0deg);
  }

  10%,
  30%,
  40%,
  50%,
  70%,
  80%,
  90% {
    filter: blur(0.01em);
    transform: translateY(-0.018em) rotate(0deg);
  }

  20%,
  60% {
    filter: blur(0.03em);
    transform: translate(-0.018em, 0.018em) rotate(0deg);
  }

  45%,
  85% {
    filter: blur(0.03em);
    transform: translate(0.018em, -0.018em) rotate(0deg);
  }

  100% {
    filter: blur(0.007em);
    transform: translate(0) rotate(-0.5deg);
  }
}

@keyframes crack1 {

  0%,
  95% {
    transform: translate(-50%, -50%);
  }

  100% {
    transform: translate(-51%, -48%);
  }
}

@keyframes crack2 {

  0%,
  95% {
    transform: translate(-50%, -50%);
  }

  100% {
    transform: translate(-49%, -53%);
  }
}

/* WRONG Animation 2: Glitch */
.glitch {
  /* color: white; */
  /* font-family: sans-serif; */
  /* font-weight: 800; */
  /* position: relative; */
  /* font-size: 100px; */
  padding: 30px;
}

.glitch::before,
.glitch::after {
  padding: 30px;
  color: white;
  content: "Falsch!";
  position: absolute;
  width: 100%;
  height: 100%;
  /* background: black; */
  overflow: hidden;
  top: 0;
}

.glitch::before {
  left: 3px;
  text-shadow: -2px 0 red;
  animation-name: glitch-animation-1;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-delay: 0s;
  animation-iteration-count: infinite;
  animation-direction: reverse-alternate;
}

.glitch::after {
  left: -3px;
  text-shadow: -2px 0 blue;
  animation-name: glitch-animation-2;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-delay: 0s;
  animation-iteration-count: infinite;
  animation-direction: reverse-alternate;
}

@keyframes glitch-animation-1 {
  0% {
    clip: rect(63px, 350px, 105px, 30px);
  }

  5% {
    clip: rect(140px, 350px, 74px, 30px);
  }

  10% {
    clip: rect(147px, 350px, 120px, 30px);
  }

  15% {
    clip: rect(81px, 350px, 36px, 30px);
  }

  20% {
    clip: rect(131px, 350px, 134px, 30px);
  }

  25% {
    clip: rect(54px, 350px, 58px, 30px);
  }

  30% {
    clip: rect(66px, 350px, 128px, 30px);
  }

  35% {
    clip: rect(114px, 350px, 28px, 30px);
  }

  40% {
    clip: rect(97px, 350px, 117px, 30px);
  }

  45% {
    clip: rect(93px, 350px, 19px, 30px);
  }

  50% {
    clip: rect(9px, 350px, 10px, 30px);
  }

  55% {
    clip: rect(21px, 350px, 88px, 30px);
  }

  60% {
    clip: rect(97px, 350px, 112px, 30px);
  }

  65% {
    clip: rect(83px, 350px, 112px, 30px);
  }

  70% {
    clip: rect(43px, 350px, 147px, 30px);
  }

  75% {
    clip: rect(63px, 350px, 29px, 30px);
  }

  80% {
    clip: rect(11px, 350px, 42px, 30px);
  }

  85% {
    clip: rect(14px, 350px, 49px, 30px);
  }

  90% {
    clip: rect(4px, 350px, 27px, 30px);
  }

  95% {
    clip: rect(149px, 350px, 65px, 30px);
  }

  100% {
    clip: rect(92px, 350px, 10px, 30px);
  }
}

@keyframes glitch-animation-2 {
  0% {
    clip: rect(64px, 350px, 93px, 30px);
  }

  5% {
    clip: rect(10px, 350px, 43px, 30px);
  }

  10% {
    clip: rect(91px, 350px, 77px, 30px);
  }

  15% {
    clip: rect(25px, 350px, 54px, 30px);
  }

  20% {
    clip: rect(10px, 350px, 51px, 30px);
  }

  25% {
    clip: rect(109px, 350px, 57px, 30px);
  }

  30% {
    clip: rect(106px, 350px, 72px, 30px);
  }

  35% {
    clip: rect(73px, 350px, 52px, 30px);
  }

  40% {
    clip: rect(118px, 350px, 74px, 30px);
  }

  45% {
    clip: rect(133px, 350px, 42px, 30px);
  }

  50% {
    clip: rect(145px, 350px, 29px, 30px);
  }

  55% {
    clip: rect(29px, 350px, 122px, 30px);
  }

  60% {
    clip: rect(87px, 350px, 30px, 30px);
  }

  65% {
    clip: rect(92px, 350px, 107px, 30px);
  }

  70% {
    clip: rect(103px, 350px, 134px, 30px);
  }

  75% {
    clip: rect(31px, 350px, 93px, 30px);
  }

  80% {
    clip: rect(120px, 350px, 35px, 30px);
  }

  85% {
    clip: rect(35px, 350px, 47px, 30px);
  }

  90% {
    clip: rect(13px, 350px, 19px, 30px);
  }

  95% {
    clip: rect(34px, 350px, 133px, 30px);
  }

  100% {
    clip: rect(82px, 350px, 123px, 30px);
  }
}

/* WRONG Animation 3: Aria 53 */
.area {
  text-align: center;
  font-size: 6.5em;
  color: #fff !important;
  letter-spacing: -7px;
  font-weight: 700;
  text-transform: uppercase;
  animation: blur .75s ease-out infinite;
  text-shadow: 0px 0px 5px #fff, 0px 0px 7px #fff;
}

@keyframes blur {
  from {
    text-shadow: 0px 0px 10px #fff,
      0px 0px 10px #fff,
      0px 0px 25px #fff,
      0px 0px 25px #fff,
      0px 0px 25px #fff,
      0px 0px 25px #fff,
      0px 0px 25px #fff,
      0px 0px 25px #fff,
      0px 0px 50px #fff,
      0px 0px 50px #fff,
      0px 0px 50px #7B96B8,
      0px 0px 150px #7B96B8,
      0px 10px 100px #7B96B8,
      0px 10px 100px #7B96B8,
      0px 10px 100px #7B96B8,
      0px 10px 100px #7B96B8,
      0px -10px 100px #7B96B8,
      0px -10px 100px #7B96B8;
  }
}

/* WRONG Animation 4: 3D */
.effect3d {
  color: #fff !important;
  text-shadow: 0 1px 0 hsl(174, 5%, 80%),
    0 2px 0 hsl(174, 5%, 75%),
    0 3px 0 hsl(174, 5%, 70%),
    0 4px 0 hsl(174, 5%, 66%),
    0 5px 0 hsl(174, 5%, 64%),
    0 6px 0 hsl(174, 5%, 62%),
    0 7px 0 hsl(174, 5%, 61%),
    0 8px 0 hsl(174, 5%, 60%),

    0 0 5px rgba(0, 0, 0, .05),
    0 1px 3px rgba(0, 0, 0, .2),
    0 3px 5px rgba(0, 0, 0, .2),
    0 5px 10px rgba(0, 0, 0, .2),
    0 10px 10px rgba(0, 0, 0, .2),
    0 20px 20px rgba(0, 0, 0, .3);
}


/* WRONG Animation 5: Yikes */
.yikes {
  margin: 0;
  font-size: 8em;
  padding: 0;
  color: white !important;
  text-shadow: 0 0.1em 20px black, 0.05em -0.03em 0 black, 0.05em 0.005em 0 black, 0em 0.08em 0 black, 0.05em 0.08em 0 black, 0px -0.03em 0 black, -0.03em -0.03em 0 black, -0.03em 0.08em 0 black, -0.03em 0 0 black;
}

.yikes span {
  transform: scale(0.9);
  display: inline-block;
}

.yikes span:first-child {
  -webkit-animation: bop 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards infinite alternate;
  animation: bop 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards infinite alternate;
}

/* h1 span:last-child {
  -webkit-animation: bopB 1s 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards infinite alternate;
          animation: bopB 1s 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards infinite alternate;
} */

@-webkit-keyframes bop {
  0% {
    transform: scale(0.9);
  }

  50%,
  100% {
    transform: scale(1);
  }
}

@keyframes bop {
  0% {
    transform: scale(0.9);
  }

  50%,
  100% {
    transform: scale(1);
  }
}

@-webkit-keyframes bopB {
  0% {
    transform: scale(0.9);
  }

  80%,
  100% {
    transform: scale(1) rotateZ(-3deg);
  }
}

@keyframes bopB {
  0% {
    transform: scale(0.9);
  }

  80%,
  100% {
    transform: scale(1) rotateZ(-3deg);
  }
}

/* Answer animation */
.answer-anim {
  background-color: white;
  border: none;
  color: black;
  cursor: pointer;
  font-size: 0.85rem;
  margin: 1rem;
  padding: 1em;
  outline-style: solid;
  /* animation: linear answer_animation 3s forwards infinite alternate; */
}

.answer-anim-1 {
  animation: linear answer_animation 2.8s forwards infinite alternate;
}

.answer-anim-2 {
  animation: linear answer_animation 3.1s forwards infinite alternate;
}

.answer-anim-3 {
  animation: linear answer_animation 3.0s forwards infinite alternate;
}

.answer-anim-4 {
  animation: linear answer_animation 2.7s forwards infinite alternate;
}

@keyframes answer_animation {
  0% {
    transform: perspective(300px) rotateY(0deg) rotateX(0deg) skew(0deg);
  }

  50% {
    transform: perspective(300px) rotateX(-1deg) rotateY(-2deg) rotateZ(-1deg) skew(2deg);
  }

  100% {
    transform: perspective(300px) rotateX(2deg) rotateY(3deg) rotateZ(2deg) skew(-3deg);
  }
}

/* Speech bubble for question */
.speech-bubble {
  position: relative;
  padding: 0.25em 0em 1em 0.5em;
  margin-left: 3rem;
  margin-right: 1rem;
  margin-bottom: 4rem;
  min-height: 5rem;
  color: black;
  border-radius: .25em;
  transform: rotate(-4deg) rotateY(15deg);
  background: #629bdd;
  font-size: 1.4rem;
  text-align: left;
  hyphens: auto;
}

.speech-bubble:before,
.speech-bubble:after {
  position: absolute;
  z-index: -1;
  content: '';
}

.speech-bubble:after {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: inherit;
  transform: rotate(2deg) translate(.35em, -.15em) scale(1.02);
  background: #f4fbfe;
}

.speech-bubble:before {
  border: solid 0 transparent;
  border-right: solid 2.5em #f4fbfe;
  border-bottom: solid .25em #629bdd;
  bottom: .25em;
  left: 1.25em;
  width: 0;
  height: 1em;
  transform: rotate(45deg) skewX(75deg);
}

/* Bouncing number */
.bounce {
  align-self: flex-end;
  margin: 0 auto 0 auto;
  transform-origin: bottom;

  font: 2em sans-serif;
  text-align: center;
  font-weight: 800;
}

.bounce-animation {
  animation-duration: 0.5s, 1.0s, 0.5s;
  animation-iteration-count: 1, 2, 1;
  animation-delay: 0s, 0.5s, 2.5s;
  animation-name: fly-in, bounce, fly-out;
  animation-timing-function: ease-out, cubic-bezier(0.280, 0.840, 0.420, 1), ease-out;
}

@keyframes bounce {
  0% {
    transform: translateY(-60vh) translateX(calc(-50%)) scale(1, 1);
    left: 50%;
    font: 4em sans-serif;
    font-weight: 800;
  }

  30% {
    transform: translateY(-68vh) translateX(calc(-50%)) scale(.9, 1.1);
    left: 50%;
    font: 4em sans-serif;
    font-weight: 800;
  }

  50% {
    transform: translateY(-60vh) translateX(calc(-50%)) scale(1.05, .95);
    left: 50%;
    font: 4em sans-serif;
    font-weight: 800;
  }

  57% {
    transform: translateY(-62vh) translateX(calc(-50%)) scale(1, 1);
    left: 50%;
    font: 4em sans-serif;
    font-weight: 800;
  }

  64% {
    transform: translateY(-60vh) translateX(calc(-50%)) scale(1, 1);
    left: 50%;
    font: 4em sans-serif;
    font-weight: 800;
  }

  100% {
    transform: translateY(-60vh) translateX(calc(-50%)) scale(1, 1);
    left: 50%;
    font: 4em sans-serif;
    font-weight: 800;
  }
}

@keyframes fly-in {
  0% {
    opacity: 0;
    transform: translateY(0);
    font-weight: 800;
  }

  100% {
    opacity: 1.0;
    transform: translateY(-60vh) translateX(-50%);
    left: 50%;
    font: 4em sans-serif;
    font-weight: 800;
  }
}

@keyframes fly-out {
  0% {
    opacity: 1.0;
    transform: translateY(-60vh) translateX(-50%);
    left: 50%;
    font: 4em sans-serif;
    font-weight: 800;
  }

  100% {
    opacity: 1.0;
    transform: translateY(0);
    font: 2em sans-serif;
    font-weight: 800;
  }
}

/* Universe animation */
.container-universe {
  background-image: radial-gradient(1600px at 70% 120%, rgba(33, 39, 80, 1) 10%, #020409 100%);

  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.content-universe {
  width: inherit;
  height: inherit;
}

#universe {
  width: 100%;
  height: 100%;
}

.content-endscreen {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  align-content: center;
  display: grid;

  text-align: center;
}

/* Countdown */
#content-countdown {
  position: relative;
  margin: auto;
  /* overflow: hidden; */
  /* width: 650px; */
  /* height: 480px; */
}


#timer {
  color: #F6F4F3;
  text-align: center;
  text-transform: uppercase;
  font-family: "Lato", sans-serif;
  /* font-size: 0.7em; */
  letter-spacing: 5px;
  margin-top: 25%;
  font-size: 0.5rem;
}

.hours,
.minutes,
.seconds {
  display: inline-block;
  padding: 1rem;
  /* padding: 20px; */
  /* width: 100px; */
  border-radius: 5px;
}

.hours {
  background: #F6F4F3;
  color: #183059;
}

.light-background .hours {
  background: #17141d;
  color: #F6F4F3;
}

.light-background .numbers {
  color: #F6F4F3;
}

.minutes {
  background: #276FBF;
}

.seconds {
  background: #F0A202;
}

.numbers {
  font-family: "Montserrat", sans-serif;
  color: #183059;
  font-size: 4em;
}

.balloon.white {
  position: absolute;
  background: #F6F4F3;
  height: 85px;
  width: 75px;
  left: -8%;
  top: -15%;
}

.balloon.white .triangle {
  border-bottom: 14px solid #F6F4F3;
}

.balloon.white .string {
  background: #F6F4F3;
  border: 1px solid #F6F4F3;
}

.light-background .balloon.white {
  background: #17141d;
}

.light-background .balloon.white .triangle {
  border-bottom: 14px solid #17141d;
}

.light-background .balloon.white .string {
  background: #17141d;
  border: 1px solid #17141d;
}

.balloon.yellow {
  position: absolute;
  background: #F0A202;
  right: -6%;
  top: -3%;
  height: 65px;
  width: 70px;
}

.balloon.yellow .triangle {
  border-bottom: 14px solid #F0A202;
}

.balloon.yellow .string {
  background: #F0A202;
  border: 1px solid #F0A202;
}

.balloon.blue {
  position: absolute;
  background: #276FBF;
  height: 80px;
  width: 80px;
  left: 60%;
  top: 5%;
}

.balloon.blue .triangle {
  border-bottom: 14px solid #276FBF;
}

.balloon.blue .string {
  background: #276FBF;
  border: 1px solid #276FBF;
}

.balloon {
  /* border: 1px solid #000; */
  border-radius: 50% 50% 50% 50%/40% 40% 60% 60%;
  z-index: 2;
}

.eye {
  position: absolute;
  width: 7px;
  height: 7px;
  top: 40%;
  left: 22%;
  background: #000;
  border-radius: 50%;
}

.eye:after {
  content: "";
  left: 35px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #000;
  position: absolute;
}

.light-background .eye {
  background: #fff;
}

.light-background .eye:after {
  background: #fff;
}

.mouth {
  position: absolute;
  top: 45%;
  left: 43%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.happy {
  border: 2px solid;
  border-color: transparent #000 #000 transparent;
  transform: rotate(45deg);
}

.light-background .happy {
  border-color: transparent #fff #fff transparent;
}

.triangle {
  position: absolute;
  left: 40%;
  bottom: -10%;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
}

.string {
  position: absolute;
  height: 70px;
  width: 1px;
  left: 48%;
  top: 100%;
  z-index: -1;
}

/* Made with Love */
#content-madewithlove {
  display: flex;
  align-items: center;
  position: fixed;
  right: 0.25em;
  bottom: 0;
  /* transform:translate(-50% , -50%); */
  font-family: 'Roboto Slab', serif;
  font-size: 1.5rem;
  white-space: nowrap;
  color: #eee;
  /* border-bottom:2px solid #efefef; */
  /* border-top:2px solid #efefef; */
  padding: 17px;
  padding-top: 20px;
}

#content-madewithlove span {
  margin-right: 1em;
}

#content-madewithlove svg {
  overflow: visible;
}

/* Intro Text */
@keyframes intro-background {
  from {
    background-position: 0 0%;
  }

  to {
    background-position: 0 -200px;
  }
}

.intro-text {
  color: #F2F5FE;
  text-align: center;
  font-size: 200px;
  line-height: 1;
  font-family: 'Rajdhani', sans-serif;
  background: linear-gradient(transparent, transparent), url(http://html5book.ru/wp-content/uploads/2016/08/bubbles.png) repeat;
  background-size: 200px auto;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: intro-background 10s infinite linear;

}

/* Morph */
#container-morph {
  /* Center the text in the viewport. */
  /* position: absolute; */
  margin: 2em auto;
  width: 100vw;
  height: 6em;
  /* height: 80pt;
	top: 0;
	bottom: 0; */

  filter: url(#threshold) blur(0.0px);
}

#text1,
#text2 {
  position: absolute;
  width: 100%;
  display: inline-block;

  font-family: "Raleway", sans-serif;
  font-size: 4em;
  font-weight: 800;

  text-align: center;
  /* color: #17141d; */
  /* user-select: none; */
}

/* container-intro */
#intro-text, #intro-icons {
  height: 4em;
  width: 100%;
  text-align: center;

  /* color: #17141d; */
}

#intro-icons {
  position: relative;
}

#intro-icons img {
  width: 6em;
  /* height: 2em; */

  position: relative;
  display: inline;
  top: 0;
  right: 0;
  left: 0;
  transform: translateX(100vw);
  /* transform: translateX(-100vw); */

  animation-name: fly-in-right, fly-out-left;
  animation-duration: 1s, 1s;
  animation-iteration-count: 1, 1;
  animation-fill-mode: forwards, forwards;
  /* animation-delay: 0s, 3.2s; */

  left:50%; 
  top:50%; 
  /* transform: translate(-50%, -50%); */
}

#intro-icons img:nth-child(1) {
  animation-delay: 0.5s, 4.0s;
  position: absolute;
}

#intro-icons img:nth-child(2) {
  animation-delay: 4.0s, 6.0s;
  position: absolute;
}

#intro-icons img:nth-child(3) {
  animation-delay: 6.0s, 8.0s;
  position: absolute;
}

#intro-icons img:nth-child(4) {
  animation-delay: 8.0s, 11.2s;
  position: absolute;
}

#intro-icons img:nth-child(5) {
  animation-delay: 11.2s, 13.5s;
  position: absolute;
}

#intro-icons img:nth-child(6) {
  animation-delay: 13.5s, 2000.0s;
  position: absolute;
}


#container-intro {
  top: 8em;
  position: relative;
}

#intro-text span {
  font-size: 4em;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  transform: translateX(-100vw);

  animation-name: fly-in-left, fly-out-right;
  animation-duration: 1s, 1s;
  animation-iteration-count: 1, 1;
  animation-fill-mode: forwards, forwards;
  animation-delay: 0.5s, 6.0s;
}

#intro-text span:nth-child(2) {
  animation-delay: 6.0s, 11.2s;
}

#intro-text span:nth-child(3) {
  animation-delay: 11.2s, 13.5s;
}

#intro-text span:nth-child(4) {
  animation-delay: 13.5s, 200.0s;
}

@keyframes fly-in-left {
  0% {
    opacity: 0;
    transform: translateX(-100vw);
  }

  100% {
    opacity: 1.0;
    transform: translateX(0);
  }
}

@keyframes fly-in-right {
  0% {
    transform: translateX(100vw);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes fly-out-right {
  0% {
    opacity: 1.0;
    transform: translateX(0);
  }

  100% {
    opacity: 0;
    transform: translateX(100vw);
  }
}

@keyframes fly-out-left {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(-100vw);
  }
}

/* background */
#background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#background svg {
  width: 100%;
  height: 100%;
  background-color: white;
}

/* background confetti */
#home {
  clip-path: url(#cache);
}

#red {
  fill: none;
  opacity: 0.15;
  stroke: #CE1B5F;
  stroke-width: 12;
  stroke-miterlimit: 10;
  animation: show 4s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

#blue {
  fill: none;
  opacity: 0.15;
  stroke: #06A1C4;
  stroke-width: 12;
  stroke-miterlimit: 10;
  animation: show 4s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

#light-blue {
  fill: none;
  opacity: 0.15;
  stroke: #06A1C4;
  stroke-width: 6;
  stroke-miterlimit: 10;
  stroke-dasharray: 200;
  stroke-dashoffset: 800;
  animation: draw 4s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes show {
  0% {
    opacity: 0.15;
  }

  50% {
    opacity: 0.2;
  }

  100% {
    opacity: 0.15;
  }
}

#confetti-anim {
  display: none;
}

#universe-anim {
  display: initial;
}

.light-background #universe-anim {
  display: none;
}

.light-background #confetti-anim {
  display: initial;
}

.light-background #content-countdown, .light-background #content-madewithlove {
  color: #17141d;
}

.light-background #endtext {
  color: #17141d;
}