@font-face {
  font-family: "Outfit";
  src: url(assets/fonts/Outfit-VariableFont_wght.ttf) format(truetype)
      tech(variations),
    url(assets/fonts/Outfit-VariableFont_wght.ttf) format(truetype-variations);
}
html {
  font-size: 18px;
  font-family: "Outfit";
  font-weight: 300;
  color: hsl(215, 51%, 70%);
}
main {
  display: grid;
  place-items: center;
  height: 100vh;
  width: 100vw;
  background-color: hsl(217, 54%, 11%);
}
.card {
  position: relative;
  width: 326px;
  height: 542px;
  background-color: hsl(216, 50%, 16%);
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  padding: 24px;
}
.img-container {
  position: relative;
  flex-shrink: 0;
  width: 278px;
  height: 278px;
  border-radius: 10px;
  overflow: hidden;
}
img {
  width: inherit;
}
.active-logo {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: hsla(178, 100%, 50%, 50%);
  display: grid;
  place-items: center;
  visibility: hidden;
}
.img-container:hover .active-logo {
  visibility: visible;
  cursor: pointer;
}
.active-logo img {
  width: 50px;
  opacity: 100%;
}
h1,
.author-name {
  color: hsl(0, 0%, 100%);
}
h1:hover,
.author-name:hover {
  color: hsl(178, 100%, 50%);
  cursor: pointer;
}
h1 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 26px;
  margin-bottom: 0;
}
p {
  font-size: 16px;
  line-height: 1.65;
  margin-top: 12px;
}
.nft-info {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  width: 100%;
  font-weight: 400;
}
.ethereum-section {
  color: hsl(178, 100%, 50%);
  display: flex;
  flex-grow: 1;
  gap: 6px;
}
.time-section {
  display: inline-flex;
  gap: 8px;
}
.time-section span {
  flex-shrink: 0;
}
.card-footer {
  display: flex;
  align-items: start;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid hsl(215, 32%, 27%);
}
.card-footer p {
  margin: 2px;
}
.author-img-container {
  width: 32px;
}
.author-img-container img {
  border: 1px solid white;
  border-radius: 50%;
}
.attribution {
  position: absolute;
  bottom: -25px;
  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}
@media screen and (min-width: 400px) {
  .card {
    width: 349px;
    height: 595px;
  }

  .img-container {
    width: 300px;
    height: 300px;
  }
  p {
    font-size: 18px;
    line-height: 1.5;
    margin-top: 18px;
    margin-bottom: 22px;
  }
  .nft-info {
    font-size: 16px;
    margin-bottom: 10px;
  }
  .card-footer {
    align-items: center;
  }
  .card-footer p {
    font-size: 16px;
  }
}
