@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;700&display=swap");
:root {
    --defaultwidth:20rem;
    --defaultheight:26.5rem;
}
body {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column wrap;
  height: 100vh;
  overflow-x: hidden;
  font-family: "Figtree", sans-serif;
  background-color: hsl(47, 88%, 63%);
}
figure{
  background-color: white;
  padding: 1rem;
  width: var(--defaultwidth);
  height: var(--defaultheight);
  border: 1px solid hsl(0, 0%, 42%);
  border-radius: 15px;
  box-shadow:0.5rem 0.5rem 0 hsl(0, 0%, 7%);
  position: relative;
}
img {
  width: 100%;
  height: auto;
  border: 1px solid transparent;
  border-radius: 15px;
  margin-bottom:0.6rem;
}
section{
    transform: translateY(-1rem);
}
h1{
    white-space: nowrap;
    color: hsl(0, 0%, 7%);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.littlebox {
  display: inline-block;
  padding: 0.5rem;
  background-color: hsl(47, 88%, 63%);
  color: hsl(0, 0%, 7%);
  font-weight: bolder;
  border-radius: 5px;
  margin-bottom: 0.5rem;
}
.person {
    font-weight: bolder;
  display: flex;
  flex-flow: row nowrap;
}
.person img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  margin-right: 0.5rem;
}
.description{
    color: hsla(228, 45%, 44%, 0.651);
    font-size:0.8rem;
}
.dateOfPublication{
    font-weight: bold;
}
@media screen and (min-width:551px) {
    figure{
        width:var(--defaultwidth);
        height:var(--defaultheight);
    }
}
@media screen and (min-width: 320px) and (max-width: 550px) {
    figure{
        width:15rem;
        height:auto;
    }
    h1{
        font-size: 1.2rem;
    }
}
figure::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: hsla(0, 0%, 100%, 0.3);
    border-radius: 15px;
    opacity: 0;
    transition: opacity ease-in-out 0.5s;
    pointer-events:none;
}
figure:hover::after{
   opacity:0.8;
}
h1{
    transition: color 0.5s;
}
h1:hover,
h1:active {
    color: gold;
}

