

html, body {
  counter-reset: hit;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  cursor: crosshair;
  background: #4682B4;
}

*, *:before, *:after {
  box-sizing: border-box;
  cursor: crosshair;
}

input {
  width: 300px;
  height: 100%;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}
input:focus {
  outline: none;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

a {
  color: red;
  text-decoration: none;
}

/************* 
layout
**************/
.l-header-container {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  margin-right: auto;
  margin-left: auto;
  width: 1100px;
  height: 130px;
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
}

.l-game-container {
  position: absolute;
  top: 130px;
  right: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  margin-right: auto;
  margin-left: auto;
  width: 1100px;
  height: 700px;
  background: url("img/fond.gif");
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.l-game-bottom {
  position: absolute;
  top: 670px;
  right: 0;
  left: 0;
  margin-right: auto;
  margin-left: auto;
  width: 1100px;
  height: 220px;
  background: repeating-linear-gradient(to right, #8B0000, #8B0000 10px, #FAEBD7 10px, #FAEBD7 20px);
}

.l-game-over {
  position: absolute;
  top: -2000px;
  width: 100%;
  height: 1000px;
  background-color: grey: 
  z-index: 5;
  text-align: center;
  cursor: pointer;
  -webkit-animation: over 3s forwards 13s;
          animation: over 3s forwards 13s;
}

/************* 
modules
**************/
.game-header {
  padding: 20px;
  font-size: 30px;
  font-weight: bolder;
}

.game-header::after {
  content: counter(hit);
}

.game-row {
  width: 1500px;
  height: 180px;
  border-bottom: 5px solid brown;
  overflow: hidden;
  -webkit-perspective: 1000px;
          perspective: 1000px;
}

.duck-row {
  display: flex;
  flex-wrap: no-wrap;
  margin-left: -4000px;
  width: 5000px;
  height: 200px;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  -webkit-animation: move 18s linear forwards 1;
          animation: move 18s linear forwards 1;
}
.duck-row--two {
  margin-left: 2000px;
  -webkit-animation: move2 15s linear forwards .3s 1;
          animation: move2 15s linear forwards .3s 1;
}
.duck-row--three {
  -webkit-animation: move 14s linear forwards 3s 1;
          animation: move 14s linear forwards 3s 1;
}
.duck-row__box {
  margin-top: 50px;
  margin-right: 100px;
  width: 150px;
  height: 150px;
}
.duck-row__box--reverse {
  -webkit-transform: rotateY(180deg);
          transform: rotateY(180deg);
}
.duck-row__img {
  width: 120px;
  height: 150px;
  margin-top: -150px;
  background: url(img/patate.png);
  background-size: contain;
  transition: all .2s;
}

.game-over {
  position: absolute;
  top: 100px;
  right: 0;
  left: 0;
  margin-right: auto;
  margin-left: auto;
  width: 800px;
  height: 479px;
  background: white;
  font-size: 30px;
  background: url(img/fond2.png), blue;
  background-size: cover;
  background-repeat: no-repeat;
}
.game-over .game-txt {
  position: absolute;
  top: 190px;
  width: 100%;
  height: 60px;
}
.game-over .game-txt h1 {
  font-size: 70px;
}

.game-score::after {
  content: counter(hit);
}

/************* 
States
**************/
input:checked {
  counter-increment: hit;
}
input:checked:after {
  content: "miam";
  position: relative;
  top: 80px;
  left: 150px;
  padding: 10px;
  width: 40px;
  height: 40px;
  z-index: 5;
  color: gold;
  font-size: 30px;
  border-radius: 50%;
  -webkit-animation: hit 2s forwards;
          animation: hit 2s forwards;
}
input:checked ~ .duck-row__img {
  background: url(img/explosion.gif);
  background-size: contain;
}
input:checked ~ .duck-row__img:after {
  content: "";
  position: absolute;
  top: 20;
  left: 500;
  width: inherit;
  height: inherit;
}

@-webkit-keyframes move {
  0% {
    margin-left: -4000px;
  }
  100% {
    margin-left: 2500px;
  }
}

@keyframes move {
  0% {
    margin-left: -4000px;
  }
  100% {
    margin-left: 2500px;
  }
}
@-webkit-keyframes move2 {
  0% {
    margin-left: 2000px;
  }
  100% {
    margin-left: -4000px;
  }
}
@keyframes move2 {
  0% {
    margin-left: 2000px;
  }
  100% {
    margin-left: -4000px;
  }
}
@-webkit-keyframes flow {
  0% {
    left: 80px;
  }
  50% {
    left: 65px;
  }
}
@keyframes flow {
  0% {
    left: 80px;
  }
  50% {
    left: 65px;
  }
}
@-webkit-keyframes hit {
  0% {
    top: 80px;
  }
  100% {
    top: 10px;
    display: none;
  }
}
@keyframes hit {
  0% {
    top: 80px;
  }
  100% {
    top: 10px;
    display: none;
  }
}
@-webkit-keyframes over {
  0% {
    top: -2000px;
  }
  100% {
    top: 0;
  }
}
@keyframes over {
  0% {
    top: -2000px;
  }
  100% {
    top: 0;
  }
}
