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


h1{
  text-align: center;
  padding: 30px;
  font-size: 45px;
  color: rgb(242, 169, 249);
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

body{
  background-color: #c186cb;
}
header{
  background-color: #6d2f6f;
  padding: 20px;
}
a:link{
max-width: 300px;
height: 290px;
}
article{
max-width: 300px;
height: 290px;
background-color: rgb(172, 39, 159);
position:relative;
}
a {
  color: rgb(212, 115, 221);
  transition: color 0.5s; font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
} 

a:hover {
 color: rgb(255, 255, 255);
}
figure{
  width: 100%;
  margin: 0;
  padding: 0;
}
#cards{
  display: grid;
  grid-template-columns: 1fr;
 /* min-width: 500px; */
  aspect-ratio: 11 / 3;
  padding: 2rem;
  gap: 3rem;
}

#cards img{
  width: 100%;
  aspect-ratio: 19/10;
  object-fit: cover;
  top: 0;
}

#cards article{
  border-radius: 20px;
}

#cards figure{
  position: relative;
}


#cards section{
  position: absolute;
  bottom: 0;
  top: 14.12rem;
}

#cards .top{
  opacity: 0;
  position: absolute;
  top: 1.7rem;
  left:0;
  transition: 0.25s;
}

#cards a:hover .top{
  opacity: 1;
  transform: translateY(-1.7rem);
}


#cards a:hover section{
  transform: translateY(-1rem);
  transition: transform 0.25s;
}

#cards p{
  opacity: 0;
  text-align: center;
  margin-top: 5px;
}

#cards a:hover p{
  opacity: 1;
  transition: 0.25s;
}

#cards h3{
  font-size: 25px;
  text-align: center;
}
@media only screen and (min-width: 1250px) {
  #cards{
      grid-template-columns: 1fr 1fr 1fr;
      
  }
}
@media only screen and (min-width: 1700px) {
  #cards{
      grid-template-columns: 1fr 1fr 1fr 1fr;
  }
  
}