html,body {
  background: #42a1c6;
}

h1 {
  font-family: system-ui;
  color: white;
  opacity: 0.7;
  text-align: center;
}

/* Poisson */
.poisson {
  position: relative;
  top:10em;
  width: 150px;
  height: 100px;
  animation-name: nage;
  animation-duration: 7s;
  animation-iteration-count: infinite;
  animation-timing-function:linear
  /*border: 10px solid #fff;*/
}

.poisson-corps {
  position: relative;
  margin-top: 30px;
  margin-left: 40px;
  background-color: orange;
  opacity: 1;
  border-radius: 50%;
  width: 150px;
  height: 100px;
}

.eye {
  position: absolute;
  margin-left: 100px;
  margin-top: 20px;
  z-index: 1;
  background-color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
}

.pupil {
  position: absolute;
  margin-left: 5px;
  margin-top: 5px;
  z-index: 2;
  background-color: black;
  border-radius: 50%;
  width: 10px;
  height: 10px;
}
/* 
.bouche {
  position: absolute;
  margin-left: 97px;
  margin-top: 25px;
  width: 50px;
  height: 50px;
  background-color: transparent;
  border-radius: 50%;
  box-shadow: -3px 5px 0px 0px black;

} */

.bouche{
  position: absolute;
  margin-left: 80px;
  margin-top: 40px;
  width: 67px;
  height: 36px;
  background-color: black;
  border-radius: 45%;
}

.bouche-cache{
  margin-left: 82px;
  margin-top: 40px;
  width: 67px;
  height: 36px;
  border-radius: 40%;
  background-color: orange;
  transform: translateX(0px) translateY(-2px);
}


.nageoire {
  margin-top: -100px;
  background-color: orange;
  width: 80px;
  height: 50px;
  border-radius: 50%;
  transform: rotate(45deg);
}

.nageoire-bottom {
  margin-top: -10px;
  transform: rotate(-45deg);
}

/* sea bottom */
.sea-bottom {
  position: absolute;
  bottom: 0px;
  left: 0px;
  background-color: #c2b280;
  height: 20px;
  width: 100%;
}

.bubbles {
  background-color: white;
  opacity: 0.5;
  position: absolute;
  bottom: 0px;
  z-index: 5;
  margin-right: 0px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  animation-name: up;
  animation-duration: 4s;
  animation-iteration-count: infinite;
}

.bubble-1 {
  left: 50px;
}

.bubble-2 {
  left: 100px;
  animation-duration: 3s;
}

.bubble-3 {
  left: 450px;
  animation-duration: 5s;
}

.bubble-4 {
  left: 750px;
  animation-duration: 4s;
}

.bubble-5 {
  left: 1050px;
  animation: up 4s infinite;
}

.bubble-6 {
  left: 1250px;
  animation: up 8s infinite;
}

/* Animations */

/* Bubbles movements */
@keyframes up {
  0% {
    bottom: 0px;
  }
  100% {
    bottom: 800px;
  }
}

/* Fish movements */
@keyframes nage {
  0% {
    transform: translateY(0px) translateX(10px) rotate(0deg);
  }
  20% {
    transform: translateY(50px) translateX(250px) rotate(20deg);
  }
  40%{
    transform: translateY(100px) translateX(500px);
  }
  60%{
    transform: translateY(50px) translateX(850px) rotate(-20deg);
  }
  80% {
    transform: translateY(-100px) translateX(1100px) rotate(-30deg);
  }
  100% {
    transform: translateY(10px) translateX(1400px) rotate(0deg);
  }
}
