/**
 * so-animations.css
 * ShopOn Editor4 Animation Library
 *
 * This file provides CSS animations for the popover Animation sector.
 * Loaded in: editor canvas, preview, published pages.
 *
 * Architecture:
 * - Classes store animation type + trigger
 * - CSS variables store timing controls
 * - No JavaScript triggers for v1 (On Load + On Hover only)
 *
 * @version 1.0.0
 */

/* ============================================
   BASE ANIMATION RULE
   Applied to all animated elements
   ============================================ */

.so-ani {
  animation-duration: var(--so-ani-duration, 1s);
  animation-delay: var(--so-ani-delay, 0s);
  animation-iteration-count: var(--so-ani-iter, 1);
  animation-timing-function: var(--so-ani-timing, ease);
  animation-fill-mode: both;
}

/* ============================================
   ON LOAD TRIGGER
   Animation plays immediately when element loads
   ============================================ */

/* Attention Seekers */
.so-ani.so-ani--load.so-ani--bounce { animation-name: soAniBounce; }
.so-ani.so-ani--load.so-ani--flash { animation-name: soAniFlash; }
.so-ani.so-ani--load.so-ani--pulse { animation-name: soAniPulse; }
.so-ani.so-ani--load.so-ani--rubberBand { animation-name: soAniRubberBand; }
.so-ani.so-ani--load.so-ani--shakeX { animation-name: soAniShakeX; }
.so-ani.so-ani--load.so-ani--shakeY { animation-name: soAniShakeY; }
.so-ani.so-ani--load.so-ani--headShake { animation-name: soAniHeadShake; }
.so-ani.so-ani--load.so-ani--swing { animation-name: soAniSwing; }
.so-ani.so-ani--load.so-ani--tada { animation-name: soAniTada; }
.so-ani.so-ani--load.so-ani--wobble { animation-name: soAniWobble; }
.so-ani.so-ani--load.so-ani--jello { animation-name: soAniJello; }
.so-ani.so-ani--load.so-ani--heartBeat { animation-name: soAniHeartBeat; }

/* Fading Entrances */
.so-ani.so-ani--load.so-ani--fadeIn { animation-name: soAniFadeIn; }
.so-ani.so-ani--load.so-ani--fadeInDown { animation-name: soAniFadeInDown; }
.so-ani.so-ani--load.so-ani--fadeInLeft { animation-name: soAniFadeInLeft; }
.so-ani.so-ani--load.so-ani--fadeInRight { animation-name: soAniFadeInRight; }
.so-ani.so-ani--load.so-ani--fadeInUp { animation-name: soAniFadeInUp; }

/* Bouncing Entrances */
.so-ani.so-ani--load.so-ani--bounceIn { animation-name: soAniBounceIn; }
.so-ani.so-ani--load.so-ani--bounceInDown { animation-name: soAniBounceInDown; }
.so-ani.so-ani--load.so-ani--bounceInLeft { animation-name: soAniBounceInLeft; }
.so-ani.so-ani--load.so-ani--bounceInRight { animation-name: soAniBounceInRight; }
.so-ani.so-ani--load.so-ani--bounceInUp { animation-name: soAniBounceInUp; }

/* Zooming Entrances */
.so-ani.so-ani--load.so-ani--zoomIn { animation-name: soAniZoomIn; }
.so-ani.so-ani--load.so-ani--zoomInDown { animation-name: soAniZoomInDown; }
.so-ani.so-ani--load.so-ani--zoomInLeft { animation-name: soAniZoomInLeft; }
.so-ani.so-ani--load.so-ani--zoomInRight { animation-name: soAniZoomInRight; }
.so-ani.so-ani--load.so-ani--zoomInUp { animation-name: soAniZoomInUp; }

/* Sliding Entrances */
.so-ani.so-ani--load.so-ani--slideInDown { animation-name: soAniSlideInDown; }
.so-ani.so-ani--load.so-ani--slideInLeft { animation-name: soAniSlideInLeft; }
.so-ani.so-ani--load.so-ani--slideInRight { animation-name: soAniSlideInRight; }
.so-ani.so-ani--load.so-ani--slideInUp { animation-name: soAniSlideInUp; }

