.truck-container {
  overflow: clip;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  --truck-start: -70px;
  --truck-anim-len: 20s;
  --wheel-anim-len: 6s;
  --truck-color: rgba(201, 192, 192, 0.5);
}

.truck {
  position: relative;
  opacity: 0.3;
}

.truck-container > :nth-child(1) {
  top: 10%;
  animation: truckroll 21s linear infinite;
}

.truck-container > :nth-child(2) {
  top: 30%;
  animation: truckroll 25s linear infinite;
}

.truck-container > :nth-child(3) {
  top: 50%;
  animation: truckroll 17s linear infinite;
}

.truck-container > :nth-child(4) {
    top: 70%;
    animation: truckroll 20s linear infinite;
}

.vanbody {
  display: inline-block;
  width: 100px;
  height: 50px;
  border: 2px solid var(--truck-color);
  position: absolute;
  border-radius: 5px;
  top: 10px;
  left: 10px;
}

.tractor {
  display: inline-block;
  width: 50px;
  height: 40px;
  border: 2px solid var(--truck-color);
  position: absolute;
  border-radius: 0 30px 0 0;
  top: 15px;
  left: 120px;
}

.wheel {
  display: inline-block;
  height: 20px;
  width: 20px;
  border: 2px solid var(--truck-color);
  border-radius: 50%;
  position: absolute;
  animation: wheelroll var(--wheel-anim-len) linear infinite;
  margin-right: 20px;
  top: 60px;
}

.truck div:nth-child(3) {
  left: 15px;
}

.truck div:nth-child(4) {
  left: 80px;
}

.truck div:nth-child(5) {
  left: 140px;
}

.wheel span {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--truck-color);
  position: absolute;
}

.wheel .wheel1 {
  top: 20%;
  right: 20%;
}

.wheel .wheel2 {
  top: 20%;
  right: 65%;
}

.wheel .wheel3 {
  top: 20%;
  right: 65%;
}

.vanbody img {
  position: absolute;
  left: 25%;
  top: 10%;
}

.truck-section {
    position: relative;
}

.truck-overlay {
    z-index: 2;
    position: relative;
}

@keyframes wheelroll {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes truckroll {
  0% {
    transform: translateX(-20%);
  }
  100% {
    transform: translateX(120%);
  }
}