body {
    font-family: Arial, sans-serif;
    background-color: #e0f2f7;
    text-align: center;
    padding: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

header {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
    box-sizing: border-box;
}

h1 {
    color: #004080;
    font-size: 2em;
    margin: 0 auto;
}

button {
    font-family: Arial, sans-serif;
    background-color: #004080;
    color: white;
    border: none;
    padding: 12px 18px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    margin: 5px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

button:hover {
    background-color: #0056b3;
}

#main-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    max-width: fit-content;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

#left-panel {
    flex-basis: 300px; /* Vaste breedte voor linkerpaneel */
    flex-shrink: 0;
    padding: 15px;
    border: 1px solid #b3e0ff;
    border-radius: 8px;
    background-color: #f0faff;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-sizing: border-box;
    text-align: left;
}

#center-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

#right-panel-buttons {
    flex-basis: 200px;
    flex-shrink: 0;
    padding: 15px;
    border: 1px solid #b3e0ff;
    border-radius: 8px;
    background-color: #f0faff;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    align-items: center;
}

#right-panel-buttons button {
    width: 100%;
    margin: 0;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

#controls label {
    font-weight: bold;
    color: #333;
}

#controls input[type="number"],
#controls select {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #aaddff;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box;
}

#mainCanvas {
    border: 2px solid #004080;
    background-color: white;
    display: block;
    margin: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#tafelKeuze {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
#tafelKeuze label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
}


/* Responsive aanpassingen */
@media (max-width: 1200px) {
    #main-content {
        flex-direction: column;
        align-items: center;
    }

    #left-panel,
    #right-panel-buttons {
        flex-basis: auto;
        width: 100%;
        max-width: 500px;
    }
}
/* Plak dit onderaan je bestaande slangendoolhof.css bestand */

.radio-group-horizontal {
    display: flex;
    flex-direction: row;
    gap: 15px; /* Ruimte tussen de keuzes */
    align-items: center;
}

.radio-group-horizontal label {
    font-weight: normal;
}


#word-pairs-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.word-pair {
    display: flex;
    gap: 5px;
    align-items: center;
}

.word-pair input {
    flex-grow: 1;
    width: 40%;
    padding: 6px;
    font-size: 14px;
    border: 1px solid #aaddff;
    border-radius: 4px;
}

.remove-pair-btn {
    padding: 4px 8px;
    font-size: 14px;
    background-color: #ff4d4d;
    min-width: 25px;
}
.remove-pair-btn:hover {
    background-color: #cc0000;
}

#add-pair-btn {
    width: 100%;
    background-color: #28a745;
}
#add-pair-btn:hover {
    background-color: #218838;
}

hr {
    border: none;
    border-top: 1px solid #b3e0ff;
    width: 100%;
    margin: 15px 0;
}