/* Rotating Entrances */
.so-ani.so-ani--load.so-ani--rotateIn { animation-name: soAniRotateIn; }
.so-ani.so-ani--load.so-ani--rotateInDownLeft { animation-name: soAniRotateInDownLeft; }
.so-ani.so-ani--load.so-ani--rotateInDownRight { animation-name: soAniRotateInDownRight; }
.so-ani.so-ani--load.so-ani--rotateInUpLeft { animation-name: soAniRotateInUpLeft; }
.so-ani.so-ani--load.so-ani--rotateInUpRight { animation-name: soAniRotateInUpRight; }

/* Specials */
.so-ani.so-ani--load.so-ani--flip { animation-name: soAniFlip; }
.so-ani.so-ani--load.so-ani--flipInX { animation-name: soAniFlipInX; }
.so-ani.so-ani--load.so-ani--flipInY { animation-name: soAniFlipInY; }
.so-ani.so-ani--load.so-ani--lightSpeedInLeft { animation-name: soAniLightSpeedInLeft; }
.so-ani.so-ani--load.so-ani--lightSpeedInRight { animation-name: soAniLightSpeedInRight; }
.so-ani.so-ani--load.so-ani--rollIn { animation-name: soAniRollIn; }
.so-ani.so-ani--load.so-ani--jackInTheBox { animation-name: soAniJackInTheBox; }

/* ============================================
   ON HOVER TRIGGER
   Animation plays only when element is hovered
   Uses animation-name: none until :hover
   ============================================ */

/* Default state: no animation */
.so-ani.so-ani--hover {
  animation-name: none;
}

/* Attention Seekers - Hover */
.so-ani.so-ani--hover.so-ani--bounce:hover { animation-name: soAniBounce; }
.so-ani.so-ani--hover.so-ani--flash:hover { animation-name: soAniFlash; }
.so-ani.so-ani--hover.so-ani--pulse:hover { animation-name: soAniPulse; }
.so-ani.so-ani--hover.so-ani--rubberBand:hover { animation-name: soAniRubberBand; }
.so-ani.so-ani--hover.so-ani--shakeX:hover { animation-name: soAniShakeX; }
.so-ani.so-ani--hover.so-ani--shakeY:hover { animation-name: soAniShakeY; }
.so-ani.so-ani--hover.so-ani--headShake:hover { animation-name: soAniHeadShake; }
.so-ani.so-ani--hover.so-ani--swing:hover { animation-name: soAniSwing; }
.so-ani.so-ani--hover.so-ani--tada:hover { animation-name: soAniTada; }
.so-ani.so-ani--hover.so-ani--wobble:hover { animation-name: soAniWobble; }
.so-ani.so-ani--hover.so-ani--jello:hover { animation-name: soAniJello; }
.so-ani.so-ani--hover.so-ani--heartBeat:hover { animation-name: soAniHeartBeat; }

/* Fading Entrances - Hover */
.so-ani.so-ani--hover.so-ani--fadeIn:hover { animation-name: soAniFadeIn; }
.so-ani.so-ani--hover.so-ani--fadeInDown:hover { animation-name: soAniFadeInDown; }
.so-ani.so-ani--hover.so-ani--fadeInLeft:hover { animation-name: soAniFadeInLeft; }
.so-ani.so-ani--hover.so-ani--fadeInRight:hover { animation-name: soAniFadeInRight; }
.so-ani.so-ani--hover.so-ani--fadeInUp:hover { animation-name: soAniFadeInUp; }

/* Bouncing Entrances - Hover */
.so-ani.so-ani--hover.so-ani--bounceIn:hover { animation-name: soAniBounceIn; }
.so-ani.so-ani--hover.so-ani--bounceInDown:hover { animation-name: soAniBounceInDown; }
.so-ani.so-ani--hover.so-ani--bounceInLeft:hover { animation-name: soAniBounceInLeft; }
.so-ani.so-ani--hover.so-ani--bounceInRight:hover { animation-name: soAniBounceInRight; }
.so-ani.so-ani--hover.so-ani--bounceInUp:hover { animation-name: soAniBounceInUp; }

/* Zooming Entrances - Hover */
.so-ani.so-ani--hover.so-ani--zoomIn:hover { animation-name: soAniZoomIn; }
.so-ani.so-ani--hover.so-ani--zoomInDown:hover { animation-name: soAniZoomInDown; }
.so-ani.so-ani--hover.so-ani--zoomInLeft:hover { animation-name: soAniZoomInLeft; }
.so-ani.so-ani--hover.so-ani--zoomInRight:hover { animation-name: soAniZoomInRight; }
.so-ani.so-ani--hover.so-ani--zoomInUp:hover { animation-name: soAniZoomInUp; }

