/* GLOBAL ======================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background-color: darkgray;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    margin-top: 0;
}

/* LAYOUT ======================================================== */
header {
    background-color: darkblue;
    color: darkgray;
    padding: 1rem;
}

main {
    height: 100%;
    flex: 1;
}

footer {
    background-color: darkred;
    padding: 0 1rem;
}

/* PAGE HEADER =================================================== */
.header__filter-btn {
    border: none;
    background: none;
    cursor: pointer;

    display: flex;
    justify-content: center;
    align-items: center;
}

.header__filter-btn-lines {
    background-color: red;
    width: 1rem;
    height: 2px;
    position: relative;
}

.header__filter-btn-lines::before,
.header__filter-btn-lines::after {
    background-color: red;
    content: '';
    position: absolute;
    height: 2px;
    left: 50%;
    transform: translateX(-50%);
}

.header__filter-btn-lines::before {
    top: -6px;
    width: 1.5rem;
}

.header__filter-btn-lines::after {
    top: 6px;
    width: 0.5rem;
}

.header__filter-btn-lines,
.header__filter-btn-lines::before,
.header__filter-btn-lines::after {
    transition: all 0.25s ease;
}

.header__filter-btn-lines.active {
    background-color: transparent;
}

.header__filter-btn-lines.active::before,
.header__filter-btn-lines.active::after {
    background: white;
    width: 1.5rem;
    top: 0;
}

.header__filter-btn-lines.active::before {
    transform: translateX(-50%) rotate(45deg);
}


.header__filter-btn-lines.active::after {
    transform: translateX(-50%) rotate(-45deg);
}

.header__search-bar {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 1rem;
}

.header__text-field {
    flex: 1;
}

.results__section {
    background-color: lightgrey;
    margin: 1rem;
    padding: 0 1rem;

    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 1rem;
}

/* CARDS ========================================================= */
.card__list {
    list-style: none;
    padding: 0;
}

.card__container {}

.card {
    background-color: gray;
    padding: 1rem;
    margin: 1rem;

    display: flex;
}

.card__portrait {
    height: 200px;
}

.card__details {
    margin: 1rem;
}