section#categories {
   	padding: 50px 0 65px 0;
    box-sizing: border-box;
    background: white;
}

section#categories .container {
	display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    overflow: visible;
}

@media screen and (max-width: 1450px) {

	section#categories .container {
		width: 90%;
	}

}

section#categories .container a:hover {
	opacity: 0.5;
}

.aanbiedingblok{
	position: relative;
	bottom: -50px;
	opacity: 0;
	flex: 1 0 20% !important;
    padding: 130px !important;
}

section#categories .container a {
    flex: 1 0 24.2%;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    transition: all.5s;
    align-items: center;
    margin-right: 1%;
    margin-bottom: 1%;
    text-align: center;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 0 10px 1px #f3f3f3;
}

#categories a:before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #4444448c;
    content: '';
    z-index: 9;
}


section#categories .container a:hover h1 {
    margin-top: -20px;
}

section#categories .container a h3 {
    color: #ffffff;
    padding: 15px 25px;
    font-weight: bolder;
    text-transform: uppercase;
    position: absolute;
    font-size: 23px;
    top: 35%;
    z-index: 9999;
    left: 5px;
    width: 87%;
}
@media screen and (max-width: 900px) {
	section#categories .container a {
    margin-bottom: 0%!important;
	}
}

@media screen and (max-width: 1200px) {

	section#categories .container  a:last-child {
		margin-right: 0;

	}

	section#categories .container a {
    margin-right: 1%;
    margin-bottom: 1%;
	}

	section#categories .container a:nth-child(4n) {
		margin-right: 0;
	}
}

@media screen and (max-width: 950px) {

	section#categories .container a {
		flex: 0 0 32.66667%;
	}

	section#categories .container a:nth-child(5n) {
		margin-right: 1%;
	}

	section#categories .container a:nth-child(4n) {
		margin-right: 1%;
	}

	section#categories .container a:nth-child(3n) {
		margin-right: 0;
	}

	section#categories .container a:nth-child(1n+4) {
		margin-top: 1%;
	}

}

@media screen and (max-width: 680px) {

	section#categories .container a {
		flex: 0 0 49.5%;
	}

	section#categories .container a:nth-child(5n) {
		margin-right: 1%;
	}

	section#categories .container a:nth-child(4n) {
		margin-right: 1%;
	}

	section#categories .container a:nth-child(3n) {
		margin-right: 1%;
	}

	section#categories .container a:nth-child(2n) {
		margin-right: 0;
	}

	section#categories .container a:nth-child(1n+3) {
		margin-top: 1%;
	}

}

@media screen and (max-width: 500px) {

	section#categories .container a {
		flex: 0 0 100%;
		margin-right: 0 !important;
	}

	section#categories .container a:nth-child(1n+2) {
		margin-top: 1%;
	}

}
@media screen and (min-width: 1900px) {
section#categories .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    }

section#categories .container a {
    flex: 0 0 26.2%;
}
}

@media screen and (max-width: 1700px) {
section#blocks {
    display: flex;
    flex-wrap: wrap;
	}