* {
    margin: 0;
    padding: 0;
    font-family: Roboto;
}

#section1 {
    background: url("../img/stellingachtergrond.jpg"), linear-gradient(rgba(0,0,0,0.6),rgba(0,0,0,0.6)) repeat no-repeat center;
    background-blend-mode: overlay;
    background-size: cover;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Set position to relative so that z-index can work */
    z-index: 1; /* Set z-index to 1 so that the navbar can overlap */
}

#section1-content {
    color: white;
    text-align: center; /* Align text to the center */
}

.section1-content-content {
    padding: 0 20px;
}

#section1 h1 {
    font-size: 2em;
    margin-bottom: 20px;
}

#section2 {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#section2-content {
    color: black;
    width: 100%;
    top: 50%;
    padding: 0 20px;
    left: 50%;
    text-align: left; /* Align text to the left */

}

#section2 .wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-column-gap: 30px;
    place-self: center;
    margin-top: 20px;
    text-decoration: none;
}

.box__link {
    color: #191919;
    font-weight: 600;
    letter-spacing: .7px;
    text-align: left;
    text-decoration: none;
}

#section2 .box {
    background-color: #fff;
    display: block;
    font-weight: 500;
    position: relative;
    -webkit-transition: all .3s ease-in-out;
    -o-transition: .3s all ease-in-out;
    transition: all .3s ease-in-out;
    border: 1px solid rgba(0,0,0,.05);
    -webkit-box-shadow: 0 5px 60px rgba(40,40,40,.1);
    box-shadow: 0 5px 60px rgba(40,40,40,.1);
    margin-bottom: 30px;
    text-decoration: none;
}

#section2 .box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.box__image {
    position: relative;
    height: 240px;
}

.box__image .img {
    position: absolute;
    -o-object-fit: cover;
    object-fit: cover;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.box__footer {
    text-align: left;
    font-weight: 500;
    padding: 15px 30px;
}

/* Media queries for section 1 */

@media (min-width: 1200px) {
    #section1-content {
        max-width: 1200px;
    }
    #section2-content {
        max-width: 1200px;
    }
}

@media only screen and (max-width: 768px) {
    #section1-content {
        margin-left: 30px;
        margin-right: 30px;
    }

    .section1-content-content {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-content: center;
    }

    #section1 h1 {
        font-size: 2em;
        margin-bottom: 10px;
    }

    #section2 .wrapper {
        display: grid;
        grid-template-columns: 100%;
        grid-column-gap: 30px;
        justify-content: center;
        margin-top: 50px;
    }
}

@media only screen and (max-width: 480px) {
    #section1 h1 {
        font-size: 1.5em;
        margin-bottom: 10px;
    }
}
