#categories{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: stretch;
}

#categories a{
    text-decoration: none;
    width: 20%;
    border: 1px solid rgb(48, 77, 243);
    border-radius: 5px;
    text-align: center;
    display: inline-block;
    width: 20%;
    margin: 2% 2.24%;
    transition: 0.3s ease all;
}

#categories a img{
    max-height: 150px;
    max-width: 150px;
}

#cat-choose{
    text-align: center;
    margin: 2% 0 0 0;
}

.categorie:hover{
    transition: 0.3s ease all;
    box-shadow: 0px 0px 10px #292727;
}

.categorie:hover p{
    transition: 0.3s ease all;
    text-decoration: underline;
}

.categorie p{
    color: rgb(42, 53, 202);
    margin: 2% 0 4% 0;
}

#test{
    opacity: 0;
    width: 1px;
    height: 150px;
}

/*1441 to 1920*/
@media only screen and (min-width: 1440px) and (max-width: 1700px){
    .categorie{
        width: 25%;
        margin: 2% 4%;
    }
}

/*1025 to 1440*/
@media only screen and (min-width: 1024px) and (max-width: 1439px){
    .categorie{
        width: 40%;
        margin: 2% 4%;
    }

    #categories a img{
        max-height: 130px;
        max-width: 130px;
    }

    #cat-choose{
        text-align: center;
        margin: 4% 0 2% 0;
    }
}

/*768 to 1024*/
@media only screen and (min-width: 768px) and (max-width: 1023px){
    .categorie{
        width: 40%;
        margin: 3% 4%;
    }

    #categories a img{
        max-height: 130px;
        max-width: 130px;
    }

    #cat-choose{
        text-align: center;
        margin: 5% 0 2% 0;
    }
}

/*425 to 767*/
@media only screen and (min-width: 425px) and (max-width: 767px){
    #categories a{
        text-decoration: none;
        width: 100%;
        display: block;
    }

    .categorie{
        width: 70%;
        margin: 5% auto;
        display: block;
    }

    #categories a img{
        max-height: 110px;
        max-width: 110px;
    }

    #cat-choose{
        text-align: center;
        margin: 5% 0 2% 0;
    }
}

/*375 to 424*/
@media only screen and (min-width: 375px) and (max-width: 424px){
    #categories a{
        text-decoration: none;
        width: 100%;
        display: block;
    }

    .categorie{
        width: 80%;
        margin: 5% auto;
        display: block;
    }

    #categories a img{
        max-height: 110px;
        max-width: 110px;
    }

    #cat-choose{
        text-align: center;
        margin: 5% 0 2% 0;
    }
}

/*320 to 374*/
@media only screen and (min-width: 320px) and (max-width: 374px){
    #categories a{
        text-decoration: none;
        width: 100%;
        display: block;
    }

    .categorie{
        width: 80%;
        margin: 5% auto;
        display: block;
    }

    #categories a img{
        max-height: 90px;
        max-width: 90px;
    }

    #cat-choose{
        text-align: center;
        margin: 5% 0 2% 0;
    }
}