* {
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  background-color: #000000;
  background-image: url(../img/bg.png);
  background-size: cover;
  background-position: center;
  height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;

  overflow: hidden;
}
h1 {
  font-family: Oswald;
  font-weight: 700;
  font-size: 64px;
  color: #cdfb52;
  text-align: center;
  letter-spacing: 0%;
  margin: 0;
  margin-top: 30px;
  text-transform: uppercase;
}
h2 {
  font-family: Oswald;
  font-weight: 500;
  font-size: 44px;
  line-height: 52px;
  letter-spacing: 0%;
  text-align: center;
  text-transform: uppercase;
  color: #c8c8c8;
  margin: 0;
  margin-bottom: 20px;
}
header {
  padding: 25px 30px;
  padding-bottom: 0;
}

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

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

.about-anima {
  margin: 0 auto;
  overflow: visible;
  position: relative;
}

.roulette {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.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%;

  max-width: 465px;
}

.lights {
  position: absolute;
  left: 16.5%;
  top: 0;
  transform: scale(1.12);
  width: 477px;
  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);
  }
}

.arrow {
  position: absolute;
  width: 90px;
  height: 72px;
  top: 45.5%;
  left: 73%;
  z-index: 10;
  background-image: url(../img/arrow.png);
  background-repeat: no-repeat;
  background-position: center;
}

.spin {
  cursor: pointer;
  overflow: visible;
}

.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #1d2029;
  border: 1px solid #3b404f;
  border-radius: 24px;
  padding: 30px;
  z-index: 9999;

  padding: 40px 27px;
  max-width: 390px;
  text-align: center;
}

.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.896);
  z-index: 9998;
}
.popup-img {
  position: absolute;
  width: 135px;
  left: 33%;
  top: -30%;
}
.popup-img:hover {
  transform: scale(1.1) rotate(5deg);
  transition: 0.9s;
}
h3 {
  font-family: Oswald;
  font-weight: 700;
  font-size: 44px;
  line-height: 40px;
  letter-spacing: 0%;
  vertical-align: middle;
  text-transform: uppercase;
  color: #cdfb52;
  padding: 0;
  margin: 0;
}
h4 {
  font-family: Oswald;
  font-weight: 700;
  font-size: 26px;
  line-height: 32px;

  text-align: center;
  color: #ffffff;
  text-transform: uppercase;
  padding: 0;
  margin: 0;
}
.mt {
  margin-top: 24px;
}
.main-button {
  margin-top: 34px;
  width: 100%;
  max-width: 342px;
  height: 56px;
  background: linear-gradient(0deg, #aaff2b 0%, #dfff3f 100%);
  color: #162047;
  border-radius: 26px;
  font-family: Montserrat;
  font-weight: 800;
  font-size: 20px;
  cursor: pointer;
  text-transform: uppercase;
}
.main-button:hover {
  background: linear-gradient(0deg, #52ff2b 0%, #5fff3f 100%);
  transition: 1.9s ease-in;
}
.spin-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 110px;
  height: 110px;
  background-image: url(../img/spin.png);
  background-position: center;
  border: none;
  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(255, 221, 0, 0.6),
      0 0 15px 4px rgba(255, 221, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 20px 6px rgba(255, 221, 0, 0.9),
      0 0 30px 10px rgba(255, 221, 0, 0.5);
  }
  100% {
    box-shadow: 0 0 5px 2px rgba(255, 221, 0, 0.6),
      0 0 15px 4px rgba(255, 221, 0, 0.4);
  }
}

@media screen and (max-width: 735px) {
  h1 {
    font-size: 30px;
    margin-top: 50px;
  }
  h2 {
    font-size: 20px;
    line-height: 24px;
  }
  h3 {
    font-size: 36px;
  }
  h4 {
    font-size: 26px;
  }
  .popup {
    width: 100%;
  }

  .nav-bar__logo {
    width: 157px;
  }

  .arrow {
    left: 84%;
  }
  .lights {
    left: -1.2%;
  }
  .about-anima {
    transform: scale(0.7) translate(0, -17%);
  }
}

@media screen and (max-width: 1005px) {
  .planet-anima {
    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;
  }
}

.planet-anima {
  position: absolute;
  top: 65%;
  left: 0%;
  transform: scale(0.8) rotate(18deg);
  opacity: 0.6;
}

.planet-anima:hover {
  opacity: 1;

  transition: 0.9s ease-in;
}

.container {
  position: relative;
  width: 300px;
  height: 300px;

  background: transparent;
  background-size: 400% 400%;
  animation: daylight 15s ease infinite;
  border-radius: 50%;

  overflow: hidden;
}

.planet {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 120px;
  height: 120px;
  background: linear-gradient(to bottom, #fe4ecc 1%, #a62a74 50%, #310441 100%);
  border-radius: 50%;
  transform: rotate(-15deg) translate(-35%, -55%);
}

.ring-before,
.ring-after,
.ring-bigger-before,
.ring-bigger-after {
  content: "";
  width: 126px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(248, 77, 171, 0.8);
  position: absolute;
  top: 125px;
  left: 84px;
  transform: skew(-54deg);
}

.ring-bigger-before,
.ring-bigger-after {
  transform: skew(-54deg) scale(1.3);
  border-color: rgb(186, 104, 211);
}

.ring-before,
.ring-bigger-before {
  z-index: 3;
  clip-path: inset(50% 0 0 0);
}

.ring-after,
.ring-bigger-after {
  z-index: 1;
  clip-path: inset(0 0 50% 0);
}

.sub-planet {
  position: absolute;
  top: 24%;
  left: 75%;
  z-index: 4;
  width: 35px;
  height: 35px;
  background: linear-gradient(to bottom, #9270a2 1%, #a14592 50%, #371a6a 100%);
  border-radius: 50%;
  transform: rotate(-15deg);
}

.orbit {
  width: 2px;
  height: 2px;
  background: rgb(144, 50, 130);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9;
}

.orbit-1 {
  animation: orbit-1 5s linear infinite;
}
@keyframes orbit-1 {
  from {
    transform: rotate(0deg) translateX(65px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(65px) rotate(-360deg);
  }
}

.orbit-2 {
  animation: orbit-2 10s linear infinite;
}
@keyframes orbit-2 {
  from {
    transform: rotate(0deg) translateX(80px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(80px) rotate(-360deg);
  }
}

.star {
  position: absolute;
  left: 0;
  top: 50px;
  width: 1px;
  height: 1px;
  background-color: white;
  animation: shooting 5s linear infinite;
}

.star::before {
  content: "";
  position: absolute;
  width: 100px;
  height: 1px;
  right: 1px;
  top: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(255, 255, 255, 0.4) 100%
  );
}

.star-2 {
  top: 100px;
  animation: shooting 8s 1s linear infinite;
}
.star-3 {
  top: 250px;
  animation: shooting 3s 2s linear infinite;
}

@keyframes daylight {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes shooting {
  from {
    left: -100px;
  }
  to {
    left: calc(100% + 100px);
  }
}
