body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    margin: 20px;
}

h1, h3{
    text-align: center;
}

#search {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    display: block;
    padding: 8px;
    font-size: 16px;
}

.country {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
}
#content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}


ul {
    list-style: none;
    padding-left: 0;
}

li {
    margin: 5px 0;
}

a {
    color: #0645ad;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}
#surprise {
    display: block;
    margin: 10px auto 25px auto;
    padding: 10px 16px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    background: #4caf50;
    color: white;
    border-radius: 4px;
}

#surprise:hover {
    background: #43a047;
}
.legend {
  display: flex;
  justify-content: center;  
  gap: 16px;
  margin-bottom: 20px;
  font-weight: 600;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .legend {
    gap: 12px;
  }
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.legend-item.active {
  opacity: 1;
}

.legend-item:hover {
  opacity: 1;
}

.legend-item::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  background: #999;
}

/* kleuren */
.legend-item.tv::before { background: #e74c3c; }
.legend-item.krant::before { background: #2980b9; }
.legend-item.radio::before { background: #27ae60; }
.legend-item.online::before { background: #8e44ad; }
.legend-item.nieuwsbureau::before { background: #f39c12; }

/* Alles (neutraal bolletje) */
.legend-item[data-type="all"]::before {
  background: #333;
}


a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  filter: brightness(1.15);
}
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filters button {
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid #ccc;
  background: #f8f8f8;
  cursor: pointer;
  font-weight: 500;
}

.filters button.active {
  background: #333;
  color: white;
  border-color: #333;
}

.filters button:hover {
  background: #eaeaea;
}
