@font-face {
  font-family: cj-font;
  src: url("/media/games/color-jumble/fonts/Dinosaur.otf");
}
#game-area {
  width: 1280px;
  height: 720px;
  transform: translate(-50%, -50%) scale(1);
  left: 50%;
  top: 50%;
  position: absolute;
  overflow: hidden;
  background: linear-gradient(#03ab45, #01622a);
  color: #212529;
  font-size: 16px;
  line-height: 1.5;
}
#game-area #bg-pattern {
  position: absolute;
  inset: -20px;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 10%, rgba(0, 0, 0, 0.45) 70%, rgba(0, 0, 0, 0.1));
  mask-image: linear-gradient(#000 10%, rgba(0, 0, 0, 0.45) 70%, rgba(0, 0, 0, 0.1));
}
#game-area #bg-pattern div {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='80'%3E%3Cg fill='%23000' fill-opacity='.09'%3E%3Cpath d='M20 3.5L36.5 20L20 36.5L3.5 20Z'/%3E%3Cpath d='M0 43.5L16.5 60L0 76.5L-16.5 60Z'/%3E%3Cpath d='M40 43.5L56.5 60L40 76.5L23.5 60Z'/%3E%3C/g%3E%3C/svg%3E") 0 0/40px 80px;
  animation: cjBgDrift 9s linear infinite;
  will-change: transform;
}
#game-area h1, #game-area h2 {
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
}
#game-area p {
  margin-bottom: 1rem;
}
#game-area #home-section {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 999999;
}
#game-area #home-section #home-logo {
  height: 65%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: -10px;
}
#game-area #home-section #home-logo img {
  height: 100%;
  width: auto;
  opacity: 0;
}
#game-area #home-section #intro-words span, #game-area #home-section #intro-burst, #game-area #home-section #intro-streaks {
  position: absolute;
  left: 50%;
  top: 50%;
}
#game-area #home-section #intro-words span {
  transform: translate(-50%, -50%);
  font-family: cj-font;
  font-size: 120px;
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--c);
  -webkit-text-stroke: 12px #0b3a1f;
  paint-order: stroke fill;
  text-shadow: 0 8px 0 #0b3a1f;
  opacity: 0;
}
#game-area #home-section #intro-burst {
  width: 1060px;
  height: 1060px;
  margin: -530px 0 0 -530px;
  opacity: 0;
}
#game-area #home-section #intro-streaks {
  width: 0;
  height: 0;
}
#game-area #home-section #intro-streaks span {
  position: absolute;
  left: 0;
  top: var(--y);
  width: var(--w);
  height: 12px;
  margin-left: -200px;
  border-radius: 6px;
  background: #fff8e1;
  opacity: 0;
}
#game-area #home-section.is-fly #intro-words span {
  animation: cjWordsFly 620ms linear var(--dl) both;
}
#game-area #home-section.is-hit #intro-words span {
  animation: cjWordsBurst 260ms ease-out both;
}
#game-area #home-section.is-hit #intro-burst {
  animation: cjBurst 820ms cubic-bezier(0.2, 1.3, 0.4, 1) both;
}
#game-area #home-section.is-hit #home-logo img {
  animation: cjLogoThrow 660ms cubic-bezier(0.2, 1.5, 0.4, 1) 60ms both;
}
#game-area #home-section.is-out #home-logo img {
  animation: cjLogoDash 520ms cubic-bezier(0.55, 0, 0.9, 0.45) both;
}
#game-area #home-section.is-out #intro-streaks span {
  animation: cjStreak 460ms ease-out var(--dl) both;
}
#game-area #home-section.is-out #skip-btn {
  opacity: 0 !important;
  transition: opacity 0.2s;
}
#game-area #home-section #skip-btn {
  position: absolute;
  right: 50px;
  bottom: 95px;
  width: 200px;
  height: 78px;
  background: url("/media/games/who-is-it/ui/btn-short-blue.png") center/100% 100% no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: translate 0.15s ease-out, scale 0.1s ease-out;
}
#game-area #home-section #skip-btn span {
  font-family: cj-font;
  font-size: 38px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: white;
  text-shadow: 0 3px 0 #1d64ab;
  margin-bottom: 4px;
}
#game-area #home-section #skip-btn:hover {
  translate: 0 -4px;
}
#game-area #home-section #skip-btn:active {
  scale: 0.95;
}
#game-area #mode-section {
  width: 100%;
  height: 100%;
  position: absolute;
  padding: 50px 70px;
}
#game-area #mode-section #mode-title {
  width: 44%;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-top: -25px;
}
#game-area #mode-section #mode-title img {
  width: 100%;
  opacity: 0;
}
#game-area #mode-section .say-msg {
  color: white;
  font-family: cj-font;
  text-align: center;
  letter-spacing: 3px;
  text-shadow: 2px 2.5px rgba(9, 55, 2, 0.4784313725);
  -webkit-text-stroke: 2px rgba(9, 55, 2, 0.3098039216);
  font-size: 33px;
  position: absolute;
  top: 100%;
  transform: translateY(-100%);
  margin: -80px 0 0 0;
  width: 100%;
  left: 0;
  opacity: 0;
}
#game-area #mode-section #modes {
  margin-top: 25px;
  display: flex;
  justify-content: center;
}
#game-area #mode-section #modes .mode {
  width: 270px;
  position: relative;
  margin: 10px 14px;
  cursor: pointer;
  opacity: 0;
}
#game-area #mode-section #modes .mode p {
  color: white;
  width: 100%;
  text-align: center;
  font-size: 38px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 3px 3px rgba(0, 0, 0, 0.182);
  font-family: cj-font;
  margin: 0;
}
#game-area #mode-section #modes .mode p span {
  font-family: cj-font;
  color: gold;
}
#game-area #mode-section #modes .mode img {
  width: 100%;
  transition: 0.15s ease-out;
}
#game-area #mode-section #modes .mode img:hover {
  translate: 0 -8px;
}
#game-area #mode-section #modes .mode img:active {
  transform: scale(0.95);
  opacity: 0.9;
  filter: brightness(1.1);
}
#game-area #play-section {
  width: 100%;
  height: 100%;
  position: absolute;
}
#game-area #play-section #result-screen {
  width: 100%;
  left: 0;
  height: 100%;
  background: rgba(0, 0, 0, 0.6039215686);
  position: absolute;
  z-index: 9999;
  backdrop-filter: blur(5px);
  display: none;
}
#game-area #play-section #result-screen #result-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 550px;
}
#game-area #play-section #result-screen #result-img img {
  width: 100%;
  transform: scale(0);
  opacity: 0;
}
#game-area #play-section #back-btn {
  position: absolute;
  left: 50px;
  top: 20px;
  cursor: pointer;
  transition: 0.1s;
  opacity: 0;
}
#game-area #play-section #back-btn:active {
  transform: scale(0.95);
  opacity: 0.9;
  filter: brightness(1.1);
}
#game-area #play-section #score {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: cj-font;
  font-size: 30px;
  text-align: center;
  line-height: 60px;
  top: 15px;
  text-shadow: 1px 2px 0 rgba(0, 0, 0, 0.216);
  opacity: 0;
}
#game-area #play-section #score span {
  display: inline-block;
  font-size: 70px;
  color: white;
  text-shadow: 3px 6px 0 rgba(0, 0, 0, 0.216);
}
#game-area #play-section #timer {
  position: absolute;
  left: 100%;
  transform: translateX(-100%);
  font-family: cj-font;
  font-size: 30px;
  text-align: center;
  line-height: 60px;
  top: 15px;
  margin-left: -110px;
  text-wrap: nowrap;
  text-shadow: 1px 2px 0 rgba(0, 0, 0, 0.216);
  opacity: 0;
}
#game-area #play-section #timer span {
  display: inline-block;
  font-size: 70px;
  color: white;
  text-shadow: 3px 6px 0 rgba(0, 0, 0, 0.216);
  transition: color 0.3s;
}
#game-area #play-section #timer.cj-hurry span {
  color: #ff4136;
}
#game-area #play-section #container {
  width: 750px;
  height: 450px;
  background: url("/media/games/color-jumble/images/container.png");
  background-size: cover;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-top: -175px;
  margin-left: -375px;
  opacity: 0;
}
#game-area #play-section #container h2 {
  text-align: center;
  font-family: cj-font;
  color: #3b2a1a;
  font-size: 34px;
  letter-spacing: 2px;
  margin: 28px 0 0 0;
  opacity: 0;
}
#game-area #play-section #container h2 u {
  text-decoration-thickness: 4px;
}
#game-area #play-section #container h1 {
  text-align: center;
  font-family: cj-font;
  color: darkmagenta;
  font-size: 100px;
  text-shadow: 2px 5px 0 rgba(0, 0, 0, 0.356);
  margin-top: 0px;
  margin-bottom: 0px;
  opacity: 0;
}
#game-area #play-section #container #answers {
  display: flex;
  flex-wrap: wrap;
  width: 90%;
  left: 50%;
  position: relative;
  transform: translateX(-50%);
  justify-content: center;
  margin-top: 30px;
}
#game-area #play-section #container #answers .answer {
  margin: 10px;
  font-size: 40px;
  font-family: cj-font;
  height: 70px;
  background: skyblue;
  padding: 0 70px 3px;
  display: flex;
  align-items: center;
  border: 5px solid black;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.166);
  transition: 0.2s;
  width: 250px;
  justify-content: center;
  color: rgba(0, 0, 0, 0.909);
  opacity: 0;
}
#game-area #play-section #container #answers .answer p {
  margin: 0;
  text-transform: capitalize;
}
#game-area #play-section #container #answers .answer:active {
  transform: scale(0.95);
  opacity: 0.9;
  filter: brightness(1.1);
}
#game-area #play-section #container #answers .picked-correct {
  box-shadow: 0 0 0 8px #2ecc40, 0 0 30px #2ecc40;
}
#game-area #play-section #container #answers .picked-wrong {
  box-shadow: 0 0 0 8px #ff4136, 0 0 30px #ff4136;
}
#game-area #end-section {
  width: 100%;
  height: 100%;
  position: absolute;
  opacity: 0;
}
#game-area #end-section .content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: url("/media/games/color-jumble/images/game-over.png");
  background-size: cover;
  width: 700px;
  height: 465px;
}
#game-area #end-section #final-score {
  position: absolute;
  width: 100%;
  text-align: center;
  font-family: cj-font;
  font-size: 50px;
  color: white;
  top: 49%;
  letter-spacing: 2px;
  opacity: 0.8;
}
#game-area #end-section #end-btns {
  position: relative;
  width: 80%;
  margin-left: 10%;
  margin-top: 320px;
  display: flex;
}
#game-area #end-section #end-btns div {
  display: flex;
  justify-content: center;
  width: 270px;
  margin: 10px auto;
  cursor: pointer;
  animation: cjPulse 1.5s infinite;
}
#game-area #end-section #end-btns div img {
  width: 100%;
  cursor: pointer;
}
#game-area #end-section #end-btns div img:active {
  transform: scale(0.95);
  opacity: 0.9;
  filter: brightness(1.1);
  transition: 0.2s;
}

