Thành viên:Nguyenhai314/Nguyenhai314-5/styles.css

Bách khoa toàn thư mở Wikipedia
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

body{
    height: 100vh;
    background: #2f3238;

}
.container{
    margin: 30px;

}
.row{
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.image{
    background: #50a7ff;
    position: relative;
    flex: 1;
    max-width: 460px;
    height: 360px;
    margin: 20px;
    overflow: hidden;
}
.image .img{
	background-image: url(https://upload.wikimedia.org/wikipedia/commons/e/e2/Lake_Tekapo_01.jpg);
	background-size:cover;
	width: 100%;
	height: 100%;
    opacity: 0.6;
    position: relative;
    vertical-align: top;
    transition: 0.6s;
    transition-property: opacity;

}
.image:hover .img{
    opacity: 1;
}
.image .details{
	display: flex;
	flex-direction: column;
    z-index: 1;
    position: absolute;  
    top: 0;
    right: 0;
    color: #fff;
    width: 100%;
    height: 100%;

}
.h2{
	font-size: 22px;
}
.image .details .h2{
    text-align: center;
    font-size: 30px;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 70px;
    transition: 0.4s;
    transition-property: transform;
}
.image .details .h2 span{
    font-weight: 800;
}
.image:hover .details .h2{
    transform: translateY(-30px);

}
.image .details p{
    margin: 30px 30px 0 30px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transition: 0.6s;
    transition-property: opacity, transform;
}
.image:hover .details p{
    opacity: 1;
    transform:translateY(-40px);

}
.more{
	flex: 1;
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    bottom: -60px;
    transition: 0.6s;
    transition-property: bottom;
}
.image:hover .more{
    bottom: 0;

}
.more .read-more{
    color:#000;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
}
.more .read-more span{
    font-weight: 800;
}
@media (max-width: 1080px){
    .image{
        flex: 100%;
        max-width: 480px;
    }
}
@media (max-width: 400px){
    .image .details p{
        font-size: 16px;
    }
    .more .read-more{
        font-size: 18px;
    }
}