/* Birdaniamtion 
Copyright (c) 2020 by Steven Roberts (https://codepen.io/matchboxhero/pen/RLebOY)
*/

body {
  margin:0;
}

.flex { /*Flexbox for containers*/
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.waves {
  position:relative;
  width: 100%;
  height:15vh;
  margin-bottom:-7px; /*Fix for safari gap*/
  min-height:100px;
  max-height:150px;
}

.content {
  position:relative;
  height:20vh;
  text-align:center;
  background-color: white;
}

/* Animation */

.parallax > use {
  animation: move-forever 25s cubic-bezier(.55,.5,.45,.5)     infinite;
}
.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}
.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}
.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}
.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}
@keyframes move-forever {
  0% {
   transform: translate3d(-90px,0,0);
  }
  100% { 
    transform: translate3d(85px,0,0);
  }
}
/*Shrinking for mobile*/
@media (max-width: 768px) {
  .waves {
    height:40px;
    min-height:40px;
  }
  .content {
    height:30vh;
  }
  h1 {
    font-size:24px;
  }
}

.bird{

  background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/174479/bird-cells.svg");
  background-size: auto 100%;
  height:125px;
  width:86px;
  animation-name: fly;
  animation-duration: 1s;
  animation-timing-function:steps(10);
  animation-iteration-count: infinite;
}


.bird-cont{
  position:absolute;
  left:10% ;
  padding-top: 10%;
  animation-name: birdFly;
  animation-duration: 10s;
  animation-timing-function:linear;
  animation-iteration-count: infinite;

}
.bird2{
  animation-delay: 2s;
}

@keyframes birdFly {

  0% {transform: translateX(-10vw) translateY(0vh);}
  10% {transform: translateX(10vw) translateY(02vh);}
  20% {transform: translateX(30vw) translateY(04vh);}
  30% {transform: translateX(50vw) translateY(02vh);}
  40% {transform: translateX(70vw) translateY(0vh);}
  50% {transform: translateX(90vw) translateY(02vh);}
  60% {transform: translateX(110vw) translateY(04vh);}
  70% {transform: translateX(130vw) translateY(0vh);}
  80% {transform: translateX(150vw) translateY(02vh);}
  90% {transform: translateX(170vw) translateY(04vh);}
  100% {transform: translateX(190vw) translateY(0vh);}



}

@keyframes fly {
  from{background-position:900px;}
  to{background-position:0px;}
}
