.content{
  margin: 1em 0  2em 0;
  flex-grow: 1;
}

.content .container{
  display: grid;
  gap: 22px 30px;
  grid-template-columns:260px 1fr;
  grid-template-rows:auto 1fr;
  grid-template-areas:
    "filterSide filterBar"
    "filterSide main";
}

.filterSide{
  grid-area: filterSide;
  background-color: #FFF;
  padding: 1.5em;
  border-radius: 5px;
  border: solid #EEE 1px;
  margin-top: 22px;
}

.filterBar{
  grid-area: filterBar;
}

.main{
  grid-area: main;
}

/* Side */

.filterSide .categories{
  background-image      : url('../img/filter.png');
  background-repeat     : no-repeat;
  background-position   : top left;
  background-size       : contain;
  height                : 24px;
  padding-left          : 36px;
  font-weight           : 600;
  margin-bottom         : 10px;
}

.filterSide label{
  line-height: 30px;
}
.filterSide label span{
  padding-left: 16px;
}

.filterSide input[type=checkbox]{

}

.filterSide > ul{
  margin-top: 15px;
}

.filterSide ul{
  line-height: 1.75em;
  list-style: none;
}

.filterSide li{

}

.filterSide li span{
  font-size: 0.8em;
}

.filterSide li ul{
  margin-left: 15px;
}

.filterSide a{
  text-decoration: none;
  color: #000;
}

.filterSide a:hover{
  color: #F60;
}

/* Filter Bar */

.filterBar{
  grid-area: filterBar;
  display: grid;
  grid-template-columns:auto 1fr;
  grid-template-areas: "search filter";
  gap: 10px;
}

.filterBar .search{
  grid-area: search;
}

.filterBar .search input{
  margin-top: 22px;
  width: 250px;
}

.filterBar .filter{
  grid-area: filter;
  display: grid;
  grid-template-columns:95px 130px 63px;
  gap: 10px;
  justify-self: end;
}

.filterBar .filterBy{
  text-align            : left;
  padding-top           : 31px;
  background-image      : url('../img/filter.png');
  background-repeat     : no-repeat;
  background-position   : top 31px left;
  background-size       : 24px;
  padding-left          : 34px;
}

.filterBar .filter label{
  font-size: 14px;
  padding-left: 5px;
}

.filterBar input{
  padding: 0.25em 1.5em 0.25em 0.75em;
  background-image: url('../img/search.png');
  background-repeat: no-repeat;
  background-position: center right 7px;
  background-size: 24px;
  line-height: 2em;
}

.filterBar select{
  margin-top: 5px;
}

.filterBar input:focus{
  border: solid #EEE 1px;
}

@media screen and (max-width:1000px){
  .content{
    margin: 0 0 2em 0;
  }
  .content .container{
    gap: 22px 0;
    grid-template-columns:1fr;
    grid-template-rows:auto auto 1fr;
    grid-template-areas:
      "filterSide"
      "filterBar"
      "main";
  }

  .filterSide{
    background-color: #FFF;
    padding: 1.5em;
    border-radius: 0px;
    border-top-width:0px;
    border-left-width:0px;
    border-right-width:0px;
    margin: 0 -20px;
  }
  .filterSide .checkboxes{
    display: grid;
    grid-template-columns : repeat(auto-fill, minmax(140px, 1fr));

  }
}

@media screen and (max-width:800px){
  .filterBar{
    grid-template-columns:1fr;
    grid-template-areas:
      "filter"
      "search";
  }

  .filterBar .search{
    justify-self: end;
    width: 325px;
  }

  .filterBar .search input{
    margin-top: 0px;
    width: 100%;
  }
}

/* Main */

.main {
  margin-bottom: 0em;
}

.main h2{
  font-size: 20px;
  font-weight: 500;
  margin: 0.5em 0 0.5em 0;
}

.main #noResults{
  display: none;
}
.main #noResults.show{
  display: inline-block;
}

.results{
  margin-top: 20px;
  display: grid;
  grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
  gap: 40px;
}

.result{
  display: flex;
  flex-direction: column;
}

.result .header{
  min-height: 50px;
  background-repeat: no-repeat;
  background-size: 35px;
  background-position: top 5px left 5px;
}

.result .featured{
  background-image: url('../img/popular.png');
  height: 36px;
  background-position: center right 5px;
  background-size: contain;
  background-repeat: no-repeat;
  margin-top: -33px;
  margin-bottom: -3px;
}

.result h3{
  font-size: 16px;
  font-weight: 600;
  margin-left: 50px;
}

.result h6{
  font-size: 13px;
  font-weight: normal;
  margin-left: 50px;
  color: #5d5d5d;
}

.result p{
  font-size: 16px;
  padding: 1em 0;
  flex-grow: 1;
}

.result .features{

}

.result .features span{
  margin: 0 0.25em;
  padding: 0.15em 0.75em;
  background-color: #2d99ac;
  color: #FFF;
  font-size: 13px;
  border-radius: 5px;
}

.result .features span.category{
  background-color: #006490;
}

.result .features span.cost{
  background-color: #759876;
}

.result .features span.integration{
  background-color: #da2f20;
}

.result .features span:first-child{
  margin-left:0;
}
.result .features span:last-child{
  margin-right:0;
}
.result button{
  width: 100%;
  background-color: #ff6600;
  color: #FFF;
  text-align: center;
  background-image: url('../img/link-white.png');
  background-repeat: no-repeat;
  background-position: center right 10px;
  background-size: 24px;
  padding: 0.5em;
  outline: none;
  border: 0;
  border-radius: 5px;
  margin-top: 20px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
}