@import url('https://fonts.googleapis.com/css2?family=Bangers&display=swap');

@font-face {
  font-family: 'luckiest_guy_rus-bel-ukrRg';
  src: url('../fonts/Luckiest Guy/luckiestguyrus_bel_ukr-webfont.woff2')
      format('woff2'),
    url('../fonts/Luckiest Guy/luckiestguyrus_bel_ukr-webfont.woff')
      format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'there_bratregular';
  src: url('../fonts/There-Brat/there-brat-webfont.woff2') format('woff2'),
    url('../fonts/There-Brat/there-brat-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
*,
*::after,
*::before {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html {
  height: 100%;
}

body {
  font-family: 'luckiest_guy_rus-bel-ukrRg';
  font-style: normal;
  font-weight: 400;
  min-width: 320px;
  max-width: 500px;
  margin: 0 auto;
  overflow: hidden;
  /* height: 100vh; */
  height: 100%;
  position: relative;
  background-color: #000000;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
}

button {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  outline: none;
}

.title {
  text-align: center;
  font-family: 'Bangers';
  font-weight: 400;
  font-size: 32px;
}
.title_black {
  color: #000;
  display: block;
}
.title_pink {
  color: #fe3b6a;
  font-size: 38px;
}

@keyframes spin-wheel-one {
  0% {
    transform: translate(-50%, -46%) rotate(0);
  }
  60% {
    transform: translate(-50%, -46%) rotate(3351deg);
  }
  80% {
    transform: translate(-50%, -46%) rotate(3311deg);
  }
  100% {
    transform: translate(-50%, -46%) rotate(3331deg);
  }
}
@keyframes spin-wheel-two {
  0% {
    transform: translate(-50%, -46%) rotate(0);
  }
  60% {
    transform: translate(-50%, -46%) rotate(3351deg);
  }
  80% {
    transform: translate(-50%, -46%) rotate(3311deg);
  }
  100% {
    transform: translate(-50%, -46%) rotate(3331deg);
  }
}
.game {
  background-image: url('../img/webp/bg.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  /* min-height: 100vh; */
  height: 100%;
}
.game::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  width: 100%;
  background-image: url('../img/webp/cash.webp');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  height: 120px;
}
.game-logo {
  max-width: 225px;
  margin: 0 auto 15px;
  display: block;
  position: relative;
  z-index: 11;
}
.game .scoreboard {
  margin: 8px 0 11px;
  text-align: center;
  color: #00b5e9;
  font-family: 'luckiest_guy_rus-bel-ukrRg';
  font-size: 30px;
  text-transform: uppercase;
  text-shadow: -2px -2px 0 #fe3b6a, 2px -2px 0 #fe3b6a, -2px 2px 0 #fe3b6a,
    2px 2px 0 #fe3b6a;
}
.game .scoreboard_counter {
  font-size: 40px;
}
.game-cards {
  transition: opacity 0.6s 0.5s ease-in-out;
}
.game-cards__item {
  height: 174px;
  width: 306px;
  overflow: hidden;
  padding: 10px 10px;
  border-radius: 31px;
  position: relative;
  margin: 0 auto;
  z-index: 2;
  cursor: pointer;
}
.game-cards__item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 31px;
  transform: translate(-50%, -50%);
  background: #fe3b6a;
  filter: blur(5px);
  width: 100%;
  height: 100%;
  z-index: -1;
}
.game-cards__item-bg {
  max-width: 288px;
  max-height: 154.693px;
  width: 100%;
}
.game-cards__item-prize {
  border-radius: 28px;
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 287px;
  max-height: 154.693px;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  z-index: -1;
}
.game-wheel {
  position: absolute;
  right: 0;
  left: 0;
  transform: scale(0);
  z-index: -20;
  transition: transform 0.5s ease-in-out;
  padding-top: 30px;
}
.game-wheel__box {
  max-width: 450px;
  max-height: 450px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  margin-bottom: 20px;
  transform-origin: center;
  transition: transform 0.5s ease-in-out;
}
.game-wheel__box-btn {
  position: absolute;
  max-width: 200px;
  width: 100%;
  top: 27%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.game-wheel__arrow {
  width: 70px;
  height: 83px;
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  -o-object-fit: contain;
  object-fit: contain;
}
.game-wheel-bonuses {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 98%;
  height: 98%;
  transform: translate(-50%, -50%);
}
.game-wheel-bonuses__item {
  text-align: center;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  font-family: 'luckiest_guy_rus-bel-ukrRg';
  font-size: 33px;
  font-style: normal;
  font-weight: 400;
  text-align: center;
  display: block;
  line-height: 1;
  letter-spacing: 1.56px;
  position: absolute;
}
.game-wheel-bonuses__item span {
  font-family: 'luckiest_guy_rus-bel-ukrRg';
  font-size: 21px;
  font-weight: 400;
  display: block;
  letter-spacing: 1.08px;
}
.game-wheel-bonuses__item:nth-child(even) {
  color: #00f0ff;
  text-shadow: -2px -2px 0 #fe3b6a, 2px -2px 0 #fe3b6a, -2px 2px 0 #fe3b6a,
    2px 2px 0 #fe3b6a;
}
.game-wheel-bonuses__item:nth-child(even) span {
  color: #00f0ff;
}
.game-wheel-bonuses__item:nth-child(odd) {
  color: #0073de;
  text-shadow: -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff,
    2px 2px 0 #fff;
}
.game-wheel-bonuses__item:nth-child(odd) span {
  color: #0073de;
}
.game-wheel-bonuses__item:nth-child(2) {
  top: 60px;
  left: 130px;
  transform: rotate(-21deg);
}
.game-wheel-bonuses__item:nth-child(3) {
  top: 57px;
  right: 117px;
  transform: rotate(21deg);
}
.game-wheel-bonuses__item:nth-child(4) {
  top: 138px;
  right: 46px;
  transform: rotate(68deg);
}
.game-wheel-bonuses__item:nth-child(5) {
  bottom: 138px;
  right: 42px;
  transform: rotate(116deg);
}
.game-wheel-bonuses__item:nth-child(6) {
  bottom: 52px;
  right: 120px;
  transform: rotate(155deg);
}
.game-wheel-bonuses__item:nth-child(7) {
  bottom: 52px;
  left: 120px;
  transform: rotate(204deg);
}
.game-wheel-bonuses__item:nth-child(8) {
  bottom: 138px;
  left: 41px;
  transform: rotate(244deg);
}
.game-wheel-bonuses__item:nth-child(9) {
  top: 138px;
  left: 42px;
  transform: rotate(-70deg);
}

.wheel-title.title {
  margin: 20px 0;
  font-size: 44px;
  font-weight: 400;
}

.wheel-title.title span {
  font-size: 44px;
}

.wheel-title .title_black {
  display: inline;
  margin-bottom: 18px;
}

.visible {
  top: 235px;
  transform: scale(1);
  z-index: 10;
}

.popup {
  width: 100%;
  height: 100%;
  bottom: 0;
  right: 0;
  left: 0;
  top: 0;
  z-index: -10;
  transform: translateY(100%);
  transition: transform 0.7s 0.4s ease-in-out, z-index 0.1s 1s ease-in-out;
  position: absolute;
  /* padding-top: 28px; */
}
.popup--active {
  z-index: 10;
  transform: translateY(0);
  transition: none;
}
.popup::before {
  width: 100%;
  height: 100%;
  content: '';
  bottom: 0;
  right: 0;
  left: 0;
  top: 0;
  opacity: 0;
  position: absolute;
  background: linear-gradient(
    348deg,
    rgba(0, 91, 112, 0.92) 4.44%,
    rgba(95, 1, 103, 0.72) 39.39%,
    #550089 93.74%
  );
  z-index: -1;
  transition: opacity 0.7s 1s ease-in-out;
}
.popup--active::before {
  opacity: 1;
  transition: opacity 0.7s 0.3s ease-in-out;
}
.popup-title {
  position: relative;
  top: -100%;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  display: block;
  transition: top 0.3s 1s ease-in-out;
  z-index: 22;
}
.popup--active .popup-title {
  top: 75px;
  transition: top 0.3s 0.5s ease-in-out;
}
.popup-content {
  background-image: url('../img/webp/popup.webp');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  max-height: 340px;
  width: 74%;
  height: 100%;
  margin: 0 auto 5px;
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: scale(0);
  transition: transform 0.3s 1s ease-in-out;
}
.popup-content__subtitle {
  text-align: center;
  font-family: 'Bangers';
  font-size: 24px;
  transform: scale(0);
  transition: transform 0.3s 1s ease-in-out;
}
.popup-content__title {
  color: #fe3b6a;
  text-align: center;
  font-family: 'luckiest_guy_rus-bel-ukrRg';
  font-size: 37px;
  transform: scale(0);
  transition: transform 0.3s 1s ease-in-out;
}
.popup--active .popup-content {
  transform: scale(1);
  transition: transform 0.3s ease-in-out;
}
.popup--active .popup-content__subtitle {
  transform: scale(1);
  transition: transform 0.3s 0.3s ease-in-out;
}
.popup--active .popup-content__title {
  transform: scale(1);
  transition: transform 0.3s 0.4s ease-in-out;
}
.popup-btn {
  background-image: url('../img/webp/btn.webp');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  width: 253px;
  height: 67.603px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5px;
  margin: 0 auto;
  opacity: 0;
  transition: opacity 0.3s 1s ease-in-out;
}
.popup-btn span {
  color: #fff;
  text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.75);
  font-family: 'luckiest_guy_rus-bel-ukrRg';
  font-size: 30px;
}
.popup--active .popup-btn {
  opacity: 1;
  transition: opacity 0.3s 1.2s ease-in-out;
}

.btn {
  background-image: url('../img/webp/btn.webp');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  width: 253px;
  height: 67.603px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5px;
  margin: 0 auto;
}
.btn span {
  color: #fff;
  text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.75);
  font-family: 'luckiest_guy_rus-bel-ukrRg';
  font-size: 30px;
}

.hidden {
  opacity: 0;
}

.pulsate {
  animation: pulsate-bck 0.5s ease-in-out infinite both;
}

@keyframes pulsate-bck {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}
.popup-content__plus {
  text-align: center;
  font-family: 'luckiest_guy_rus-bel-ukrRg';
  font-size: 40px;
  line-height: 1;
  text-transform: uppercase;
}

#popup-second .popup-content {
  max-height: 400px;
}

