@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  color: #fff;
  text-align: center;
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-attachment: fixed;
}

.ticket-form {
  background: rgb(99 99 99);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.ticket-form h1 {
  font-size: 30px;
  color: #fff;
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: 1px;
}

.ticket-form input[type="text"] {
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  outline: none;
  width: 100%;
  max-width: 90%;
  margin-bottom: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ticket-form input[type="text"]:focus {
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.6);
}

.ticket-form button {
  padding: 12px 20px;
  background: #ff9800;
  border: none;
  color: #fff;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
}

.ticket-form button:hover {
  background: #e68900;
}

.ticket-form .error {
  color: #f44336;
  margin-top: 10px;
}

#wheel-container {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#wheel {
  display: block;
  background: radial-gradient(circle at center, #ffffff, #dddddd);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 10px solid #ffffff;
  position: relative;
}

#arrow {
position: absolute;
    top: 45%;
    right: 30%;
    transform: translateY(-50%) rotate(90deg);
    font-size: 40px;
    color: red;
    z-index: 10;
    border: solid 5px red;
    border-width: 5px 5px 0 0;
    padding: 10px;
    border-radius: 50%;
    background-color: white;
}



#winner-box {
  text-align: center;
  margin-top: 20px;
  font-weight: bold;
  display: none;
}

#winner {
  font-size: 22px;
  color: #ff9800;
}

#spin {
  margin-top: 30px;
  padding: 12px 30px;
  font-size: 18px;
  background: #00bcd4;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 188, 212, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

#spin:hover {
  background: #0097a7;
  transform: scale(1.05);
}

.popup {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex; justify-content: center; align-items: center;
  z-index: 999;
  animation: fadeIn 0.3s ease;
}

.popup-content {
  background: #ffffff;
  color: #333;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  min-width: 300px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: scaleIn 0.3s ease;
}

.popup-content p {
  font-size: 18px;
  margin-bottom: 20px;
}

.popup-content button {
  padding: 10px 25px;
  margin: 0 10px;
  font-size: 16px;
  background: #4caf50;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.popup-content button:hover {
  background: #388e3c;
}

#skip {
  background: #f44336 !important;
}

#skip:hover {
  background: #d32f2f !important;
}

.code {
  font-weight: bold;
  font-size: 20px;
  color: #4caf50;
  margin-top: 10px;
}

.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.animating-title {
  text-align: center;
  font-size: 24px;
  animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    color: #000;
  }
  100% {
    transform: scale(1.1);
    color: #ff6347;
  }
}
