/*
Description:
    Contains all the styles for the winning wheel page.
    
Verison History:
    2012-01-28, Douglas McKechie
    - Created based off earlier version.
    
    2015-09-26, Douglas McKechie
    - Minor updates for the 2.0 winwheel example.
*/

body
{
    font-family: arial;


      background-repeat: no-repeat;
  background-size: auto;
  background-size: 100% 100%;
}

audio {
  display: none;
}


/* CONTAINER COIN */
.coins {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* tidak ganggu klik */
  overflow: hidden;
  z-index: 0;
}

/* KOIN */
.coins span {
  position: absolute;
  display: block;
  width: 40px;
  height: 40px;
  background: url('https://cdn-icons-png.flaticon.com/512/138/138292.png') no-repeat center;
  background-size: contain;
  animation: coinFly linear infinite;
}

/* ANIMASI */
@keyframes coinFly {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) rotate(360deg);
    opacity: 0;
  }
}

/* VARIASI POSISI & KECEPATAN */
.coins span:nth-child(1) {
  left: 10%;
  animation-duration: 8s;
}
.coins span:nth-child(2) {
  left: 20%;
  animation-duration: 12s;
}
.coins span:nth-child(3) {
  left: 35%;
  animation-duration: 10s;
}
.coins span:nth-child(4) {
  left: 50%;
  animation-duration: 14s;
}
.coins span:nth-child(5) {
  left: 65%;
  animation-duration: 9s;
}
.coins span:nth-child(6) {
  left: 75%;
  animation-duration: 11s;
}
.coins span:nth-child(7) {
  left: 85%;
  animation-duration: 13s;
}
.coins span:nth-child(8) {
  left: 95%;
  animation-duration: 7s;
}
.coins span {
  filter: drop-shadow(0 0 5px gold);
}
@keyframes coinFly {
  0% {
    transform: translateY(-10vh) rotate(0deg);
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
  }
}



/* ✨ hover: naik + bounce */
.btn-grad2:hover {
  animation: bounce 0.5s;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* 🎯 efek bounce */
@keyframes bounce {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-8px); }
  50%  { transform: translateY(0); }
  70%  { transform: translateY(-4px); }
  100% { transform: translateY(-5px); }
}

/* CONTAINER */
.box-kupon {
  width: 320px;
  margin: 10px auto;
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 20px;
}

/* INPUT */
.input-kupon {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: #e5e5e5;
  font-size: 14px;
  margin-bottom: 15px;
  outline: none;
}

/* TOMBOL UMUM */
.btn-kupon, .btn-spin {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 10px;
  transition: 0.3s;
}

/* CEK KUPON */
.btn-kupon {
  background: linear-gradient(90deg, #ffcc00, #ff9900);
  color: black;
}

/* SPIN */
.btn-spin, .btn-grad2 {
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  color: white;
}

/* HOVER */
.btn-kupon:hover, .btn-spin:hover, .btn-grad2:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* KLIK */
.btn-kupon:active, .btn-spin:active {
  transform: scale(0.95);
}


.kodeTicket {
    font-size: 1.5em;
    font-weight: bold;
    font-family: 'Segoe UI', sans-serif;
    color: white;
}
/* Sets the background image for the wheel */
td.the_wheel
{
    
    background-position: center;
    background-repeat: no-repeat;
  background-size: 500px 550px;
}

/* Do some css reset on selected elements */
.container2 {
  position: relative;
}
#canvas {

}
.overlay {
  position: absolute;
  top: 40%;
  left:39%;
  
  opacity: 0.8;
}
h1, p
{
    margin: 0;
}

div.power_controls
{
    margin-right:70px;
}

div.html5_logo
{
    margin-left:70px;
}

/* Styles for the power selection controls */
table.power
{
    background-color: #cccccc;
    cursor: pointer;
    border:1px solid #333333;
}

table.power th
{
    background-color: white;
    cursor: default;
}

td.pw1
{
    background-color: #6fe8f0;
}

td.pw2
{
    background-color: #86ef6f;
}

td.pw3
{
    background-color: #ef6f6f;
}

/* Style applied to the spin button once a power has been selected */
.clickable
{
    cursor: pointer;
}

/* Other misc styles */
.margin_bottom
{
    margin-bottom: 5px;
}