*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial;
}

.content-all{
    width: 80%;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
}
.content-img {
    width: 300px;
    height: 244px;
    position: relative;
    overflow: hidden;
    margin: 10px;
    margin: auto;
    margin-top: 20px;
}
.content-img .ima {
    width: 100%;
    transition: all 300ms;
}
.content-1{
    width: 500px;
    height: 500px;
    position: absolute;
    top: 0;
    background: rgba(25, 166, 224, 0.5);
    transform: rotate(-25deg);
    margin-left: -450px;
    transition: all 300ms;
}
.content-2{
    width: 500px;
    height: 500px;
    position: absolute;
    top: 0;
    background: rgba(25, 166, 224, 1);
    transform: rotate(-25deg);
    margin-left: -500px;
    transition: all 450ms;
    
}
.content-3{
    width: 500px;
    height: 500px;
    position: absolute;
    top: 0;
    background: rgba(25, 166, 224, 0.5);
    transform: rotate(25deg);
    margin-left: -440px;
    margin-top: -300px;
    transition: all 600ms;
    box-shadow: 0px 1px 20px -5px black;
}
.content-4{
    width: 500px;
    height: 500px;
    position: absolute;
    top: 0;
    background: rgba(25, 166, 224, 2);
    transform: rotate(25deg);
    margin-left: -500px;
    margin-top: -300px;
    transition: all 750ms;
    box-shadow: 0px 1px 20px -5px black;
}
.content-img:hover .content-1{
    width: 270%;
    transition: all 300ms;
    
}.content-img:hover .content-2{
    width: 270%;
    transition: all 450ms;
    
}.content-img:hover .content-3{
    width: 230%;
    transition: all 600ms;
    
}.content-img:hover .content-4{
    width: 230%;
    transition: all 750ms;
}
.content-img:hover .ima{
    transform: scale(1.5);
    transition: all 300ms;
}
.content-txt{
    position: absolute;
    top: 0;
    padding: 10px;
    z-index: 1;
    color: rgb(255, 255, 255);
    text-align: center;
    margin-top: 0px;
}
.content-txt h2{
    font-size: 30px;
    opacity: 0;
    transform: scale(0,2);
    transition: all 300ms;
}
.im{
    opacity: 0;
    width: 100%;
    margin-left: -400px;
    transform: scale(0,2);
    transition: all 300ms;
}
.content-txt p{
     font-size: 20px;
     margin-top: 10px;
     opacity: 0;
     transform: scale(1.5);
     transition: all 300ms;
}
.content-img:hover .im{
    margin-top: 0px;
    margin-left: 0px;
    opacity: 1;
    transition: all 300ms;
    transform: scale(1);
}
.content-img:hover h2{
    margin-top: -2px;
    opacity: 1;
    transform: scale(1);
    transition: all 500ms;

}