body{
    background-color: black;
    background-image: url(/images/blackk.jpg);
    background-size: cover;
    background-repeat: no-repeat;
}


.text_projecten{
    color:white;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}

.jaaa{
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}

.card {
    margin: 0 auto 20px; /* Center each card and add spacing below */
    display: block; /* Ensure each card is treated as a block element */
    width: 300px; /* Maintain card width */
    height: auto; /* Allow height to adjust based on content */
    border: 1px solid #000000;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgb(7, 7, 7);
    overflow: hidden;
    background-color: #0000009d;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden; /* Ensure content does not overflow */
}

/* Card Hover Effect */
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px #007bff;
}

/* Card Image */
.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Card Content */
.card-content {
    padding: 16px;
}

/* Card Title */
.card-title {
    font-size: 1.5em;
    margin: 0 0 8px;
    color: #333;
}

/* Card Description */
.card-description {
    font-size: 1em;
    color: #000000;
    margin: 0 0 16px;
    line-height: 1.5;
}

/* Card Button */
.card-button {
    display: inline-block;
    padding: 10px 16px;
    font-size: 1em;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s;
}

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



.cards {
    display: flex; /* Normal mode: cards in a row */
    flex-wrap: wrap; /* Allow wrapping if space is insufficient */
    gap: 20px; /* Adds space between the cards */
    justify-content: center; /* Centers the cards horizontally */
    align-items: flex-start; /* Aligns cards vertically at the top */
    padding: 20px;
    overflow: hidden; /* Prevent scrolling in normal mode */
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 300px; /* Normal mode: fixed card width */
    height: 300px; /* Normal mode: fixed card height */
    margin: 0; /* Normal mode: no additional margin */
    border: 1px solid black; /* Adds a border to the cards */
    border-radius: 8px; /* Optional: Adds rounded corners to the border */
    padding: 10px; /* Optional: Adds padding inside the card */
    overflow: hidden; /* Ensure content does not overflow */
}

/* Responsive Mode */
@media (max-width: 1024px) {
    .cards {
        display: flex !important; /* Ensure flexbox is applied */
        flex-direction: column !important; /* Stack cards vertically */
        justify-content: flex-start; /* Align cards at the top */
        align-items: center; /* Center cards horizontally */
        gap: 20px; /* Add spacing between cards */
        overflow-y: auto; /* Enable vertical scrolling */
        height: auto; /* Allow container height to grow */
    }
    .card {
        width: 90%; /* Cards take most of the width */
        max-width: 400px; /* Set a maximum width for cards */
        height: auto; /* Allow height to adjust based on content */
    }
}

@media (max-width: 768px) {
    .cards {
        display: flex !important; /* Ensure flexbox is applied */
        flex-direction: column !important; /* Stack cards vertically */
        justify-content: flex-start; /* Align cards at the top */
        align-items: center; /* Center cards horizontally */
        gap: 20px; /* Add spacing between cards */
        padding: 10px; /* Adjust padding for better appearance */
        overflow-y: auto; /* Enable vertical scrolling */
        height: auto; /* Allow container height to grow */
    }
    .card {
        width: 90%; /* Cards take most of the width */
        max-width: 400px; /* Set a maximum width for cards */
        height: auto; /* Allow height to adjust based on content */
    }
}

