﻿/**********************************/
/*        KOKEBOK                 */
/**********************************/

#recipe-search-grid {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(auto-fill, 250px);
    grid-auto-rows: minmax(100px, auto);
    gap: 20px;
    color: #333333;
    padding: 10px;
}

@media (max-width: 768px) {
    #recipe-search-grid {
        grid-template-columns: repeat(auto-fill, 200px);
        gap: 15px;
        padding: 0;
    }
}

@media (max-width: 576px) {
    #recipe-search-grid {
        grid-template-columns: repeat(auto-fill, 160px);
        gap: 10px;
        padding: 0;
    }
}

#recipe-search-grid .search-item {
    background-color: lightyellow;
    width: 100%;
    border: 1px solid black;
    border-radius: 10px;
}

    #recipe-search-grid .search-item.recipe {
        background-color: lightyellow;
    }

    #recipe-search-grid .search-item.meal {
        background-color: #ffeeee;
    }

    #recipe-search-grid .search-item:hover {
        background-color: #ffffad;
    }

    #recipe-search-grid .search-item .search-item-image {
        object-fit: cover;
        width: 100%;
        border-radius: 10px;
    }

.bl-tag {
    background-color: var(--bl-green);
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 16px;
    margin-right: 5px;
}

    .bl-tag.tag-small {
        font-size: 14px;
        padding: 4px 8px;
        margin-right: 3px;
    }

.bl-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    color: white;
    padding: 5px 10px;
    font-size: 16px;
}

    .bl-tab.left {
        border-top-left-radius: 20px 10px;
    }

        .bl-tab.left.open {
            background-color: var(--bl-green);
        }

        .bl-tab.left.closed {
            background-color: grey;
            cursor: pointer;
        }

    .bl-tab.right {
        border-top-right-radius: 20px 10px;
    }

        .bl-tab.right.open {
            background-color: var(--bl-green);
        }

        .bl-tab.right.closed {
            background-color: grey;
            cursor: pointer;
        }

.recipe-description {
    padding: 20px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    background-color: lightyellow;
    border-radius: 30px;
    border: 1px solid black;
}

#created-by-info {
    width: fit-content;
    background-color: var(--bl-green);
    color: white;
}


#kokebok-filter {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: var(--top-bar-height-mobile);
    left: 0;
    background-color: var(--top-bar-color);
    transition: 250ms;
    overflow: hidden;
}

    #kokebok-filter.open {
        width: 100vw;
    }

        #kokebok-filter.open * {
            animation: AppearAfter 275ms forwards;
        }

@media (min-width: 768px) {
    #kokebok-filter.open {
        width: 350px;
    }
}

#kokebok-filter-open-btn {
}

#kokebok-filter-close-btn {
    display: block;
    margin-left: auto;
    margin-right: 5px;
    margin-top: 5px;
}



#kokebok-filter.closed {
    width: 0;
}

    #kokebok-filter.closed * {
        opacity: 0;
    }
