/* === GLOBAL === */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  margin: 0;
  background: url('../images/background-luckywheel.webp') no-repeat center center fixed;
  background-size: cover;
  overflow-x: hidden;
}

h1 {
  margin: 20px 0;
  color: #ffffff; /* Golden yellow color */
  font-size: 42px; /* Larger size */
  font-family: 'Bebas Neue', 'Arial Black', sans-serif; /* Stylish bold font */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Text shadow for depth */
  letter-spacing: 3px; /* More spacing between letters */
  text-transform: uppercase; /* Ensure all uppercase */
  animation: glow 1.5s ease-in-out infinite alternate; /* Optional glowing effect */
}
h2 {
  margin: 20px 0;
  color: #ffffff; /* Golden yellow color */
  font-size: 30px; /* Larger size */
  font-family: 'Bebas Neue', 'Arial Black', sans-serif; /* Stylish bold font */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Text shadow for depth */
  letter-spacing: 3px; /* More spacing between letters */
  text-transform: uppercase; /* Ensure all uppercase */
  animation: glow 1.5s ease-in-out infinite alternate; /* Optional glowing effect */
}
p {
  margin: 20px 0;
  color: #ffffff; /* Golden yellow color */
  font-size: 20px; /* Larger size */
  font-family: 'Bebas Neue', 'Arial Black', sans-serif; /* Stylish bold font */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Text shadow for depth */
  letter-spacing: 3px; /* More spacing between letters */
  text-transform: uppercase; /* Ensure all uppercase */
  animation: glow 1.5s ease-in-out infinite alternate; /* Optional glowing effect */
}

/* Optional glowing animation */
@keyframes glow {
  from {
    text-shadow: 0 0 5px #ad11a0, 0 0 10px #ad11a0;
  }
  to {
    text-shadow: 0 0 10px #ad11a0, 0 0 20px #6b0a63, 0 0 30px #f507e1;
  }
}

/* === ROULETTE WHEEL CONTAINER === */
#wheel-container {
  position: relative;
  width: 90vw;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #dcdcdc 100%);
}
#wheel-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: transform 6s cubic-bezier(0.25, 0.1, 0.25, 1);
  transform: rotate(0deg);
  position: absolute;
  top: 0;
  left: 0;
}
#wheel-rotate {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: transform 6s cubic-bezier(0.25, 0.1, 0.25, 1);
  transform: rotate(0deg);
}

canvas {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50%;
}

/* === SPIN BUTTON === */
#spin-button {
  color: #ffffff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: radial-gradient(circle at 30% 30%, #ff4d4d, #cc0000);
  border: none;
  border-radius: 50%;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#spin-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 10px 25px rgba(255, 77, 77, 0.6);
}

/* === POINTER === */
#pointer {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 30px;
  color: #c70000;
  z-index: 15;
  pointer-events: none;
  line-height: 1;
}

/* === NEON EFFECT === */
@keyframes neonGlow {
  0%, 100% {
    box-shadow: 0 0 10px #cf09e6, 0 0 20px #cf09e6, 0 0 30px #cf09e6;
  }
  50% {
    box-shadow: 0 0 20px #ee4cfc, 0 0 40px #ee4cfc, 0 0 60px #ee4cfc;
  }
}

#wheel-rotate.neon {
  animation: neonGlow 1.5s ease-in-out infinite;
}

/* === TOMBOL "CHECK HISTORY TIKET" === */
.btn-history {
  background-color: #2f5f66;
  color: white;
  padding: 10px 18px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  display: inline-block;
  transition: background 0.3s ease;
}

.btn-history:hover {
  background-color: #1c3d42;
}

/* Desktop: tombol history di kiri atas */
.btn-desktop {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

/* Mobile: tombol history di bawah logo */
.btn-mobile {
  display: none;
  margin-top: 10px;
}

/* === RESPONSIVE (MOBILE) === */
@media (max-width: 768px) {
  h1 {
    font-size: 20px;
  }

  #spin-button {
    width: 60px;
    height: 60px;
    font-size: 14px;
  }

  #pointer {
    font-size: 24px;
    top: 0;
  }

  .btn-desktop {
    display: none;
  }

  .btn-mobile {
    display: inline-block;
    font-size: 16px;
    padding: 12px 20px;
  }

  .swal2-popup.swal2-mobile-fix {
    max-width: 90vw !important;
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box;
  }
}
