body {
  font-family: Arial, sans-serif;
  justify-content: center;
  align-items: center;
  background-color: #282c34;
  color: white;
  padding: 0;
  margin: 0;
  background: url(https://engversion23.sfo3.cdn.digitaloceanspaces.com/background.jpg),
    #000;
  background-size: auto 100%;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.1em;
}

.game-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  width: 400px;
  max-width: 70vw;
  margin: 0 auto;
  padding-top: 30px;
  position: relative;
}

.pointer {
  position: absolute;
  width: 100%;
  padding-top: 20%;
  z-index: 100;
}

.blue {
  top: -5%;
  background: url("https://engversion23.sfo3.cdn.digitaloceanspaces.com/pointer1.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top;
}

.green {
  bottom: -5%;
  background: url("https://engversion23.sfo3.cdn.digitaloceanspaces.com/pointer2.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top;
}

.gold {
  top: 30%;
  background: url("https://engversion23.sfo3.cdn.digitaloceanspaces.com/pointer3.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top;
  padding-top: 40%;
}

.wheel-container {
  margin: 0px;
  position: relative;
  z-index: 12;
  transition: filter 1s;
}

.wheel-container:nth-child(2) {
  margin-top: -60%;
  z-index: 19;
}

.wheel-container:nth-child(3) {
  margin-top: -60%;
  z-index: 15;
}

.inactive {
  filter: brightness(0.5);
}

.wheel {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  background-size: cover;
  border-radius: 50%;
  margin: 0 auto;
}

.pointalert {
  display: block;
  position: absolute;
  top: 38%;
  z-index: 22;
  width: 100%;
  font-size: 50px;
  text-shadow: 0px 4px 4px #282c34, 0px 4px 22px #000;
}

.pointcontainer {
  display: flex;
  width: 100%;
  align-items: stretch;
  margin-top: 20px;
}

#total-points {
  flex-grow: 2;
  background-size: 100% 100%;
  align-items: center;
  text-align: center;
  font-size: 50px;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

.point {
  flex-grow: 2;
  background: url(https://engversion23.sfo3.cdn.digitaloceanspaces.com/winbox.png);
  background-size: 100% 100%;
  display: flex;
  align-items: center;
}

.spin-button {
  background: url(https://engversion23.sfo3.cdn.digitaloceanspaces.com/button.png);
  color: #000;
  background-size: 100% 100%;
  flex-grow: 1;
  padding: 10px 20px;
  font-size: 50px;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.3s ease; /* Smooth transition for opacity change */
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
  animation: butglow 1s infinite;
}
@keyframes butglow {
  0% {
    box-shadow: 0px 0px 10px gold;
  }
  50% {
    box-shadow: 0px 0px 60px gold;
  }
  100% {
    box-shadow: 0px 0px 10px gold;
  }
}
.spin-button.inactive {
  opacity: 0.5;
  pointer-events: none; /* Disable button clicks when inactive */
  animation: none;
}

.product-button {
  background: url(https://engversion23.sfo3.cdn.digitaloceanspaces.com/popup_button.png);
  color: #000;
  background-size: 100% 100%;
  width: 60%;
  display: block;
  padding: 10px 20px;
  font-size: 50px;
  cursor: pointer;
  text-decoration: none;
  opacity: 1;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
  position: relative;
  margin: 0 auto;
  bottom: -40px;
}

#cash-wheel {
  background-image: url("https://engversion23.sfo3.cdn.digitaloceanspaces.com/wheel1.png");
  background-position: center; /* Adjust this as necessary */
  background-size: contain;
}

#multiplier-wheel {
  background-image: url("https://engversion23.sfo3.cdn.digitaloceanspaces.com/wheel2.png");
  background-position: center; /* Adjust this as necessary */
  background-size: contain;
}

#bonus-wheel {
  background-image: url("https://engversion23.sfo3.cdn.digitaloceanspaces.com/wheel3.png");
  background-position: center; /* Adjust this as necessary */
  background-size: contain;
}

.glow {
  box-shadow: 0px 0px 110px gold;
  animation: glowing 1s infinite;
}

#popup {
  background: url("https://engversion23.sfo3.cdn.digitaloceanspaces.com/popup.png");
  background-position: center; /* Adjust this as necessary */
  aspect-ratio: 1 / 0.7;
  width: 100%;
  height: auto;
  background-size: 100% 100%;
  margin: 0 auto;
  position: absolute;
  top: 35%;
  z-index: 24;
  font-size: 26px;
  display: none;
  padding: 10px;
}

@keyframes glowing {
  0% {
    box-shadow: 0px 0px 70px gold;
  }
  50% {
    box-shadow: 0px 0px 130px gold;
  }
  100% {
    box-shadow: 0px 0px 70px gold;
  }
}

.terms {
  margin: 40px auto 0px auto;
  width: 80%;
  text-align: center;
  color: var(--font-color-light);
  font-weight: 400;
  font-size: 0.8em;
  opacity: 0.9;
  position: absolute;
  bottom: 5px;
  z-index: 4;
  left: 0;
  right: 0;
  font-size: 0.7em;
  text-shadow: var(--text-shadow);
}

@media only screen and (max-width: 700px) {
  .pointalert {
    font-size: 30px;
  }

  #popup h1 {
    font-size: 30px;
  }
  #popup h3 {
    font-size: 25px;
  }
  .product-button {
    font-size: 25px;
  }
}
