.filterBtn {
    width: 100%;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #a00e09;
    color: #a00e09;
    font-size: 17px;
    font-family: 'lato', sans-serif;
    cursor: pointer;
    text-align: center;
    border-radius: 5px;
}

.filterBtn:hover {
    background-color: #a00e09 !important;
    color: #fff !important;
}

.filterBtn.active {
    background-color: #a00e09 !important; /* same as hover red */
    color: #fff !important;               /* white text */
    border-color: #a00e09 !important;     /* match border to background */
}

#search_filter {
    font-size: 2.25rem !important;
}

.cardDisplay {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0px !important;
}

.cardDisplay:hover {
    transform: scale(1.02);
    box-shadow: -2px 5px 24px 6px rgba(0, 0, 0, 1);
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: scroll !important;
    background-color: rgba(0, 0, 0, 0.4);
}

.close {
    position: absolute;
    top: 10px;
    z-index: 1;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

.modal-content {
    background-color: white;
    margin: auto;
    border-radius: 10px;
    margin-top: 30vh;
    overflow-x: scroll;
    width: 50% !important;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    text-align: left;
    position: relative;
}

#myChart {
    margin: 5px;
}

@media only screen and (max-width: 400px) {
    .modal-content {
        margin: auto !important;
        width: 90% !important;
    }
}

.checkBox:checked {
    background-color: #a00e09 !important;
    color: while;
    border: none !important;
    box-shadow: 0px 2px 10px 4px rgba(160, 14, 9, 1) !important;
}

.checkBox:focus {
    color: while;
    border: none !important;
    box-shadow: 0px 2px 10px 4px rgba(160, 14, 9, 1) !important;
}

.year-range-slider {
    margin: 20px;
    text-align: center;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 10px;
    margin: 10px 0;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 10px;
    background: transparent;
    z-index: 3;
}

.slider:focus {
    background: transparent;
}

.slider::-webkit-slider-runnable-track {
    height: 10px;
    background: transparent;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #a00e09;
    cursor: pointer;
    z-index: 2;
    position: relative;
}

.slider::-moz-range-track {
    height: 10px;
    background: transparent;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #a00e09;
    cursor: pointer;
    z-index: 2;
}

.range-values {
    font-weight: bold;
    padding: 10px 0;
}

input[type="range"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.slider-wrapper::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: black;
    z-index: 1;
    transform: translateY(-50%);
}