html, body{
  height: 100%;
  overflow: hidden;
}
body {
  display: flex;
  /*flex-direction: column;*/
  margin: 0 auto;
}
.conteiner{
  height: 480px;
  width: 320px;
  padding: 0px;
  margin: 0 auto;
  position: relative;
}
.box {
  flex: 1 0 auto;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.marcador{
  width: 142px;
    height: 28px;
    position: absolute;
    background-image: url(../img/marcador.png);
    left: 20px;
    top: 29px;
}
.portero{
  width: 158px;
  height: 186px;
  position: absolute;
  background-image: url("../img/portero.png");
  left: 0;
  right: 0;
  margin: 0 auto;
  top: 44%;
  animation: portero ease .9s infinite;

}

@keyframes portero{
    0% { left: 10px;}
    50% { left: 30px; }
    100% { left:10px;}
  }

  .portero-defensa-1{
    width:238px;
    height: 129px;
    position: absolute;
    background-image: url("../img/portero_parada.png");
    left:0px;
    margin: 0 auto;
    top: 50%;
    animation: portero-defensa-1 ease .9s;
    display: none;
  }

  @keyframes portero-defensa-1{
      0% { left: 20%;}
      100% { left:0px;}
    }

.portero-defensa-2{
  width: 238px;
  height: 129px;
  position: absolute;
  background-image: url("../img/portero_parada.png");
  right: 0;
  margin: 0 auto;
  top: 51%;
  animation: portero-defensa-2 ease .9s;
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
  display: none;
}
@keyframes portero-defensa-2{
    0% { right: 20%;}
    100% { right:0px;}
  }
  .portero-defensa-3{
    width: 238px;
    height: 129px;
    position: absolute;
    background-image: url("../img/portero_parada.png");
    right: 0;
    margin: 0 auto;
    top: 46%;
    animation: portero-defensa-3 ease .9s;
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    display: none;
  }
  @keyframes portero-defensa-3{
      0% {
        right: 20%;
        top: 51%;
      }
      100% {
        right:0px;
        top: 46%;
      }
    }

    .portero-defensa-4{
      width:238px;
      height: 129px;
      position: absolute;
      background-image: url("../img/portero_parada.png");
      left:0px;
      margin: 0 auto;
      top: 50%;
      animation: portero-defensa-4 ease .9s;
      display: none;
    }
    @keyframes portero-defensa-4{
        0% { left: 20%;}
        100% { left:0px;}
      }


  .portero-defensa-5{
    width:238px;
    height: 129px;
    position: absolute;
    background-image: url("../img/portero_parada.png");
    left:0px;
    margin: 0 auto;
    top: 50%;
    animation: portero-defensa-5 ease .9s;
    display: none;
  }
  @keyframes portero-defensa-5{
      0% { left: 20%;}
      100% { left:0px;}
    }

.box-img{
  max-width: 414px;
  width: 100%;
  background-repeat: no-repeat;
  height: 621px;
  background-image: url("../img/bg.png");
  background-size: 100%;
}
.goalpost {
  position: absolute;
  width: 74%;
  height: 30%;
  top: 17%;
  left: 10%;
  background-color: lime;
  border-top: 10px solid white;
  border-left: 10px solid white;
  border-right: 10px solid white;
  border-radius: 5px 5px 0 0;
}

.line {
  position: absolute;
  width: 98%;
  height: 5px;
  bottom: 50%;
  background-color: white;
}

.peno {
  position: absolute;
  width: 25px;
  height: 15px;
  background-color: white;
  border-radius: 180px;
  bottom: 30%;
  left: 50%;
}
.frame1{
  display: block;
}
.frame2{
  display:none;
}
.frame3{
  display:none;
}
.frame4{
  display:none;
}
.frame5{
  display:none;
}
.frame6{
  display:none;
}
.frame7{
  display:none;
}
.frame8{
  display:none;
}
.shoot {
  width: 50px;
  height: 50px;
}

.frameFinal{
  max-width: 414px;
  width: 100%;
  background-repeat: no-repeat;
  height: 621px;
  background-image: url("../img/bg_02.png");
  background-size: 100%;
  display: none;
}

.balon {
  position: absolute;
  width: 74px;
  height: 74px;
  background-image: url("../img/balon.png");
  left: 0;
  right: 0;
  margin: 0 auto;
  margin-top: 120%;
}
.marcador-balon-1 {
  position: absolute;
  width: 22px;
  height: 22px;
  background-image: url("../img/balon_marcador.png");
  left: 7px;
  top: 3px;
}
.marcador-balon-2 {
  position: absolute;
  width: 22px;
  height: 22px;
  background-image: url("../img/balon_marcador.png");
  left: 34px;
  top: 3px;
}
.marcador-balon-3 {
  position: absolute;
  width: 22px;
  height: 22px;
  background-image: url("../img/balon_marcador.png");
  left:62px;
  top: 3px;
}
.marcador-balon-4 {
  position: absolute;
  width: 22px;
  height: 22px;
  background-image: url("../img/balon_marcador.png");
  left: 88px;
  top: 3px;
}
.marcador-balon-5 {
  position: absolute;
  width: 22px;
  height: 22px;
  background-image: url("../img/balon_marcador.png");
  left: 114px;
  top: 3px;
}
.goooal{
  width: 100%;
  max-width: 414px;
  height: 227px;
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  background-image: url("../img/gol.png");
  animation: press 1.2s infinite;
  top: 30%;
  background-size: 100%;
  background-repeat: no-repeat;
  display: none;
  z-index: 9;
}
@keyframes press {
  0% {
  transform: scale(0.9);
  }
  50% {
    transform: scale(1);

  }
  100% {
    transform: scale(0.9);

  }
}

.manos{
  idth: 100%;
  max-width: 412px;
  height: 195px;
  position: relative;
  left: 0;
  right: 0;
  margin: 0 auto;
  background-image: url(../img/manos.png);
  background-size: 100%;
  background-repeat: no-repeat;
  margin-top: 89%;
  animation: manos 0.9s infinite;
  background-position-y: 0px;
  display: none;
  z-index: 9;
}
@keyframes manos {
  0% {
    background-position-y: 200px;
  }

  50% {
    background-position-y: 0px;
    background-size: 110%;
    background-position-x: -24px;

  }

  100% {
    background-position-y: 200px;
    background-size: 100%;
    background-position-x: 0px;
  }
}
.football1 {
  position: absolute;
  background-image: url("../img/balon.png");
  background-size: cover;
  border-left: 2px solid #555;
  border-right: 1px solid #444;
  border-radius: 180px;
  animation: goal  0.8s ;
  animation-play-state: paused;
  display: none;
  animation-play-state: running;
  position: absolute;
  margin: 0 auto;
}


@keyframes goal {
  0% {
    width: 100px;
    height: 100px;
    top:  65%;
    left: 0;
    right: 0;

  }
  25% {
    bottom: 10px;
    left: 65%;
  }
  50% {
    top: 40%;
    right: 70%;
  }
  75% {
    top: 40%;
    right: 75%;
  }
  100% {
    top: 40%;
    left: 65%;
    width: 30px;
    height: 30px;
    transform: rotate(5turn);

  }
}

.football2 {
  position: absolute;
  background-image: url("../img/balon.png");
  background-size: cover;
  border-left: 2px solid #555;
  border-right: 1px solid #444;
  border-radius: 180px;
  animation: goal2  0.8s ;
  animation-play-state: paused;
  display: none;
  animation-play-state: running;
  position: absolute;
  margin: 0 auto;
}
@keyframes goal2 {
  0% {
    width: 100px;
    height: 100px;
    top:  65%;
    left: 0;
    right: 0;
  }
  25% {
    bottom: 10px;
    right: 70%;
  }
  50% {
    top: 39%;
    right: 75%;
  }
  75% {
    top: 39%;
    right: 75%;
  }
  100% {
    top: 39%;
    left: 15%;
    width: 30px;
    height: 30px;
    transform: rotate(5turn);
  }
}

.football3 {
  position: absolute;
  background-image: url("../img/balon.png");
  background-size: cover;
  border-left: 2px solid #555;
  border-right: 1px solid #444;
  border-radius: 180px;
  animation: goal3  0.8s ;
  animation-play-state: paused;
  display: none;
  animation-play-state: running;
  position: absolute;
  margin: 0 auto;
}
@keyframes goal3 {
  0% {
    width: 100px;
    height: 100px;
    top:  65%;
    left: 0;
    right: 0;
  }
  25% {
    bottom: 10px;
    left: 70%;
  }
  50% {
    top: 45%;
    right: 10%;
  }
  75% {
    top: 45%;
    right: 5%;
  }
  100% {
    top: 45%;
    right: 5%;
    width: 30px;
    height: 30px;
    transform: rotate(5turn);
  }
}

.football4 {
  position: absolute;
  background-image: url("../img/balon.png");
  background-size: cover;
  border-left: 2px solid #555;
  border-right: 1px solid #444;
  border-radius: 180px;
  animation: goal4  0.8s ;
  animation-play-state: paused;
  display: none;
  animation-play-state: running;
  position: absolute;
  margin: 0 auto;
}
@keyframes goal4 {
  0% {
    width: 100px;
    height: 100px;
    top:  65%;
    left: 0;
    right: 0;
  }
  25% {
    bottom: 10px;
    left: 80%;
  }
  50% {
    top:65%;
    right: 5%;
  }
  75% {
    top: 65%;
    right: 5%;
  }
  100% {
    top: 65%;
    right: 5%;
    width: 30px;
    height: 30px;
    transform: rotate(5turn);
  }
}

.football5 {
  position: absolute;
  background-image: url("../img/balon.png");
  background-size: cover;
  border-left: 2px solid #555;
  border-right: 1px solid #444;
  border-radius: 180px;
  animation: goal5  0.8s ;
  animation-play-state: paused;
  display: none;
  animation-play-state: running;
  position: absolute;
  margin: 0 auto;
}
@keyframes goal5 {
  0% {
    width: 100px;
    height: 100px;
    top:  65%;
    left: 0;
    right: 0;

  }
  25% {
    bottom: 10px;
    left: 65%;
  }
  50% {
    top: 40%;
    right: 70%;
  }
  75% {
    top: 40%;
    right: 75%;
  }
  100% {
    top: 40%;
    left: 65%;
    width: 30px;
    height: 30px;
    transform: rotate(5turn);

  }
}

.football6 {
  position: absolute;
  background-color: white;
  border-left: 2px solid #555;
  border-right: 1px solid #444;
  border-radius: 180px;
  animation: goal6 1.5s ;
  animation-play-state: paused;
  display: none;
  animation-play-state: running;
}
@keyframes goal6 {
  0% {
    width: 100px;
    height: 100px;
    top:  65%;
    left: 5%;
  }
  25% {
    bottom: 10px;
    left: 65%;
  }
  50% {
    top: 30%;
    right: 70%;
  }
  75% {
    top: 30%;
    right: 75%;
  }
  100% {
    top: 0%;
    left: 5%;
    width: 20px;
    height: 20px;
    transform: rotate(5turn);
  }
}


.football7 {
  position: absolute;
  background-color: white;
  border-left: 2px solid #555;
  border-right: 1px solid #444;
  border-radius: 180px;
  animation: goal7 1.5s ;
  animation-play-state: paused;
  display: none;
  animation-play-state: running;
}
@keyframes goal7 {
  0% {
    width: 100px;
    height: 100px;
    top:  65%;
    left: 5%;
  }
  25% {
    bottom: 10px;
    left: 65%;
  }
  50% {
    top: 20%;
    right: 70%;
  }
  75% {
    top: 20%;
    right: 75%;
  }
  100% {
    top: 20%;
    left: 65%;
    width: 20px;
    height: 20px;
    transform: rotate(5turn);
  }
}
.football8 {
  position: absolute;
  background-color: white;
  border-left: 2px solid #555;
  border-right: 1px solid #444;
  border-radius: 180px;
  animation: goal7 1.5s ;
  animation-play-state: paused;
  display: none;
  animation-play-state: running;
}
@keyframes goal8 {
  0% {
    width: 100px;
    height: 100px;
    top:  65%;
    left: 5%;
  }
  25% {
    bottom: 10px;
    left: 65%;
  }
  50% {
    top: 20%;
    right: 70%;
  }
  75% {
    top: 20%;
    right: 75%;
  }
  100% {
    top: 20%;
    left: 65%;
    width: 20px;
    height: 20px;
    transform: rotate(5turn);
  }
}

@media (max-width: 375px) {

  .portero {
    width: 158px;
    height: 186px;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    top: 44%;
    background-size: 80%;
    animation: portero ease .9s infinite;
    background-repeat: no-repeat;
}
.portero-defensa-1{
  width:238px;
  height: 129px;
  position: absolute;
  background-image: url("../img/portero_parada.png");
  left:0px;
  margin: 0 auto;
  top: 50%;
  animation: portero-defensa-1 ease .9s;
  display: none;
    background-size: 80%;
    background-repeat: no-repeat;
  }
  .portero-defensa-2{
      background-size: 80%;
      background-repeat: no-repeat;
    }
  .portero-defensa-3{
      background-size: 80%;
      background-repeat: no-repeat;
    }
  .portero-defensa-4{
      background-size: 80%;
      background-repeat: no-repeat;
    }
  .portero-defensa-5{
      background-size: 80%;
      background-repeat: no-repeat;
    }
  .marcador {
    left: 10px;
    bottom: 80px;
  }
  .balon {
      margin-top: 120%;
      background-size: 70%;
      background-repeat: no-repeat;
  }
}
@media (max-width: 320px) {
  .marcador {
    left: 10px;
    bottom: 10px;
  }
  .box-img {
    height: 480px;
  }
  .portero {
    width: 158px;
    height: 186px;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    top: 44%;
    background-size: 80%;
    animation: portero ease .9s infinite;
    background-repeat: no-repeat;
}
}
