﻿* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Poppins";
  background-color: #000000;

  margin: 0;

  overflow-x: hidden;
}

header {
  padding: 15px 40px;
  width: 100%;
  max-width: 1440px;

  background-color: transparent;
  position: fixed;
  left: 50%;
  transform: translate(-50%, 0);
  z-index: 10;
}
main {
  display: flex;
  flex-direction: column;
  padding-top: 220px;
  align-items: center;
  background-image: url(../image/bg.png);
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;

  height: 874px;
  margin: 0 auto;
}

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

.nav-bar__logo {
  width: 180px;
}

h1 {
  color: #f5e500;

  text-align: center;
  text-shadow: 0px 5.552px 27.761px rgba(12, 19, 11, 0.4);
  font-family: Poppins;
  font-size: 54px;
  font-style: normal;
  font-weight: 900;
  line-height: 62px;
  letter-spacing: 1.08px;
  text-transform: uppercase;
}
h2 {
  color: #fff;

  font-size: 72px;
  font-style: normal;
  font-weight: 900;
  line-height: 74px;
  letter-spacing: 1.44px;
  text-transform: uppercase;
  margin: 15px auto 40px auto;
  text-shadow: 0px 5.552px 27.761px rgba(12, 19, 11, 0.4);
}
h2 strong {
  color: #fff;

  text-shadow: 0px 5.552px 27.761px rgba(12, 19, 11, 0.4);

  font-size: 60px;
  font-style: normal;
  font-weight: 400;
  line-height: 74px;
  letter-spacing: 1.2px;
  text-transform: lowercase;
}
.yellow {
  color: #f5e500;
}
.bonus {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  padding: 13px 55px 13px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.171);
  gap: 45px;
}
.bonus-box {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
}

p {
  color: #fff;
  margin-top: 8px;
  font-family: Poppins;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}

.contant {
  display: flex;
  gap: 20px;
}
.number {
  color: #373737;
  border-radius: 50%;
  background: #06c6e3;
  text-align: center;
  font-family: Poppins;
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}
.bonus p {
  max-width: 179px;
}
h4 {
  color: #fff;

  text-align: center;

  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
  text-transform: uppercase;
}

.contant-bonus {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.main-button button {
  margin-top: 48px;
  padding: 18px 80px;
  color: #000;

  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 30px;
  border-radius: 16px;

  cursor: pointer;

  --glow-color: rgba(244, 255, 176, 0.662);
  --glow-spread-color: rgba(255, 253, 123, 0.394);
  --enhanced-glow-color: rgba(255, 255, 206, 0.648);
  --btn-color: #ffcc18;
  border: 0.25em solid var(--glow-color);
  background-color: var(--btn-color);
  border-radius: 1em;
  outline: none;
  box-shadow: 0 0 1em 0.25em var(--glow-color),
    0 0 4em 1em var(--glow-spread-color),
    inset 0 0 0.75em 0.25em var(--glow-color);
  text-shadow: 0 0 0.5em var(--glow-color);
}
.main-button:hover button {
  background-color: #18ff4e;
  transition: 0.9s;
}
.border {
  position: relative;
}
.border::before {
  content: "";
  position: absolute;
  left: -20%;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 94px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='94' viewBox='0 0 15 94' fill='none'%3E%3Cpath d='M0.5 0L14.1529 44.8597C14.3794 45.6037 14.384 46.3977 14.1662 47.1443L0.5 94' stroke='url(%23paint0_linear_2750_3262)' stroke-linecap='round'/%3E%3Cdefs%3E%3ClinearGradient id='paint0_linear_2750_3262' x1='6.97201' y1='0' x2='6.97201' y2='94' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='white' stop-opacity='0'/%3E%3Cstop offset='0.425' stop-color='white'/%3E%3Cstop offset='1' stop-color='white' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E");
}

.border::after {
  content: "";
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 94px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='94' viewBox='0 0 15 94' fill='none'%3E%3Cpath d='M0.5 1L14.1529 45.8597C14.3794 46.6037 14.384 47.3977 14.1662 48.1443L0.5 95' stroke='url(%23paint0_linear_2750_3261)' stroke-linecap='round'/%3E%3Cdefs%3E%3ClinearGradient id='paint0_linear_2750_3261' x1='6.97201' y1='1' x2='6.97201' y2='95' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='white' stop-opacity='0'/%3E%3Cstop offset='0.425' stop-color='white'/%3E%3Cstop offset='1' stop-color='white' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E");
}

select {
  padding: 6px 12px;
  font-size: 16px;
  color: #fff;
  font-family: Poppins;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 18px;
  border: none;
  cursor: pointer;
  background: transparent;
}
.hidden-before {
  opacity: 0;
}
.custom-delay-second {
  animation-delay: 0.7s;
  animation-fill-mode: forwards;
}
.custom-delay-second {
  animation-delay: 0.7s;
  animation-fill-mode: forwards;
}
.custom-delay-therd {
  animation-delay: 1.2s;
  animation-fill-mode: forwards;
}

.marquee {
  width: 100%;

  margin: 0 auto;
  overflow: hidden;
  background: black;

  position: relative;
  padding: 15px 0;
}
.marquee__track img {
  transform: scale(0.8);
}

.marquee__track {
  display: flex;
  gap: 120px;
  align-items: center;
  animation: marqueeScroll 40s linear infinite;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-50%);
  }
}

#dice {
  width: 90px;
  height: 90px;
  transform-style: preserve-3d;
  transition: transform 1.5s ease-out;
  position: absolute;
  top: 67%;
  right: 83%;
  z-index: 100;
  rotate: 5deg;
}

#dice:hover {
  cursor: pointer;
  scale: 0.9;
  transition: 2s;
}

