body {
    background-color: #ffdaf7;
}

h1 {
    color: #181897;
    text-align: center;
    border-radius: 30px;
    background-color: #c2a8fe;
    padding: 5px;
    font-size: 50px;
}

header {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  background-color: #ff91ae;
  font-size: 25px;
}

header nav a {
  padding: 0.8rem;
  color: #9c1b1b;
}

header nav a:hover {
  padding: 0.8rem;
  color: #370000;
}

#car {
  animation-name: drivingAround;
  animation-duration: 6000ms;
   animation-fill-mode: forwards; 
  animation-iteration-count: 2;
}

@keyframes drivingAround {
  0% {
    transform: translateX(0px)
  }
  48% {
    transform: translateX(600px);
  }
  50% {
    transform: rotateY(180deg) translateX(-600px);
  }
  98% {
    transform: translateX(0px) rotateY(180deg);
  } 

  100% {
    transform: translateX(600px);
  }
}

article {
  position: relative;
}
article section {
  position: absolute;
  top: 5.5rem;
  width: 500px;
  left: -500px;
  padding: 0 1rem 0.5rem 0.5rem;
  background-color: #ff91ae;
  transition: transform 0.5s;
  opacity: 70%;
}
article section nav {
  width: 110%;
  text-align: right;
  background-color: #ff91ae;
  padding: 0.5rem;
}

.visible {
  transform: translateX(500px);
}