/* app.css */
.bg-red { background-color: #B50000 !important; }
.bg-black { background-color: #000000 !important; }
.btn-primary,
button.bg-primary:focus,
button.bg-primary:hover,
.bg-primary { background-color: #0f609b !important; }
.bg-yellow { background-color: #fff7dd !important; }
.text-primary { color: #0f609b !important; }
#c-toggle-facets {
  border: solid 1px #0f609b;
  background-color: transparent;
  color: #000;
  padding: 0.25rem 0.75rem;
}

#inchem-header {
  background-image: url(../img/header.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#inchem-browse-collections {
  font-size: 0.8rem;
  padding: 0 0.35rem;
  line-height: 0.9;
}

#inchem-browse-collections i { font-size: 0.9rem; }
#inchem-browse-collections small { font-size: 0.8rem; }

#inchem-browse-collections i,
#inchem-browse-collections small {
  font-style: normal;
  display: block;
}

#inchem-search-button {
  width: 40px;
  height: 40px;
  padding: 0;
}

h3.c-filter-title { font-size: 1rem; }

#c-loading {
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  z-index: 10;
  background-color: #fff;
  opacity: 1.0;
}

#c-toggle-facets .navbar-toggler-icon {
  background-size: 50%;
  background: no-repeat center url('../img/menu.svg');
}

.c-filter-items {
  max-height: 370px;
  overflow-y: auto;
}

.c-filter .c-show-more-link {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  color: #fff !important;
  background-color: #0f609b;
  font-style: normal;
  font-weight: normal;
  font-size: 0.8rem;
  border-radius: 2px;
  margin-left: 0.75rem;
  margin-bottom: 0.75rem;
}

.c-filter .c-show-more-link:hover {
  text-decoration: underline;
}

/* filter item lists can get pretty long... */
.c-filter-items li {
  width: 100%;
}

.c-filter-items > li {
  display: -ms-flexbox !important;
  display: flex !important;
  -ms-flex-pack: justify !important;
  justify-content: space-between !important;
}

/* https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/ */
#c .custom-control-label,
.c-filter-items a:not(.item-count),
.c-filter-items span:not(.item-count) {
  overflow-wrap: break-word;
  word-wrap: break-word;
  -ms-word-break: break-all;
  word-break: break-all;
  word-break: break-word;
}

a,
.c-filter-items a,
.c-filter-items a:not(.item-count),
.c-filter-items a:not(.item-count):hover {
  color: #498fe2;
}

#c-facets a,
#c-facets .c-filter-items a,
#c-facets .c-filter-items a:not(.item-count),
#c-facets .c-filter-items a:not(.item-count):hover {
  color: #0f609b;
}

#c-facets .form-control {
  border-radius: 0;
  padding: 0 0.2rem;
  font-size: 0.9rem;
  line-height: 1;
}

.c-filter-items .item-count {
  color: rgba(0, 0, 0, 0.4);
  background-color: rgba(0, 0, 0, 0.025);
  text-align: center;
  height: 18px;
  padding: 0 4px;
  margin-top: 2px;
  margin-left: 3px;
  font-size: 0.75em;
  line-height: 1.25em;
  overflow-wrap: normal !important;
  word-wrap: break-word !important;
  -ms-word-break: break-word !important;
  word-break: normal !important;
}

#c-remove-filters .btn.btn-light {
  border: solid 1px #e3e3e3;
}

#c-remove-filters .btn:after {
  font-size: 15px;
  font-weight: bold;
  width: 15px;
  height: 15px;
  display: inline-block;
  line-height: 15px;
  content: '×';
  color: rgba(0, 0, 0, 0.25);
  padding: 0px 0px 0px 5px;
}

#c-remove-filters .btn-primary:after {
  color: rgba(255, 255, 255, 0.75);
}

.c-filter .c-checkbox label {
  display: block;
}

#c-results.table-striped tbody tr:nth-of-type(odd) {
  background-color: #fff7dd;
}

#resultsPerPage {
  color: #0f609b;
}

.header-about {
  font-size: 0.7rem;
  line-height: 1;
}


.b-popover-primary.bs-popover-right>.arrow::before { border-right-color: #0f609b; }
.b-popover-primary.bs-popover-right>.arrow::after { border-right-color: #0f609b; }
.b-popover-primary.popover { background-color: #0f609b; border-color: #0f609b; }
.b-popover-primary .list-group-item {
  padding: 0.25rem;
  background-color: #0f609b;
  border: none;
  line-height: 1.1;
}
.b-popover-primary .list-group-item-action { color: #fff; }
.b-popover-primary .list-group-item-action:hover { color: #ffce00; text-decoration: underline; }

.page-link { color: #0f609b !important; }
.page-item.active .page-link { background-color: #0f609b; border-color: #0f609b; color: #fff !important; }

@media (min-width: 768px) {
  #c-facets {
    display: block !important;
  }
}


@media (min-width: 992px) {
  .header-about {
    font-size: 1rem;
  }
}
