* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

a,
button {
  cursor: pointer;
  background: transparent;
  transition: all 0.2s linear;
  border: none;
}

:root {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue";
  background-color: #000;
}
main {
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-image: url(../images/bg.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;
}

.container {
  max-width: 1772px;
  width: 100%;
  margin-inline: auto;
  padding-inline: 15px;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  display: none;
  opacity: 0;
  padding: 60px 25px;

  justify-content: center;
  align-items: center;
  background: rgba(217, 217, 217, 0.05);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.showPopup .popup {
  opacity: 1;
  display: flex;
}
.showPopup .home__wrapper {
  display: none;
}
.popup__inner {
  padding: 58px 30px 60px;
  max-width: 755px;
  width: 100%;
  border-radius: 50px;
  background: #1e2432;
  animation: pulse 3s ease-in-out infinite;
}

.popup__wrapper {
  display: flex;
  text-align: center;
  flex-direction: column;
  max-width: 548px;
  width: 100%;
  margin-inline: auto;
}

.popup__logo {
  margin: 0 auto 23px;
  display: block;
  max-width: 190px;
  width: 100%;
  height: max-content;
  object-fit: contain;
}

.popup__title {
  color: #fff;
  font-size: 64px;
  font-weight: 500;
  line-height: normal;
  margin-bottom: 5px;
}

.popup__subtitle {
  color: #35b56f;
  font-size: 36px;

  font-weight: 400;
  line-height: normal;
  margin-bottom: 55px;
}

.popup__result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 56px;
  color: #35b56f;
  font-size: 36px;
  font-weight: 400;
  line-height: normal;
}
.popup__result span {
  max-width: 242px;
  width: 100%;
  padding: 10px;
  display: block;
  color: #fff;
  border-radius: 100px;
  border: 2px solid #878787;

  font-size: 40px;

  font-weight: 500;
}
.popup__link {
  color: #000;
  display: block;
  width: 100%;
  padding: 10px;
  border-radius: 100px;
  background: #35b56f;
  width: 100%;
  font-size: 40px;
  font-weight: 500;
  line-height: normal;
}
.popup__link:hover {
  opacity: 0.8;
}
.popup__link:active {
  transform: scale(0.99);
}
.header {
  background: #1e2432;
  /* padding-block: 20px; */
  height: 92px;
}
/* 
.header__logo {
  display: block;
  max-width: 200px;
  width: 100%;
  height: max-content;
  margin-inline: auto;
  object-fit: contain;
} */

.home {
  padding-block: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home__wrapper {
  cursor: pointer;
  max-width: 62vh;
  min-width: 480px;
  width: 100%;
  aspect-ratio: 1/1;
  height: 100%;
  margin-inline: auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  animation: pulse2 3s ease-in-out infinite;
}
.home__wrapper:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  z-index: 2;
  width: 100%;
  height: 100%;
  background-image: url(../images/wheel-wrapper.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.home__wheel {
  width: 94%;
  aspect-ratio: 1/1;
  height: initial;
}

.home__wheel-img {
  position: relative;
  z-index: 1;
  object-fit: contain;
  animation: 2s spinner ease-in-out infinite;
}
.home__wheel-img.wheel__spinner_animated-1 {
  animation: 4s spinToOne ease-in-out 1;
}

.home__spin {
  display: block;
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center;
  aspect-ratio: 1/1;
  width: 29%;
  height: initial;
  border-radius: 50%;
}

.home__spin:active {
  transform: scale(0.995) translate(-50%, -50%);
}

.home__spin img {
  object-fit: contain;
}

.footer {
  padding-block: 43px;
  border-radius: 50px 50px 0px 0px;
  background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.2) 100%
    ),
    rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(30px);
}

.footer__icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0px 15px;
  align-items: center;
}

.footer__img {
  flex-shrink: 0;
  display: block;
  height: 51px;
}

.footer__img:first-child {
  width: 167px;
}
.footer__img:nth-child(2) {
  width: 137px;
}
.footer__img:nth-child(3) {
  width: 173px;
}
.footer__img:nth-child(4) {
  width: 185px;
}
.footer__img:nth-child(5) {
  width: 118px;
}
.footer__img:nth-child(6) {
  width: 137px;
}
.footer__img:nth-child(7) {
  width: 93px;
  height: 49px;
}
.footer__img:nth-child(8) {
  width: 95px;
}
.footer__img:last-child {
  width: 196px;
}

.footer__img img {
  object-fit: contain;
}

