/* =========================
   BASE
========================= */
.rtx {
  position: relative;
}

.rtx-enter,
.rtx-exit {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
}

/* =========================
   FADE
========================= */
.rtx-fade .rtx-entering {
  animation: rtxFadeIn 0.20s ease forwards;
}

.rtx-fade .rtx-exit {
  animation: rtxFadeOut 0.20s ease forwards;
}

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

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

/* =========================
   SLIDE (from right)
========================= */
.rtx-slide .rtx-entering {
  animation: rtxSlideIn 0.20s ease forwards;
}

.rtx-slide .rtx-exit {
  animation: rtxSlideOut 0.20s ease forwards;
}

@keyframes rtxSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes rtxSlideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(-50%); opacity: 0; }
}

/* =========================
   SCALE (zoom)
========================= */
.rtx-scale .rtx-entering {
  animation: rtxScaleIn 0.20s ease forwards;
}

.rtx-scale .rtx-exit {
  animation: rtxScaleOut 0.20s ease forwards;
}

@keyframes rtxScaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes rtxScaleOut {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(0.95); opacity: 0; }
}