﻿
:root {
    --grey-100: #F5F5F5;
    --grey-400: #BDBDBD;
}

/*-----------------------------------------------------------------------------------------------*/

.resources-header {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.resources-header .resources-options {
    text-align: right;
    margin: 0 0 15px;
}

.resources-header .resources-options .btn {
    font-size: 0.9rem;
}

.resources-header .resources-options .btn.active {
    background: #808080;
}

.resources-header .resources-options .btn + .btn {
    margin: 0 0 0 5px;
}

.resources-header .resources-options-dropdown {
    margin: 0 0 15px;
}

.resources-header .resources-options-dropdown .btn-group {
    width: 100%;
}

.resources-header .resources-options-dropdown .btn-group button {
    background: var(--secondary);
    color: #fff;
}

.resources-header .resources-options-dropdown .btn-group .dropdown-menu {
    width: 100%;
}

/*-----------------------------------------------------------------------------------------------*/

.resource-updates {
    padding: 15px;
    margin: 0 0 30px;
    background: var(--grey-100);
}

.resource-updates h4 {
    color: var(--primary);
    padding: 0 0 5px;
    margin: 0 0 15px;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--primary);
}

/*-----------------------------------------------------------------------------------------------*/

.resource-filter {
    position: relative;
    padding: 15px;
    margin: 0 0 30px;
    background: var(--grey-100);
}

.resource-filter p {
    margin: 5px 0;
}

.resource-filter a {
    display: inline-block;
    margin: 5px 0 0;
}

.resource-filter .resource-filter-search {
    display: flex;
    align-items: center;
}

.resource-filter .resource-filter-search > .form-group {
    margin: 0;
    flex: 1;
}

.resource-filter .resource-filter-search > .btn {
    padding: 13.4px 10px;
    margin: 6px 0 0;
}

.resource-filter .resource-filter-search .resource-filter-search-prompt {
    position: absolute;
    background: #fff;
    color: #000;
    padding: 15px;
    bottom: calc(100% + 30px);
    text-align: center;
    display: none;
    left: 0;
    right: 0;
}

.resource-filter .resource-filter-search .resource-filter-search-prompt::after {
    position: absolute;
    content: "";
    width: 20px;
    height: 20px;
    bottom: -10px;
    left: 50%;
    transform: translate(-50%, 0) rotate(45deg);
    background: #fff;
}

.resource-filter .resource-filter-search .resource-filter-search-prompt button {
    position: absolute;
    padding: 0;
    border: 0;
    background: transparent;
    top: 0;
    right: 10px;
    font-size: 2rem;
}

.resource-filter-search-backdrop {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99;
}

.resource-filter .resource-filter-auto ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0;
    max-height: 160px;
    overflow-y: scroll;
}

.resource-filter .resource-filter-auto ul li {
    padding: 5px 15px;
    border-left: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    background: #fff;
    color: #959595;
}

.resource-filter .resource-filter-auto ul li:last-of-type {
    border-bottom: 2px solid var(--primary);
}

.resource-filter .resource-filter-group {
    background: rgba(var(--secondary-rgb), 0.2);
    padding: 0 15px;
}

.resource-filter .resource-filter-group + .resource-filter-group {
    margin: 15px 0 0;
}

.resource-filter .resource-filter-group > button {
    position: relative;
    display: block;
    width: calc(100% + 30px);
    text-align: left;
    padding: 10px 40px 10px 15px;
    margin: 0 -15px;
    background: var(--secondary);
    border: 0;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.2em;
    transition: background 0.3s linear;
}

.resource-filter .resource-filter-group > button:hover {
    background: var(--secondary-active);
}

.resource-filter .resource-filter-group > button .glyphicon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translate(0, -50%);
    transition: transform 0.3s linear;
}

.resource-filter .resource-filter-group > button.collapsed .glyphicon {
    transform: translate(0, -50%) rotate(180deg);
}

.resource-filter .resource-filter-group ul {
    padding: 10px 0;
    margin: 0;
    list-style: none;
}

.resource-filter .resource-filter-group ul li {
    display: flex;
    gap: 5px;
    line-height: 1.2em;
    padding: 3px 0;
}

.resource-filter .resource-filter-group input[type=checkbox],
.resource-filter .resource-filter-group input[type=radio] {
    position: relative;
    -webkit-appearance: none;
    appearance: none;
    background: #fff;
    margin: 0 0 0 1px;
    width: 20px;
    height: 20px;
    outline: 1px solid #000;
    outline-offset: 0;
    border: 3px solid #fff;
    transition: background .25s ease, outline-color .25s ease;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
    cursor: pointer;
}

