#play-button {
    font-size: 16px !important;  /* important to override Bootstrap or default styles */
    touch-action: manipulation;
}

#next-card .card-body {
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    max-height: 1000px; /* Arbitrary large value */
    padding: 1rem; /* Add padding for initial look */
    overflow: hidden;
}

#next-card .card-body.hidden {
    max-height: 0;
    padding: 0;
}

.rarity-image {
    max-width: 100px;
    max-height: 100px;
}
.rarity-info {
    max-width: 50px;
    max-height: 50px;
}

.rank-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

#game-container {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in;
}

#game-container.show {
  display: block;
  opacity: 1;
}

#loader-container {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: white; /* or dark backdrop if preferred */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease; /* smooth fading */
}

@media (max-width: 575.98px) {
    /* On extra small screens, add padding below the top row */
    .navbar .left-group {
        padding-bottom: 0.75rem; /* Adjust as needed */
    }
}


@keyframes sparkle {
    0% {
        opacity: 0;
        transform: scale(0.5) translate(-50%, -50%);
    }
    50% {
        opacity: 1;
        transform: scale(1.5) translate(-50%, -50%);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) translate(-50%, -50%);
    }
}

.sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #ffd700, rgba(255, 215, 0, 0));
    border-radius: 50%;
    pointer-events: none;
    animation: sparkle 1s ease-out infinite;
    z-index: 10;
}

.reward-card-sparkle {
    position: relative;
    overflow: hidden;
}

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

.iridescent-effect {
    background: linear-gradient(270deg, red, blue, green, yellow, red);
    background-size: 800% 800%;
    animation: gradientMove 6s ease infinite;
    display: inline-block;
}

/* For text elements */
.iridescent-effect.text {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* For images (overlaid with gradient via pseudo-element) */
.iridescent-effect.image {
    position: relative;
}
.iridescent-effect.image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(270deg, red, blue, green, yellow, red);
    background-size: 800% 800%;
    animation: gradientMove 6s ease infinite;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 2;
}
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}