
    body {
      font-family: Arial, sans-serif;
      text-align: center;
      background-image: url('./background1.jpg');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
         background-color: #000; /* Fallback color for empty space */
    }
    .wheel-container {
      margin: 20px auto;
      padding: 20px;
      background-image: url('./bginti1.png');
      border-radius: 10px;
      box-shadow: 0 0 15px rgba(0,0,0,0.1);
      /* max-width: 500px; */
      background-size: cover;
      background-repeat: no-repeat;
      background-position: center;
     background-color: #000; /* Fallback color for empty space */

    }
    .neon-container {
  position: relative;
  margin: 20px auto;
  padding: 30px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  max-width: 500px;
}

/* Neon Border Effect */
.neon-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 12px;
  background: linear-gradient(45deg, 
    #ff00ff, #00ffff, #ffff00, #ff00ff);
  background-size: 400%;
  z-index: -1;
  animation: neon-border 8s linear infinite;
  filter: blur(5px);
  opacity: 0.7;
}

@keyframes neon-border {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 300% 0;
  }
  100% {
    background-position: 0 0;
  }
}

/* Optional Inner Glow */
.neon-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 10px;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

/* Neon Text */
.neon-text {
  text-shadow: 
    0 0 5px #fff,
    0 0 10px #fff,
    0 0 20px #ff00ff,
    0 0 30px #ff00ff;
}
#canvas {
    display: block;
    margin: 0 auto;
    position: relative; /* Needed for z-index to work */
    z-index: 2; /* Places canvas above the background */
    background-color: transparent; /* Make canvas transparent */
    padding: 30px;
}

.canvas-container {
    position: relative;
    width: 460px; /* 400px + 30px padding */
    height: 460px; 
    margin: 0 auto;

}

.canvas-background {
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./wheel_back2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 3; /* Places background behind canvas */
    box-sizing: border-box;
}
    #spin_button {
      cursor: pointer;
      margin-top: 20px;
      transition: transform 0.2s;
      width: 100px;
    }
    #spin_button:hover {
      transform: scale(1.05);
    }
    .clickable {
      cursor: pointer;
    }
    .prize-display {
      margin-top: 20px;
      padding: 10px;
      background-color: #f0f8ff;
      border-radius: 5px;
      display: none;
    }
    .ticket-input {
      margin: 15px 0;
      padding: 8px;
      width: 200px;
      border: 1px solid #ddd;
      border-radius: 4px;
    }
    .message {
      margin: 10px 0;
      padding: 10px;
      border-radius: 5px;
      display: none;
    }
    .error {
      background-color: #ffebee;
      color: #d32f2f;
      border: 1px solid #ef9a9a;
    }
    .info {
      background-color: #e3f2fd;
      color: #1565c0;
      border: 1px solid #90caf9;
    }
    .debug {
      margin-top: 20px;
      font-family: monospace;
      background-color: #f5f5f5;
      padding: 10px;
      border-radius: 5px;
      display: none;
    }
    /* tambahan */

    /* Centering wrapper */
.form-on-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

/* Panel for form */
.ticket-panel {
  width: 90%;               /* responsive */
  max-width: 320px;         /* fixed upper limit */
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 215, 0, 0.55);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(255, 180, 0, 0.25);
  backdrop-filter: blur(2px);
  text-align: center;
}

/* Input fields */
.ticket-input {
  width: 100%;              /* strictly inside panel */
  max-width: 280px;         /* ensures they never overflow */
  height: 45px;
  margin: 8px auto;
  padding: 0 16px;
  border-radius: 9999px;
  border: 1.5px solid rgba(255, 196, 0, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 220, 120, 0.18), rgba(255, 160, 0, 0.08)),
    rgba(0,0,0,0.25);
  box-shadow:
    inset 0 2px 6px rgba(255, 255, 255, 0.15),
    0 2px 10px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 170, 0, 0.6);
  color: #fff;
  font: 600 15px/1.2 system-ui, Arial, sans-serif;
  text-align: center;
  outline: none;
}

/* Placeholder styling */
.ticket-input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

/* Focus effect */
.ticket-input:focus {
  border-color: #ffd85a;
  box-shadow:
    inset 0 2px 6px rgba(255, 255, 255, 0.2),
    0 6px 16px rgba(0, 0, 0, 0.45),
    0 0 0 3px rgba(255, 216, 90, 0.35);
}

/* Hide hidden field */
input[type="hidden"].ticket-input {
  display: none;
}

/* Mobile optimization */
@media (max-width: 480px) {
  .ticket-panel {
    max-width: 260px;
  }
  .ticket-input {
    max-width: 240px;
    height: 42px;
    font-size: 14px;
  }
}
/* tambahan ke 2 */
