@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

@keyframes push-in {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.7);
  }
  100% {
    transform: scale(1);
  }
}

.push {
  animation: push-in 0.3s ease-in-out;
}

@keyframes pick {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.pick {
  animation: pick 0.2s ease-in-out;
}

@keyframes dropDown {
  0% {
    opacity: 0;
    transform: translateY(-100vh);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.drop {
  animation: dropDown 0.3s ease forwards;
}

@keyframes cascadePick {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.5);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.cascade-pick {
  animation: cascadePick 0.4s ease-out forwards;
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-right {
  animation: slideInRight 0.6s ease-out forwards;
}

/* New Slide In Left Animation */
@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

/* New Slide In Bottom Animation */
@keyframes slideInBottom {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-bottom {
  animation: slideInBottom 0.6s ease-out forwards;
}

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

.fade-out {
  animation: fadeOut 0.5s ease-out forwards;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  /* Globally disable or minimize animations and transitions */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* For specific animated elements, ensure they are visible without complex movement */
  /* Replace slide/drop/cascade animations with a simple fade-in */
  .slide-right,
  .slide-left,
  .slide-bottom,
  .drop,
  .cascade-pick {
    animation-name: fadeInReducedMotion !important;
    animation-duration: 0.1s !important; /* Keep it very short */
    /* transform: none !important; -- this might be handled by the keyframes or be too aggressive */
  }

  /* Keyframe for a simple fade-in, used for reduced motion */
  @keyframes fadeInReducedMotion {
    from {
      opacity: 0;
      transform: none;
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
