

.boat {
    display: block;
    /*background-color: orange; */
    z-index: -1;
    width: 100px;
    height: 130px;
    position: absolute;
    bottom: 5%;
    animation-name: move_boat;
    animation-duration: 20s;
    animation-delay: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: cubic-bezier(.10, .10, .48, .50);
    animation-direction: normal;
}

.boat img {
    width: 100px;
    height: 130px;
}

.fish2 {
    display: block;
    z-index: 0;
    width: 60px;
    height: 40px;
    position: absolute;
    top: 0;
    animation-name: fish2;
    animation-duration: 20s;
    animation-delay: 0s;
    animation-iteration-count: infinite;
    animation-timing-function: cubic-bezier(.04, 1, .63, .08);
    animation-direction: normal;
}

.fish2 img {
    width: 60px;
    height: 40px;
}

.fish3 {
    display: block;
    z-index: -1;
    width: 60px;
    height: 40px;
    position: absolute;
    top: 0;
    animation-name: fish3;
    animation-duration: 12s;
    animation-delay: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: cubic-bezier(0, 1, .38, .41);
    animation-direction: normal;
}
.fish3 img {
    width: 60px;
    height: 40px;
}

/* .shark_chase {
    display: block;
    opacity: 0;
    width: 161px;
    height: 100px;
    position: absolute;
    top: 50%;
    right: 0%;
    animation-name: shark_chase;
    animation-duration: 80s;
    animation-delay: 60s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-direction: normal;
}

.shark_chase img {
    width: 161px;
    height: 100px;
} */

.bubble {
    bottom: -10px;
    opacity: 1;
    position: absolute;
    display: block;
    background: #fff;
    border-radius: 50%;
    animation-iteration-count: infinite;
    animation-direction: normal;
}

.bubble0 {
    width: 8px;
    height: 8px;
    left: 10%;
    z-index: -1;
    animation-name: air-bubble-large;
    animation-duration: 4s;
    animation-delay: 1s;
    animation-timing-function: ease-in;
}

.bubble1 {
    width: 8px;
    height: 8px;
    left: 25%;
    animation-name: air-bubble-small;
    animation-duration: 4s;
    animation-delay: 2s;
    animation-timing-function: cubic-bezier(0, 1, .90, .38)
}

.bubble2 {
    width: 8px;
    height: 8px;
    left: 50%;
    animation-name: air-bubble-small;
    animation-duration: 8s;
    animation-delay: 1s;
    animation-timing-function: ease-in;
}

.bubble3 {
    width: 8px;
    height: 8px;
    left: 75%;
    z-index: -1;
    animation-name: air-bubble-large;
    animation-duration: 6s;
    animation-delay: 3s;
    animation-timing-function: ease-in-out;
}


@keyframes move_boat {
    0% {
      bottom:5%; left:0; transform: rotate(10deg);
    }
    25% { 
       bottom:20%; left:25%;  transform: rotate(20deg);
    }
    50% {
      bottom:10%; left:50%;
    }
    75% {
       bottom:30%; left:75%; transform: rotate(-15deg);
    }
    100% {
        bottom:20%; left: 88%; transform: rotate(10deg);
    }
}

@keyframes fish2 {
    0% {top: 1%; left: 60%; transform: scaleX(-1);}
    25% {top: 20%; left: 80%; transform: scaleX(-1);}
    25.1% {transform: scaleX(1);}
    26% {top: 20.5%; left: 79.5%;}
    50% {top: 30%; left: 70%; }
    75% {top: 15%; left: 60%; transform: scaleX(1);}
    75.1% {top: 15.5%; left: 60.5%; transform: scaleX(-1);}
    76% { top: 16%; left: 61%; transform: scaleX(-1);}
    100% {top: 25%; left: 92%; transform: scaleX(-1); }
}

@keyframes fish3 {
    0% {top: 10%; left: 5%; transform: scaleX(-1);}
    25% {top: 15%; left: 10%; transform: scaleX(-1);}
    25.1% {transform: scaleX(1);}
    26% {top: 14.5%; left: 9.5%;}
    50% {top: 10%; left: 7%; transform: scaleX(1)}
    50.1% {transform: scaleX(-1);}
    50.2% {top: 10.5%; left: 7.1%;}
    75% {top: 15%; left: 20%; transform: scaleX(-1);}
    75.1% {top: 14.9%; left: 19%; transform: scaleX(1);}
    100% {top: 7%; left: -10%;}
}

/* @keyframes shark_chase {
    0% {opacity: 1; top: 50%; right: -10px;}
    2.5% {opacity: 1; top: 60%; right: 25%;; transform: rotate(35deg);}
    5% {opacity: 1; top: 40%; right: 50%; transform: rotate(10deg);}
    7.5% {opacity: 1; top: 55%; right: 75%; transform: rotate(35deg);}
    10% {opacity: 1; top: 40%; right: 100%; transform: rotate(10deg);}
    100% {opacity: 0; top: 40%; right: 100%; transform: rotate(30deg);}
} */

@keyframes air-bubble-small {
    0% {
        bottom: 0;
        opacity: 0;
    }
    15% {
        opacity: .6;
        width: 12px;
        height: 12px;
    }
    100% {
        bottom: 100%;
        opacity: 1;
        width: 16px;
        height: 16px;
    }
}

@keyframes air-bubble-large {
    0% {
        bottom: 0;
        opacity: 0;
    }
    15% {
        opacity: .6;
        width: 18px;
        height: 18px;
    }
    45% {
        opacity: .75;
        width: 24px;
        height: 24px;
    }
    75% {
        opacity: .85;
        width: 30px;
        height: 30px;
    }
    100% {
        opacity: 1;
        width: 35px;
        height: 35px;
        bottom: 100%;
    }
}


