@font-face {
  font-family: "Conkordia";
  font-style: normal;
  font-weight: 400;
  /* Браузер сначала попробует найти шрифт локально */
  src: local("Conkordia"),
    /* Если не получилось, загрузит woff2 */
    url("./fonts/conkordia.woff2") format("woff2");
}

body {
  font-family: Conkordia,
    sans-serif;
  padding: 120px 0;
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  animation: theme 16s linear infinite;

  &:after,
  &:before {
    content: '';
    display: block;
    position: fixed;
    z-index: -1;
    border-radius: 40px;
    top: 0;
    width: 100vw; // IE/Edge
    height: 100vh; // fallback
    width: 100vmax;
    height: 100vmax;
    background: rgba(0, 0, 0, 0.05);
    animation: background 90s linear infinite;
  }

  &:after {
    left: 15vw;
  }

  &:before {
    right: 15vw;
    animation-delay: -30s;
    animation-direction: reverse;
  }
}

@keyframes theme {
  0% {
    background: #8b9bea;
  }

  16% {
    background: #617fd8;
  }

  33% {
    background: #9985c9;
  }

  50% {
    background: #80b45b;
  }

  66% {
    background: #e1944c;
  }

  83% {
    background: #df5955;
  }

  100% {
    background: #8b9bea;
  }
}

@keyframes background {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  /* убираем подсветку кнопки при нажатии в мобильном браузере Хром */
}

.investigator {
  width: 100%;
  max-width: 797px;
  max-height: 557px;
  border-radius: 4%;
  -webkit-box-shadow: 0px 8px 10px 2px rgba(117, 117, 117, 0.5);
  -moz-box-shadow: 0px 8px 10px 2px rgba(117, 117, 117, 0.5);
  box-shadow: 0px 8px 10px 2px rgba(44, 44, 44, 0.5);
}

.container {
  position: relative;
}

.result {
  position: relative;
  text-align: center;
  margin: auto;
  width: 90%;
  display: none;
}

button {
  position: absolute;
  line-height: 1.4;
  letter-spacing: 1px;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
  border: 2px solid transparent;
  background: #617fd8;
  border-radius: 35px;
  padding: 12px 30px;
  transition: .3s;
  display: inline-block;
  animation: theme 16s linear infinite;
  -webkit-box-shadow: 0px 0px 0px 2px rgba(255, 255, 255, 0.8);
  -moz-box-shadow: 0px 0px 0px 2px rgba(255, 255, 255, 0.8);
  box-shadow: 0px 3px 0px 4px rgba(255, 255, 255, 0.8);
}

button:active {
  box-shadow: none;
}

button.disabled {
  padding: 12px 30px 6px 30px;
  color: rgb(255, 255, 255);
  background-color: #fff;
  cursor: auto;
  border-radius: 0;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  box-shadow: none;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1.0) 64%, transparent 100%);
}

.close-btn {
  position: absolute;
  width: 30px;
  height: 30px;
  top: -40px;
  right: 0px;
  cursor: pointer;
}

.close-btn:hover {
  cursor: pointer;
}

.close-btn::before {
  content: '';
  position: absolute;
  display: block;
  top: 50%;
  right: 0;
  left: 0;
  background: #fff;
  height: 1.7px;
  transform: rotate(45deg);
  transition: .4s ease;
}

.close-btn:hover::before {
  content: '';
  background: #fff;
  transform: rotate(134deg);
}

.close-btn::after {
  content: '';
  position: absolute;
  display: block;
  top: 50%;
  right: 0;
  left: 0;
  background: #fff;
  height: 1.7px;
  transform: rotate(-45deg);
  transition: .4s ease;
}

.close-btn:hover::after {
  content: '';
  background: #fff;
  transform: rotate(45deg);
}

.scene {
  width: 100%;
  height: 200px;
  /* height - настройка скорости выпадения карты  */
  perspective: 1800px;
}

.card {
  width: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  transform-origin: center right;
  /* чтобы вернуть обычный поворот, эту строку убрать */
  cursor: pointer;
  position: relative;
}

.card.is-flipped {
  /* transform: rotateY(180deg); */
  /* обычный поворот, строку ниже убрать */
  transform: translateX(-100%) rotateY(-180deg);
}

.card__face {
  position: absolute;
  width: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.card__face--back {
  transform: rotateY(180deg);
}