/* CSS voor de header.php */

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.wrapper {
    flex-grow: 1;
}

header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: auto;
    background-color:lightgray;
    padding: 10px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        margin-bottom: 0;
    }
}

/* Links in de header: klikbaar logo ======================================== */

#webshopLogoDiv {
    display: flex;
    justify-content: flex-start;
    width: 33%;
}

@media (max-width: 600px) {
    #webshopLogoDiv {
        justify-content: center;
    }
}

#webshopLogoLink {
    
}

img#webshopLogo {
    width: 200px;
    height: auto;
}

img#darkmode {
    width: 20px;
    height: auto;
}
/* Midden in de header: links naar pagina's ================================= */

nav#navHeader {
    width: 33%;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav#navHeader ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    padding: 0;
    margin: 0;
    /* background-color: #fff; */
}

nav#navHeader ul li {
    margin: 0 10px;
}

a.linkHeader {
    text-decoration: none;
    color: #333;
    padding: 10px 15px;
    display: block;
    position: relative;
    transition: font-size 0.3s ease;
}

/* Lijn onder actieve of hover-link */

a.linkHeader::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background-color: #333;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

a.linkHeader:hover::after {
    width: 100%;
}

a.linkHeader.actievePagina {
    font-weight: bold;
    cursor: default;
}
a.linkHeader.actievePagina::after {
    width: 100%;
}

@media (max-width: 600px) {
    nav#navHeader {
        margin-top: 8px;
    }
    nav#navHeader ul {
        flex-direction: column;
    }
    nav#navHeader ul li {
        text-align: center;
    }
}

/* Rechts in de header: gebruiker en menu's ================================ */

div#gebruikerEnMenusHeader {
    width: 33%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 20px;
}

/* Gebruiker 'knop' */

div#gebruikerHeader {
    padding-bottom: 10px;
}

a#gebruikerTekst {
    display: inline-block;
    padding: 8px 20px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: 0.3s;
}

a#gebruikerTekst:hover {
    background-color: #ccc;
    color: #fff;
    border-color: #ccc;
}

/* Menu knoppen */

div#menusHeader {
    display: flex;
    flex-direction: row;
}

div#menusHeader img.menuHeaderAfbeelding {
    width: auto;
    height: 30px;
    cursor: pointer;
    padding: 4px 5px;
}

div#menusHeader img.menuHeaderAfbeelding.actief {
    outline: 2px solid black;
    border-radius: 4px;
    /* padding: 2px; */
}

/* Winkelmand toggle met badge */

#winkelmandToggleContainer {
    position: relative;
    display: inline-block;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 5px;
    font-size: 12px;
}

#mobileMenu {
    display: none; 
    top: 26px; 
    right: 15px;
    z-index: 999;
    position: fixed;
}

#mobileMenuImage {
    width: 40px;
    height: auto;
    transition: 0.3s;
}

#mobileMenuImage:hover {
    cursor: pointer;
    width: 45px;
    height: auto;
}

@media (max-width: 600px) {
    #mobileMenu {
        display: block; 
    }
    div#gebruikerEnMenusHeader {
        display: none;
        width: 80%;
        padding-top: 15px;
        padding-right: 0;
        align-items: center;
    }
    nav#navHeader {
        display: none;
    }
}

/* Popup menu's ============================================================ */

div.popupMenu {
    position: absolute;
    right: 20px;
    background-color: lightgray;
    border: 1px solid #ccc;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 99999;
}

/* Wishlist popup */

div#wishlistDiv {
    background-color: lightgray;
    border: none;
    border-radius: 16px;
    padding: 5px;
}

/* Winkelmandje popup */

div#winkelmandDiv {
    background-color: lightgray;
    border: none;
    border-radius: 16px;
    padding: 0;
}

/* Toegankelijkheid popup */

div#toegankelijkheidDiv {
    background-color: lightgray;
    border: none;
    border-radius: 16px;
    padding: 5px;
}

div#toegankelijkheidDiv ul li:not(:last-child) {
    margin-right: 5px;
}

div#toegankelijkheidDiv ul{
    display: flex;
    list-style: none;
    margin: 10px;
    padding: 0;
}

.verborgen {
    display: none;
}

@media (max-width: 600px) {
    div.popupMenu {
        margin-top: 15px;
        width: 90%;
    }
    div#toegankelijkheidDiv ul {
        justify-content: center;
    }
}

/* open dyslexic font ===================================================== */

@font-face {
    font-family: 'OpenDyslexicMono-Regular';
    src: url('../assets/OpenDyslexicMono-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Basisstijl voor de knop */
.schakelknopLettertype {
    cursor: pointer;
    background-color: transparent;
    background-image: url('../assets/openDyslexic.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 24px;
    height: 24px;
    border: none;
}

/* Stijlen voor het dyslexic-lettertype */
body.dyslexic-font {
    font-family: 'OpenDyslexicMono-Regular', sans-serif;
}

input, button {
    font-family: inherit;
}

.themeToggle {
    cursor: pointer;
    background-color: transparent;
    background-image: url('../assets/darkmode.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 24px;
    height: 24px;
    border: none;
}

/* Nieuwe stijl voor de groene knop */
.groene-knop {
    background-color: green;
    border-radius: 20%;
}