/* Body & achtergrond */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    position: relative; /* Voor positionering van zoekformulier */
}

/* Zoekformulier fixed bovenaan */
.zoekformulier {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid grey;
}

/* Form-groepen marges */
.zoekformulier .form-group {
    margin-bottom: 10px;
}

/* Zoekbutton centreren en stylen */
.zoekformulier .form-inline button.zoekenBtn {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    display: block;
    margin: auto;
    padding: 10px 20px;
    border-radius: 5px;
}

.zoekformulier .form-inline button.zoekenBtn:hover {
    background-color: #0056b3;
}

/* Boeken-container met flex wrap en gap */
.boeken-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 20px;
    padding: 20px;
    margin-top: 120px;
}

/* Boekkaarten met styling */
.boek {
    flex: 1 1 250px;
    max-width: 250px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    text-align: left;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.boek:hover {
    transform: translateY(-5px);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

/* Boek afbeeldingen */
.boek img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

/* Boek tekst */
.boek h3 {
    margin: 10px 0;
    font-size: 18px;
    font-weight: bold;
}

.boek p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

/* Beschrijving met ellipsis */
.beschrijving {
    max-height: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Paginering */
.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    gap: 5px;
    padding: 10px;
    border-radius: 8px;
    background-color: transparent;
}

.pagination a {
    padding: 10px 15px;
    text-decoration: none;
    color: #007bff;
    border: 1px solid #007bff;
    border-radius: 5px;
    background-color: white;
    transition: background-color 0.2s, color 0.2s;
}

.pagination a:hover {
    background-color: #007bff;
    color: white;
}

.pagination a.active {
    background-color: #0056b3;
    color: white;
    border-color: #0056b3;
}

/* Home button fixed rechtsboven */
.home-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4a90e2;
    color: white;
    padding: 12px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.home-button:hover {
    background: #357abd;
    transform: scale(1.05);
}

/* Toggle knop styling - idem als algemeen */
.toggle-btn {
  background: #007bff;
  border: none;
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toggle-btn::after {
  content: "▼";
  transition: transform 0.3s ease;
}

.zoekformulier.ingekapt .toggle-btn::after {
  transform: rotate(-90deg);
}

#zoekcontent {
  margin-top: 10px;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
  max-height: 1000px;
  opacity: 1;
}

.zoekformulier.ingekapt #zoekcontent {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  margin-top: 0;
}

/* Responsive voor mobiel in ipad.css */
@media (max-width: 600px) {
  .form-inline {
    flex-direction: column;
  }

  .form-group {
    margin-bottom: 10px;
  }

  .form-control {
    width: 100%;
  }

  .zoekenBtn {
    width: 100%;
    padding: 12px;
    font-size: 18px;
  }
}
