.recipes-container {
    margin: 0 100px;
    min-height: 700px;
}

.recipes-cards-container {
    z-index: 5;
    position: relative;
    display: flex;
    flex-wrap: wrap;
}

.title-container {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.search-container {
    position: relative;
    width: 60%;
    margin-top: 24px;
}

.icon-search-recipes {
    position: absolute;
    top: 12px;
}

.recipes-search {
    width: 100%;
    border-radius: 20px;
    appearance: none;
    outline: none;
    padding: 8px 45px;
    font-size: 16px;
    border: 2px solid var(--my-main);
    box-shadow: var(--my-light-shadow);
}

.cards-container {
    margin-top: 80px;
}

.card-link {
    z-index: 5;
    height: fit-content;
    position: relative;
    color: black;
}

.card-link:hover {
    color: var(--my-main-dark-text);
}

.content-card {
    min-width: 200px;
    height: fit-content;
    overflow: hidden;
    padding: 8px;
    margin: 16px 0;
}

.content-card-img {
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 200px;
}

.content-card-content {
    padding: 8px 0;
}

.content-card-title {
    font-family: var(--my-title-font);
    font-size: 24px;
}

.content-card-text {
    font-family: var(--my-text-font);
    font-size: 16px;
    margin: 0;
}


/* Recipe page */

.recipe-container {
    min-height: 600px;
}

.recipe-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.recipe-title {
    text-align: center;
    z-index: 5;
    font-size: 36px;
    margin-top: 12px;
    margin-bottom: 16px;
    max-width: 60%;
    text-wrap: wrap;
    font-weight: 400;
    font-family: var(--my-title-font);
}

.recipe-outline {
    background-color: white;
    padding: 4px;
    border: 1px solid var(--my-border);
    box-shadow: var(--my-shadow);
    z-index: 5;
    border-radius: 200px;
}

.recipe-image {
    background-size: cover;
    object-fit: cover;
    border-radius: 200px;
    width: 260px;
    height: 260px;
}

.recipe-info-container {
    height: 550px;
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.info-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 28px;
}

.recipe-subtitle {
    font-size: 36px;
    margin-top: 24px;
    font-weight: 500;
    font-family: var(--my-title-font);
}

.info-title {
    font-size: 28px;
    font-weight: 500;
}

.info-value {
    font-size: 28px;
    font-weight: 400;
    text-transform: capitalize;
    font-family: var(--my-text-font);
}

.info-image {
    width: 200px;
}

.recipe-selection-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 120px;
    margin-bottom: 60px;
    direction: ltr!important;
}

.recipe-selection-square {
    position: absolute;
    height: 500px;
    width: 500px;
    border: 1px solid gray;
    top: -50px;
}

.recipe-instruction-image-container,
.recipe-ingredients-image-container {
    position: relative;
    z-index: 6;
    background-color: white;
    padding: 4px;
    border: 1px solid gray;
    border-radius: 4px;
    transition: box-shadow .3s;
    cursor: pointer;
}

.recipe-ingredients-image-container:hover,
.recipe-instruction-image-container:hover {
    box-shadow: var(--my-shadow);
}

.recipe-ingredients-image {
    width: 250px;
    height: 400px;
    cursor: pointer;
}

.recipe-instruction-image {
    width: 250px;
    height: 400px;
    cursor: pointer;
}

.ingredients-title {
    position: absolute;
    font-size: 24px;
    top: 8px;
    left: 12px;
}

.instructions-title {
    position: absolute;
    font-size: 24px;
    bottom: 8px;
    left: 12px;
}

.recipe-selection-title-container {
    text-align: center;
    margin-top: 70px;
    margin-bottom: 40px;
}

.recipe-selection-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    font-family: var(--my-title-font);
}

.recipe-content {
    padding: 14px 250px 60px 250px;
    min-height: 400px;
    font-family: var(--my-text-font);
}

.ingredient-box {
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.credits {
    font-size: 14px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.space-left {
    padding-left: 200px;
}

.space-right {
    padding-right: 200px;
}

.back-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.circle {
    width: 120px;
    height: 120px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--my-main-dark-bg);
}

.back-icon {
    font-size: 40px;
    color: var(--my-main-dark-bg);
}

.back-label {
    margin-top: 4px;
    color: var(--my-main-dark-bg);
}

@media (max-width: 1200px) {
    .recipes-container {
        margin: 0 14px;
        min-height: 700px;
    }
    .recipes-cards-container {
        width: 100%;
    }
    .recipe-box {
        width: 200px;
        height: 150px;
    }
    .recipe-box-content {
        padding: 5px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .recipes-container {
        margin: -240px 14px 20px 14px;
        min-height: 700px;
    }
    .recipes-cards-container {
        width: 100%;
    }
    .recipes-cards-title {
        width: 200px;
    }
    .search-container {
        width: 90%;
        margin-top: 60px;
    }
    .content-card {
        margin: 8px 0;
        min-width: 100px;
    }
    /* Recipe page */
    .recipe-title {
        font-size: 22px;
        max-width: 80%;
    }
    .recipe-image {
        object-fit: cover;
        width: 170px;
        height: 170px;
    }
    .recipe-info-container {
        height: 380px;
    }
    .info-title,
    .info-value {
        text-align: center;
        font-size: 16px;
        white-space: nowrap;
    }
    .info-image {
        width: 80px;
    }
    .recipe-selection-container {
        gap: 30px;
    }
    .recipe-ingredients-image {
        width: 150px;
        height: 250px;
    }
    .recipe-instruction-image {
        width: 150px;
        height: 250px;
    }
    .recipe-selection-square {
        width: 220px;
        height: 352px;
    }
    .recipe-content {
        padding: 10px 12px 40px 12px;
    }
    .cards-container {
        margin-top: 24px;
    }
}