/* Sliding Entrances - Hover */
.so-ani.so-ani--hover.so-ani--slideInDown:hover { animation-name: soAniSlideInDown; }
.so-ani.so-ani--hover.so-ani--slideInLeft:hover { animation-name: soAniSlideInLeft; }
.so-ani.so-ani--hover.so-ani--slideInRight:hover { animation-name: soAniSlideInRight; }
.so-ani.so-ani--hover.so-ani--slideInUp:hover { animation-name: soAniSlideInUp; }

/* Rotating Entrances - Hover */
.so-ani.so-ani--hover.so-ani--rotateIn:hover { animation-name: soAniRotateIn; }
.so-ani.so-ani--hover.so-ani--rotateInDownLeft:hover { animation-name: soAniRotateInDownLeft; }
.so-ani.so-ani--hover.so-ani--rotateInDownRight:hover { animation-name: soAniRotateInDownRight; }
.so-ani.so-ani--hover.so-ani--rotateInUpLeft:hover { animation-name: soAniRotateInUpLeft; }
.so-ani.so-ani--hover.so-ani--rotateInUpRight:hover { animation-name: soAniRotateInUpRight; }

/* Specials - Hover */
.so-ani.so-ani--hover.so-ani--flip:hover { animation-name: soAniFlip; }
.so-ani.so-ani--hover.so-ani--flipInX:hover { animation-name: soAniFlipInX; }
.so-ani.so-ani--hover.so-ani--flipInY:hover { animation-name: soAniFlipInY; }
.so-ani.so-ani--hover.so-ani--lightSpeedInLeft:hover { animation-name: soAniLightSpeedInLeft; }
.so-ani.so-ani--hover.so-ani--lightSpeedInRight:hover { animation-name: soAniLightSpeedInRight; }
.so-ani.so-ani--hover.so-ani--rollIn:hover { animation-name: soAniRollIn; }
.so-ani.so-ani--hover.so-ani--jackInTheBox:hover { animation-name: soAniJackInTheBox; }

/* ============================================
   ON SCROLL / ON VIEW TRIGGER
   Animation plays when element enters viewport.
   Requires tiny JS runtime to add .so-ani--inview
   ============================================ */

/* Default state: no animation until in view */
.so-ani.so-ani--scroll {
  animation-name: none;
  /* Override fill-mode: with 'both', animations that start/end at same value appear invisible */
  animation-fill-mode: none;
}

/* When in view, use forwards to hold final state after animation completes */
.so-ani.so-ani--scroll.so-ani--inview {
  animation-fill-mode: forwards;
}

/* After animation completes, lock it - prevents hover/selection from re-triggering */
.so-ani.so-ani--scroll.so-ani--done {
  animation: none !important;
}

