* {
    box-sizing: border-box;
}

body {
    margin: 0;
    max-width: 100vw;
    max-height: 100vh;
    overflow: hidden;
    background-color: rgb(10, 5, 59);
}

.back-wave {
    background: url("img/back-wave.png") no-repeat center fixed; 
    background-size: cover;
    position: fixed;
    z-index: -1;
    width: 100%;
    height: 100%;
    animation: waves 3s infinite alternate;
  }

.front-wave {
    background: url("img/front-wave.png") no-repeat center fixed; 
    background-size: cover;
    z-index: 1;
    width: 100%;
    height: 100%;
    position: fixed;
    animation: waves 3s -2s infinite alternate;
}

.flex {
    display: flex;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
    position: relative;
}

.boat {
    position: fixed;
    bottom: 120px;
    left: 0;
    animation: boat-move 35s infinite ease-in-out;
}

.boat img{animation: boat-shake .8s infinite alternate;}

.fish {
    position: fixed;
    left: 50%;
    bottom: 0vh;
    transform: translate(-50%, -50%);
    animation: fish-move 7s infinite linear;
    animation-delay: -3s;
}

.fish2 {
    position: fixed;
    left: 50%;
    bottom: 0vh;
    transform: translate(-50%, -50%);
    animation: fish-move 7s infinite linear;
    animation-delay: -4s;
}

.fish3 {
    position: fixed;
    left: 50%;
    bottom: 0vh;
    transform: translate(-50%, -50%);
    animation: fish-move2 7s infinite linear;
    animation-delay: -11s;
}


@keyframes boat-move {
    0% {
        transform: translateX(-330px);
    }
    100% {
        transform: translateX(100vw);
    }
}

@keyframes fish-move {
    0% {
        transform: rotate(360deg) translateX(30vw) rotate(-360deg);
    }
    100% {
        transform: rotate(0deg) translateX(30vw) rotate(0deg);
    }
}

@keyframes fish-move2 {
    0% {
        transform: rotate(0deg) translateX(30vw) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(30vw) rotate(-360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(45deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes waves {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(20px);
    }
}

@keyframes boat-shake {
    0% {
        transform: translateY(0); 
    }
    100% {
        transform: translateY(15px);
    }
}
