.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-right: 1px solid grey;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: auto;
  background: linear-gradient(to bottom, #fff5e6, #ffd700);
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar-link-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.sidebar p {
  font-weight: Bold;
  text-align: center;
}

.sidebar-link p {
  font-size: 1em;
  color: rgb(41, 40, 40);
  font-weight: 700;
  /* opacity: 1; */
}

.sidebar-link p:hover {
  /* color: black; */
  color: #5f370e;
}

/* .sidebar-link p.visited-p {
  color: brown;
} */

.logo {
  width: 25px;
  aspect-ratio: 1/1;
  fill-opacity: 0.7;
}

.sidebar-recipes-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0.5rem auto;
  padding: 0 1.2rem;
  list-style: none;
}

.sidebar-recipes-list li a {
  font-size: 0.9em;
  text-decoration: none;
  color: inherit;
}

.sidebar-recipes-list li a:hover {
  color: #5f370e;
}

/* .sidebar-recipes-list li a:visted {
  color: green;
} */

.sidebar-visited {
  color: green;
}

/******************************** Media queries ************************************/

@media screen and (max-width: 810px) {
  .sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.7rem 0.5rem;
  }

  .sidebar-link-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  .logo {
    width: 20px;
    aspect-ratio: 1/1;
    fill-opacity: 0.7;
  }

  .sidebar p {
    font-size: 0.85em;
  }

  .sidebar-recipes-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0.5rem auto;
    padding: 0 0.9rem;
    line-height: 1;
  }

  .sidebar-recipes-list li a {
    font-size: 0.7em;
    color: rgb(41, 40, 40);
    font-weight: 400;
  }
}

@media screen and (max-width: 600px) {
  .sidebar {
    display: none;
  }
}
