/* Variables */
@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@500;800&display=swap");

:root {
  --Yellow: hsl(47, 88%, 63%);
  --White: hsl(0, 0%, 100%);
  --Gray-500: hsl(0, 0%, 42%);
  --Gray-950: hsl(0, 0%, 7%);

  --Font-Family: "Figtree", sans-serif;
}

/*  */
body {
  font-family: var(--Font-Family);
  background-color: var(--White);
  color: var(--Gray-950);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: var(--Yellow);
  p {
    font-size: 16px;
  }
  .container {
    width: 400px;
    main {
      .card {
        background: var(--White);
        box-shadow: 10px 10px 1px black;
        border-radius: 20px;
        overflow: hidden;
        padding: 20px;
        margin-bottom: 20px;
        .card-img {
          img {
            width: 100%;
            border-radius: 15px;
            margin-bottom: 20px;
          }
        }
        .card-body {
          a {
            text-decoration: none;
            color: var(--Gray-950);
            background: var(--Yellow);
            padding: 5px 10px;
            border-radius: 5px;
            font-weight: 800;
          }
          h4 {
            color: var(--Gray-500);
          }
          h2 {
            color: var(--Gray-950);
          }
          p {
            color: var(--Gray-500);
            line-height: 1.6;
          }
          .card-footer {
            display: flex;
            justify-content: start;
            margin-top: 20px;
            display: flex;
            align-items: center;
            img {
              width: 30px;
              height: 30px;
              border-radius: 50%;
              margin-right: 10px;
            }
            h5 {
              color: var(--Gray-950);
              font-weight: 800;
            }
          }
        }
      }
    }
    footer {
      /* Attribution */
      .attribution {
        font-size: 11px;
        text-align: center;
        a {
          color: hsl(228, 45%, 44%);
        }
      }
    }
  }
}
