*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}
body{
    background-color: rgb(31, 21, 56);
}
.container1{
    width: 25rem;
    height: 25rem;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}
.container1 img {
    width: 100%;
    transition: all 1s;
}
.container1 .content{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    /* center the text  */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    transition: all 1s;
    background-color: rgb(104, 92, 92);
    transform: translate(-100%);
}
.container1:hover .content{
    transform: translateX(0);
}
.container1:hover img{
    transform: translateX(100%);
}
/* image 2 */
.container2{
    width: 25rem;
    height: 25rem;
    margin-top: -25rem;
    margin-left: 30rem;
    position: relative;
    overflow: hidden;
}
.container2 img {
    width: 100%;
    transition: all 1s;
}
.container2 .content{
    position: absolute;
    bottom: 0;
    left: 0;
    height: 25%;
    width: 100%;
    /* center the content  */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    transition: all 0.5s;
    background-color: rgb(104, 92, 92);
    transform: translateY(100%);
}
.container2:hover .content{
    transform: translateY(0);
}
.container2:hover img{
    transform: translateY(-25%);
}
/* image 3 */
.card{
    position: relative;
    width: 25rem;
    height: 25rem;
    margin-left: 58rem;
    margin-top: -25rem;
    background-color: black;
    box-shadow: 0px 30px 30px rgba(0, 0, 0, 0.5);

}
.contentt{
    position: absolute;
    bottom: 0;
    width: 80%;
    height: 10px;
    background: rgb(104, 92, 92);
    left: 10%;
    text-align: center;
    transition: 0.5s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.contentt h3{
    font-size: 30px;
    text-transform: uppercase;
    margin: 30px;
    color: black;
}
.contentt p{
    width: 80%;
    margin: 10px auto;
    font-size: 18px;
    transition: 0.5s;
    opacity: 0;
    line-height: 25px;
    color: black;

}
.card img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 1s;
}
.contentt a{
    text-decoration: none;
    background-color: black;
    color: white;
    padding: 10px 15px;
    display: inline-block;
    margin-top: 10px;
    transition: 0.5s;
    opacity: 0;
    line-height: 25px;
    color: white;
}
.card:hover .contentt{
    height: 100%;
    width: 100%;
    left: 0%;
}
.card:hover p,
.card:hover a{
    opacity: 1;
    transition-delay: 0.5s;
}
.img-container{
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    transition: 1s;
}
.card:hover img{
    opacity: 0;
}