
@import url("https://fonts.googleapis.com/css?family=Baloo+Paaji|Open+Sans:300,300i,400,400i,600,600i,700,700i");


.main{
  width: 100%;
  height: 100vh;
  background: url(../imgs/underr.jpg) center center no-repeat;
  overflow: hidden;
  position: relative;
  background-size: cover;
}
.speakerCloseMed {
  position: absolute;
  width: 50px;
  height: 50px;
  background: url(../imgs/sclose.png) center center no-repeat;
  top: 20px;
  right: 20px;
  z-index: 5000000;
  cursor: pointer;
}
.soundButton
{
  position: absolute;
  width: 50px;
  height: 50px;
  top: 20px;
  left: 20px;
  z-index: 500000;
  cursor: pointer;
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  background: url(../imgs/sonoff.png) center center no-repeat;
  border: 0;
}

.fish{
 width: 60px;
 height: 30px;
 position:absolute;
 z-index:99;
}
.fishText
{
  position: absolute;
  width: 322px;
  height: 50px;
  line-height: 23px;
  text-align: center;
  font-size: 21px;
  font-weight: bolder;
  color: #fff;
  font-family: "Baloo Paaji";
  margin: 50px;
  z-index: 99999999;
  bottom: -40px;
  left: calc(50% - 216px);
  left: -webkit-calc(50% - 216px);
  left: -moz-calc(50% - 216px);
  opacity: 0.4;
}

.fish.left .fish-body{
  transform: scaleX(-1);
}
.fish.fish-type1 .fish-body{
  --main-skin:#ffa453;
}
.fish.fish-type2 .fish-body{
  --main-skin:#f6594a;
}
.fish.fish-type3 .fish-body{
  --main-skin:#16baff;
}
.fish.fish-type4 .fish-body{
  --main-skin:#ffc516;
}
.fish.fish-type5 .fish-body{
  --main-skin:rgb(82, 151, 100);
}
.fish.fish-type6 .fish-body{
  --main-skin: #e75efb;
}
.fish-main{
  transition: .3s all;
}
.fish-body{
  position: relative;
  margin-left: 6px;
  width: 50px;
  height: 30px;
  border-radius: 50% 50%;
  border-bottom:1px solid rgba(0, 0, 0, .12);
  border-top:1px solid rgba(0, 0, 0, .06);
  background-color: var(--main-skin);
  transition: 1s all;
  transform-origin: 50% 50%;
}
.fish-body::before {
  content: '';
  display: block;
  position: absolute;
  left: -11px;
  width: 0;
  height: 0;
  border-left: solid 25px var(--main-skin);
  border-top: solid 15px transparent;
  border-bottom: solid 15px transparent;
  animation: move2 .24s linear infinite;
}
.fish-body::after {
  content: '';
  display: block;
  position: absolute;
  top: 8px;
  left: 34px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: black;
  box-shadow: 0px 0px 0 2px white;
}
.fish-fins{
  width: 0;
  height: 0;
  border-left: solid 6px var(--main-skin);
  border-top: solid 3px transparent;
  border-bottom: solid 3px transparent;
  position: absolute;
  top: 17px;
  left: 20px;
  filter: brightness(5.5);
  opacity: .1;
  animation: move .24s linear infinite;
  transform-origin: 100% 100%;
}
.bubble{
  width: 5px;
  height: 5px;
  position: absolute;
  animation: up 5s linear;
  animation-fill-mode: forwards;
}
.bubble-body{
  width: 5px;
  height: 5px;
  border:1px solid rgb(255,255,255);
  border-radius: 50%;
  position:absolute;
  left: 60px;
  top: 10px;
  opacity: 1;
  animation: sway 3s linear infinite;
}
.food{
 width: 10px;
 height: 7px;
 position: absolute;
 opacity: 1;
}
.food-body{
 position: absolute;
 width: 10px;
 height: 7px;
 border-radius: 45% 42%;
 background: #00ff60;
 animation: sway 3s linear infinite;
}
@keyframes move{
  0%{
      opacity: .1;
      transform: scaleX(1);
  }

  50%{
      opacity: .15;
      transform: scaleX(1.3);
  }

  100%{
      opacity: .1;
      transform: scaleX(1) ;
  }
}
@keyframes up{
  0%{
      opacity: 1;
      transform: translateY(0);
  }
  100%{
      opacity: 0;
      transform: translateY(-600px);
  }
}
@keyframes sway{
  0%,20%,40%,60%,80%,100%{
      transform: translateX(0px)  rotate(0);
  }
  10%,30%,50%,70%,90%{
      transform: translateX(-10px)  rotate(30deg);
  }
}
@keyframes move2{
  0%{
      opacity: .9;
      transform: scaleX(1);
  }

  50%{
      opacity: 1;
      transform: scaleX(1.3);
  }

  100%{
      opacity: .9;
      transform: scaleX(1) ;
  }
}