.header {
  text-align: center;
  color: #3a81cd;
  font-family: 'Roboto', sans-serif;
  margin-top: 1rem;
  grid-column: 1 / 4;
  grid-row: 1;
  background-color: #e8f0fe;
  border-radius: 12px;
  border: solid 1px #e8f0fe;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
  width: 97%;
  margin-bottom: 0;
}

.container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 2rem;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  justify-items: center;
  padding: 2rem;
  width: 80%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
}

.zoekSection {
  grid-column: 1 / 4;
  grid-row: 2;
  width: 100%;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

#zoekInput {
  width: 90%;
  max-width: 600px;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
  transition: border-color 0.3s ease;
}

#zoekInput:focus {
  border-color: #3a81cd;
  outline: none;
}

#itemContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  width: 100%;
  padding-top: 1rem;
}

.item-card {
  background-color: #e8f0fe;
  border-radius: 12px;
  border: solid 1px #e8f0fe;
  padding: 15px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.item-card:hover {
  transform: translateY(-5px);
}

.item-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #3a81cd;
  font-size: 1.2rem;
}

.item-card p {
  color: #3a81cd;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* items */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
    padding: 20px;
}
  
.item-card {
  padding: 15px;
  background-color: #e8f0fe;
  cursor: pointer;
}
  
.item-card:hover {
  transform: translateY(-5px);
}

/* offline melding */
#offlineBanner {
  font-size: large;
  font-family: 'Roboto', sans-serif;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ff6b6b;
  color: black;
  text-align: center;
  padding: 10px;
  z-index: 1000;  
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
  display: none;
}
  

/* menu */
body {margin: 0;}

.sidenav-logo {
    width: 100%;
    height: auto;
    display: block;
    top: 0;
}
  
ul.sidenav {
  list-style-type: none;
  margin: 0;
  top: 0;
  padding: 0;
  width: 10%;
  background-color: #f1f1f1;
  position: fixed;
  height: 100%;
  overflow: auto;
}

ul.sidenav li a {
  display: block;
  color: #000;
  padding: 8px 16px;
  text-decoration: none;
  font-size: large;
  font-family: 'Roboto', sans-serif;
}

ul.sidenav li a.active {
  background-color: #3a81cd;
  color: white;
}

ul.sidenav li a:hover {
  background-color: #3a81cd;
  color: white;
}


div.content {
  margin-left: 25%;
  padding: 1px 16px;
  height: 1000px;
}

@media screen and (max-width: 1135px) {

  .header, .zoekSection {
    width: 100%;  
    margin-left: 0;
    margin-right: 0;
    padding-left: 0px;
    padding-right: 0px;
  }

  ul.sidenav {
    width: 100%;
    height: auto;
    position: relative;
  }
  
  ul.sidenav li a {
    float: left;
    padding: 15px;
  }

  .sidenav-logo {
    display: none;
  }
  
  div.content {margin-left: 0;}
}

@media screen and (max-width: 530px) {
  ul.sidenav li a {
    text-align: center;
    float: none;
  }

  .sidenav-logo {
    display: none;
  }
}