/* Animations */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
} 
 
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes spin {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

@keyframes glow {
  0% {
    box-shadow: 0 0 5px rgba(75, 107, 251, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(75, 107, 251, 0.8);
  }
  100% {
    box-shadow: 0 0 5px rgba(75, 107, 251, 0.5);
  }
}

@keyframes shine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes popIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  70% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

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

@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes rotateGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes hashBlur {
  0% {
    filter: blur(0px);
    opacity: 1;
  }
  50% {
    filter: blur(2px);
    opacity: 0.7;
  }
  100% {
    filter: blur(0px);
    opacity: 1;
  }
}

/* Applied Animations */
.win-amount {
  animation: pulse 2s infinite;
}

.dice-icon {
  animation: float 3s ease-in-out infinite;
}

.gem {
  animation: glow 2s infinite;
}

.game-button:hover {
  animation: glow 1.5s infinite;
}

.bonus-option:hover {
  animation: pulse 1.5s infinite;
}

.tab-button.active {
  animation: fadeIn 0.5s;
}

/* Applied Animation Classes */
.animate-spin {
  animation: spin 1s ease-in-out;
}

.animate-shake {
  animation: shake 0.5s;
}

.animate-pop {
  animation: popIn 0.5s;
}

.animate-slide {
  animation: slideIn 0.5s;
}

/* Interactive Elements Animations */
.dice-roll {
  animation: spin 2s ease-out;
}

.win-highlight {
  animation: glow 1.5s infinite;
}

.button-press {
  animation: pulse 0.3s;
}

/* Special Effects */
.gradient-text {
  background: linear-gradient(90deg, #4b6bfb, #f7b500, #4b6bfb);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rotateGradient 3s linear infinite;
}

.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect:after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: shine 3s infinite;
}

/* Game result animations */
.win-animation {
  animation: glow 1.5s infinite, float 3s ease-in-out infinite;
}

.lose-animation {
  animation: shake 0.5s;
}

/* Button hover effects */
.game-button.less:hover {
  background-size: 200% 200%;
  background-position: right center;
  animation: rotateGradient 2s linear infinite;
}

.game-button.more:hover {
  background-size: 200% 200%;
  background-position: right center;
  animation: rotateGradient 2s linear infinite;
}

/* Dice roll animation controller */
.rolling {
  animation: spin 2s ease-out infinite;
}

/* Hash animation */
.hash-value.generating {
  animation: hashBlur 1.5s infinite;
}