body {
  background: url('Background/thumb-1920-1349909.png') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Arial', sans-serif;
  color: white;
  margin: 0;
  padding: 0;
  text-align: center;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

h1 {
  color: #ffffff;
  background-color: #1e1e1e;
  padding: 20px;
  margin: 0;
  font-size: 2em;
  border-bottom: 2px solid #333;
}

button,
input[type="number"] {
  padding: 10px 15px;
  margin: 10px 5px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  background-color: #0059ff;
  color: white;
  box-shadow: 0 0 5px #0059ff80;
  transition: transform 0.2s ease;
}

button:hover,
input[type="number"]:hover {
  transform: scale(1.05);
  cursor: pointer;
}

input[type="number"] {
  background-color: #1e1e1e;
  color: white;
  text-align: center;
  width: 60px;
}

@keyframes glow {
  0% {
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  }
  100% {
    box-shadow: 0 0 15px rgba(255, 255, 255, 1);
  }
}

.glow {
  animation: glow 1.5s ease-in-out infinite alternate;
}

.results {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px;
  gap: 20px;
}

.card {
  display: inline-block;
  text-align: center;
  width: 120px;
  padding: 10px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.05);
}

.card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  transition: 0.3s ease;
}

img#Common:hover {
  box-shadow: 0 0 12px 4px grey;
}

img#Rare:hover {
  box-shadow: 0 0 12px 4px #007bff;
}

img#Epic:hover {
  box-shadow: 0 0 12px 4px purple;
}

img#Unique:hover {
  box-shadow: 0 0 12px 4px red;
}

img#Legendary:hover {
  box-shadow: 0 0 12px 4px gold;
}

.rarity {
  margin-top: 8px;
  font-weight: bold;
  font-size: 14px;
  color: white;
  text-align: center;
}

.rarity.Common {
  color: #ffffff;
  text-shadow: 0 0 5px #999;
}

.rarity.Rare {
  color: #4e8cff;
  text-shadow: 0 0 10px #4b8bff;
}

.rarity.Epic {
  color: #a600ff;
  text-shadow: 0 0 12px #a100ff, 0 0 8px #7700cc;
}

.rarity.Unique {
  color: #ff1c1c;
  text-shadow: 0 0 14px #993636;
}

.rarity.Legendary {
  color: #ffd700;
  text-shadow: 0 0 16px #ffdd33, 0 0 10px #ffaa00;
}

#burst {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,215,0,0.7) 0%, rgba(255,215,0,0.3) 40%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.6s ease-out;
}

#burst.burst-active {
  opacity: 1;
  animation: burstFade 0.6s ease-out forwards;
}

@keyframes burstFade {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.1); }
}


.slot-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.reel {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(3px);
  border-radius: 10px;
  width: 120px;
  height: 140px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.reel-track {
  display: flex;
  flex-direction: column;
  animation: spinReel 2s ease-out forwards;
}

.reel-item {
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  color: white;
  padding: 5px;
}


@keyframes spinReel {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-600px); 
  }
}