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

Bách khoa toàn thư mở Wikipedia
.container{
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    to right,
    #6f7280,
    #2a2c3c,
    #181827,
    #833ab4,
    #fd1d1d,
    #fcb045
  );
  background-size: 400% 400%;
  animation: gradientBG 10s infinite ease-in-out;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  font-family: "Gabriola", "Cambria", serif;
}
@keyframes gradientBG {
  0% {
    background-position: 0 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}
.container .card {
  margin: 50px;
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-self: center;
  width: 400px;
  padding: 20px 30px;
  background: #F8F5E4;
  border-radius: 10px;
  box-shadow: -6px -6px 20px rgba(255,255,255,1), 6px 6px 20px rgba(0,0,0,0.1);
}
.container .card:hover
{
  box-shadow: inset -6px -6px 20px rgba(255,255,255,0.5), inset 6px 6px 20px rgba(0,0,0,0.1);
}
.container .card .imgBx
{
  width: 300px;
  height: 450px;
}
.container .card .imgBx .img
{
  background-image: url(https://upload.wikimedia.org/wikipedia/commons/5/59/Postcard_from_the_Panama-Pacific_Exposition.jpg);
	background-size:cover;
	height: 100%;
    width: 100%;
}
.container .card .contentBx
{
	
  flex: 1;
  margin-top: 20px;
  text-align: center;
}
.container .card .contentBx .h2
{
  color: #B49900;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 2px;
}

.container .card .contentBx .h3
{
  color: #888;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 2px;
}
.container .card .contentBx p
{
  color: #BDAA42;
}
.container .card .contentBx a
{
  display: inline-block;
  padding: 20px 30px;
  margin: 25px;
  border-radius: 10px;
  color: #BDAA42;
  font-size: 16px;
  text-decoration: none;
  box-shadow: -4px -4px 15px rgba(255,255,255,1), 4px 4px 15px rgba(0,0,0,0.1);
}
.container .card .contentBx a:hover
{
  box-shadow: inset -4px -4px 10px rgba(255,255,255,0.5), inset 4px 4px 10px rgba(0,0,0,0.1);
}
.container .card span a
{
  display: block;
  transform: scale(0.98);
}
.container .card:hover .imgBx,
.container .card:hover .contentBx
{
  transform: scale(0.98);
}
@media only screen and (min-width: 550px) and (max-width: 1124px) {
	.container .card {
		margin: 30px;
		width: 300px;
	}
	.container .card .imgBx{
        width: 180px;
        height: 260px;
}
    .container .card .contentBx{
        margin-top: 18px;
}
	.h2{
		font-size: 24px;
	}
	.h3{
		font-size: 15px;
	}
	.container .card .contentBx a{
		font-size: 12px;
		margin: 15px;
	}
	}
@media screen and (max-width: 550px) {
	.container{
		background:none;
	}
	.container .card {
		
		width: 200px;
	}
	.container .card .imgBx{
        width: 120px;
        height: 180px;
}
     .container .card .contentBx{
        margin-top: 15px;
}
	.container .card .contentBx .h2{
		font-size: 16px;
	}
	.container .card .contentBx .h3{
		font-size: 11px;
	}
	.container .card .contentBx a{
		font-size: 10px;
		margin: 10px;
	}
	}