﻿#dc-list-header {
    text-align: center;
    color: white;
}

    #dc-list-header h1 {
        font-size: clamp(2rem, 5vw, 4rem);
        font-weight: 700;
        margin: 0;
        padding: 2.5rem 0;
    }

#dc-list-content {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#searchform {
    margin-bottom: 0;
}

:root {
    --dc-filter-width-animation-duration: .4s;
    --dc-filter-height-animation-duration: .6s;
}

#dc-filters-col {
    transition: all var(--dc-filter-width-animation-duration) ease-in-out;
}

    #dc-filters-col.hidden {
        width: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        pointer-events: none;
        transition: all var(--dc-filter-width-animation-duration) ease-in-out var(--dc-filter-height-animation-duration);
        overflow: hidden;
    }

#dc-filters-card-container {
    display: none;
}

#dc-filters-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: .75rem;
    position: relative;
}

#search-progress-container {
    width: 100%;
    height: 3px;
    overflow: hidden;
    position: relative;
}

#search-progress-bar {
    height: 100%;
    width: 100%;
    background-color: var(--tir-dark-blue);
    transform-origin: left;
    transition: transform 2s linear;
    transform: scaleX(0);
}

#clear-filters {
    margin-bottom: -1.25rem;
    z-index: 1;
}

#reset-filters-button {
    font-size: 14px;
    font-weight: 500;
    border: 2px solid red;
    border-radius: .75rem;
    background-color: white;
    color: red;
    transition: background-color 0.5s, color 0.5s;
    padding: 2px 4px;
}

    #reset-filters-button:hover {
        background-color: red;
        color: white;
    }

#filter-header {
    font-size: 1.75rem;
    font-weight: 600;
    text-align: center;
}

.filter-section-header {
    color: var(--tir-dark-blue);
    font-size: 1.25rem;
    font-weight: 550;
    margin-bottom: .5rem;
}

#filter-search-term {
    border: solid 2px black;
    max-width: 90%;
}

.btn-filter {
    border-width: 2px;
}

    .btn-filter:hover {
        border-width: 2px;
    }

.is-selected {
    background-color: var(--tir-mid-blue);
    color: white;
}

    .is-selected:hover {
        background-color: var(--tir-mid-blue);
        color: white;
    }

.i-fa-circle {
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
}

.btn-filter-flag {
    padding: 4px;
}

.img-filter-flag {
    max-height: 30px;
}

.master-category-container {
    margin-bottom: .5rem;
}

.btn-filter-master-category {
    width: 100%;
    font-size: 1rem;
    border-radius: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem .75rem .5rem .75rem;
    position: relative;
    overflow: visible;
}

    .btn-filter-master-category span {
        font-size: clamp(0.75rem, 1rem, 1rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
    }

.child-category-container {
    display: none;
}

    .child-category-container.is-expandable.is-expanded {
        display: block;
    }

.btn-filter-child-category {
    margin-top: 6px;
    text-align: left;
    width: 100%;
    border-radius: .85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .25rem .75rem .25rem .75rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    position: relative;
    overflow: visible;
}

    .btn-filter-child-category span {
        font-size: clamp(0.75rem, .85rem, .85rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
    }

.rotate-0 {
    transform: rotate(0deg);
    transition: transform 0.4s ease;
}

.rotate-180 {
    transform: rotate(-180deg);
    transition: transform 0.4s ease;
}

#dc-list-selection-header {
    color: black;
    font-size: 1.9rem;
    font-weight: 600;
    text-align: center;
}

#btn-toggle-filters {
    margin-top: auto;
    align-self: start;
    background-color: white;
    color: var(--tir-dark-blue);
    font-size: 1rem;
    font-weight: 600;
    border-radius: .75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 2px solid;
    border-color: var(--tir-dark-blue);
}

    #btn-toggle-filters:hover {
        color: var(--tir-dark-blue);
        border: 2px solid;
        border-color: var(--tir-dark-blue);
        transform: scale(1.02);
    }

#dc-list-selection-header-right {
    color: rgba(0,0,0,.75);
    font-size: .9rem;
    text-align: right;
}

.page-size-select {
    width: auto;
    margin-left: auto;
}

#dc-list-container {
    background: white;
    border: 1px solid #ddd;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: .75rem;
}

#dc-list {
    overflow: hidden;
}

.blur {
    filter: blur(6px);
    pointer-events: none;
    transition: filter 0.5s ease;
}

#dc-browse-col {
    transition: all 0.5s ease;
}

.dc-list-card {
    border: solid #ddd 1px;
    border-radius: 1rem;
    overflow: hidden;
    margin-top: .5rem;
    margin-bottom: .5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

    .dc-list-card:hover {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        transform: scale(1.005);
    }

.dc-list-card-header {
    padding: .75rem 1rem;
}

    .dc-list-card-header h2 {
        font-size: 1.75rem;
        font-weight: 650;
        color: white;
        margin-bottom: 0;
    }

.dc-list-card-desc {
    padding: .75rem;
    color: rgba(0, 0, 0, 0.8);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    border-right: solid #ddd 1px;
}

.dc-list-card-info {
    text-align: center;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

    .dc-list-card-info div {
        margin: .25rem 0rem;
    }

#dc-list > .dc-list-card-container:last-of-type .dc-list-card {
    margin-bottom: 0;
}
