.afhalen-container {
    box-sizing: border-box;
    position: absolute;
    top: 200px;
    width: 100%;
    max-width: 1000px;
    height: 540px;
    border: solid 1px white;
    border-radius: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    background-color: lightgray;
}



.afhalen-container img {
    height: 540px;
    width: 100%;
}

.midden-box {
    box-sizing: border-box;
    position: absolute;
    top: 0;
    width: 485px;
    height: 700px;
    right: 25px;
    display: block;
}




.afhalen-text {
    margin-left: 80px;
    
}

.afhalen-title {
    margin-left: 40%;
}


@media screen and (max-width: 768px) {
    .afhalen-container {
        margin-top: 50px;
        width: 75%;
        height: 470px;

    }

    .afhalen-text{
        font-size: 100%;
    }

    .afhalen-container img {
        height: 470px;
        width: 100%;
    }
}
  
    
@media screen and (max-width: 1000px) {
    .midden-box {
        width: 40%;
        right: 35px;
    }

    .afhalen-text{
        margin-left: 10%;

    }

}

@media screen and (max-width: 700px) {
    .afhalen-text{
        margin-left: 20%;
        font-size: 14px;
    }

    .afhalen-title{
        margin-left: 20%;
        font-size: 20px;
    }
}

@media only screen and (min-width: 769px) and (max-width: 1920px) {
    footer {
        position: absolute;
        top: 841px;
        height: 125px;
        padding: 10px;
    }
}

@media screen and (max-width: 550px) {
    .afhalen-text{
        font-size: 11px;
        margin-left: 30%;
    }
    .afhalen-title{
        margin-left: 30% ;
    }
}