/* Pill-style sort and filter buttons.
   Load this AFTER style.css and style.less, so it wins.
   The #button-container prefix makes these rules more specific than the old ones. */

#button-container a.buttons,
#button-container a.buttons:link,
#button-container a.buttons:visited {
  display: inline-block;
  margin: 0 2px 8px 0;  /* the space between inline buttons adds ~4px more */
  padding: 6px 14px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: 'Istok Web', sans-serif;
  font-size: 12px;
  line-height: 16px;
  text-shadow: none;
  text-decoration: none;
  transition: background-color 0.15s ease-out, color 0.15s ease-out;
}

#button-container a.buttons:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Selected: solid white, black text */
#button-container a.buttons.selected-button,
#button-container a.buttons.selected-button:hover,
#button-container a.buttons:active {
  background: #fff;
  color: #000;
}

#button-container a.buttons:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Section headings (Sort, Filter, By Platform, Size): space above each one */
#button-container .filter-title {
  margin-top: 14px;
  padding-bottom: 6px;
}

#button-container .filter-title:first-child {
  margin-top: 0;
}
