/* Zorgt voor de vloeiende beweging */
html {
  scroll-behavior: smooth;
}

/* Styling van de knop */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #0099ff;
  color: white;
  width: 40px;
  height: 40px;
  text-decoration: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 1000;
}

.back-to-top:hover {
  background-color: #555;
}

html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    background-image: url("https://images.unsplash.com/photo-1742770711842-c29e32ee01d9?auto=format&fit=crop&q=80");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #000;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.page {
    padding: 20px 10px 40px;
}

main{
    flex: 1;
}

footer{
  background-color: #091420;
  color: rgb(0, 0, 0);
  padding: 20px;
  text-align: center;
}

.navbar {
    display: flex;
    align-items: center;
    background-color: rgb(86, 145, 255);
    padding: 10px 20px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.nav-logo {
    width: 180px;
    height: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 1;
    gap: 10px;
    margin-left: 20px;
}

.nav-links li {
    flex: 1;
}

.nav-links a {
    display: block;
    width: 100%;
    text-align: center;
    color: rgb(203, 229, 252);
    text-decoration: none;
    font-size: clamp(14px, 1.6vw, 20px);
    background-color: navy;
    padding: 10px 14px;
    border-radius: 10px;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgb(116, 179, 255);
}

h1 {
    margin: 20px auto 20px;
    max-width: 900px;
    width: 90%;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
    align-content: center;
}

.over-mezelf {
    background-color: rgb(128, 192, 255);
    border: 2px solid black;
    border-radius: 8px;
    padding: 10px;
}

p,
.tekst-box {
    margin: 0 auto 20px;
    max-width: 900px;
    width: 90%;
    font-size: 18px;
    background-color: rgb(203, 229, 252);
    border: 3px solid black;
    border-radius: 10px;
    padding: 20px;
    text-align: justify;
}

.content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
    align-items: flex-start;
}

.text {
    flex: 2 1 px;
    height: auto;
    max-width: 100%;
    margin-right: 6%;
}

.image-box {
    flex: 1 1 250px;
    background-color: rgb(42, 68, 94);
    border-radius: 10px;
    padding: 1%;
    border: 2px solid rgb(30, 162, 250);
    display: flex;
    justify-content: center;
    width: 60%;
    max-width: 700px;
}

img {
    max-width: 80%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.img-small {
    max-width: 200px;
}

.img-medium {
    max-width: 90%
}

.img-large {
    width: 100%;
    max-width: 700px;
    margin: 20px auto;
    display: block;
}

.schema {
    margin: 20px auto;
    max-width: 900px;
    width: 90%;
    display: flex;
    justify-content: center;
}

.media-gallery {
    max-width: 1100px;
    width: 95%;
    margin: 0 auto; /* centreert perfect */
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.media-gallery img {
    flex: 1 1;
    max-width: 350px;
    border: 3px solid black;
    border-radius: 10px;
    background-color: rgb(203, 229, 252);
    width: 100%;
    margin-bottom: 20px;
    align-content: center;
}

.video-wrapper {
    max-width: 900px;
    width: 100%;
    margin: 20px auto;   /* centreert de volledige container */
    display: flex;
    flex-direction: column;
    align-items: center; /* centreert de video's */
}

.video-wrapper video {
    width: 100%;
    max-width: 900px;    /* voorkomt dat ze te breed worden op pc */
    height: auto;
    border-radius: 10px;
    border: 3px solid black;
    background-color: #000;
    margin: 20px 0;
}


table {
    width: 100%;
    max-width: 900px;  
    margin: 30px auto;
    border-collapse: collapse;
    background-color: white;
    border: 3px solid #1e3a8a;
    border-radius: 10px;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

th {
    background-color: #4b90ff;
    color: white;
    padding: 14px;
    font-size: 18px;
    border-bottom: 3px solid #001b64;
}

td {
    padding: 12px;
    font-size: 16px;
    border-bottom: 1px solid #1e3a8a55;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: #e0edff;
}

.center-block {
    margin: 30px auto 0;
    max-width: 900px;
    width: 90%;
    display: flex;
    justify-content: center;
}

.footer {
    width: 100%;
    background-color: rgba(0, 0, 50, 0.75);
    padding: 25px 0;
    margin-top: 60px;
    text-align: center;
    border-top: 3px solid black;
}

.footer p {
    margin: 0;
    font-size: clamp(18px, 2vw, 24px);
    color: rgb(203, 229, 252);
    font-weight: bold;
}

.thumb {
  width: 200px;
  cursor: pointer;
  transition: 0.3s;
}

.thumb:hover {
  opacity: 0.8;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.lightbox:target {
  display: flex;
}

@media (max-width: 900px) {
    .navbar {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .nav-logo {
        width: 150px;
        margin-bottom: 10px;
    }

    .nav-links {
        width: 100%;
        gap: 8px;
    }

    .content {
        flex-direction: column;
        align-items: center;
    }

    .image-box {
        width: 90%;
    }
}

@media (max-width: 600px) {
    .nav-links {
        flex-direction: column;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        width: 100%;
    }

    h1,
    p,
    .tekst-box {
        width: 95%;
    }

    .media-gallery {
        width: 95%;
    }

}