.resource-filter .resource-filter-group input[type=checkbox]:checked::before,
.resource-filter .resource-filter-group input[type=radio]:checked::before {
    position: absolute;
    content: "\e013";
    font-family: 'Glyphicons Halflings';
    font-size: 0.8rem;
}

/*.resource-filter .resource-filter-group input[type=checkbox]:checked,
.resource-filter .resource-filter-group input[type=radio]:checked {
    background: var(--primary);
}*/

.resource-filter .resource-filter-group input:disabled {
    opacity: 0.5;
}

.resource-filter .resource-filter-group-options {
    display: flex;
    margin: 0 0 15px;
    gap: 5px;
}

.resource-filter .resource-filter-group-options a {
    padding: 5px;
    margin: 0;
    background: #bdbdbd;
    color: #fff;
    text-align: center;
    flex: 1;
    transition: background 0.3s linear;
}

.resource-filter .resource-filter-group-options a:hover {
    background: #7e7e7e;
}

/*-----------------------------------------------------------------------------------------------*/

.resources-heading {
    color: var(--primary);
    font-size: 2rem;
}

.resource-listings .listing {
    display: flex;
    gap: 15px;
}

.resource-listings .listing + .listing {
    margin: 15px 0 0;
}

.resource-listings .listing .listing-image {
    position: relative;
    min-width: 10em;
    max-width: 10em;
    min-height: 10em;
    background: var(--grey-400);
    display: flex;
    justify-content: center;
    flex-flow: column;
    align-items: center;
    gap: 5px;
    color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.resource-listings .listing .listing-image::before {
    position: absolute;
    content: "";
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    transition: background 0.3s linear;
}

.resource-listings .listing .listing-image:hover::before {
    background: rgba(0, 0, 0, 0.25);
}

.resource-listings .listing .listing-image .fa {
    font-size: 2em;
    z-index: 9;
}

.resource-listings .listing .listing-image img,
.resource-listings .listing .listing-image span {
    z-index: 9;
}

.resource-listings .listing .listing-image span {
    text-align: center;
    padding: 0 5px;
}

.resource-listings .listing .listing-body {
    flex: 1;
}

.resource-listings .listing .listing-body h3 {
    margin: 0 0 15px;
}

.resource-listings .listing .listing-body p {
    margin: 5px 0;
}

.resource-listings .listing .listing-body .members-only {
    margin: 0 5px 0 0;
}

.resource-listings .listing .listing-body .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0 0 5px;
}

.resource-listings .listing .listing-body .chips .chip {
    font-size: 0.9em;
    line-height: 1rem;
    padding: 5px 15px;
    border-radius: 2em/100%;
    background: var(--primary);
    color: #fff;
}

/*-----------------------------------------------------------------------------------------------*/

.resource-members-only,
.resource-latest-guidelines,
.resource-is-archived {
    display: inline-block;
    padding: 5px 10px;
    margin: 0px 10px 15px 0px;
}

.resource-members-only {
    background: rgba(var(--primary-rgb), 0.25);
    color: var(--primary);
}

.resource-latest-guidelines {
    background: rgba(var(--secondary-rgb), 0.25);
    color: var(--secondary);
}

.resource-is-archived {
    background: #CCCCCC;
    color: #333333;
}

/*-----------------------------------------------------------------------------------------------*/

.resource-listings-updating {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    text-align: center;
    z-index: 999;
}

.resource-listings-updating span {
    position: sticky;
    font-size: 2rem;
    line-height: 1.2em;
    color: var(--primary);
    top: 50%;
}

.resource-listings-updating span i {
    animation-name: resources-loading;
    animation-duration: 1s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes resources-loading {
  0%   {transform: rotate(0)}
  100%   {transform: rotate(360deg)}
}

/*-----------------------------------------------------------------------------------------------*/

.resource-plain-header {
    padding: 15px;
    background: #000;
    color: #fff;
}

.resource-plain-header p {
    margin: 0;
}

.resource-plain-content {
    padding: 15px;
}

.resource-plain-content pre {
    white-space: pre-wrap;
    margin: 0;
}

/*-----------------------------------------------------------------------------------------------*/

.resources-filter-btn {
    white-space: pre-wrap;
    margin: 0 0 30px !important;
}