@keyframes cjPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes cjBgDrift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-80px, -80px);
  }
}
@keyframes cjThump {
  0% {
    translate: 0 0;
  }
  25% {
    translate: 0 10px;
  }
  50% {
    translate: 0 -5px;
  }
  75% {
    translate: 0 2px;
  }
  100% {
    translate: 0 0;
  }
}
@keyframes cjWordsFly {
  0% {
    opacity: 0;
    translate: var(--x) var(--y);
    rotate: var(--r);
    scale: 1.25;
    animation-timing-function: cubic-bezier(0.55, 0, 0.9, 0.45);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    translate: var(--fx) var(--fy);
    rotate: 0deg;
    scale: 0.8;
  }
}
@keyframes cjWordsBurst {
  from {
    opacity: 1;
    translate: var(--fx) var(--fy);
    scale: 0.8;
  }
  to {
    opacity: 0;
    translate: calc(var(--fx) * 2) calc(var(--fy) * 2);
    scale: 1.3;
  }
}
@keyframes cjBurst {
  0% {
    opacity: 1;
    scale: 0.1;
    rotate: -25deg;
  }
  55% {
    opacity: 1;
    scale: 1;
    rotate: 4deg;
  }
  100% {
    opacity: 0;
    scale: 1.08;
    rotate: 9deg;
  }
}
@keyframes cjLogoThrow {
  0% {
    opacity: 0;
    scale: 0.2;
    rotate: -9deg;
  }
  35% {
    opacity: 1;
  }
  60% {
    scale: 1.14;
    rotate: 3deg;
  }
  100% {
    opacity: 1;
    scale: 1;
    rotate: 0deg;
  }
}
@keyframes cjLogoDash {
  0% {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
  24% {
    translate: -60px 0;
    scale: 0.9 1.08;
  }
  100% {
    opacity: 1;
    translate: 1500px 0;
    scale: 1.6 0.8;
  }
}
@keyframes cjStreak {
  0% {
    opacity: 0;
    transform: translateX(420px) scaleX(0.3);
  }
  30% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateX(-760px) scaleX(1.3);
  }
}
@keyframes cjFadeUp {
  from {
    opacity: 0;
    translate: 0 24px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes cjTitleDrop {
  0% {
    opacity: 0;
    translate: 0 -300px;
    animation-timing-function: ease-in;
  }
  10% {
    opacity: 1;
  }
  55% {
    translate: 0 12px;
    scale: 1.06 0.94;
    animation-timing-function: ease-out;
  }
  78% {
    translate: 0 -6px;
    scale: 0.98 1.02;
    animation-timing-function: ease-in-out;
  }
  100% {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}
@keyframes cjCardRise {
  0% {
    opacity: 0;
    translate: 0 260px;
    rotate: 6deg;
    animation-timing-function: ease-out;
  }
  15% {
    opacity: 1;
  }
  60% {
    translate: 0 -18px;
    rotate: -2deg;
    animation-timing-function: ease-in-out;
  }
  82% {
    translate: 0 6px;
    rotate: 1deg;
    animation-timing-function: ease-in-out;
  }
  100% {
    opacity: 1;
    translate: 0 0;
    rotate: 0deg;
  }
}
@keyframes cjSlideDown {
  0% {
    opacity: 0;
    translate: 0 -140px;
    animation-timing-function: ease-out;
  }
  65% {
    opacity: 1;
    translate: 0 8px;
    animation-timing-function: ease-in-out;
  }
  100% {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes cjSlideRight {
  0% {
    opacity: 0;
    translate: -160px 0;
    animation-timing-function: ease-out;
  }
  65% {
    opacity: 1;
    translate: 10px 0;
    animation-timing-function: ease-in-out;
  }
  100% {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes cjDropIn {
  0% {
    opacity: 0;
    translate: 0 -720px;
    animation-timing-function: ease-in;
  }
  10% {
    opacity: 1;
  }
  55% {
    translate: 0 0;
    scale: 1.05 0.93;
    animation-timing-function: ease-out;
  }
  75% {
    translate: 0 -10px;
    scale: 0.98 1.03;
    animation-timing-function: ease-in-out;
  }
  100% {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}
@keyframes cjWordPop {
  0% {
    opacity: 0;
    scale: 0.3;
    rotate: -10deg;
    animation-timing-function: ease-out;
  }
  55% {
    opacity: 1;
    scale: 1.14;
    rotate: 4deg;
    animation-timing-function: ease-in-out;
  }
  78% {
    scale: 0.95;
    rotate: -1deg;
    animation-timing-function: ease-in-out;
  }
  100% {
    opacity: 1;
    scale: 1;
    rotate: 0deg;
  }
}
@keyframes cjAnswerPop {
  0% {
    opacity: 0;
    scale: 0.4;
    translate: 0 30px;
  }
  65% {
    opacity: 1;
    scale: 1.08;
    translate: 0 -4px;
  }
  100% {
    opacity: 1;
    scale: 1;
    translate: 0 0;
  }
}
@keyframes cjPickRight {
  0% {
    scale: 1;
  }
  40% {
    scale: 1.12;
  }
  100% {
    scale: 1;
  }
}
@keyframes cjPickWrong {
  0% {
    translate: 0 0;
  }
  20% {
    translate: -12px 0;
  }
  40% {
    translate: 10px 0;
  }
  60% {
    translate: -7px 0;
  }
  80% {
    translate: 4px 0;
  }
  100% {
    translate: 0 0;
  }
}
@keyframes cjTick {
  from {
    scale: 1.35;
  }
  to {
    scale: 1;
  }
}
@keyframes cjBump {
  0% {
    scale: 1;
  }
  40% {
    scale: 1.35;
  }
  100% {
    scale: 1;
  }
}
