/* Definieer het font-face voor Bariol */
@font-face {
    font-family: 'Bariol';
    src: url('fonts/bariol_regular-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Bariol';
    src: url('fonts/bariol_bold-webfont.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'Bariol';
    src: url('fonts/bariol_regular_italic-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Bariol';
    src: url('fonts/bariol_bold_italic-webfont.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}


body {
    font-family: 'Bariol', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #004380;
    font-size: 1.2em;
}

header {
    background-color: #00838a;
    color: white;
    padding: 20px;
    text-align: center;
    font-family: 'Bariol', sans-serif;
    font-weight: bold;
     font-size: 1.1em;
    margin-bottom: 5px;
}

main {
    padding: 20px;
    display: flex;
    justify-content: center;
}

.wachttijden-overzicht {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 50%;
    max-width: 1200px;
}

.intro-text {
   font-size: 1.3em;
   line-height: 1.6;
   margin-bottom: 15px;
}

/* Stijl voor de filter container */
.filter-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* Uitlijnen aan de linkerkant */
  margin: 10px 0 20px;
}

.filter-button {
  display: inline-block;
  padding: 5px 10px;
  margin: 1px;
  border: 1px solid #ddd;
  border-radius: 2px;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
  min-width: 30px; /* Zorg dat de buttons niet te klein worden */
}

.filter-button.active,
.filter-button.available.active {
  background-color: #002240;
  color: white;
  border-color: #002240;
}

.filter-button.available {
    background-color: #E6ECF2;
    color: #004380;
    border-color: #E6ECF2;
}

.filter-button.unavailable {
    background-color: white;
  color: #888;
  border-color: #ddd;
  cursor: default;
}

.filter-button:hover,
.filter-button.active:hover,
.filter-button.available.active:hover {
    color: #F39700;
    transition: color 0.1s;
}

.filter-letter {
    font-size: 2em; /* Maak de letter groot */
    font-weight: bold;
    color: #004380;
    margin-bottom: 10px;
     margin-top: 15px;
  display: inline-block;
   margin-right: 5px;
  vertical-align: top;
}

.waiting-times-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.waiting-times-table th,
.waiting-times-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.waiting-times-table th:first-child,
.waiting-times-table td:first-child {
    width: 600px;
    white-space: normal;
    word-wrap: break-word;
}

.waiting-times-table th:nth-child(2),
.waiting-times-table td:nth-child(2) {
    width: 80px;
}

.waiting-times-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* Media query voor schermen kleiner dan 768px (mobiele telefoons) */
@media (max-width: 768px) {
    .wachttijden-overzicht {
        width: 95%; /* Maak het overzicht bijna de volledige breedte van het scherm */
        padding: 15px; /* Kleinere padding */
      max-width: 95%;
    }

     .filter-letter {
      font-size: 1.5em; /* Maak de letter kleiner */
    }

    .waiting-times-table th:first-child,
    .waiting-times-table td:first-child {
        width: auto; /* Laat de kolom zich aanpassen aan de content */
    }
    .waiting-times-table th:nth-child(2),
    .waiting-times-table td:nth-child(2) {
        width: 60px; /* Maak de wachttijd kolom iets smaller */
    }
}