@font-face {
  font-family: YoungSerif;
  src: url(./assets/fonts/young-serif/YoungSerif-Regular.ttf);
}

@font-face {
  font-family: Outfit;
  src: url(./assets/fonts/outfit/Outfit-VariableFont_wght.ttf);
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: hsl(30, 54%, 90%);
}

body h1 {
  font-family: YoungSerif;
  font-weight: 400;
}

p {
  font-family: Outfit;
}

.wrapper {
  width: 80%;
  max-width: 650px;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  margin-top: 100px;
  margin-bottom: 100px;
}
.wrapper img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
}

.preparation__time {
  background-color: hsl(330, 100%, 98%);
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: 8px;
  font-family: outfit;
}

.preparation__time h3 {
  margin: 0;
}

.preparation__time ul {
  padding-left: 20px;
}

.preparation__time li {
  padding: 6px;
  padding-left: 20px;
}

.ingredients ul {
  padding-left: 20px;
}

.ingredients li {
  padding: 6px;
  padding-left: 20px;
}

.instruction ol {
  padding-left: 20px;
}

.instruction li {
  padding: 6px;
  padding-left: 20px;
}

.ingredients h2 {
  font-family: YoungSerif;
  color: hsl(14, 45%, 36%);
  font-weight: 300;
}

.ingredients li {
  font-family: Outfit;
  margin: 4px;
}

hr {
  border: 0, 5px solid hsl(24, 5%, 18%);
}

.instruction h2 {
  font-family: YoungSerif;
  color: hsl(14, 45%, 36%);
  font-weight: 300;
}

.instruction li {
  font-family: Outfit;
  margin: 4px;
}

.nutrition {
  display: flex;
  flex-direction: column;
}

.nutrition h2 {
  font-family: YoungSerif;
  color: hsl(14, 45%, 36%);
  font-weight: 300;
}

table {
  font-family: Outfit;
  padding-left: 30px;
  border-collapse: collapse;
}

tr {
  border-bottom: 0.5px solid hsl(30, 18%, 87%);
}

th {
  text-align: left;
  font-weight: 400;
  color: hsl(30, 10%, 34%);
  padding-bottom: 8px;
  width: 50%;
  padding-left: 35px;
}

td {
  color: hsl(14, 45%, 36%);
  font-weight: 600;
}

@media (max-width: 768px) {
  .wrapper {
    margin-top: 0px;
    margin-bottom: 0px;
  }
}

.attribution {
  display: flex;
  justify-content: center;
  align-items: center;
}
