body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 20px;
    text-align: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 840px;
    margin: 0 auto 20px auto;
    text-align: left;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.header-tekst h1 {
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.header-tekst p {
    color: #7f8c8d;
    margin: 0;
}

.opties-box {
    background-color: #f8f9fa;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    padding: 15px;
    min-width: 250px;
}

.opties-box h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1rem;
}

.optie-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #34495e;
}

.optie-item input {
    margin-right: 10px;
    transform: scale(1.2);
    cursor: pointer;
}

.categorie-sectie {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin: 0 auto 30px auto;
    max-width: 800px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.categorie-titel {
    color: #2c3e50;
    font-size: 1.3rem;
    text-align: left;
    margin: 10px 0 5px 0;
    padding-bottom: 5px;
    border-bottom: 3px solid #bdc3c7;
}

h2 {
    color: #34495e;
    font-size: 1.1rem;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 8px;
    text-align: left;
    margin-top: 15px;
}

.soundboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.klank-knop {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 0;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 3px 0 #2980b9;
}

/* Categorie-specifieke kleuren */
.volledig-alfabet .klank-knop { background-color: #3498db; box-shadow: 0 3px 0 #2980b9; }
.korte-klinkers .klank-knop { background-color: #00d2d3; box-shadow: 0 3px 0 #00a8ff; }
.lange-klinkers .klank-knop { background-color: #2ecc71; box-shadow: 0 3px 0 #27ae60; }
.doffe-klanken .klank-knop { background-color: #f1c40f; box-shadow: 0 3px 0 #f39c12; }
.tweetekenklanken .klank-knop { background-color: #e67e22; box-shadow: 0 3px 0 #d35400; }
.drietekenklanken .klank-knop { background-color: #e74c3c; box-shadow: 0 3px 0 #c0392b; }

.m-zonder-stem-kort .klank-knop { background-color: #1abc9c; box-shadow: 0 3px 0 #16a085; }
.m-zonder-stem-lang .klank-knop { background-color: #16a085; box-shadow: 0 3px 0 #117a65; }
.m-met-stem-kort .klank-knop { background-color: #9b59b6; box-shadow: 0 3px 0 #8e44ad; }
.m-met-stem-lang .klank-knop { background-color: #8e44ad; box-shadow: 0 3px 0 #713d84; }

.klank-knop:hover { filter: brightness(1.05); }
.klank-knop:active { transform: translateY(3px); box-shadow: none; }

/* Kleutertekening pop-up overlay styling */
.afbeelding-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.afbeelding-content {
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.afbeelding-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    max-height: 600px;
    object-fit: contain;
}

#popup-titel {
    text-align: center;
    border: none;
    margin-top: 10px;
    font-size: 10rem;
    font-weight: bold;
}

.afbeelding-content .sluit-knop {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    font-weight: bold;
    color: #7f8c8d;
}

.home-knop-container {
    max-width: 840px;
    margin: 0 auto 20px auto;
    text-align: left;
}

.home-knop {
    background-color: #ffffff;
    color: #2c3e50;
    border: 2px solid #e2e8f0;
    padding: 10px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.home-knop:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
}

.home-knop:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}