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

#kokebok-ny {
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
}

    #kokebok-ny #progress {
        height: 90px;
    }

    #kokebok-ny #form {
        overflow-y: auto;
        padding: 10px 0;
        height: calc(100vh - 90px - 80px - 50px - 42px); /* Minus progression, buttons and topbar og tittel*/
    }

        #kokebok-ny #form .preview-photo-container {
            max-width: 800px;
        }

    #kokebok-ny #buttons {
        height: 80px;
    }

#kb-velg-nøkkelord {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

#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;
    }

.recipe-main-image {
    height: 600px;
    width: 1200px;
    object-fit: cover;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .recipe-main-image {
        height: 300px;
        border-radius: 0;
        width: 100%;
    }
}

.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;
}

#ingredient-adder h6 {
    padding-left: 10%;
}

#ingredient-adder button {
    padding-left: 10%;
}

.ingredient-drag-indicator {
    cursor: pointer;
    font-size: 30px;
    width: 10%;
    padding: 0px 5px;
}

.kokebok-portion-input {
    padding-left: 10%;
}

#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;
    }
