.allcategory {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    width: 85%;
    margin-top: 20px;
    margin-right: auto;
    margin-left: auto;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

.categorytopic {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 25px;
    background-color: #fff;
    color: #fff;
    font-size: 1em;
}

.allcategoryheading {
    margin-top: 0px;
    margin-bottom: 0px;
    padding-left: 10px;
    -webkit-transition: all 200ms cubic-bezier(.55, .055, .675, .19);
    transition: all 200ms cubic-bezier(.55, .055, .675, .19);
    font-family: Montserrat, sans-serif;
    color: #3a3a3a;
    font-size: 2em;
    font-weight: 400;
}

.allcategoryheading:hover {
    color: #0098ff;
}

.category-item {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    width: 33%;
    padding-left: 0px;
    -webkit-transition: all 200ms cubic-bezier(.645, .045, .355, 1);
    transition: all 200ms cubic-bezier(.645, .045, .355, 1);
    font-family: 'Open Sans', sans-serif;
    color: #3a3a3a;
    font-weight: 400;
    margin: 5px 0;
}

.category-item:hover {
    color: #0098ff;
}

.subcategorybox {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    margin-bottom: 0px;
    padding-right: 2%;
    padding-left: 2%;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-align-content: space-between;
    -ms-flex-line-pack: justify;
    align-content: space-between;
}

.categoryimg {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    width: 60px;
    height: 60px;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    border: 3px solid #3a3a3a;
    border-radius: 106px;
    background-color: #fff;
}

.topcategorybox {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    margin-top: 0px;
    margin-bottom: 20px;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: center;
}

.allcatdiv {
    height: 2px;
}

@media (max-width: 1024px) {
    .allcategoryheading {
        font-size: 2em;
    }
    .category-item {
        font-size: 1em;
    }
}
@media (max-width: 768px) {
    .allcategoryheading {
        font-size: 1.6em;
    }
    .category-item {
        line-height: 1.3em;
    }
}
@media (max-width: 500px) {
    .allcategoryheading {
        font-size: 2em;
    }
    .categoryimg {
        margin: 10px auto;
    }
}
@media (max-width: 414px) {
    .allcategoryheading {
        font-size: 2em;
        line-height: 1.1em;
    }
    .allcategory {
        width: 98%;
    }
    .categorytopic {
        padding: 10px;
    }
    .topcategorybox {
        display: block;
    }
    .categoryimg {
        margin: 15px auto 30px auto;
    }
    .category-item {
        margin: 8px 0;
        width: 50%;
        font-size: 1.2em;
        line-height: 1.2em;
    }
    .heading1-mobile {
        font-size: 3em;
    }
    .allcatdiv {
        display: block;
        width: 80%;
        height: 2px;
        margin: 20px auto;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-box-align: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        background-color: #3a3a3a;
    }
}
@media (max-width: 375px) {
    .allcategoryheading {
        font-size: 2.1em;
        line-height: 1em;
    }
    .category-item {
        margin: 13px 0;
    }
    .categorytopic {
        padding: 10px;
    }
}
@media (max-width: 320px) {
    .allcategoryheading {
        font-size: 1.5em;
    }
    .category-item {
        font-size: 1.1em;
    }
    .categorytopic {
        padding: 10px;
    }
}
