* {
  box-sizing: border-box;
}
body {
  font-family: "Poppins";
  background-color: #000000;
  background-image: url(../img/bg.png);
  background-size: cover;
  background-position: center;
  height: 100vh;
  margin: 0;

  overflow: hidden;
}

.btn {
  margin-left: 60px;
}

.btn button {
  font-family: "Poppins";
  color: #070707;
  padding: 20px 46px;
  font-size: 24px;
  font-style: normal;
  font-weight: 800;
  line-height: 18px;
  border-radius: 100px;
  background-color: #bd41ff;
  border: none;
  cursor: pointer;
}
.btn button:hover {
  background-color: #31d77b;
  transition: 0.9s;
}
header {
  padding: 34px 40px;
  padding-bottom: 30px;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.nav-bar__logo {
  width: 120px;
}
.white {
  color: #ffffff;
}

.about-anima {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.roulette {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.wheel {
  width: 500px;
  height: 500px;
}

.wheel img {
  transition: transform 10s cubic-bezier(0.3, 1, 0.7, 1),
    10s filter cubic-bezier(0.1, 1, 0.8, 1),
    10s -webkit-filter cubic-bezier(0.1, 1, 0.8, 1);
  will-change: transform;
  border-radius: 50%;
  width: 500px;

  transform-origin: center center;
}

.arrow {
  position: absolute;
  width: 92.215px;
  height: 72.256px;
  top: 44%;
  left: 96%;
  transform: translate(-50%, 0%);

  z-index: 10;
  background-image: url(../img/arrow.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.spin {
  cursor: pointer;
  overflow: visible;
  z-index: 10;
}

.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.896);
  z-index: 9997;
}

.popup-wrapper {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9998;
  pointer-events: none;
}

.popup-bg-img {
  position: absolute;
  top: -114%;
  left: 0%;
  transform: translateX(-20%);
  width: 560px;
  height: 560px;
  background-image: url("../img/present.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;
  pointer-events: none;
}

.popup {
  position: relative;
  background: #23282d;
  border-radius: 12px;
  border: 4px solid #cc9aff;
  width: 100%;
  max-width: 420px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0px 0px 40px 0px #8b46d1;
  z-index: 9999;
  pointer-events: auto;
}

.btn-bonus button {
  color: #ffffff;
  background-color: #100720;
  font-family: "Poppins";
  width: 100%;
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
  margin-top: 22px;
  cursor: pointer;
  position: relative;
}
.mt {
  margin-top: 5px;
}
.btn-bonus button:after {
  content: "";
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    circle farthest-corner at 10% 20%,
    rgba(255, 94, 247, 1) 17.8%,
    rgba(2, 245, 255, 1) 100.2%
  );
  filter: blur(15px);
  z-index: -1;
  position: absolute;
  left: 0;
  top: 0;
}

.btn-bonus button:active {
  transform: scale(0.9) rotate(3deg);
  background: radial-gradient(
    circle farthest-corner at 10% 20%,
    rgba(255, 94, 247, 1) 17.8%,
    rgba(2, 245, 255, 1) 100.2%
  );
  transition: 0.5s;
}
.btn-bonus button:hover {
  transition: 0.9s;
  background-color: #52ff2b;
}

main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
h3 {
  color: rgba(148, 82, 255, 0.8);

  text-align: center;
  text-shadow: 0px 0px 26.133px #9452ff, 0px 0px 12.545px #9452ff,
    0px 0px 12.545px #9452ff;
  -webkit-text-stroke-width: 1.56px;
  -webkit-text-stroke-color: #fff;
  font-family: Poppins;
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: 39px;
  text-transform: uppercase;
  margin-bottom: 0;
}
h4 {
  color: #fff;
  margin: 0;
  padding: 0;
  text-align: center;
  font-family: Poppins;
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%;
  text-transform: uppercase;
}

.spin-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.05);
  z-index: 2;
  width: 140px;
  height: 140px;
  background-image: url(../img/spin.png);
  background-position: center;

  border-radius: 50%;
  font-weight: bold;
  font-size: 22px;
  cursor: pointer;
  animation: yellowGlow 1.5s infinite ease-in-out;
}
@keyframes yellowGlow {
  0% {
    box-shadow: 0 0 5px 2px rgba(102, 0, 255, 0.487),
      0 0 15px 4px rgba(76, 0, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 20px 6px rgba(98, 0, 255, 0.447),
      0 0 30px 10px rgba(21, 0, 255, 0.408);
  }
  100% {
    box-shadow: 0 0 5px 2px rgba(166, 0, 255, 0.327),
      0 0 15px 4px rgba(4, 0, 255, 0.4);
  }
}

.border-wheel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-48.5%, -75%) rotate(-4deg);
  width: 415.225px;
  height: 415.225px;
  background-image: url(../img/border.png);
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}
.lights {
  position: absolute;
  left: 16px;
  top: 1px;
  transform: scale(1.2) rotate(20deg);
  width: 474px;
  height: 100%;
  overflow: visible;
  background-image: url(../img/lights.png);
  background-size: cover;
  background-position: center;
  animation: blink 1s infinite alternate;
  pointer-events: none;
  z-index: 2;
}

@keyframes blink {
  0% {
    opacity: 0.3;
    filter: brightness(0.8);
  }
  50% {
    opacity: 0.7;
    filter: brightness(1.5);
  }
  100% {
    opacity: 1;
    filter: brightness(1);
  }
}

.desc {
  display: block;
}
.mob {
  display: none;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

#preloader img {
  width: 120px;
  height: auto;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

@media screen and (max-width: 735px) {
  body {
    background-image: url(../img/bg-mobile.png);
    background-repeat: no-repeat;
    height: 100vh;
    background-size: cover;
  }
  main {
    flex-direction: column;
    margin-top: 367px;
  }
  header {
    padding: 34px 20px;
    padding-bottom: 30px;
  }
  .nav-bar {
    justify-content: center;
  }

  .popup-wrapper {
    width: 100%;
    padding: 20px;
  }
  .popup {
    width: 100%;
  }

  .nav-bar__logo {
    width: 80px;
  }

  .desc {
    display: none;
  }
  .mob {
    display: block;
  }

  .about-anima {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-75%, -111%);
    scale: 0.65;
  }
  .btn {
    margin: 0 auto;

    margin-bottom: 10px;
  }
  .btn button {
    font-size: 18px;
  }
  h3 {
    font-size: 36px;
  }
  h4 {
    font-size: 20px;
    font-style: normal;

    line-height: 24px;
    text-transform: uppercase;
  }
}

@media screen and (max-width: 395px) {
  .about-anima {
    transform: translate(-75%, -98%);
  }
}
