/* --- Algemene Styling --- */
html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    font-family: Arial, sans-serif;
    background-color: #e0f2f7;
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

/* --- Keuzescherm Styling --- */
#choice-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#choice-container {
    text-align: center;
    padding: 20px;
}

#choice-container h1 {
    color: #004080;
    margin-bottom: 10px;
}

#choice-container p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 40px;
}

.choice-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.choice-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 2px solid #b3e0ff;
    border-radius: 15px;
    padding: 20px;
    width: 200px;
    height: 200px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.choice-button:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 64, 128, 0.2);
}

.choice-button img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
}

.choice-button span {
    font-size: 1.5em;
    color: #004080;
    font-weight: bold;
}

.home-button {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #004080;
    color: white;
    padding: 10px 15px;
    font-size: 1em;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

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

/* --- Generator Styling --- */
#generator-screen {
    display: flex;
    flex-direction: column;
    height: 100%;
}

header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #f0faff;
    border-bottom: 2px solid #b3e0ff;
    flex-shrink: 0;
}

h1 {
    color: #004080;
    font-size: 2em;
    text-align: center;
    flex-grow: 1;
    margin: 0;
}

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, border-color 0.2s ease;
}

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

button:disabled {
    background-color: #a9a9a9;
    cursor: not-allowed;
}

#main-content {
    display: flex;
    flex-grow: 1;
    gap: 15px;
    padding: 15px;
    overflow: hidden;
}

#left-panel {
    flex-basis: 300px; /* Verbreed van 240px */
    flex-shrink: 0;
    overflow-y: auto;
    background-color: #f0faff;
    border: 1px solid #b3e0ff;
    border-radius: 8px;
    padding: 15px;
}

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

#center-panel {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

#drawingCanvasContainer {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#drawingCanvas {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    background-color: white;
}

.control-group {
    margin-bottom: 20px;
    border-bottom: 1px solid #d4eaf7;
    padding-bottom: 15px;
}
.control-group:last-child {
    border-bottom: none;
}

.control-group h3 {
    margin-top: 0;
    color: #004080;
}

.control-group label {
    display: block;
    margin-bottom: 5px;
}

.tool-setting {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

select, input[type="number"] {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #aaddff;
}

#colorPalette {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
    gap: 5px;
}

.color-box {
    width: 30px;
    height: 30px;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.1s;
}

.color-box.selected {
    border-color: #004080;
    transform: scale(1.1);
}

#right-panel-buttons .control-group button {
    width: 100%;
    margin-bottom: 10px;
}

#right-panel-buttons .control-group button:last-child {
    margin-bottom: 0;
}

