@charset "UTF-8";
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    height: 100%;
}

body {
    background: radial-gradient(#555555, #272727);
}

main {
    z-index: 10;
    position: relative;
}

.row {
    --bs-gutter-x: 0 !important;
}

span {
    font-weight: 500;
}

/*-----------------------------------------------------Dish info search-----------------------------------------------*/


.card-body, .dish_body, .dish_accordion, .accordion, .accordion-header  {
    border-radius: 10px !important;
}

.recipes-text-color {
    margin: 0;
    font-size: 25px;
    color: white !important;
}

/*Search*/
.search_form_row {
    justify-content: center;
    align-items: center;
}

.search_form {
    justify-content: center;
}

.search_form_input {
    background-color: #e4e4e4;
}

.search_button {
    align-content: center;
    text-align: center;
    font-size: 17px;
    width: 100%;
    --bs-bg-opacity: 1;
    background-color: rgba(126, 206, 0, 0.85) !important;
}

.search-form-btn-col {
    align-self: center;
}

/*Receipt cards*/
.dish_row {
    justify-content: center;
    align-items: center;
}

.dish-card {
    background-color: #f1f1f1;
    border-radius: 10px;
}

.dish_col {
    padding: 7px;
    margin: 0;
}

.card-body {
    padding: 0;
    background-color: #f1f1f1;
}

.card_img_top {
    width: 100%;
    max-height: 125px;
    border-radius: 10px;
}



@media (max-width: 449px) {
    .modal-filter-popup {
        width: 100%;
    }
}

@media (min-width: 450px) {
    .modal-filter-popup {
        width: 450px;
    }
}

@media (min-width: 360px) {
    .card_img_top {
        max-height: 110px !important;
    }
}

@media (min-width: 489px) {
    .card_img_top {
        max-height: 125px !important;
    }
}

@media (min-width: 490px) {
    .card_img_top {
        max-height: 150px !important;
    }
}


@media (min-width: 600px) {
    .card_img_top {
        max-height: 170px !important;
    }
}

@media (min-width: 790px){
    .card_img_top {
        max-height: 150px !important;
    }
}

@media (min-width: 992px){
    .card_img_top {
        max-height: 135px !important;
    }
}

@media (min-width: 1399px) {
    .card_img_top {
        max-height: 125px !important;
    }
}


@media (min-width: 1520px) {
    .card_img_top {
        max-height: 135px !important;
    }
}

@media (max-width: 719px) {
    .recipes-filter-text {
        display: none !important;
    }
}

@media (min-width: 720px) {
    .recipes-filter-text {
        display: flex !important;
    }
}

.dish_body {
    display: grid;
    margin: 0;
}

.dish-title {
    line-height: 19px;
    padding: 3px;
    margin: 0;
    height: 110px;
    align-items: center;
    align-self: center;
    display: flex;
}

.dish_name {
    text-underline-position: from-font;
    color: #272727;
    font-size: 16px;
    line-height: 17px;
    font-weight: 600;
}

.dish-like {
    padding: 2px;
    display: inline-grid;
}

.dish_like_icon {
    align-self: center;
    justify-items: center;
}


.dish-time {

}

.dish_time_to_cook {
    display: flex;
    padding: 1px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #f7f7f7;
    color: #272727;
    font-size: 14px;
    line-height: 14px;
    margin: 5px auto;
    text-align: center;
    box-shadow: 0 3px 3px 3px rgb(0 0 0 / 10%);
}


/* Стили для иконки сердца */
.heart-icon {
    display: flex;
    width: 32px;
    height: 32px;
    fill: rgba(255, 0, 0, 0.35);
    cursor: pointer;
    transition: fill 0.3s ease;
}

.heart-icon-modal {
    display: flex;
    justify-self: center;
    position: relative;
    width: 50px;
    height: 50px;
    fill: #e40000;
}

.heart-icon.liked path {
    fill: red;
}

.product_list {
    display: inline-grid;
    list-style-type: none;
    gap: 5px;
    padding: 5px 0 0 5px;
    margin: 0;
}

.product_list_element {
    font-size: 16px;
    line-height: 17px;
    font-weight: 600;
}

.product_list_element_name {
    font-weight: 400 !important;
}

/*Pagination*/
.pagination_col {

}

.pagination {
    justify-content: center;
    align-items: center;
    align-self: center;
    --bs-pagination-color: #272727;
    --bs-pagination-hover-color: #272727;
    --bs-pagination-focus-color: #272727;
    --bs-pagination-active-color: #272727 !important;
    --bs-pagination-focus-box-shadow: rgba(126, 206, 0, 0.90) !important;
    --bs-pagination-active-bg: rgba(126, 206, 0, 0.90) !important;
}

/*Recipe-filters-modal*/
.modal-filter-popup {
    background-color: #272727 !important;
    max-width: 20em !important;
    padding: 5px;
}

.modal-card-bg {
    background-color: #424242 !important;
}

/* Стили для ползунка */
#maxTimeRange {
    --slider-color: rgba(126, 206, 0, 0.90) !important;
    --slider-bg-color: #dddddd;
    width: 100%;
    appearance: none;
    height: 8px;
    border-radius: 5px;
    background: var(--slider-color, green);
    outline: none;
    transition: background 0.3s ease;
}

/* Стили для указателя ползунка (в браузерах на базе WebKit) */
#maxTimeRange::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--slider-bg-color, green);
    cursor: pointer;
}

/* Стили для указателя ползунка (в Firefox) */
#maxTimeRange::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--slider-bg-color, green);
    cursor: pointer;
}

/* Стили для текста значения времени */
#maxTimeValue {
    font-weight: bold;
    color: #dddddd;
    transition: color 0.3s ease;
}


.recipes-filter-title {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
}

.recipes-filter-category {
    margin-top: 10px;
    border-top: 2px solid white;
}

.recipes-filter-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    border-radius: 10px;
    border: 1px solid #272727;
    padding: 1px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    height: 42px;
    align-content: center;
    text-align: center;
}

label {
    display: block;
    background-color: #424242;
    padding: 5px;
    margin: 7px 0;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

label.selected {
    border: 2px solid rgba(126, 206, 0, 0.85) !important;
}

input[type="radio"], input[type="checkbox"] {
    opacity: 0;
    position: absolute;
}

input[type="radio"]:checked + label, input[type="checkbox"]:checked + label {
    border: 2px solid rgba(126, 206, 0, 0.85) !important;
    background-color: rgba(126, 206, 0, 0.15) !important;
}

/*Modal-buttons*/
.recipes-filter-buttons {
    width: 100%;
    display: flex;
    gap: 10px;
}

.recipes-form-btn {
    background-color: white !important;
    text-transform: uppercase;
    border: 1px solid #272727;
    border-radius: 10px;
    padding: 1px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    height: 45px;
    align-content: center;
    text-align: center;
}

.dish_category {
    font-size: 18px;
    text-align: start;
    text-decoration: none;
    font-weight: 500;
    color: #f7f7f7;
    padding: 5px;
}

#spinner-overlay {
    z-index: 1050;
}



