html, body {
    margin: 0;
    display: flex;
    flex-direction: column;
}

body { 
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    font-family: Arial;
}

/* ---------------- HEADER ---------------- */
#headerbckground {
    background-color: #00DBB5;
    width: 100%;
    height: 5em;
    position: relative;
}

#headerlogo {
    position: absolute;
    top: 0.5em;
    left: 1em;
    width: 4em;
    height: auto;
}

/* Navigation */
#headernav {
    position: absolute;
    top: 1.5em;
    left: 6em; /* adjust to give space after logo */
    font-family: Arial, sans-serif;
    font-size: 1.2em;
    z-index: 1000;
}

#headernav ul {
    list-style: none;  /* remove bullets */
    margin: 0;
    padding: 0;
}

#headernav li {
    display: inline-block; /* horizontal layout */
    margin-right: 2em;
}

#headernav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: 0.3s;
}

#headernav a:hover {
    color: #FFD700;
    text-decoration: underline;
}


.navtext {
    margin-right: 2em;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: 0.3s;
}

.navtext:hover {
    text-decoration: underline;
    color: #FFD700;
}

#afspraakbutton {
    display: inline-block;
    padding: 1em 2em;
    background-color: #00DBB5;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s;
}

#afspraakbutton:hover {
    background-color: #00C2A0;
    color: #FFD700;
    text-decoration: underline;
}

#contentbckground {
    flex: 1;
    background-image: none;
    background-repeat: no-repeat;
    background-size: cover;
    margin-left: 2em;
    margin-right: 20em;
}

#contentlinks {
    width: 50%;
    margin-left: 2em;
    text-align: center;
}

#totaallogo {
    position: absolute;
    top: 4em;
    right: 4em;
}

#textrechts {
    width: 50%;
    position: absolute;
    top: 25em;
    right: 4em;
    text-align: left;
    font-size:large;
}

#overmijtitel {
    margin: auto;
    width: 10%;
    padding: 1em;
}

.overmijtext {
    text-align: justify;
    font-size: 1.1em;
    color: #444;
    width: 70%;
    margin-left: 2em;
}

#wietitel {
    margin: auto;
    width: 20%;
    padding: 1em;
}

#wielijst {
    text-align: justify;
    font-size: 1.1em;
    color: #444;
    width: 75%;
    float: right;
    margin-right: 2em;
}

.wietext {
    text-align: justify;
    font-size: 1.1em;
    color: #444;
    width: 75%;
    margin-right: 3em;
    float: right;
}

.aanpaktitel {
    margin: auto;
    width: 20%;
    padding: 1em;
}

.aanpaktext {
    text-align: justify;
    font-size: 1.1em;
    color: #444;
    width: 65%;
    margin-left: 2em;
    float: left;
}

.aanpaklijst {
    text-align: justify;
    font-size: 1.1em;
    color: #444;
    width: 75%;
    margin-left: 2em;
    float: left;
}

.contacttitel {
    padding: 1em;
}

.contactblok {
    width: 60%;
    margin-left: 2em;
    text-align: justify;
    font-size: 1.1em;
    color: #444;
}

.dienstlijst {
    text-align: justify;
    font-size: 1.1em;
    color: #444;
    width: 90%;
    margin-left: 2em;
}

.neitherapie {
    margin-left: 2em;
}

.hypnotherapie {
    margin-left: 2em;
}

.dienstentext {
    text-align: justify;
    font-size: 1.1em;
    color: #444;
    width: 90%;
    margin-left: 2em;
}

#anjafoto {
    position: absolute;
    top: 10em;
    right: 5em;
    height: 400px;
}

#neifoto {
    position: absolute;
    top: 65em;
    right: 5em;
    height: 300px;
}

/* ---------------- FOOTER ---------------- */
#footerbckground {
    background-color: #00DBB5;
    width: 100%;
    height: 4em;
    position: relative;
    margin-top: 2em;
}
#footerlogo {
    position: absolute;
    top: 1em;
    right: 1em;
    width: 4em;
    height: auto;
}
#footerlogo2 {
    position: absolute;
    top: 1em;
    right: 6em;
    width: 4em;
    height: auto;
}
#footernav {
    position: absolute;
    top: 1.5em;
    left: 1em; /* adjust to give space after logo */
    font-family: Arial, sans-serif;
    font-size: 1em;
    z-index: 1000;
}
#footernav ul {
    list-style: none;  /* remove bullets */
    margin: 0;
    padding: 0;
}
#footernav li {
    display: inline-block; /* horizontal layout */
    margin-right: 2em;
}
#footernav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: 0.3s;
}
#footernav a:hover {
    color: #FFD700;
    text-decoration: underline;
}
.footertext {
    margin-right: 2em;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: 0.3s;
}
.footertext:hover {
    text-decoration: underline;
    color: #FFD700;
}

/* Popup container */
.popup {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

/* The actual popup (appears on top) */
.popup .popuptext {
  visibility: hidden;
  width: 160px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -80px;
}

/* Popup arrow */
.popup .popuptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

/* Toggle this class when clicking on the popup container (hide and show the popup) */
.popup .show {
  visibility: visible;
  -webkit-animation: fadeIn 1s;
  animation: fadeIn 1s
}

/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity:1 ;}
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 768px) {
    /* Navbar */
    #headernav {
        position: static;   /* let it flow naturally */
        text-align: center;
        margin-top: 1em;
    }

#headernav ul {
    display: flex;
    flex-direction: row;  /* keep horizontal */
    flex-wrap: wrap;      /* wrap to next line if too long */
    gap: 1em;
    justify-content: center; /* optional: center the nav */
}


    #headernav li {
        display: block; /* vertical stacking */
    }

    .navtext {
        display: block;  /* each link on its own line */
        margin: 0.3em 0;
        font-size: 1em;
    }


    /* Content layout */
    #contentruimte {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 1.5em 1em;
        gap: 1.5em;
        padding-bottom: 3em; /* add space for footer */
        font-family: Arial, sans-serif;
    }

    #contentlinks,
    #contentrechts {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        text-align: center;
        position: static; /* cancel absolute positioning */
    }

    /* Images */
    #totaallogo,
    #anjafoto,
    #neifoto {
        position: static; /* cancel absolute positioning */
        display: block;
        max-width: 90%;
        height: auto;
        margin: 1em auto;
    }

    /* Right text */
    #textrechts {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        text-align: justify;
        font-size: 1em;
        line-height: 1.5;
        position: static; /* cancel absolute positioning */
    }

    /* Button centered */
    #afspraakbutton {
        display: block;
        margin: 1.5em auto;
    }
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  z-index: 999;
}

.modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: 80%;
  max-width: 700px;
  max-height: 80%;
  overflow-y: auto;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  display: none;
  z-index: 1000;
}

.modal h2 {
  margin-top: 0;
  color: #00DBB5;
}

.modal-content {
  font-size: 1em;
  line-height: 1.5;
  color: #444;
}

.modal button {
  margin-top: 20px;
  padding: 10px 20px;
  background: #00DBB5;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.modal button:hover {
  background: #00C2A0;
}

