/* BEGIN Modal/List style */
.modal {
    display: none;
}

.modal.active {
    display: block;
    position: absolute;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* more filter modal has to be under other modals */
.modal.active.modal-more-filters {
    z-index: 1000;
}

.selection-list-container {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    width: 80%;
    max-height: 80%;
    background-color: var(--bg);
    border-radius: 1rem;
}

/* applied only in high contrast mode */
.high-contrast .selection-list-container  {
    border: 1px solid #fff;
} 


.selection-list-container.fixed-height {
    min-height: 80%;
}


.selection-list-ul {
    list-style: none;
    width: 100%;
    flex: 3;
    max-height: 100%;
    background-color: var(--bg);
    overflow-y: auto;
}

.selection-list-ul p {
    display: block;
    padding: 1.5rem;
    border-bottom: 0.1rem solid var(--color-text);
}


.selection-list-ul p[selected] {
    background-color: var(--antaq-azul);
    color: white;
    border-bottom: 0.1rem solid white;
}


.selection-list-ul p[disabled],
.modal-more-filters .selection-list-ul p[disabled] {
    background-color: rgb(131, 131, 131);
    color: rgb(0, 0, 0);
    font-style: italic;
}

.selection-list-buttons {
    bottom: 1rem;
    margin: 1.5rem auto 0 auto;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 10%;
}

.modal-btn {
    background-color: var(--azul-texto); /* Green */
    border: none;
    color: white;
    max-width: 12rem;
    height: 2.5rem;
    width: 10rem;
    text-align: center;
    text-decoration: none;
    border-radius: 1rem;
}


/* more filter modal config */
.modal-more-filters .selection-list-ul p {
    font-size: 1.6rem;
    font-weight: 400;
    border-radius: 1.5rem;
    color: #fff;
    background-color: var(--antaq-azul);
    text-align: center;
    margin: 0.5rem 0;
}

/* END Modal/List style */



/* BEGIN search icon and input search */
.search-container {
    position: relative;
}

.search-container > i {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    color: #000;
}

input[type="search"] {
    width: 100%;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

/* style to apply on field that search its matches */
.search-hide {
    display: none;
}

/* END search icon and input search */


/* BEGIN Buttons style */
.filters-btn-container, .more-filters-btn {
    padding: 0.5rem;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
}

.more-filters-btn-container {
    padding: 0.5rem;
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: start;
}

.filters-btn, .right-side-buttons {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}


.filters-btn {
    max-width: 95%;
}

.right-side-buttons {
    flex: 1;
    justify-content: end;
}


.filters-btn button,
.more-filters-btn-container button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    /* min-width: 5rem; */
    max-width: 9rem;
    height: 2.3rem;
    font-size: 1.2rem;
    color: black;
    background-color: #e9f5fd;
    border-radius: 0.5rem;
}

.more-filters-btn-container button {
    max-width: none;
    min-height: 2.3rem;
}


.filters-btn button span,
.more-filters-btn-container button span {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 0.5rem;
}

.right-side-buttons #toggle-high-contrast {
    background: none;
    border: none;
    color: var(--antaq-azul-branco);
    font-size: 1.8rem;
}


  /* adjust size of buttons and fonts in smaller screens */
@media screen and (max-width: 300px) {
    .filters-btn-container button span, .more-filters-btn button span {
        padding: 0 0.1rem;
    }
    .filters-btn, .right-side-buttons {
        gap: 0.2rem;
    }
    .filters-btn button,
    .more-filters-btn-container button {
        font-size: 1.1rem;
    }
}

@media screen and ((min-width:301px) and (max-width: 400px)) {
    .filters-btn-container button span, .more-filters-btn button span {
        padding: 0 0.3rem;
    }
    .filters-btn, .right-side-buttons {
        gap: 0.3rem;
    }
    .filters-btn button,
    .more-filters-btn-container button {
        font-size: 1.2rem;
    }
}
    


/* END Buttons style  */

/* BEGIN Active filter style */
.active-filters {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
}

.active-filters p {
    display: inline-block;
    margin: 0 0.3rem;
    
}

.active-filters span.active-filter-bold {
    font-weight: bold;
}

.active-filters span.active-filter-highlight {
    color: var(--verde-texto);
}
/* END Active filter style */