ul.emd_search_results, ul.manual_categories {
display: flex;
padding: 0;
margin: 0;
flex-wrap: wrap;
justify-content: flex-start;
align-items: stretch;
}
ul.manual_categories > li,
ul.emd_search_results > li {
flex: 1 1 20%;
max-width: 20%;
list-style: none;
padding: 0 1em;
margin: 1em 0;
text-align:  center;
}
@media all and (max-width: 1150px) { ul.manual_categories > li, ul.emd_search_results > li { max-width: 25%; flex-basis: 25%;}    }
@media all and (max-width: 800px) { ul.manual_categories > li, ul.emd_search_results > li { max-width: 33%; flex-basis: 33%;}    }
@media all and (max-width: 550px) { ul.manual_categories > li, ul.emd_search_results > li { max-width: 50%; flex-basis: 50%;}    }
@media all and (max-width: 400px) { ul.manual_categories > li, ul.emd_search_results > li { max-width: 100%; flex-basis: 100%;}    }
ul.manual_categories > li > a {
color: #e21836;
display: block;
width: 100%;
height: 100%;
box-sizing: border-box; 
padding: 0.5em;
font-size: 1.2em;
}
ul.manual_categories > li > a:hover {
background: #e21836 !important;
color: white;
}
ul.manual_categories > li > a:before {
font-family: "FontAwesome";
display: block;
font-size: 80px;
content: '\f02d';
}
ul.manual_categories > li.manual_category_with_image > a:before {
content:'';
}
ul.manual_categories > li.manual_category_with_image img { margin-bottom: 10px; display: block; width: 100%; height: auto;} ul.emd_search_results > li img {
width: 100%;
height: auto;
display: block;
margin-bottom: 5px;
}
ul.emd_search_results > li > a {
color: #e21836;
display: block;
width: 100%;
height: 100%;
box-sizing: border-box;
padding: 1em 1em 1em 1em;
}
ul.emd_search_results > li > a:hover {
background: #e21836;
color: white;
}
ul.emd_search_results > li > a:before { display: block;
width:100%;
height: 80px;
} .manual_search_container input[name=manual_search] { 
width: calc(100% - 150px);
min-width: 200px;
}
a.emd_result {
display: inline-block;
padding: 0.25em;
}
a.emd_result i { color: #e21836 !important; }