/* =========================
   RESET & BASIS
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: #f4f4f4;
    color: #222;
}

/* =========================
   NAVIGATIE – DESKTOP
========================= */
.navigatie {
    position: sticky;
    top: 0;
    background: #222;
    padding: 10px 15px;
    z-index: 2000;
}

.navigatie ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

.navigatie a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Hamburger (standaard verborgen) */
.menu-toggle {
    display: none;
    font-size: 28px;
    color: #222;
    cursor: pointer;
    background: rgba(255, 255, 255, 0);
    padding: 8px 12px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* =========================
   MOBIELE NAVIGATIE (FLOATING)
========================= */
@media (max-width: 768px) {

    .navigatie {
        position: fixed;
        top: 10px;
        left: 10px;
        background: transparent;
        padding: 0;
    }

    .menu-toggle {
        display: block;
    }

    .navigatie ul {
        display: none;
    }

    .navigatie ul.show {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 60px;
        right: 10px;
        width: 160px;
        background: rgb(255, 255, 255);
        border-radius: 14px;
        padding: 10px;
        box-shadow: 0 6px 16px rgba(0,0,0,0.25);
        animation: fadeIn 0.25s ease;
    }

    .navigatie a {
        color: #222;
        padding: 10px;
        border-radius: 8px;
    }

    .navigatie a:hover {
        background: #f0f0f0;
    }
}

/* Animatie menu */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================
   SECTIES
========================= */
section {
    padding: 20px;
}

h1 {
    margin-bottom: 15px;
    font-size: 1.6rem;
}

#Emoties {
    min-height: 55vh;
}

/* =========================
   PICTOGRAMMEN
========================= */
.container ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.pictograms {
    background: white;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pictograms:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.pictograms img {
    width: 100%;
    max-width: 120px;
    margin-bottom: 10px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 600px) {
    h1 {
        font-size: 1.3rem;
    }

    .pictograms {
        padding: 10px;
        font-size: 0.95rem;
    }

    .pictograms img {
        max-width: 80px;
    }
}

@media (max-width: 400px) {
    .pictograms {
        font-size: 0.85rem;
    }

    .pictograms img {
        max-width: 65px;
    }
}

/* =========================
   KERNWOORDENSCHAT (FLOATING)
========================= */
#Kernwoordenschat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1500;
}

#Kernwoordenschat h1 {
    display: none;
}

#Kernwoordenschat ul {
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#Kernwoordenschat .pictograms {
    display: flex;
    align-items: center;
    font-size: 12px;
}

/* Kleinere schermen */
@media (max-width: 480px) {
    #Kernwoordenschat {
        bottom: 10px;
        right: 10px;
    }

    #Kernwoordenschat .pictograms {
        font-size: 10px;
    }
}


/* Achtergrond */
.popup {
    display: none; /* VERBORGEN bij laden */
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;

    align-items: center;
    justify-content: center;
}


/* Popup venster */
.popup-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 80%;
    max-width: 500px;
    text-align: center;
}


.eten-lijst {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.eten-lijst .pictograms {
    font-size: 1.5rem;
    padding: 20px;
    background: #f2f2f2;
    border-radius: 15px;
}

.sluit-knop {
    margin-top: 30px;      /* knop naar beneden */
    padding: 15px 30px;    /* groter maken */
    font-size: 1.5rem;     /* grotere tekst */
    border-radius: 12px;   /* afgeronde hoeken */
    border: none;
    background-color: #ff9800;
    color: white;
    cursor: pointer;
}

.sluit-knop:active {
    transform: scale(0.95);
}


@media (max-width: 768px) {
    .popup-content {
        width: 90%;
        max-width: 350px;
        padding: 20px;
    }

    .popup-content h2 {
        font-size: 1.4rem;
    }

    .eten-lijst {
        grid-template-columns: 1fr; /* 1 kolom i.p.v. 2 */
        gap: 15px;
    }

    .eten-lijst .pictograms {
        font-size: 1.2rem;
        padding: 15px;
    }

    .sluit-knop {
        font-size: 1.3rem;
        padding: 15px;
    }
}


