body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: white; /* Witte achtergrond behouden */
}

.upload-section {
    text-align: center;
    margin-bottom: 20px;
}

.drop-zone {
    width: 100%; /* Zorg ervoor dat de breedte 100% is */
    max-width: 400px; /* Beperk de maximale breedte voor grotere schermen */
    padding: 20px;
    margin: 0 auto; /* Centreer de drop-zone */
    border: 2px dashed #ccc;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
}

.histogram-section {
    text-align: center;
    margin-top: 20px;
}

#histogramCanvas {
    display: block;
    margin: 0 auto;
}

#downloadBtn {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#downloadBtn:hover {
    background-color: #45a049;
}

hr {
    border: 1px solid #ccc;
    margin: 30px 0;
}

.analysis-section {
    text-align: center;
    margin-top: 20px;
}

.analysis-section h3 { /* Kleine wijziging: h3 in plaats van h2 */
    margin-bottom: 10px;
}

.analysis-section p {
    font-size: 1rem;
    color: #555;
}

.container {
    display: flex;
    align-items: flex-start; /* Zorg ervoor dat de afbeelding en de tekst bovenaan uitgelijnd zijn */
    margin-top: 20px; /* Ruimte boven de container */
    max-width: 1200px; /* Stel een maximale breedte in voor de container */
    margin: auto; /* Centreer de container */
}

.image-section {
    flex: 1; /* Laat de afbeelding een deel van de ruimte innemen */
    padding-right: 20px; /* Ruimte tussen afbeelding en analyse */
}

.image-section img {
    max-width: 100%; /* Zorg ervoor dat de afbeelding responsief is */
    height: auto; /* Houd de hoogte in verhouding tot de breedte */
    max-height: 400px; /* Beperk de maximale hoogte van de afbeelding */
}

.analysis-section {
    flex: 2; /* Laat de analyse meer ruimte innemen dan de afbeelding */
}

/* Media query voor mobiele apparaten */
@media (max-width: 600px) {
    .drop-zone {
        padding: 10px; /* Verminder padding op mobiele apparaten */
        font-size: 14px; /* Maak de tekst iets kleiner voor betere leesbaarheid */
    }
    
    .container {
        flex-direction: column; /* Stapel de inhoud op mobiele apparaten */
        align-items: center; /* Centreer de inhoud */
    }

    .image-section {
        padding-right: 0; /* Geen ruimte meer rechts van de afbeelding */
        margin-bottom: 20px; /* Voeg ruimte onder de afbeelding toe */
    }
}
