﻿.browse-filter-container-background {
    position: fixed;
    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    background: rgba(0, 0, 0, 0.90);
    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 1000;
}

.browse-filter-container{
    width: 500px;
    height: auto;

    background: var(--card-background);
    border-radius: 5px;

    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;

    padding: 20px;
}

.browse-filter-title{
    width: 100%;
    height: 50px;

    background: var(--card-title-background);
    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 5px;
    font-size: 20px;
    font-weight: 800;
}

.browse-filter-item-container{
    width: 100%;
    height: auto;

    display: flex;
    justify-content: space-evenly;
    align-items: center;

    padding: 20px 0 0 0;
}

.browse-filter-item {
    width: 30%;
    height: 40px;

    background: var(--card-title-background);
    border-radius: 5px;

    display: flex;
    justify-content: center;
    align-items: center;

    color: white;
    font-size: 15px;
    font-weight: 600;
}

.browse-filter-item-dropdown{
    position: relative;
    
    width: calc(70% - 20px - 40px);
    height: 40px;
    margin: 0px 10px;

    background: var(--card-title-background);
    border-radius: 5px;
    
    transition: 0.1s ease-out, box-shadow 0.2s;
    
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);   
    cursor: pointer;
}

.browse-filter-item-dropdown-icon{
    position: absolute;
    width: auto;
    height: 100%;
    display: flex !important;
    justify-content: center;
    align-items: center;
    right: 10px;
}

.browse-filter-dropdown-content-container{
    position: absolute;
    top: 50px;
    left: 0px;

    width: 100%;
    height: auto;

    background: var(--card-title-background);
    border-radius: 5px;

    padding: 10px;

    z-index: 500;
}
.browse-filter-dropdown-content-checkbox {
   display: none;
}

.browse-filter-dropdown-content-label {
    background: var(--card-background);
    color: white;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 10px;
    margin: 4px;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.1s ease-in-out;
}

.browse-filter-dropdown-content-label:hover{
    background: var(--dropdown-label-hover) !important;
}

.browse-filter-dropdown-content-label:has(.browse-filter-dropdown-content-checkbox:checked) {
    background-color: var(--dropdown-label-selected);
}

.browse-filter-dropdown-toggle {
    width: calc(100% - 25px);
    
    padding: 8px;
    color: #fff;
    font-size: 0.9rem;
    background-color: var(--card-title-background);
    border-radius: 5px;
    overflow-x: hidden;
}
.browse-filter-dropdown-toggle {
    display: flex;
    justify-content: left;
    align-items: center;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.browse-filter-button-container{
    width: 100%;
    height: auto;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    margin-top: 20px;
}

.browse-filter-button{
    width: auto;
    min-width: 150px;
    height: 40px;
    

    background: #498520;

    color: white;
    font-size: 15px;
    font-weight: 700;

    outline: none;
    border: none;
    border-radius: 5px;

    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;
    
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);    
    transition: 0.1s ease-out, box-shadow 0.2s;
}

.red-button{
    background: #9d1f1f;
}

.browse-filter-button:hover {
    transform: scale(105%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.browse-filter-remove-button{
    width: 40px;
    height: 40px;

    color: white;

    display: flex;
    justify-content: center;
    align-items: center;

    outline: none;
    border: none;
    border-radius: 5px;
    
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);   
}

@media (max-width: 700px) {
    .browse-filter-container {
        width: 80vw;
    }

    .browse-filter-title {
        width: 100%;
        height: 30px;
        font-size: 15px;
    }

    .browse-filter-item {
        height: 25px;
        font-size: 8px;
    }

    .browse-filter-item-container {
        padding: 10px 0 0 0;
    }

    .browse-filter-item-dropdown {
        height: 25px;
        margin: 0px 10px;
    }

    .browse-filter-dropdown-content-label {
        font-size: 8px;
    }

    .browse-filter-dropdown-toggle {
       height: 25px;
        font-size: 8px;
        padding: 0px 8px;

    }

    .browse-filter-dropdown-toggle span {
        height: 100%;
        display: flex;
        justify-content: left;
        align-items: center;
    }

    .browse-filter-item-dropdown-icon {
        font-size: 12px;
    }

    .browse-filter-button {
        width: auto;
        min-width: 150px;
        height: 25px;
        font-size: 10px;
    }

    .browse-filter-remove-button {
        width: 25px;
        height: 25px;
        color: white;

        font-size: 10px;
    }

    .browse-filter-dropdown-content-container {
        position: absolute;
        top: 30px;
    }
}



