body {
  margin: 0;
  display: flex;
  flex-direction: column;
  background-color: #F9FBFB;
  min-height: 100vh;
  font-family: "Roboto Slab", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

#header {
  width: 250px;
  background-color: #f2f2f2;
  color: rgb(0, 0, 0);
  height: 100px;
  padding: 20px;
  box-sizing: border-box;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  justify-content: center; /* horizontaal */
  align-items: center;     /* verticaal */
}

img {
  width: 50px;
  height: auto;
}

#sidebar {
  width: 250px;
  background-color: #f2f2f2;
  color: rgb(0, 0, 0);
  height: 100vh;
  padding: 20px;
  box-sizing: border-box;
  position: fixed;
  left: 0;
  top: 100px;
  transition: transform 0.3s ease;
}

#sidebar h2 {
  margin-top: 0;
}

#sidebar a {
  color: #b4b4b4;
  text-decoration: none;
  display: block;
  margin: 15px 0;
  padding: 10px;
  border: #b4b4b4 1px solid;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

#sidebar a.active {
  background-color: #ADD985;
  font-weight: bold;
  border: #eaeaea 0px solid;
  color: black;
  box-shadow: 0 2px 5px #aed985a8;
}

#sidebar a:hover:not(.active) {
  background-color: #b4d59669;
}

#content {
  margin-left: 250px;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
  flex: 1;
  max-width: calc(100% - 250px);
}

#toggleBtn {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #ADD985;
  border-radius: 50px;
  color: white;
  padding: 10px 15px;
  font-size: 16px;
  z-index: 1000;
}

#footer {
  background-color: #f2f2f2;
  color: #000;
  text-align: center;
  padding: 15px;
  margin-left: 250px;
  border-top: 2px solid #eaeaea;
}

#footer p {
  margin: 0;
  font-size: 14px;
}

#recepten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.recept-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.2s;
}

.recept-card:hover {
  transform: scale(1.03);
}

.recept-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.recept-card h3 {
  margin: 10px 0;
}

.recept-card p {
  margin: 5px;
  font-size: 0.9rem;
}

.voedingswaarde {
  color: #666;
  font-size: 0.8rem;
}

.doel {
  font-weight: bold;
}

#filter-buttons {
  text-align: center;
  margin: 20px 0;
}

#filter-buttons button {
  margin: 0 5px;
  padding: 8px 15px;
  border: none;
  border-radius: 50px;
  background-color: #a5a5a5;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s;
}

#filter-buttons button:hover {
  background-color: #b4adad;
}

#filter-buttons button.active {
  background-color: #ADD985;
  color: #000;
  font-weight: bold;
  box-shadow: 0 2px 5px #aed985a8;
}


@media (max-width: 768px) {
  #header {
    width: 100%;
    height: 70px;
    padding: 10px;
    top: 0;
  }

  #sidebar {
    width: 100%;
    height: 100vh; 
    top: 70px;
    transform: translateY(-100%);
  }

  #sidebar.hidden {
    transform: translateY(-100%);
  }

  #sidebar.show {
    transform: translateY(0);
  }

  #toggleBtn {
    display: block;
    border-radius: 50px;
  }

  #content {
    margin-left: 0;
    margin-top: 70px;
    max-width: 100%;
  }

  #footer {
    margin-left: 0;
  }
}
