/* Wheel of Fortune Specific Styles */

.wheel-of-fortune {
  width: 100%;
  max-width: 500px;
  margin: 2rem auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.wheel-container {
  position: relative;
  width: 80%;
  max-width: 400px;
  aspect-ratio: 1;
  margin: 0 auto;
}

#wheelCanvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  background: #ffffff55;
}

.wheel-pointer {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 30px solid #e74c3c;
  z-index: 10;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.spin-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(45deg, #FF2A7F, #FFB347);
  color: white;
  border: 3px solid #fff;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  z-index: 20;
  transition: all 0.2s ease;
}

.spin-button:hover:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.spin-button:active:not(:disabled) {
  transform: translate(-50%, -50%) scale(0.95);
}

.spin-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.result-display {
  margin-top: 2rem;
  text-align: center;
  min-height: 100px;
}

.prize-announcement {
  background: rgba(255, 255, 255, 0.3);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  border: 3px solid #FF2A7F;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.prize-announcement h2 {
  color: #e74c3c;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.prize-text {
  font-size: 2rem;
  font-weight: bold;
  color: #2c3e50;
  margin: 1rem 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.prize-announcement p {
  color: #7f8c8d;
  font-style: italic;
  margin-top: 1rem;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.game-instructions {
  text-align: center;
  margin: 2rem 0;
  font-size: 1.2rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.game-instructions p {
  margin: 0.5rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .wheel-container {
    width: 85%;
    max-width: 300px;
  }
  
  .spin-button {
    width: 50px;
    height: 50px;
    font-size: 10px;
  }
  
  .game-instructions {
    font-size: 1rem;
  }
  
  .prize-text {
    font-size: 1.5rem;
  }
  
  .prize-announcement {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .wheel-container {
    width: 90%;
    max-width: 250px;
  }
  
  .wheel-of-fortune {
    max-width: 300px;
  }
}