@media (min-width: 1000px) and (max-height: 1000px) {
  .home__wrapper {
    max-width: 50vh;
  }
}
@media (max-width: 1600px) {
  .popup__inner {
    padding: 50px 30px;
    max-width: 686px;
  }
  .popup__title {
    font-size: 53px;
  }
  .popup__subtitle {
    font-size: 31px;
    margin-bottom: 60px;
  }
  .popup__link {
    font-size: 32px;
  }
  .popup__wrapper {
    max-width: 442px;
  }

  .popup__result {
    font-size: 32px;
    margin-bottom: 36px;
  }

  .home {
    padding-block: 32px;
  }

  .footer {
    padding-block: 14px 20px;
  }
}

@media (max-width: 1484px) {
  .footer__icons {
    justify-content: center;
  }
}

@media (max-width: 1279px) {
  main {
    height: 100%;
    min-height: 100vh;
  }
}
@media (max-width: 1000px) {
  .home__wrapper {
    min-width: 300px;
  }
  .popup__inner {
    max-width: 580px;
  }
}
@media (max-width: 800px) {
  /* .header__logo {
    max-width: 140px;
  } */

  .header {
    height: 76px;
  }
  .popup__inner {
    padding: 65px 25px 103px;
    max-width: 480px;
  }

  .popup__wrapper {
    max-width: 337px;
  }

  .popup__logo {
    max-width: 134px;
    margin-bottom: 22px;
  }

  .popup__title {
    font-size: 39px;
    margin-bottom: 0px;
  }

  .popup__subtitle {
    font-size: 22px;
    margin-bottom: 40px;
  }
  .popup__result {
    margin-bottom: 46px;
  }
  .popup__result {
    gap: 12px;
    font-size: 22px;
  }
  .popup__result span {
    padding: 6px;
    font-size: 24px;
  }

  .popup__link {
    max-width: 250px;
    margin-inline: auto;
    padding: 6px 10px;
    border-radius: 62px;
    font-size: 24px;
  }

  .home {
    padding-block: 50px;
  }

  .footer__icons {
    gap: 10px 15px;
  }

  .footer__img {
    height: 31px !important;
  }
  .footer__img:first-child {
    width: 103px;
  }
  .footer__img:nth-child(2) {
    width: 84px;
  }
  .footer__img:nth-child(3) {
    width: 107px;
  }
  .footer__img:nth-child(4) {
    width: 119px;
  }
  .footer__img:nth-child(5) {
    width: 76px;
  }
  .footer__img:nth-child(6) {
    width: 88px;
  }
  .footer__img:nth-child(7) {
    width: 64px;
  }
  .footer__img:nth-child(8) {
    width: 65px;
  }
  .footer__img:last-child {
    width: 135px;
  }
}
@media (max-width: 430px) {
  .popup {
    padding-inline: 12px;
  }
  .popup__result {
    gap: 7px;
    font-size: 18px;
  }
  .popup__result span {
    font-size: 20px;
  }
  .home__wrapper {
    min-width: 280px;
  }
  .popup__inner {
    padding-inline: 20px;
  }
  .popup__logo {
    margin-bottom: 22px;
  }
  .popup__subtitle {
    margin-bottom: 46px;
  }
  .footer__icons {
    gap: 3px;
  }
  .footer__img {
    height: 25px !important;
  }
  .footer__img:first-child,
  .footer__img:nth-child(3),
  .footer__img:nth-child(4),
  .footer__img:last-child {
    width: 100px;
  }
}
@keyframes pulse {
  0% {
    filter: drop-shadow(0 0 20px #35b56f) drop-shadow(0 0 10px #35b56f);
  }
  50% {
    filter: drop-shadow(0 0 20px #35b56f78) drop-shadow(0 0 10px #35b56f2c);
  }
  100% {
    filter: drop-shadow(0 0 20px #35b56f) drop-shadow(0 0 10px #35b56f);
  }
}
@keyframes pulse2 {
  0% {
    filter: drop-shadow(0 0 40px #35b56f) drop-shadow(0 0 10px #35b56f);
  }
  50% {
    filter: drop-shadow(0 0 40px #35b56f78) drop-shadow(0 0 10px #35b56f2c);
  }
  100% {
    filter: drop-shadow(0 0 40px #35b56f) drop-shadow(0 0 10px #35b56f);
  }
}

@keyframes spinner {
  0% {
    transform: rotate(-80deg);
    -webkit-transform: rotate(-80deg);
    transform-style: preserve-3d;
  }
  50% {
    transform: rotate(-73deg);
    -webkit-transform: rotate(-73deg);
    transform-style: preserve-3d;
  }
  100% {
    transform: rotate(-80deg);
    -webkit-transform: rotate(-80deg);
    transform-style: preserve-3d;
  }
}

@keyframes spinToOne {
  0% {
    transform: rotate(-80deg);
  }

  70% {
    transform: rotate(1127deg);
  }

  80% {
    transform: rotate(1120deg);
  }

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