@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Outfit:wght@100..900&display=swap");

:root {
  --yellow: hsl(47, 88%, 63%);
  --white: hsl(0, 0%, 100%);
  --gray-1: hsl(0, 0%, 42%);
  --gray: hsl(0, 0%, 7%);
}

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

body {
  font-family: "Figtree", sans-serif;
  background-color: var(--yellow);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}

.main__card {
  border: 2px solid black;
  padding: 25px;
  margin: 0 auto;
  max-width: 375px;
  width: 90%;
  background-color: var(--white);
  border-top-left-radius: 23px;
  border-top-right-radius: 23px;
  border-bottom-left-radius: 23px;
  border-bottom-right-radius: 23px;
  box-shadow: 10px 10px;
}

.figure img {
  width: 100%;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.intro {
  margin-top: 25px;
  background-color: var(--yellow);
  padding: 8px 15px;
  border-radius: 5px;
  display: inline-block;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
}

.date {
  font-size: 14px;
  padding-top: 20px;
  font-weight: 500;
}

.topic {
  padding-top: 20px;
  font-weight: bolder;
  font-size: 22px;
}

.topic:hover {
  color: var(--yellow);
  cursor: pointer;
}

.explanation {
  padding-top: 17px;
  color: var(--gray-1);
  line-height: 1.8;
}

footer {
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding-top: 20px;
}

.author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.author-name {
  display: flex;
  align-items: center;
  font-weight: bolder;
  font-size: 15px;
}
