.canva4 {
    border-style: ridge;
    border-color: rgb(19, 196, 19);
    border-width: 2px;
    width: 300px;
    height: 250px;
    margin: auto;
    padding: auto;
}

@keyframes rect-rotate {
    0% {
        transform: none;
    }
    20% {
        transform: rotate(0);
    }
    80% {
        transform: rotate(180deg);
    }
    100% {
        transform: rotate(180deg);
    }
}

@keyframes fill-rect {
    0%{
        transform: none;
        opacity: 0;
    }
    50% {
        transform: none;
        opacity: 0;
    }
    80% {
        height: 100%;
    }
    100% {
        height: 0%;
    }
}

.animation4 {
    left: 25%;
    top: 20%;
    transform-origin: center center;
    color: #33f;
    width: 150px;
    height: 150px;
    position: relative;
    border: 4px solid;
    display: inline-block;
    animation: rect-rotate 6s linear infinite alternate;
}

.animation4::after {
    content: "";
    height: 0px;
    width: 100%;
    height: 100%;
    display: block;
    background: #46d839;
    opacity: 0.5;
    animation: fill-rect 6s linear infinite forwards;
}

.wave{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    overflow: hidden;
}
.wave_wrapper{
    width: 200%;
    height: 150%;
    position: absolute;
    top: -25%;
    right: 0;
    bottom: 0;
    left: -50%;
    margin: 0 auto;
    animation: animation01_wave_wrapper 1s linear forwards;
}
@keyframes animation01_wave_wrapper{
    0%{
        transform: rotate(0);
    }
    25%{
        transform: rotate(15deg);
    }
    50%{
        transform: rotate(0);
    }
    75%{
        transform: rotate(-15deg);
    }
    100%{
        transform: rotate(0);
    }
}
.wave_box{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    background-color: #33f;
    opacity: 0.8;
    transform-origin: bottom;
    animation: animation01_wave_box 6s linear infinite forwards;
    opacity: 0;
}
@keyframes animation01_wave_box{
    0%{
        transform: scale3d(1,0,1);
        opacity: 0.8;
    }
    20%{
        transform: scale3d(1,1,1);
        opacity: 0.8;
    }
    80%{
        transform: scale3d(1,1,1);
        opacity: 0;
    }
    100%{
        transform: scale3d(1,1,1);
        opacity: 0;
    }
}
