* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
}

/* HEADER */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-title img {
  width: 60px;
}

.logo-title h1 {
  font-family: 'Amatic SC', cursive;
  font-size: 3rem;
}

/* SEARCH */
.search {
  display: flex;
  width: 90%;
  max-width: 500px;
}

.search input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #aaa;
  border-right: none;
  border-radius: 5px 0 0 5px;
}

.search button {
  border: 1px solid #aaa;
  background: white;
  padding: 0.5rem;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}

.search img {
  width: 20px;
}

/* CARD */
.recipe-card {
  border: 1px solid #aaa;
  border-radius: 10px;
  margin: 1rem;
  padding: 1rem;
}

.recipe-card img {
  width: 100%;
  border-radius: 10px;
}

.recipe-content {
  margin-top: 1rem;
}

/* TAG */
.tag {
  display: inline-block;
  background: #eee;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 0.8rem;
}

/* TITLE */
.recipe-content h2 {
  font-family: 'Amatic SC', cursive;
  color: #2b7cff;
  margin: 0.5rem 0;
}

/* RATING */
.rating {
  display: block;
  margin: 0.5rem 0;
}

/* DESCRIPTION */
.description {
  margin-top: 0.5rem;
}

/* FOOTER */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

.social {
  display: flex;
  gap: 1rem;
}

.social img {
  width: 25px;
}

/* DESKTOP */
@media (min-width: 768px) {
  header {
    flex-direction: row;
    justify-content: space-between;
  }

  .recipe-card {
    display: flex;
    gap: 2rem;
    align-items: center;
  }

  .recipe-card img {
    width: 40%;
  }

  .recipe-content {
    width: 60%;
  }
}

/* MOBILE */
@media (max-width: 600px) {
  .description {
    display: none;
  }
}