:root {
    --icon-circle-size: 90px;
    --icon-size: 40px; /* grootte van het icon */
    --widget-background: #535353;
    --text-color: #d3d3d3;
    --animation-delay-step: 0.2s; /* tijd tussen kaart animaties */
}

/* Flex container voor cards */
.information-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 0;
    background-color: #3d3d3d;
}

/* Wrapper voor animatie (scheidt animatie van hover) */
.card-wrapper {
    opacity: 0;
    animation: fadeInUp 0.6s forwards;
}

/* Keyframes fade-in van onder naar boven */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Automatische delay per kaart (voor elke wrapper) */
.information-wrapper .card-wrapper:nth-child(1) { animation-delay: 0s; }
.information-wrapper .card-wrapper:nth-child(2) { animation-delay: 0.2s; }
.information-wrapper .card-wrapper:nth-child(3) { animation-delay: 0.4s; }
.information-wrapper .card-wrapper:nth-child(4) { animation-delay: 0.6s; }
/* Voeg extra regels toe als er meer kaarten zijn of gebruik JS om automatisch te genereren */

/* Card */
.rectangle {
    position: relative;
    background-color: var(--widget-background);
    color: var(--text-color);
    border-radius: 25px;
    padding: calc(var(--icon-circle-size)/2 + 20px) 20px 20px 20px;

    width: 350px;
    height: 450px;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    box-shadow: 0 5px 15px rgba(0,0,0,0.3);

    /* Hover transition */
    transition: transform 0.3s ease;
}

/* Hover scale werkt nu perfect */
.rectangle:hover {
    transform: scale(1.1);
}

/* Icon */
.card-icon {
    position: absolute;
    top: calc(-1 * var(--icon-circle-size)/2);
    left: 50%;
    transform: translateX(-50%);
    background-color: #262626;
    color: #3d3d3d;
    border-radius: 50%;
    width: var(--icon-circle-size);
    height: var(--icon-circle-size);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--icon-size);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Card tekst */
.rectangle h2 {
    font-size: 2rem;
    margin-top: 20px;
}

.rectangle p {
    font-size: 1.2rem;
    margin-top: 10px;
}

.rectangle a {
    margin-top: 10px;
    text-decoration: none;
    font-size: 1.4rem;
    color: #262626;
}

@media (max-width: 600px) {
    .rectangle {
        width: 90%;
        margin: 0 auto;
        padding: 10px;
    }
}