#popup-second .popup-content__title:nth-child(2) {
  margin-bottom: -20px;
}

#popup-second .popup-content__title:nth-child(4) {
  margin-top: -19px;
}
.clicked {
  animation: clicked 0.5s ease;
}

@keyframes clicked {
  0% {
    transform: scale(0.82);
  }
  100% {
    transform: scale(1);
  }
}

.spined {
  animation: 4s spinTo1 ease-in-out forwards;
}

@keyframes spinTo1 {
  0% {
    transform: rotate(-53deg);
  }
  70% {
    transform: rotate(745deg);
  }
  80% {
    transform: rotate(735deg);
  }
  100% {
    transform: rotate(741deg);
  }
}

/* 
@keyframes spin-wheel {
  0% {
    transform: rotate(0) translate(-50%, -50%);
  }
  100% {
    transform: rotate(651deg) translate(-50%, -50%);
  }
} */
@media (max-width: 500px) {
  .game-wheel__box-btn {
    top: 32vw;
    width: 39vw;
  }
  .popup-title {
    width: 87vw;
  }
  .popup-content {
    width: 74vw;
  }
  .popup-content__subtitle {
    font-size: 5vw;
    line-height: 1;
  }
  .popup-content__title {
    font-size: 8.4vw;
  }
  .wheel-title.title {
    margin: 20px 0 0;
  }
}
@media (max-width: 465px) {
  .game-wheel__box {
    width: 90%;
  }
  .game-wheel__arrow {
    width: 20%;
    height: 14%;
    top: 0px;
  }
  .game-wheel-bonuses__item span {
    font-size: 4.4vw;
  }
  .game-wheel-bonuses__item {
    font-size: 6.9vw;
  }
  .game-wheel-bonuses__item:nth-child(2) {
    top: 12vw;
    left: 27vw;
  }
  .game-wheel-bonuses__item:nth-child(3) {
    top: 10vw;
    right: 22.5vw;
  }
  .game-wheel-bonuses__item:nth-child(4) {
    top: 27vw;
    right: 8vw;
  }
  .game-wheel-bonuses__item:nth-child(5) {
    bottom: 28.5vw;
    right: 6vw;
  }
  .game-wheel-bonuses__item:nth-child(6) {
    bottom: 10vw;
    right: 23vw;
  }
  .game-wheel-bonuses__item:nth-child(7) {
    bottom: 10vw;
    left: 23.5vw;
  }
  .game-wheel-bonuses__item:nth-child(8) {
    bottom: 28vw;
    left: 5vw;
  }
  .game-wheel-bonuses__item:nth-child(9) {
    top: 26vw;
    left: 7vw;
  }
}
@media (max-width: 398px) {
  .game-wheel__box-btn {
    top: 34vw;
  }
  .game::before {
    height: 85px;
  }
  .game .scoreboard {
    margin: 8px 0 0;
  }
}
@media (max-height: 790px) {
  .game-logo {
    max-width: 155px;
  }
  .title {
    font-size: 26px;
  }
  .title_pink {
    font-size: 31px;
  }
  .game-cards__item {
    height: 137px;
    width: 240px;
  }
  .game-cards__item-bg {
    max-width: 225px;
    max-height: 117.693px;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    position: relative;
  }
  .game-cards__item-prize {
    max-width: 221px;
    max-height: 117.693px;
  }
  .visible {
    top: 186px;
  }
  .game-wheel__box {
    margin-bottom: 5px;
  }
}
@media (max-height: 680px) {
  .game-cards__item-prize {
    max-width: 201px;
    max-height: 109.693px;
  }
  .game-cards__item-bg {
    max-width: 206px;
    max-height: 118.693px;
  }
  .game-cards__item {
    height: 122px;
    width: 220px;
  }
  .game-wheel__box {
    width: 86%;
  }
  .game-wheel-bonuses__item:nth-child(5) {
    bottom: 26.5vw;
  }

  .game-wheel-bonuses__item:nth-child(3) {
    right: 20.5vw;
    transform: rotate(23deg);
  }
  .game-wheel-bonuses__item:nth-child(4) {
    top: 26.5vw;
    right: 8vw;
  }
  .game-wheel-bonuses__item:nth-child(6) {
    right: 22vw;
  }

  .game-wheel-bonuses__item:nth-child(7) {
    left: 22.5vw;
  }
  .game-wheel-bonuses__item:nth-child(8) {
    bottom: 27vw;
    left: 5vw;
    transform: rotate(247deg);
  }
  .game-wheel-bonuses__item:nth-child(9) {
    top: 25vw;
    left: 6vw;
    transform: rotate(-67deg);
  }
  .game-wheel-bonuses__item:nth-child(2) {
    top: 10vw;
    left: 25vw;
  }
  .btn {
    width: 200px;
    height: 50.603px;
  }
  .game-wheel__box-btn {
    top: 32vw;
  }
}

@media (max-height: 630px) {
  .game-cards__item-prize {
    max-width: 173px;
    max-height: 93.693px;
  }
  .game-cards__item-bg {
    max-width: 180px;
    max-height: 98.693px;
  }
  .game-cards__item {
    height: 109px;
    width: 192px;
  }
}