.sides {
  background-color: #fa9ed1f8;
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.55);

  border-radius: 12px;
}

.dot {
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: black;
  transform: translate(-50%, -50%);
}

.side-1 .dot-1 {
  top: 50%;
  left: 50%;
}

.side-2 .dot-1 {
  top: 25%;
  left: 25%;
}
.side-2 .dot-2 {
  top: 75%;
  left: 75%;
}

.side-3 .dot-1 {
  top: 25%;
  left: 25%;
}
.side-3 .dot-2 {
  top: 75%;
  left: 75%;
}
.side-3 .dot-3 {
  top: 50%;
  left: 50%;
}

.side-4 .dot-1 {
  top: 25%;
  left: 25%;
}
.side-4 .dot-2 {
  top: 25%;
  left: 75%;
}
.side-4 .dot-3 {
  top: 75%;
  left: 25%;
}
.side-4 .dot-4 {
  top: 75%;
  left: 75%;
}

.side-5 .dot-1 {
  top: 25%;
  left: 25%;
}
.side-5 .dot-2 {
  top: 25%;
  left: 75%;
}
.side-5 .dot-3 {
  top: 75%;
  left: 25%;
}
.side-5 .dot-4 {
  top: 75%;
  left: 75%;
}
.side-5 .dot-5 {
  top: 50%;
  left: 50%;
}

.side-6 .dot-1 {
  top: 25%;
  left: 25%;
}
.side-6 .dot-2 {
  top: 25%;
  left: 75%;
}
.side-6 .dot-3 {
  top: 75%;
  left: 25%;
}
.side-6 .dot-4 {
  top: 75%;
  left: 75%;
}
.side-6 .dot-5 {
  top: 50%;
  left: 25%;
}
.side-6 .dot-6 {
  top: 50%;
  left: 75%;
}

#dice .side-1 {
  transform: translateZ(45px);
}
#dice .side-2 {
  transform: rotateX(-180deg) translateZ(45px);
}
#dice .side-3 {
  transform: rotateY(90deg) translateZ(45px);
}
#dice .side-4 {
  transform: rotateY(-90deg) translateZ(45px);
}
#dice .side-5 {
  transform: rotateX(90deg) translateZ(45px);
}
#dice .side-6 {
  transform: rotateX(-90deg) translateZ(45px);
}

#dice[data-side="1"] {
  transform: rotateX(360deg) rotateY(360deg) rotateZ(720deg);
}
#dice[data-side="2"] {
  transform: rotateX(360deg) rotateY(540deg) rotateZ(720deg);
}
#dice[data-side="3"] {
  transform: rotateX(360deg) rotateY(630deg) rotateZ(720deg);
}
#dice[data-side="4"] {
  transform: rotateX(360deg) rotateY(450deg) rotateZ(720deg);
}
#dice[data-side="5"] {
  transform: rotateX(630deg) rotateY(360deg) rotateZ(720deg);
}
#dice[data-side="6"] {
  transform: rotateX(450deg) rotateY(360deg) rotateZ(720deg);
}

#dice[data-side="1"].reRoll {
  transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
}
#dice[data-side="2"].reRoll {
  transform: rotateX(0deg) rotateY(180deg) rotateZ(0deg);
}
#dice[data-side="3"].reRoll {
  transform: rotateX(0deg) rotateY(270deg) rotateZ(0deg);
}
#dice[data-side="4"].reRoll {
  transform: rotateX(0deg) rotateY(90deg) rotateZ(0deg);
}
#dice[data-side="5"].reRoll {
  transform: rotateX(270deg) rotateY(0deg) rotateZ(0deg);
}
#dice[data-side="6"].reRoll {
  transform: rotateX(90deg) rotateY(0deg) rotateZ(0deg);
}

@media screen and (max-width: 980px) {
  main {
    background-position: center;
    background-image: url(../image/bg-mobile.png);
    height: 100%;
    background-size: cover;
  }
  .bonus p {
    max-width: 159px;
  }
  .main-button {
    margin-top: 334px;
    margin-bottom: 72px;
  }
  #dice {
    top: 630px;
    right: 39%;
  }
}

@media screen and (max-width: 730px) {
  header {
    padding: 15px 20px;
  }

  .nav-bar__logo {
    width: 124px;
  }
  h1 {
    font-size: 26px;
    font-style: normal;
    font-weight: 900;
    line-height: 34px;
    letter-spacing: 0.52px;
  }
  h2 {
    font-size: 38px;
    font-style: normal;
    font-weight: 900;
    line-height: 48px;
    letter-spacing: 0.76px;
    margin-bottom: 5px;
    margin-top: 5px;
  }
  h2 strong {
    font-size: 26px;
    font-style: normal;
    font-weight: 900;
    line-height: 34px;
    letter-spacing: 0.52px;
  }
  h2.yellow {
    margin-top: 0;
    margin-bottom: 20px;
  }
  .contant {
    flex-direction: column;
    gap: 0px;
  }
  main {
    padding-top: 80px;

    background-position: top;
    height: 100%;
  }
  .bonus-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .bonus {
    padding: 13px 12px;
    margin: 20px;
    align-items: flex-start;

    gap: 20px;
  }
  .number {
    height: 30px;
    width: 30px;
    font-size: 16px;
  }
  h4 {
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 18px;
  }
  .bonus p {
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
  }
  .border::before {
    width: 23px;
    height: 140px;
    left: -33%;
    background-repeat: no-repeat;
    background-size: cover;
  }
  .border::after {
    width: 23px;
    height: 140px;

    background-repeat: no-repeat;
    background-size: cover;
  }

  select {
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px;
    padding: 6px 2px;
  }
}

#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;
  }
}
