/* home */

.home-page {
    padding-top: 20rem;
    background-color: var(--color-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.home-page__section {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
#search-container {
    position: relative;
    z-index: 50;
}
.search-input {
    border-radius: 20px;
    width: 30rem;
    padding: 5px 10px;
}
.search-box {
    background: white;
    border: 4px solid black;
    width: 500px;
    height: 300px;
    position: absolute;
    bottom: -350px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    text-align: center;
}

.search-box--item {
    background: white;
    border: 1px solid black;
    padding: 10px 15px;
    user-select: none;
    font-weight: bold;
    cursor: pointer;
    text-align: left;
}

.search-box--item:hover {
    background: gray;
    color: white;
}

.home-page__category-grid {
    padding: 5rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.home-page__search-criteria-buttons {
    background-color: white;
    border-radius: 10px;
    padding: 1rem;
}

.home-page__category-box {
    background-color: white;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
    height: 200px;
    width: 200px;
    display: flex;
    align-items: end;
    justify-content: center;
    text-transform: uppercase;
    transition: all 0.2s;
}
.home-page__category-box:hover {
    transform: scale(1.05);
}
.home-page__category-box:active {
    transform: scale(1);
}

.home-page__category-text {
    color: white;
    font-weight: bold;
    user-select: none;
    z-index: 1;
    font-size: 2rem;
    background: black;
    width: 100%;
    text-align: center;
    padding: 1rem;
}

.home-page__category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    z-index: 0;
}

#category-modal__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-modal__list-item {
    border: 1px solid black;
    padding: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.category-modal__list-item:hover {
    background: gray;
    color: white;
}
