body {
  margin: 0;
  padding: 0;
  background-color: grey;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.row {
  display: flex;
  gap: 15px;
}

.box {
  width: 120px;
  height: 70px;
  background-color: white;
  border-radius: 8px;
  animation: move 2s infinite alternate;
}

/* Forward movement (left to right) */
.forward .box {
  animation-direction: normal;
}

/* Backward movement (right to left) */
.backward .box {
  animation-direction: reverse;
}

@keyframes move {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100px);
  }
}
