.body-wrap {
    display: flex;
    flex-direction: column-reverse;
    margin-top: 5rem;
    margin-bottom: 5rem;
}

main {
    grid-area: results;
}
aside {
    grid-area: filters;
}

.h-main {
    color: var(--text-light);
}

.results-wrap {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-columns: 1fr;
    gap: 2rem 2rem;
    grid-auto-flow: row;
}

#results {}

#results article a {
    text-decoration: none;
    color: var(--text-lighter);
}

.filters-wrap {
    position: sticky;
    position: -webkit-sticky;
    top: 10rem;
}

@media screen and (min-width: 36em) {
    .body-wrap {
        display: grid;
        grid-template-columns: 1.5fr 4fr;
        grid-auto-columns: 1fr;
        gap: 5rem;
        grid-template-areas:
        "filters results";
    }
}
@media screen and (min-width: 48em) {
    .results-wrap {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (min-width: 62em) {
    .results-wrap {
        grid-template-columns: repeat(3, 1fr);
    }

    header .container {
        display: grid;
        grid-template-columns: 1fr 3.5fr .5fr;
    }

    header .container .logo {
        justify-self: center;
    }
}
@media screen and (min-width: 75em) {
    .results-wrap {
        grid-template-columns: repeat(4, 1fr);
    }
}

#search-form {
    display: flex;
    border: .1rem solid var(--border-main);
    background: var(--bg-dark);
}

#search-form > button {
    width: 3.5rem;
    border: none;
    background: none;
    padding: 0 .75rem;
    color: var(--text-light);
    font-size: 2.2rem;
    font-weight: 600;
}

#search-input {
    width: 100%;
    padding: .5rem;
    border: none;
    background: none;
    text-align: center;
    color: var(--text-light);
}




/*********************/
/****** FILTERS ******/
/*********************/

#filters {
    margin-top: 2rem;
}

#filters .collapse.active {
    margin-bottom: 3rem;
}

@media (min-width:991px) {
    #filters{
        margin-top: 2rem;
        border: .1rem solid var(--border-main);
        padding: 2rem;
        padding-top: 0;
    }
    #filters .collapse{
        margin: 0 0 .8rem 0.8rem;
    }
}

.btn-collapse {
    width: 100%;
    color: var(--text-light);
}

.btn-collapse h2 {
    margin-bottom: 0;
}

.filters-content {
    min-height: max-content;
}



.lds-ripple {
    margin-top: 2rem;
}

#filters .form-check.hide{
    display: none;
}

/**********************/
/****** NORESULT ******/
/**********************/

.card-noresult {
    display: flex;
    aspect-ratio: 1;
    max-width: 20rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
    background-color: var(--white);
}

.card-noresult>img {
    max-width: 80%;
    filter: invert(15%) sepia(0%) saturate(992%) hue-rotate(208deg) brightness(95%) contrast(85%);
}