* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}
html,
body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  background-color: #1a1a1f;
}

.customButtonHolder {
  transition: all 0.4s ease-in-out;
  width: 200px;
  height: 54px;
  background-color: #d3a760;
  text-align: center;
  padding: 9px 0;
  border-radius: 2rem;
  font-size: 1.4em;
  color: white;
}

.p-center {
  margin: 0 auto;
}

.customButton {
  padding: 13px 0px;
  color: white;
}

.customButton:hover {
  padding: 13px 0px;
  color: rgb(244, 240, 240);
}

.customButtonHolder:hover .button-bg {
  background-color: red;

  stroke-width: 2px;
}

#registerButton:hover .button-text {
  fill: white; /* White text on hover */
}

.hero-title {
  font-family: rubik, serif;
  font-size: 4em;
  font-weight: 800;
  color: white;
  z-index: 99;
}

h3 {
  font-family: rubik;
  font-size: 32px;
  line-height: 32px;
  font-weight: 600;
  color: #b9d532;
  font-style: italic;
}

.ctaBox {
  padding: 24px 24px 16px 24px;
  border: 4px solid #d3a760;
  border-radius: 0.5em;
  text-align: center;
  margin-top: 16px;
}
.ctaBox p {
  color: white;
  font-size: 24px;
  font-family: rubik, serif;
  font-weight: 600;
  line-height: 36px;
}

.ctaBox span {
  font-size: 64px;
  color: #d3a760;
}

.ctaBox a.termsLink {
  color: white;
  text-decoration: none;
  font-family: "Rubik";
  font-weight: 400;
  font-size: 24px;
}

#wheel-container {
  position: relative;
  width: 100%;
  padding-top: 100%; /* Creates a square aspect ratio */
  margin: 0 0 0 -17%;
}

#wheel-wrapper {
  position: absolute;
  top: 21%;
  left: 50%;
  transform: translateX(-50%);
  width: 68%;
  height: 68%;
  z-index: 3;
}

#spinButton {
  top: 40%;
  width: 19%;
  left: 41%;
  transition: opacity 0.3s ease-in-out;
  position: absolute;
  cursor: pointer;
  z-index: 4;
}

#spinButton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#wheelCanvas,
#spinnerImage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#arrow {
  position: absolute;
  top: 16.5%;
  left: 50%;
  transform: translateX(-50%);
  width: 10%;
  z-index: 10;
}

#wheelStand {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1;
}

.wheel-row {
  margin-top: 5% !important;
}

#player-container {
  position: relative;
  /* bottom: 216px; */
  right: -56%;
  width: 65%;
  z-index: 3;
}

#player-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 0;
}

/* Floating elements container */
.floating-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}

.floating-element,
.confetti-element {
  position: absolute;
  opacity: 1;
  transform-origin: center;
  will-change: transform, opacity;
}

#b1 {
  width: 100px;
  top: 20%;
  left: 15%;
}
#b2 {
  width: 80px;
  top: 5%;
  right: 25%;
}
#b3 {
  width: 60px;
  bottom: 45%;
  left: 30%;
}

#b4 {
  width: 70px;
  bottom: 15%;
  left: 5%;
}

#b5 {
  width: 90px;
  top: 17%;
  left: 45%;
}

#s1 {
  width: 100px;
  top: 20%;
  left: 15%;
}
#s2 {
  width: 80px;
  top: 5%;
  right: 25%;
}
#s3 {
  width: 60px;
  bottom: 45%;
  left: 30%;
}

#s4 {
  width: 70px;
  bottom: 15%;
  left: 5%;
}

#s5 {
  width: 90px;
  top: 17%;
  left: 45%;
}

#j3 {
  width: 100px;
  top: 10%;
  left: 5%;
}
#j1 {
  width: 80px;
  top: 30%;
  right: 10%;
}
#j2 {
  width: 60px;
  bottom: 20%;
  left: 15%;
}

.coin {
  width: 40px;
  position: absolute;
}

#coin-1 {
  top: 15%;
  right: 20%;
}
#coin-2 {
  bottom: 25%;
  left: 25%;
}
#coin-3 {
  top: 40%;
  left: 30%;
}
#coin-4 {
  bottom: 10%;
  right: 15%;
}
#coin-5 {
  top: 20%;
  left: 40%;
}

.floating-element:nth-child(odd) {
  animation-duration: 8s;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

@media (max-width: 768px) {
  h1.hero-title {
    font-size: 2em;
  }

  #j3 {
    width: 80px;
  }
  #j1,
  #j2 {
    width: 60px;
  }
  .coin {
    width: 30px;
  }

  #mainContainer {
    background-image: url("./images/bg-mobile.svg"); /* Optional: Use a different image for mobile if needed */
  }

  #wheel-wrapper {
    top: 21%;
    width: 68%;
    height: 68%;
  }

  #ctaBoxContainer {
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
  }

  #arrow {
    top: 20%;
    width: 12%;
  }
}

#mainContainer {
  width: 100vw;
  min-height: 100vh;
  background-size: cover;
  background-position: left;
  background-repeat: no-repeat;
}

#mainContainer.blur {
  filter: blur(5px);
}

.popup {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
  margin: 15% auto;
  padding: 20px;

  width: 80%;
  max-width: 640px;
  border-radius: 0.5em;
  border: 4px solid #d3a760;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.4);
  background-image: ("./images/popup-bg-image.svg");
}

.popup-content h2 {
  color: #d3a760;
  font-size: 2rem;
  font-family: rubik;
}

.popup-content p {
  font-size: 1.2rem;
  color: white;
  font-family: rubik;
}

button#closePopup {
  color: white;
  padding: 12px 12px;
  background-color: #d3a760;
  border-radius: 4em;
  border: 2px solid #d3a760;
}
