body {
  padding: 0px;
  text-align: center;
  overflow:hidden;
}

/*Maakt alle afbeeldingen fullscreen*/
img {
  min-height: 100%;
  min-width: 1024px;
  width: 100%;
  height: auto;
  position: fixed;
  left: 0;
  bottom: 0;
}

/*Hier zet ik de verschillende lagen op de juiste volgorde*/
.BG {
  z-index: 1;
}
.W1 {
  z-index: 2;
}
.B1 {
  z-index: 3;
}
.B2 {
  z-index: 4;
}
.B3 {
  z-index: 5;
}
.B4 {
  z-index: 6;
}
.B5 {
  z-index: 7;
}
.B6 {
  z-index: 8;
}
.VG {
  z-index: 9;
}
.UL {
  z-index: 11;
}

/*Dit is de character div waar de JS function de twee classes in kan omwisselen*/
#character {
  z-index: 10;
  position: absolute;
  bottom: 6%;
  left: 0;
  margin-left: 400px;
}

/*Dit is de state waar het poppetje stil staat en dus geen loop animatie weergeeft*/
.stand {
  width: 186px;
  height: 349px;
  background:url(../img/scene2/stand.png);
}

/*Dit is de state waar het poppetje wel beweegt en dus ook de loop animatie met laten zien*/
.walk {
  width: calc(1482px / 8);
  height: 349px;
  background: url(../img/scene2/walkCycle.png);
  animation: animate 1s steps(8) infinite;
}

@keyframes animate {
  from {
    background-position: 0;
  }
  to {
    background-position: -1482px;
  }
}