/* Attention Seekers - Scroll */
.so-ani.so-ani--scroll.so-ani--inview.so-ani--bounce { animation-name: soAniBounce; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--flash { animation-name: soAniFlash; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--pulse { animation-name: soAniPulse; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--rubberBand { animation-name: soAniRubberBand; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--shakeX { animation-name: soAniShakeX; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--shakeY { animation-name: soAniShakeY; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--headShake { animation-name: soAniHeadShake; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--swing { animation-name: soAniSwing; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--tada { animation-name: soAniTada; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--wobble { animation-name: soAniWobble; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--jello { animation-name: soAniJello; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--heartBeat { animation-name: soAniHeartBeat; }

/* Fading Entrances - Scroll */
.so-ani.so-ani--scroll.so-ani--inview.so-ani--fadeIn { animation-name: soAniFadeIn; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--fadeInDown { animation-name: soAniFadeInDown; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--fadeInLeft { animation-name: soAniFadeInLeft; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--fadeInRight { animation-name: soAniFadeInRight; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--fadeInUp { animation-name: soAniFadeInUp; }

/* Bouncing Entrances - Scroll */
.so-ani.so-ani--scroll.so-ani--inview.so-ani--bounceIn { animation-name: soAniBounceIn; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--bounceInDown { animation-name: soAniBounceInDown; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--bounceInLeft { animation-name: soAniBounceInLeft; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--bounceInRight { animation-name: soAniBounceInRight; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--bounceInUp { animation-name: soAniBounceInUp; }

/* Zooming Entrances - Scroll */
.so-ani.so-ani--scroll.so-ani--inview.so-ani--zoomIn { animation-name: soAniZoomIn; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--zoomInDown { animation-name: soAniZoomInDown; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--zoomInLeft { animation-name: soAniZoomInLeft; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--zoomInRight { animation-name: soAniZoomInRight; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--zoomInUp { animation-name: soAniZoomInUp; }

/* Sliding Entrances - Scroll */
.so-ani.so-ani--scroll.so-ani--inview.so-ani--slideInDown { animation-name: soAniSlideInDown; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--slideInLeft { animation-name: soAniSlideInLeft; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--slideInRight { animation-name: soAniSlideInRight; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--slideInUp { animation-name: soAniSlideInUp; }

/* Rotating Entrances - Scroll */
.so-ani.so-ani--scroll.so-ani--inview.so-ani--rotateIn { animation-name: soAniRotateIn; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--rotateInDownLeft { animation-name: soAniRotateInDownLeft; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--rotateInDownRight { animation-name: soAniRotateInDownRight; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--rotateInUpLeft { animation-name: soAniRotateInUpLeft; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--rotateInUpRight { animation-name: soAniRotateInUpRight; }

/* Specials - Scroll */
.so-ani.so-ani--scroll.so-ani--inview.so-ani--flip { animation-name: soAniFlip; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--flipInX { animation-name: soAniFlipInX; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--flipInY { animation-name: soAniFlipInY; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--lightSpeedInLeft { animation-name: soAniLightSpeedInLeft; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--lightSpeedInRight { animation-name: soAniLightSpeedInRight; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--rollIn { animation-name: soAniRollIn; }
.so-ani.so-ani--scroll.so-ani--inview.so-ani--jackInTheBox { animation-name: soAniJackInTheBox; }


/* ============================================
   KEYFRAMES - Attention Seekers
   ============================================ */

@keyframes soAniBounce {
  0%, 20%, 53%, 100% { animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); transform: translate3d(0, 0, 0); }
  40%, 43% { animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); transform: translate3d(0, -30px, 0) scaleY(1.1); }
  70% { animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); transform: translate3d(0, -15px, 0) scaleY(1.05); }
  80% { transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); transform: translate3d(0, 0, 0) scaleY(0.95); }
  90% { transform: translate3d(0, -4px, 0) scaleY(1.02); }
}

@keyframes soAniFlash {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

@keyframes soAniPulse {
  0% { transform: scale3d(1, 1, 1); }
  50% { transform: scale3d(1.05, 1.05, 1.05); }
  100% { transform: scale3d(1, 1, 1); }
}

@keyframes soAniRubberBand {
  0% { transform: scale3d(1, 1, 1); }
  30% { transform: scale3d(1.25, 0.75, 1); }
  40% { transform: scale3d(0.75, 1.25, 1); }
  50% { transform: scale3d(1.15, 0.85, 1); }
  65% { transform: scale3d(0.95, 1.05, 1); }
  75% { transform: scale3d(1.05, 0.95, 1); }
  100% { transform: scale3d(1, 1, 1); }
}

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

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

@keyframes soAniHeadShake {
  0% { transform: translateX(0); }
  6.5% { transform: translateX(-6px) rotateY(-9deg); }
  18.5% { transform: translateX(5px) rotateY(7deg); }
  31.5% { transform: translateX(-3px) rotateY(-5deg); }
  43.5% { transform: translateX(2px) rotateY(3deg); }
  50% { transform: translateX(0); }
}

@keyframes soAniSwing {
  20% { transform: rotate3d(0, 0, 1, 15deg); }
  40% { transform: rotate3d(0, 0, 1, -10deg); }
  60% { transform: rotate3d(0, 0, 1, 5deg); }
  80% { transform: rotate3d(0, 0, 1, -5deg); }
  100% { transform: rotate3d(0, 0, 1, 0deg); }
}

@keyframes soAniTada {
  0% { transform: scale3d(1, 1, 1); }
  10%, 20% { transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg); }
  30%, 50%, 70%, 90% { transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); }
  40%, 60%, 80% { transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); }
  100% { transform: scale3d(1, 1, 1); }
}

@keyframes soAniWobble {
  0% { transform: translate3d(0, 0, 0); }
  15% { transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg); }
  30% { transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg); }
  45% { transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg); }
  60% { transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg); }
  75% { transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes soAniJello {
  0%, 11.1%, 100% { transform: translate3d(0, 0, 0); }
  22.2% { transform: skewX(-12.5deg) skewY(-12.5deg); }
  33.3% { transform: skewX(6.25deg) skewY(6.25deg); }
  44.4% { transform: skewX(-3.125deg) skewY(-3.125deg); }
  55.5% { transform: skewX(1.5625deg) skewY(1.5625deg); }
  66.6% { transform: skewX(-0.78125deg) skewY(-0.78125deg); }
  77.7% { transform: skewX(0.390625deg) skewY(0.390625deg); }
  88.8% { transform: skewX(-0.1953125deg) skewY(-0.1953125deg); }
}

@keyframes soAniHeartBeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.3); }
  28% { transform: scale(1); }
  42% { transform: scale(1.3); }
  70% { transform: scale(1); }
}

/* ============================================
   KEYFRAMES - Fading Entrances
   ============================================ */

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

@keyframes soAniFadeInDown {
  from { opacity: 0; transform: translate3d(0, -100%, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes soAniFadeInLeft {
  from { opacity: 0; transform: translate3d(-100%, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes soAniFadeInRight {
  from { opacity: 0; transform: translate3d(100%, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes soAniFadeInUp {
  from { opacity: 0; transform: translate3d(0, 100%, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* ============================================
   KEYFRAMES - Bouncing Entrances
   ============================================ */

@keyframes soAniBounceIn {
  0%, 20%, 40%, 60%, 80%, 100% { animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }
  0% { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); }
  20% { transform: scale3d(1.1, 1.1, 1.1); }
  40% { transform: scale3d(0.9, 0.9, 0.9); }
  60% { opacity: 1; transform: scale3d(1.03, 1.03, 1.03); }
  80% { transform: scale3d(0.97, 0.97, 0.97); }
  100% { opacity: 1; transform: scale3d(1, 1, 1); }
}

@keyframes soAniBounceInDown {
  0%, 60%, 75%, 90%, 100% { animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }
  0% { opacity: 0; transform: translate3d(0, -3000px, 0) scaleY(3); }
  60% { opacity: 1; transform: translate3d(0, 25px, 0) scaleY(0.9); }
  75% { transform: translate3d(0, -10px, 0) scaleY(0.95); }
  90% { transform: translate3d(0, 5px, 0) scaleY(0.985); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes soAniBounceInLeft {
  0%, 60%, 75%, 90%, 100% { animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }
  0% { opacity: 0; transform: translate3d(-3000px, 0, 0) scaleX(3); }
  60% { opacity: 1; transform: translate3d(25px, 0, 0) scaleX(1); }
  75% { transform: translate3d(-10px, 0, 0) scaleX(0.98); }
  90% { transform: translate3d(5px, 0, 0) scaleX(0.995); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes soAniBounceInRight {
  0%, 60%, 75%, 90%, 100% { animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }
  0% { opacity: 0; transform: translate3d(3000px, 0, 0) scaleX(3); }
  60% { opacity: 1; transform: translate3d(-25px, 0, 0) scaleX(1); }
  75% { transform: translate3d(10px, 0, 0) scaleX(0.98); }
  90% { transform: translate3d(-5px, 0, 0) scaleX(0.995); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes soAniBounceInUp {
  0%, 60%, 75%, 90%, 100% { animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }
  0% { opacity: 0; transform: translate3d(0, 3000px, 0) scaleY(5); }
  60% { opacity: 1; transform: translate3d(0, -20px, 0) scaleY(0.9); }
  75% { transform: translate3d(0, 10px, 0) scaleY(0.95); }
  90% { transform: translate3d(0, -5px, 0) scaleY(0.985); }
  100% { transform: translate3d(0, 0, 0); }
}

/* ============================================
   KEYFRAMES - Zooming Entrances
   ============================================ */

@keyframes soAniZoomIn {
  from { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); }
  50% { opacity: 1; }
}

@keyframes soAniZoomInDown {
  from { opacity: 0; transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }
  60% { opacity: 1; transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); }
}

@keyframes soAniZoomInLeft {
  from { opacity: 0; transform: scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }
  60% { opacity: 1; transform: scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); }
}

@keyframes soAniZoomInRight {
  from { opacity: 0; transform: scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }
  60% { opacity: 1; transform: scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); }
}

@keyframes soAniZoomInUp {
  from { opacity: 0; transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }
  60% { opacity: 1; transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); }
}

/* ============================================
   KEYFRAMES - Sliding Entrances
   ============================================ */

@keyframes soAniSlideInDown {
  from { transform: translate3d(0, -100%, 0); visibility: visible; }
  to { transform: translate3d(0, 0, 0); }
}

@keyframes soAniSlideInLeft {
  from { transform: translate3d(-100%, 0, 0); visibility: visible; }
  to { transform: translate3d(0, 0, 0); }
}

@keyframes soAniSlideInRight {
  from { transform: translate3d(100%, 0, 0); visibility: visible; }
  to { transform: translate3d(0, 0, 0); }
}

@keyframes soAniSlideInUp {
  from { transform: translate3d(0, 100%, 0); visibility: visible; }
  to { transform: translate3d(0, 0, 0); }
}

/* ============================================
   KEYFRAMES - Rotating Entrances
   ============================================ */

@keyframes soAniRotateIn {
  from { transform: rotate3d(0, 0, 1, -200deg); opacity: 0; }
  to { transform: translate3d(0, 0, 0); opacity: 1; }
}

@keyframes soAniRotateInDownLeft {
  from { transform: rotate3d(0, 0, 1, -45deg); opacity: 0; transform-origin: left bottom; }
  to { transform: translate3d(0, 0, 0); opacity: 1; transform-origin: left bottom; }
}

@keyframes soAniRotateInDownRight {
  from { transform: rotate3d(0, 0, 1, 45deg); opacity: 0; transform-origin: right bottom; }
  to { transform: translate3d(0, 0, 0); opacity: 1; transform-origin: right bottom; }
}

@keyframes soAniRotateInUpLeft {
  from { transform: rotate3d(0, 0, 1, 45deg); opacity: 0; transform-origin: left bottom; }
  to { transform: translate3d(0, 0, 0); opacity: 1; transform-origin: left bottom; }
}

@keyframes soAniRotateInUpRight {
  from { transform: rotate3d(0, 0, 1, -90deg); opacity: 0; transform-origin: right bottom; }
  to { transform: translate3d(0, 0, 0); opacity: 1; transform-origin: right bottom; }
}

/* ============================================
   KEYFRAMES - Specials
   ============================================ */

@keyframes soAniFlipInX {
  from { transform: perspective(400px) rotate3d(1, 0, 0, 90deg); animation-timing-function: ease-in; opacity: 0; }
  40% { transform: perspective(400px) rotate3d(1, 0, 0, -20deg); animation-timing-function: ease-in; }
  60% { transform: perspective(400px) rotate3d(1, 0, 0, 10deg); opacity: 1; }
  80% { transform: perspective(400px) rotate3d(1, 0, 0, -5deg); }
  to { transform: perspective(400px); }
}

@keyframes soAniFlipInY {
  from { transform: perspective(400px) rotate3d(0, 1, 0, 90deg); animation-timing-function: ease-in; opacity: 0; }
  40% { transform: perspective(400px) rotate3d(0, 1, 0, -20deg); animation-timing-function: ease-in; }
  60% { transform: perspective(400px) rotate3d(0, 1, 0, 10deg); opacity: 1; }
  80% { transform: perspective(400px) rotate3d(0, 1, 0, -5deg); }
  to { transform: perspective(400px); }
}

@keyframes soAniLightSpeedInLeft {
  from { transform: translate3d(-100%, 0, 0) skewX(30deg); opacity: 0; }
  60% { transform: skewX(-20deg); opacity: 1; }
  80% { transform: skewX(5deg); }
  to { transform: translate3d(0, 0, 0); }
}

@keyframes soAniLightSpeedInRight {
  from { transform: translate3d(100%, 0, 0) skewX(-30deg); opacity: 0; }
  60% { transform: skewX(20deg); opacity: 1; }
  80% { transform: skewX(-5deg); }
  to { transform: translate3d(0, 0, 0); }
}

@keyframes soAniRollIn {
  from { opacity: 0; transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes soAniFlip {
  from { transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg); animation-timing-function: ease-out; }
  40% { transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg); animation-timing-function: ease-out; }
  50% { transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg); animation-timing-function: ease-in; }
  80% { transform: perspective(400px) scale3d(0.95, 0.95, 0.95) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg); animation-timing-function: ease-in; }
  to { transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg); animation-timing-function: ease-in; }
}

@keyframes soAniJackInTheBox {
  from { opacity: 0; transform: scale(0.1) rotate(30deg); transform-origin: center bottom; }
  50% { transform: rotate(-10deg); }
  70% { transform: rotate(3deg); }
  to { opacity: 1; transform: scale(1); }
}
