* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
@font-face {
  font-family: "Figtree";
  src: url("./assets/fonts/Figtree-ExtraBold.ttf") format("truetype");
  font-weight: 800;
}

@font-face {
  font-family: "Figtree";
  src: url("./assets/fonts/Figtree-Medium.ttf") format("truetype");
  font-weight: 500;
}

@font-face {
  font-family: "Figtree";
  src: url("./assets/fonts/Figtree-Italic-VariableFont_wght.ttf")
    format("truetype");
  font-style: italic;
  font-weight: 500 800;
}

@font-face {
  font-family: "Figtree";
  src: url("./assets/fonts/Figtree-VariableFont_wght.ttf") format("truetype");
  font-weight: 500 800;
}

body {
  font-family: "Figtree", sans-serif;
  background-color: hsl(47, 88%, 63%);
  color: hsl(0, 0%, 7%);
  line-height: 1.6;
}
/* for medium weight text */
.medium-text {
  font-weight: 500;
}
/* for extra bold text */
.bold-text {
  font-weight: 800;
}
/* for italic text */
.italic-text {
  font-style: italic;
}
section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  /* cursor: pointer; */
  /* height: 100vh; */
}
.card_background {
  padding: 2rem;
  margin: 0;
  border-radius: 20px;
  background-color: hsl(0, 0%, 100%);
  border: 0.1px solid hsl(0, 0%, 7%);
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
  /* box-shadow: 3px 3px red, -1em 0 0.4em; */
  box-shadow: 7px 7px hsl(0, 0%, 7%);
  /* height: 100%; */
  width: 400px;
  justify-content: center;
  align-items: center;
  display: grid;
}

.card_background:hover {
  box-shadow: 10px 10px hsl(0, 0%, 7%);
  transition: all 0.3s ease-in-out;
  transform: translateX(-5px);
  cursor: pointer;
}

/* for the card image */
.card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.card_content {
  /* border: 2px solid hsl(0, 0%, 7%); */
  border-radius: 8px;
}

.card_title h1 {
  font-size: 1rem;
  background-color: hsl(47, 88%, 63%);
  width: 90px;
  padding-left: 8px;
  margin-top: 8px;
  margin-bottom: 8px;
  border-radius: 4px;
}

.card_title p {
  font-size: 0.8rem;
  color: hsl(0, 1%, 16%);
  margin-bottom: 12px;
}

.card_text h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.card_text p {
  font-size: 0.9rem;
  color: hsl(0, 1%, 16%);
  margin-bottom: 12px;
}

.card_author {
  display: flex;
  justify-content: flex-start;
  /* border: 2px solid hsl(0, 0%, 7%) */
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.card_author img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.card_author h3 {
  font-size: 0.9rem;
  color: hsl(0, 1%, 16%);
}

.attribution {
  font-size: 11px;
  margin-top: 2rem;
  margin-bottom: 1rem;
  width: 100%;
  position: fixed;
  left: 0;
  bottom: 0;
  background: transparent;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

@media screen and (max-width: 768px) {
  section {
    min-height: 95vh;
    margin: 0;
  }
  .card_background {
    width: 50%;
    margin: 2rem;
    /* padding: 12rem; */
  }
  .attribution {
    position: relative;
    bottom: 0;
    left: 0;
    z-index: 100;
    margin-top: 1rem;
  }
}
@media screen and (max-width: 480px) {
  .card_background {
    width: 90%;
    padding: 1rem;
  }
  .card_title h1 {
    font-size: 0.8rem;
    width: 70px;
  }
  .card_text h2 {
    font-size: 1.2rem;
  }
  .card_text p {
    font-size: 0.8rem;
  }
  .card_author img {
    width: 25px;
    height: 25px;
  }
  .card_author h3 {
    font-size: 0.8rem;
  }
}
