html, body {
  height: 100%;         
  margin: 5;          
  display: flex;
  flex-direction: column; 
}



.logo {
  height: 50px;
  float: right;
}


/*-----------nav-bar-----------*/


.topnav {
  display: flex;
  justify-content: center;
  align-items: center; 
  background-color: #333;
  padding: 10px;
  border-radius: 50px;
  max-width: 100%;
}

.topnav a {
  font-family: Sans-serif;
  width: fit-content;
  max-width: 80px;
  max-height: 30px;
  color: #f2f2f2;
  text-align: center;
  padding: 8px 10px;
  text-decoration: none;
  font-size: 16px;
  background-color: #333;
  border: 2px solid #2e9e44;
  border-radius: 50px;
  margin: 0 auto; 
}

.topnav a:hover {
  background-color: #60d477;
  color: white;
}

.topnav a.active {
  background-color: #2e9e44;
  color: white;
}

 


/*---------scroll-bar-------------*/ 
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: #ffffff; 
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #888; 
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #666;
}

/*----------------------*/ 


/*---------producten-------------*/ 


h1 {
  margin-top: 20px;
}

h4{
  align-items: center;
  justify-content: center;
  display: flex;
  font-family: sans-serif;
}

/* Categorie knoppen */
.categories {
  margin: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: sans-serif;
  background-color: #333;
  border-radius: 50px;
}


.category-btn {
  padding: 10px 15px;
  margin: 5px;
  border: none;
  background-color: #2e9e44;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
}

.category-btn.active, .category-btn:hover {
  background-color: #2e9e44;
}

/* Product grid */
.product-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  font-family: sans-serif;
  
}

/* Product cards */
.product-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  width: 250px;
  padding: 15px;
  text-align: center;
  display: block;
}

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

.product-card h2 {
  font-size: 18px;
  color: #333;
  flex-grow: 1;
}

.product-card p {
  font-size: 14px;
  color: #666;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  background-color: #2e9e44;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  font-family: sans-serif;
}

.btn:hover {
  background-color: #60d477;
}

/* Verberg standaard producten en toon alleen bij filtering */
.hidden {
  display: none;
}

/*------------------dropdown menu------------*/

.categories-dropdown {
  display: none; /* Verborgen tenzij scherm kleiner is dan 380px */
  text-align: center;
  margin: 20px;
}

.categories-dropdown select {
  padding: 10px;
  font-size: 16px;
  border-radius: 10px;
}


@media screen and (max-width: 380px) {
  .categories {
      display: none; /* Verberg de knoppen */
  }
  
  .categories-dropdown {
      display: block; /* Toon de dropdown */
  }
}

/*----------------------*/ 









/*-------dark-mode------*/
.light-mode {
  background-color: white;
  color: black;
  transition: background-color 0.3s, color 0.3s;
}

.dark-mode {
  background-color: #121212;
  color: white;
}

.darkmodebutton {
  background: none;
  border: none; 
  cursor: pointer;
  float: right;
  margin-top: center;
}

.dark-mode .product-card {
  background: #1e1e1e; 
  color: white;
  box-shadow: 0px 4px 8px rgba(255, 255, 255, 0.1);
}
.dark-mode h1, 
.dark-mode h2, 
.dark-mode h3, 
.dark-mode h4, 
.dark-mode h5, 
.dark-mode h6, 
.dark-mode p, 
.dark-mode a, 
.dark-mode span {
    color: white; /* Zorgt ervoor dat alle tekst wit wordt */
}


/*----------------------*/




/*----------footer------------*/

footer {
  background-color: #333;
  color: #f2f2f2;
  padding: 20px;
  text-align: left;
  margin-top: 15px;
  margin-bottom: 15px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 98%;
}


.footer-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1200px;
}


.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
}


.footer-left {
  display: flex;
  gap: 50px;
}


.footer-section {
  min-width: 200px;
}


.footer-section h4 {
  font-size: 17px;
  margin-bottom: 12px;
}


.footer-section a {
  color: #2e9e44;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}


footer p {
  font-size: 14px;
  line-height: 1.5;
}


.footer-license {
  flex-grow: 1; 
  text-align: center;
  padding-top: 10px;
}


/*----------------------------phone view------------------------*/

@media (max-width: 768px) {
  footer {
    width: 89%;
  }

  .footer-row {
    flex-direction: column;
    align-items: center;
    text-align: center;

  }

  .footer-left {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}


/*------------------------------------stuur een bericht-------------------------- */
.footer-section form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 350px;
    justify-content: center;
    align-items: center;
}

.footer-section input, 
.footer-section textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #2e9e44;
    border-radius: 10px;
    font-size: 14px;
}

.footer-section textarea {
    height: 100px;
    resize: none;
}

.footer-section button {
    background-color: #2e9e44;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 10px;
}

.footer-section button:hover {
    background-color: #60d477;
}



/*----------------------*/