body {
  overflow-x: hidden;  
  padding: 20px;
 
}

h1 { font-family: Arial, Helvetica, sans-serif; font-variant: normal; font-weight: 700; line-height: 1em; text-align: center;
  z-index: 1;
  padding: 10%;
}

a {
  color: black;
}

.background {
	width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.content {
	position:absolute;
    left:0; right:0;
    top:0; bottom:0;
	margin:auto;
	max-width:100%;
	max-height:100%;
	overflow:auto;
}


.area {
  top: 5%;
  width: 100%;
  height: 100%;
  position: fixed;
  float: left;
  overflow: visible;
  transform-style: preserve-3d;
  perspective: 1500px;
}

.car {
  position: absolute;
  left: 0;
  animation: moveAcross 20s linear infinite;
  transform: rotateX(33deg);
  /*animation-play-state: paused;*/
}
.car-1 {
  animation-delay: -15s;
  animation-duration: 35s;
}

.car-2 {
  animation-delay: -33s;
  animation-duration: 35s;
}

.car-3 {
  animation-delay: -0s;
  animation-duration: 30s;
}

.car-4 {
  animation-delay: -16s;
  animation-duration: 30s;
}

.car-5 {
  animation-delay: -21s;
  animation-duration: 30s;
}

.car-6 {
  animation-delay: -40s;
  animation-duration:35s;
}

.car-7 {
  animation-delay: -8s;
  animation-duration: 30s;
}

.car-8 {
  animation-delay: -36s;
  animation-duration: 29.5s;
}

@keyframes moveAcross {
  0% {
    left: -2000px;
  }
  100% {
    left: 180%;
  }
}
img:hover {
  animation-play-state: paused;
  cursor: pointer;
  -webkit-transform-origin: top;
  transform-origin: top;
  -webkit-animation-play-state: paused;
  animation-play-state: paused;
animation-iteration-count: 1;
   opacity: 1;
transition: all .4s ease-in-out; 
}
img {
 height: 50%;
 opacity: 0.8;
  }
.car-1:hover {animation-play-state: paused;}
.car-2:hover {animation-play-state: paused;}
.car-3:hover {animation-play-state: paused;}
.car-4:hover {animation-play-state: paused;}
.car-5:hover {animation-play-state: paused;}
.car-6:hover {animation-play-state: paused;}
.car-7:hover {animation-play-state: paused;}
.car-8:hover {animation-play-state: paused;}
.car-9:hover {animation-play-state: paused;}



@media only screen and (max-width: 768px) {
  /* For mobile phones: */
  .area, .car, .img, .h1 {
    heigth: 100%;
    width: 80%;
    max-width: 80%;
    perspective: 2000px;
    font-size: 1em;
  }

.container {
    bottom: 0;
    left: 0;
    height: 300px;
    margin: auto;
    position: absolute;
    right: 0;
    text-align: center;
    top: 0;
    width: 100%;
}

.container img {
    max-width: 100%;
}