/* --- Algemene Styling --- */
body {
    font-family: Arial, sans-serif;
    background-color: #e0f2f7;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    /* WIJZIGING: 'align-items: center;' is hier verwijderd om de hele layout links uit te lijnen */
    min-height: 100vh;
}

header {
    width: 100%;
    max-width: 1200px;
    display: grid; 
    grid-template-columns: 1fr auto 1fr; 
    align-items: center;
    margin-bottom: 20px;
}

header button {
    justify-self: start; /* Lijn knop links uit */
}

h1 {
    color: #004080;
    text-align: center;
    margin: 0;
    grid-column: 2; /* Plaats titel in de middelste kolom */
}

button {
    background-color: #004080;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1em;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
button:hover { background-color: #0056b3; }
button:disabled { background-color: #999; cursor: not-allowed; }

/* --- Hoofd layout (3 kolommen) --- */
#main-content {
    display: flex;
    width: 100%;
    max-width: 1200px;
    gap: 80px;
    align-items: flex-start;
}

#left-panel {
    flex-basis: 450px; /* Meer ruimte voor 3 afbeeldingen */
    flex-shrink: 0;
    background-color: #f0faff;
    border: 1px solid #b3e0ff;
    border-radius: 8px;
    padding: 15px;
}

#center-panel {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

#right-panel-buttons {
    flex-basis: 200px;
    flex-shrink: 0;
    background-color: #f0faff;
    border: 1px solid #b3e0ff;
    border-radius: 8px;
    padding: 15px;
}

#mazeCanvas {
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* --- Controls Styling --- */
.control-group {
    margin-bottom: 20px;
}
.control-group:last-child { margin-bottom: 0; }
.control-group legend {
    font-weight: bold;
    color: #004080;
    padding: 0 5px;
    margin-bottom: 10px;
}
#moeilijkheid-kiezer label {
    display: block;
    margin: 5px 0;
}

#vorm-kiezer {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 kolommen */
    gap: 10px;
}
#vorm-kiezer img {
    width: 100%;
    height: auto;
    cursor: pointer;
    border: 4px solid transparent;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}
#vorm-kiezer img:hover {
    transform: scale(1.05);
    border-color: #ddd;
}
#vorm-kiezer img.selected {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    transform: scale(1.1);
}

#left-panel button {
    width: 100%;
    margin-top: 10px;
}
#right-panel-buttons button {
    width: 100%;
    margin-top: 10px;
}

/* --- NIEUWE STIJLEN --- */
.solution-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
}

#solveMazeBtn {
    background-color: #28a745; /* Groen */
}
#solveMazeBtn:hover {
    background-color: #218838;
}

#hideSolutionBtn {
    background-color: #dc3545; /* Rood */
}
#hideSolutionBtn:hover {
    background-color: #c82333;
}

.hidden {
    display: none;
}