@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #1e1f26;
    color: #f0f0f5;
    margin: 0;
    padding: 1rem;
}

/* Knoppen */
#buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.button {
    background-color: #2c303a;
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: 1px solid #3b3f4a;
}

.button:hover {
    background-color: #3d4250;
    transform: translateY(-2px);
    cursor: pointer;
}

/* Bar chart */
.bar {
    background-color: #2a2d36;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 800px;
    margin: 2rem auto;
}

/* Pie charts algemene layout */
.pie {
    background-color: #2a2d36;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 350px;
    box-sizing: border-box;
    margin: 1rem auto;
}

/* Vanaf desktop: naast elkaar */
@media (min-width: 768px) {
    .pie {
        display: inline-block;
        vertical-align: top;
        margin: 1rem;
        width: calc(50% - 2rem);
    }
}

/* Canvas styling (Chart.js) */
canvas {
    width: 100% !important;
    height: auto !important;
    display: block;
}

/* Verbergen */
.hidden {
    display: none !important;
}