/* ===== Algemene instellingen ===== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #222;
    line-height: 1.6;
}
 

/*Navigatie */

nav
{
    padding: 15px;
}

nav ul
{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav li
{
    padding: 0 20px;
    border-right: 1px solid #333;
}

nav li:last-child
{
    border-right: none;
}

/* nav a 
{
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    color: black;
} */

nav a:hover
{
    text-decoration: underline;
    color: rgb(82, 133, 210);
}


/* ===== Kop en navigatie ===== */
header {
    padding: 30px 20px 0;
    text-align: center;
    background-color: #2e5e3e;
    color: white;
}
 
/* Menu horizontaal met Flexbox; wrap zorgt dat het op een telefoon past */
nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 15px;
}
 
nav a {
    font-size: 18px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 14px;
    border-radius: 6px;
}
 
/* Hover en huidige pagina krijgen een lichtere achtergrond */
nav a:hover,
nav a[aria-current="page"] {
    background-color: #4f8a63;
}
 
/* ===== Hoofdinhoud: elke sectie is een witte kaart ===== */
main {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}
 
main section,
main article {
    background-color: white;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 10px;
}
 
/* ===== Achtergrond per pagina ===== */
body.home    { background-color: #e8f3e8; }
body.lunch   { background-color: #fff3df; }
body.sport   { background-color: #e5f0ff; }
body.ict     { background-color: #ececec; }
body.tourism { background-color: #f3e8ff; }
 
/* Home: achtergrondafbeelding in de kop, met donkere laag voor leesbaarheid */
body.home header {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url("../images/Oisterwijk.jpg");
    background-size: cover;
    background-position: center;
}
 
/* ===== Afbeeldingen ===== */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
 
figure {
    margin: 20px 0 0;
}
 
figcaption {
    font-style: italic;
    text-align: center;
    margin-top: 6px;
}
 
/* ===== Lunch: kaarten naast elkaar (Flexbox) ===== */
.kaarten {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
 
.kaarten article {
    flex: 1 1 280px;
    margin-bottom: 0;
    transition: transform 0.2s;
}
 
.kaarten article:hover {
    transform: translateY(-6px);
}
 
/* ===== Sport: tabel ===== */
table {
    width: 100%;
    border-collapse: collapse;
}
 
caption {
    font-weight: bold;
    margin-bottom: 10px;
}
 
th, td {
    border: 1px solid #b8c8e0;
    padding: 10px;
    text-align: left;
}
 
th {
    background-color: #2c5a9a;
    color: white;
}
 
/* ===== ICT: tekst naast afbeelding ===== */
.bedrijf {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}
 
.bedrijf img {
    width: 250px;
    max-width: 100%;
}
 
.bedrijf div {
    flex: 1 1 300px;
}
 
/* ===== Tourism: kaart ===== */
iframe {
    width: 100%;
    height: 350px;
    border: 0;
    border-radius: 8px;
}
 
/* ===== Knoppen en invoer ===== */
button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 6px;
    background-color: #2e5e3e;
    color: white;
    cursor: pointer;
    font-size: 16px;
}
 
button:hover {
    opacity: 0.8;
}
 
input {
    padding: 8px;
    font-size: 16px;
    width: 70px;
}
 
/* ===== Voettekst ===== */
footer {
    text-align: center;
    padding: 20px;
    background-color: #2e5e3e;
    color: white;
}