/*
 * Icons
 */

@font-face {
  font-family: "fx-resources";
  src: url("/source/ff7b28925e9b68bfd58646324b8282ad/fx-resources.eot");
  src: url("/source/89fcf27c14f208e4e612827dc05f5872/fx-resources.eot") format("embedded-opentype"),
    url("/source/aef85bec6130988e653567ac99bb38e7/fx-resources.ttf") format("truetype"),
    url("/source/eb9016cfa6cf0e89b3a8e49da04087b4/fx-resources.woff") format("woff"),
    url("/source/a3373aa542e192ad59882fc60d7a7ca8/fx-resources.svg") format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

.resource-listing [class^="icon-"],
.resource-listing [class*=" icon-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: "fx-resources" !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.resource-listing__item-icon.icon-video:before {
  content: "\e900";
}

.resource-listing__item-icon.icon-doc:before {
  content: "\e901";
}

.resource-listing__item-icon.icon-image:before {
  content: "\e902";
}

.resource-listing__item-icon.icon-pdf:before {
  content: "\e903";
}

/*
 * Filters
 */

.resource-filters {
  margin-bottom: 30px;
}

.resource-filter__item {
  margin-top: 20px;
}

.filter-label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.resource-lib-selections {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.type-section {
  text-align: center;
}

.fx-search {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 7px;
  padding-bottom: 7px;
  margin-top: 29px;
  border: 1px solid black;
}

.tabs-row {
  display: flex;
  flex-wrap: wrap;
  padding-top: 30px;
}

.below-tabs-row {
  z-index: 0;
  width: 100%;
  position: absolute;
  bottom: 0px;
  border-bottom: 5px solid lightgray;
}

.tabs-row-container {
  width: 100%;
  position: relative;
}

#featured_title {
  text-align: center;
}

.type-title {
  width: 100%;
  text-align: center;
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 20px;
}

.tab {
  z-index: 1;
  width: 50%;
  text-align: center;
  cursor: pointer;
  padding-bottom: 10px;
  padding-top: 10px;
  border-bottom: 5px solid transparent;
}

@media only screen and (min-width: 768px) {
  .tab {
    width: 100px;
    margin-right: 20px;
    padding-top: 0px;
  }
}

.tab:hover {
  border-color: black;
}

.tab-selected {
  border-color: black;
}

.resource-filter__item:first-child {
  margin-top: 0;
}

.resource-filter__item input,
.resource-filter__item select,
.resource-filter__item .choices {
  flex-grow: 1;
}

@media (min-width: 768px) {
  .resource-filters form {
    display: flex;
    align-items: flex-end;
  }

  .resource-filters form {
    flex-wrap: wrap;
  }

  .resource-filter__item {
    float: left;
    margin-left: 2%;
    margin-top: 0;
    width: 32%;
  }

  .resource-filter__item:first-child {
    margin-left: 0;
  }
}

/*
 * Results
 */

.resource-listing {
  list-style: none;
  display: flex;
  justify-content: start;
  flex-wrap: wrap;
}

.resource-listing__item {
  border-top: 1px solid #ddd;
  width: 100%;
}

.resource-listing__item-dynamic {
  width: 100%;
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 30px;
}

@media (min-width: 960px) {
  .resource-listing__item-dynamic {
    width: 50%;
  }
}

@media (min-width: 1440px) {
  .resource-listing__item-dynamic {
    width: 33%;
  }
}

.resource-listing__item:first-child {
  border-top: 0;
}

.resource-listing__item:nth-child(4n + 4) {
  margin-right: 0;
}

.resource-listing__item-name {
  color: black;
  margin-top: 10px;
  margin-bottom: 10px;
}

.resource-listing__item-link {
  display: flex;
  align-items: center;
  padding: 20px;
  width: 100%;
  text-decoration: none;
  position: relative;
}

.image-button {
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 7px;
  padding-bottom: 7px;
  color: black;
}

.image-button:hover {
  background-color: gray;
  color: white;
}

.resource-listing__item-link-dynamic {
  width: 100%;
  text-decoration: none;
  position: relative;
}

.resource-listing__item--featured .resource-listing__item-link {
  padding: 30px;
}

.resource-listing__item--no-result {
  padding: 20px;
  width: 100%;
  text-align: center;
}

.resource-listing__item--featured,
.resource-listing__item--featured:first-child {
  border: 1px solid #ddd;
  margin-bottom: 30px;
}

.resource-listing__featured-label {
  position: absolute;
  left: 0;
  top: 0;
  padding: 2px 5px;
  background-color: #ddd;
  font-size: 0.7em;
}

.resource-listing__item-icon {
  color: #bbb;
  font-size: 20px;
  margin-right: 20px;
}

.resource-listing__item-thumb {
  max-width: 70px;
  height: auto;
  display: block;
  margin-right: 20px;
}

.resource-listing__item-thumb-dynamic {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center center;
}

.resource-listing__item-image-dynamic {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center center;
}

.resource-listing__item-category-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(255, 255, 255, 0.7);
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
  font-weight: bold;
  color: black;
}

.resource-listing__item-description {
  color: black;
  padding-right: 20px;
}

.resource-listing__item--featured .resource-listing__item-thumb {
  max-width: 100px;
}

.resource-info h4 {
  margin-bottom: 10px;
  color: #fff;
}

.resource-info p {
  margin-bottom: 0;
  color: #fff;
  font-size: 13px;
}

.resource-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  transition: all 0.3s;
}

.resource-info * {
  width: 100%;
  display: block;
}

.span.page-numbers.current {
  color: unset;
}

.resources-popup {
  background-color: #fff;
  padding: 30px;
  margin: 20px auto;
  position: relative;
  width: auto;
  text-align: center;
  max-width: 800px;
}

.resources-popup h2 {
  margin-top: 0;
}

.fx-overview {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.load-more {
  background-color: darkgrey;
  border: 2px solid black;
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.load-more:hover {
  background-color: grey;
}

.load-more-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.gated-button {
  background-color: darkgrey;
  border: 2px solid black;
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.gated-button:hover {
  background-color: grey;
}

.gated-button-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.page-numbers {
  margin-left: 15px;
  margin-right: 15px;
  border: 2px solid black !important;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.btn-close {
  color: black;
  font-size: 40px;
  text-decoration: none;
  position: absolute;
  right: 12px;
  top: -7px;
}
.btn-close:hover {
  color: #333;
}
.modal:before {
  content: "";
  display: none;
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
}
.opened:before {
  display: block;
}
.opened .modal-dialog {
  transform: translate(0, 0);
  top: 20%;
}
.modal-dialog {
  background: #fefefe;
  border: #333333 solid 0px;
  margin-left: -200px;
  text-align: center;
  position: fixed;
  left: 50%;
  top: -100%;
  z-index: 11;
  width: 450px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  transform: translate(0, -500%);
  transition: transform 0.3s ease-out;
}
.modal-body {
  padding: 20px;
}
.modal-body input {
  width: 200px;
  padding: 8px;
  border: 1px solid #ddd;
  color: #888;
  outline: 0;
  font-size: 14px;
  font-weight: bold;
  margin-top: 10px;
}
.modal-header {
  padding-top: 30px;
  padding-bottom: 10px;
}
.modal-footer {
  padding: 10px 20px;
}
.modal-header {
  border-bottom: #eeeeee solid 1px;
}
.modal-header h2 {
  font-size: 20px;
}
