@import url("./style.css");

.waves{
    margin-left: 0px;
    padding-left: 0px;

    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 20vh;

    background: #3586ff;
}

.wave{
    position: absolute;
    top: -100px;

    width: 100%;
    height: 100px;
    background: url("../imgs/wave.png");
    background-size: 1000px 100px;
}

#wave1{
    z-index: 2;
    opacity: 1;
    animation: waveAnimation 5s linear infinite;
}

#wave2{
    z-index: 2;
    opacity: 0.2;
    animation: waveAnimation 2.3s ease-in-out infinite;

    bottom: 15px;
}

#wave3{
    z-index: 3;
    opacity: 0.8;
    animation: reverseWaveAnimation 4s ease-in infinite;

    bottom: 18px;
}

#wave4{
    z-index: 1;
    opacity: 0.4;
    animation: reverseWaveAnimation 3s ease-out infinite;

    bottom: 10px;
}

@keyframes waveAnimation {
    from{
        background-position: 1000px;
        top: -100px;
    }
    to{
        background-position: 0px;
        top: -40px;
    }

    0%{
        background-position: 1000px;
        top: -100px;
    }
    50%{
        top: -40px;
    }
    100%{
        background-position: 0px;
        top: -100px;
    }
}
@keyframes reverseWaveAnimation {
    0%{
        background-position: 0px;
        top: -40px;
    }
    50%{
        top: -100px;
    }
    100%{
        background-position: 1000px;
        top: -40px;
    }
}

.sea_fish{
    position: absolute;
    z-index: 5;
    
    width: 96px;
    height: 96px;
    object-fit: contain;

    pointer-events: auto;
}