body {
  margin: 0;
  padding: 0;
  background-color: forestgreen;
}

header {
  background-color: white;
  padding: 10px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}
/*-----navbar section-----*/
.navbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  background-color: rgb(57, 61, 57);
  width: 100%;
}

.navbar a {
  flex: 1 1 auto;
  padding: 12px;
  color: white;
  text-decoration: none;
  font-size: 17px;
  text-align: center;
}



/* Add a background color on mouse-over */
.navbar a:hover {
  background-color: #000;
}

/* Style the current/active link */
.navbar a.active {
  background-color: #04AA6D;
}

/* Add responsiveness - on screens less than 500px, make the navigation links appear on top of each other, instead of next to each other */
@media screen and (max-width: 500px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar a {
    width: 100%;
    text-align: left;
  }
}

/*-----end navbar section-----*/

#products {
    padding: 10px;
}

/*-----tab section-----*/
.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Add padding BETWEEN each column */
.row,
.row > .column {
  padding: 8px;
}

/* Create three equal columns that floats next to each other */
.column {
  width: 20%;
  padding: 10px;
  box-sizing: border-box;
  display: none;
}

/* Clear floats after rows */ 
.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Content */
.content {
  background-color: white;
  padding: 10px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.content img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  margin-bottom: 10px;
}

.content h4 {
  margin: 0;
  padding: 0;
  font-size: 14px;
}

/* The "show" class is added to the filtered elements */
.show {
  display: block;
}

/* Style the buttons */
#tab {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px auto;
}

.btn {
  border: none;
  outline: none;
  padding: 12px 50px;
  background-color: white;
  cursor: pointer;
}

.btn:hover {
  background-color: #ddd;
}

.btn.active {
  background-color: #666;
  color: white;
}

/* Responsive fallback for smaller screens */
@media screen and (max-width: 1000px) {
  .column {
    width: 50%; /* 2 per row on tablets */
  }
}

@media screen and (max-width: 600px) {
  .column {
    width: 100%; /* 1 per row on phones */
  }
}
