/* Inhoud voor lees.css */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 20px;
}

.keuzemenu-knop {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: background-color 0.3s, transform 0.2s;
}

.keuzemenu-knop:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

#instellingen-scherm {
    width: 95%;
    max-width: 1000px;
    margin: 40px auto;
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    text-align: center;
    color: #0056b3;
}

.container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.editor-paneel {
    flex: 2;
}

#woorden-overzicht {
    flex: 1;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    height: fit-content;
}

#overzicht-inhoud {
    font-size: 16px;
    line-height: 1.6;
    word-wrap: break-word;
}

.instelling-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instelling-item input[type="number"] {
    width: 60px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

#item-lijst {
    list-style-type: none;
    padding: 0;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    max-height: 260px;
    overflow-y: auto;
}

.item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.item:last-child { border-bottom: none; }

.item input[type="text"] {
    flex-grow: 1;
    max-width: 400px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.beweging-item-weergave {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #eaf4ff;
    padding: 8px;
    border-radius: 6px;
    max-width: 400px;
}

.beweging-item-weergave img {
    height: 24px;
    width: 24px;
}

/* --- AANGEPAST: Mooiere knoppen --- */
.item button {
    margin-left: 10px;
    background: linear-gradient(145deg, #ff6b6b, #e74c3c);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.item button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.actie-knoppen {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.plus-knop {
    background: linear-gradient(145deg, #2ecc71, #28b463);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.plus-knop:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

#start-knop {
    margin-top: 20px;
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 20px;
    font-weight: bold;
    color: white;
    background: linear-gradient(145deg, #3498db, #2980b9);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

#start-knop:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}


/* Generator Scherm Stijlen */
.verborgen {
    display: none !important;
}

#generator-scherm {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    max-width: 800px;
    height: 80vh;
    margin: 40px auto;
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#display {
    width: 100%;
    flex-grow: 1;
    font-size: clamp(40px, 10vw, 150px);
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

#display img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

#countdown-bar-container {
    width: 100%;
    height: 30px;
    border: 1px solid #ccc;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

#countdown-bar {
    height: 100%;
    width: 0;
    background-color: #4CAF50;
}

#stop-knop {
    background: linear-gradient(145deg, #ff6b6b, #e74c3c);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

#stop-knop:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}


/* Modal stijlen */

/* --- AANGEPAST: De modal is standaard verborgen --- */
#beweging-kiezer-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    /* display is nu 'none' of 'flex', wordt door JS geregeld */
}

/* NIEUWE CLASS toegevoegd in JS, standaard is modal nu verborgen */
.modal-verborgen {
    display: none;
}

.modal-inhoud {
    background-color: #fefefe;
    margin: auto; /* Zorgt voor centreren */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

.modal-sluiten {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.modal-sluiten:hover { color: black; }

#beweging-opties {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.beweging-optie {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}
.beweging-optie:hover {
    background-color: #eaf4ff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.beweging-optie img {
    width: 40px;
    height: 40px;
}

/* NIEUW: Stijlen voor Import/Export knoppen */
.io-knoppen-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.io-knop {
    background: linear-gradient(145deg, #8e44ad, #9b59b6);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.io-knop:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}