﻿/* CSS for category list when no results are found */
.category-list-home {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: calc(100% + 1rem);
    height: 155px;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 0 1rem -0.75rem;
}

@media (min-width: 641px) {
    .category-list-home {
        flex-wrap: wrap;
        width: 100%;
        height: auto;
        overflow-x: auto;
        overflow-y: auto;
        margin: 1rem 0;
    }
}

.category-list-home .category-item {
    display: inline-block;
    width: 8.33%;
    min-width: 101px;
    min-height: 150px;
    margin: 0;
    padding: 0.5rem 0 0;
    white-space: normal;
}

.category-item-content {
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    line-height: 1.2;
    font-weight: 600;
    color: #444;
}

@media (min-width: 861px) {
    .category-item-content:hover {
        text-decoration: none;
    }
}

.category-list-yin .category-item-content {
    color: var(--link-color);
}

.category-list-home .category-name {
    display: inline-block;
    width: 90%;
    text-align: center;
    padding: 8px 5px;
    border-radius: 8px;
}

@media (min-width: 861px) {
    .category-list-home .category-name {
        transition: background-color .2s ease-in;
    }

    .category-list-home a:hover .category-name {
        background-color: rgba(251, 186, 16, 0.2);
        color: #444;
    }
}

.category-item {
    font-family: var(--primary-font-family);
    font-size: 0.875rem;
    font-weight: 500;
}

.category-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    border-radius: 50%;
    text-align: center;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    background-color: #1778bc;
    box-shadow: 0px 3px 16px #AAAAAA4D;
    transition: background-color .2s ease-in;
}

@media (min-width: 861px) {
    .category-list-home a:hover {
        text-decoration: none;
    }

        .category-list-home a:hover .category-item-icon {
            background-color: #2e95df;
        }
}

.category-item-icon svg {
    width: 32px;
    height: auto;
}

/* background color classes */
.bg-color-light-blue {
    background: #1CA1E2 !important; /* light-blue */
}

.bg-color-dark-orange {
    background: #EF6F11 !important; /* dark-orange */
}

.bg-color-light-pink {
    background: #F472D0 !important; /* light-pink */
}

.bg-color-red {
    background: #CE223F !important; /* red */
}

.bg-color-dark-pink {
    background: #D22582 !important; /* dark-pink */
}

.bg-color-purple {
    background: #B050DF !important; /* purple */
}

.bg-color-light-orange {
    background: #F1A30A !important; /* light-orange */
}

.bg-color-light-green {
    background: #7ca917 !important; /* light-green */
}

.bg-color-mint-green {
    background: #44B55F !important; /* mint-green */
}

.bg-color-dark-green {
    background: #2D922D !important; /* dark-green */
}

.bg-color-dark-blue {
    background: #1C5CDC !important; /* dark-blue */
}

.bg-color-yellow {
    background: #FFBC00 !important; /* yellow */
}

.bg-color-teal {
    background: #00A591 !important; /* teal */
}

.category-list-yang .category-item svg, .category-list-item {
    fill: #fff;
}

@media (max-width: 860px) {
    .category-list-wrap {
        width: 100%;
    }

    .category-list-home {
        flex-wrap: wrap;
        width: 100%;
        height: auto;
        margin: 0 0 1rem;
    }

        .category-list-home .category-item {
            width: 33%;
        }
}

@media (min-width: 1249px) {
    .category-list-home .category-item {
        width: 16.66%;
    }
}

.noresults-message {
    width: 100%;
    text-align: center;
    line-height: 1.4;
    font-family: var(--secondary-font-family);
    font-weight: 600;
}

@media (max-width: 640px) {
    .noresults-message {
        margin: 0 0 16px;
        font-size: 16px;
    }
}

@media (min-width: 641px) {
    .noresults-message {
        margin: 32px 0;
        font-size: 20px;
    }
}
