/* ============================================================
   CSS 16.04 — Timing functions: HOW the speed changes
   ============================================================
   linear       same speed all the way              (robots, loaders)
   ease         slow → fast → slow   (default)      ✔ most things
   ease-in      starts slow, ends fast               (things leaving)
   ease-out     starts fast, ends slow               ✔ things arriving
   ease-in-out  slow start and slow end
   ============================================================ */

.ball {
  transition: transform 2s;         /* 2 seconds, so you can see the difference */
}

.track-area:hover .ball {
  transform: translateX(300px);     /* move 300px to the right */
}

.linear      { transition-timing-function: linear; }
.ease        { transition-timing-function: ease; }
.ease-in     { transition-timing-function: ease-in; }
.ease-out    { transition-timing-function: ease-out; }
.ease-in-out { transition-timing-function: ease-in-out; }


/* ------------------------------------------------------------
   Only to make the tracks visible — not part of this lesson
   ------------------------------------------------------------ */
.track-area {
  font-family: Consolas, monospace;
  background-color: #F4F5F7;
  padding: 16px;
  border-radius: 12px;
  max-width: 460px;
}

.track { margin: 10px 0; }

.ball {
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #2D62EF;
  vertical-align: middle;
  margin-right: 10px;
}

.track span { vertical-align: middle; }
