@font-face {
    font-family: "Anton";
    src: url("../font/Anton/Anton-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "Manrope";
    src: url("../font/Manrope/Manrope-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
}

* {
    box-sizing: border-box;
    font-family: "Manrope", sans-serif;
}

/* header */
.banner {
    background: url('../assets/Banner/lampos-aritonang-24gR_9lCdes-unsplash-1.webp') center / cover no-repeat;
    display: flex;
    height: 667px;
    position: relative;
}

.logo {
    width: 207px;
    height: 25.26px;
    margin: 51px 0 0 69px;
    position: absolute;
}

.div-search {
    margin: auto;
}

.h1-banner {
    color: #FFD15B;
    width: 710px;
    height: 132px;
    margin: auto;
    text-align: center;
    font-size: 2.75em;
    line-height: 66.24px;
    font-weight: 400;
    font-family: "Anton", sans-serif;
}

.form-search {
    position: relative;
}

.paragraph-search {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.search {
    width: 954px;
    Height: 72px;
    border-radius: 10px;
    padding: 0 75px 0 35px;
    border: none;
    outline: none;
    position: relative;
}

.search::-webkit-search-cancel-button {
    opacity: 0;
}

.btn-remove {
    position: absolute;
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    border: none;
    clip-path: circle(0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    width: 1px;
}

.btn-remove::after {
    cursor: pointer;
    font: var(--fa-font-solid);
    content: "\f00d";
    display: inline-block;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    position: absolute;
    top: 0%;
    right: 6%;
    color: #7A7A7A;
    font-size: 25px;
}

.btn-remove-delete {
    width: 25px;
    height: 25px;
    top: 25px;
    left: 856px;
    cursor: pointer;
    opacity: 1;
    clip-path: circle(100%);
}

.span-search {
    Width: 51px;
    Height: 52px;
    border-radius: 10px;
    background-color: #000000;
    margin-right: 15px;
    position: absolute;
    top: 10px;
    left: 893px;
    border: none;
    color: #ffffff;
}

.fa-magnifying-glass {
    position: absolute;
    font-size: 1.688em;
    top: 25%;
    right: 25%;
}

.span-search-active {
    background-color: #FFD15B;
    color: #000000
}

.main-page {
    padding: 21px 102px;
    background-color: #EDEDED;
}

/* section tag */

.div-tag {
    display: flex;
    gap: 63px;
    align-items: flex-start;
    height: 56px;
}

.btn-tag {
    position: relative;
    width: 195px;
    height: auto;
    max-height: 56px;
    border-radius: 11px;
    background-color: #ffffff;
    border: none;
    display: flex;
    flex-direction: column;
    z-index: 1;
    color: #1B1B1B;
    overflow: hidden;
    transition: max-height 300ms linear;
}

.btn-tag::after {
    content: "";
    position: absolute;
    width: 195px;
    height: 56px;
    border-radius: 11px;
    cursor: pointer;
    top: 0;
    left: 0;
    z-index: 1;
}

.btn-tag-active {
    height: 315px;
    max-height: 315px;
    overflow: hidden;
    cursor: default;
    transition: max-height 300ms linear;
}

.titre-btn {
    font-size: 1em;
    position: relative;
    padding: 5px 15px 0;
}

.titre-btn::after {
    font: var(--fa-font-solid);
    content: "\f078";
    display: inline-block;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    position: absolute;
    right: 15px;
    top: 5px;
    animation: arrow_down 300ms ease-out both;
}

.titre-btn::before {
    content: "";
    position: absolute;
    width: 195px;
    height: 56px;
    top: -18px;
    left: 0px;
}

.btn-tag-active .titre-btn::before {
    z-index: 1;
    cursor: default;
}

.form-tag {
    transition: opacity 300ms;
}

.btn-tag>.form-tag {
    opacity: 0
}

.btn-tag-active>.titre-btn::after {
    animation: arrow_up 300ms ease-out both;
}

.btn-tag-active>.form-tag {
    opacity: 1
}

.tag-search {
    position: relative;
    z-index: 2;
    width: 165px;
    height: 36px;
    border-radius: 2px;
    border: #7A7A7A 1px solid;
    outline: none;
    color: #7A7A7A;
    font-size: 0.875em;
    margin-left: 15px;
}

.tag-search::-webkit-search-cancel-button {
    opacity: 0;
}

.btn-remove-tag {
    position: absolute;
    opacity: 0;
    border: none;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    width: 1px;
}

.btn-remove-tag-active {
    opacity: 1;
    height: 10px;
    width: 10px;
    top: 62px;
    right: 48px;
    overflow: clip;
}

.btn-remove-tag::after {
    cursor: pointer;
    font: var(--fa-font-solid);
    content: "\f00d";
    display: inline-block;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    position: absolute;
    color: #7A7A7A;
    font-size: 12px;
    width: 10px;
    height: 10px;
    top: 0px;
    left: 2px;
    z-index: 2;
}

.span-search-tag {
    color: #7A7A7A;
    position: absolute;
    top: 57px;
    right: 19px;
    font-size: 10px;
    width: 27px;
    height: 20px;
    z-index: 2;
}

.span-search-tag::after {
    content: "";
    width: 13px;
    height: 19px;
    position: absolute;
    right: 1px;
    z-index: 1;
}

.span-search-tag>.fa-magnifying-glass {
    height: 27px;
    position: absolute;
    top: 2px;
    right: 7px;
}

.ul-tag {
    list-style-type: none;
    padding: 0;
}

.li-tag {
    font-size: 0.875em;
    line-height: 1.195em;
    margin-bottom: 15px;
    color: #1B1B1B;
    text-transform: capitalize;
    padding-left: 15px;
    cursor: pointer;
}

.li-tag-active {
    width: 195px;
    height: 37px;
    background-color: #FFD15B;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    cursor: default;
}


.li-tag-active:hover {
    font-weight: 900;
}

.remove-tag {
    opacity: 0;
    right: 15px;
    background: rgba(0, 0, 0, 0);
    border: none;
    clip-path: circle(0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.li-tag-active:hover .remove-tag {
    opacity: 1;
    width: 15px;
    height: 15px;
    clip-path: circle(100%);
    overflow: visible;
}

.remove-tag::after {
    position: absolute;
    cursor: pointer;
    font: var(--fa-font-solid);
    content: "\f057";
    display: inline-block;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    top: 0px;
    right: 0px;
    font-size: 17px;
}

.nb-recipe {
    margin-left: auto;
    font-size: 1.3125em;
    font-weight: 400;
    font-family: "Anton", sans-serif;
}


.tag-selection {
    display: flex;
    padding: 0;
    gap: 15px
}

.tag-selection .li-tag-active,
.tag-selection .li-tag-active:hover {
    width: 203px;
    height: 53px;
    border-radius: 10px;
    font-weight: 400;
}

.tag-selection .remove-tag,
.tag-selection .remove-tag::after {
    content: "\f00d";
}


/* style recettes */
.section-media {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.error-text {
    font-size: 1.5em;
    color: #FFD15B;
    display: flex;
    font-weight: 600;
    width: 954px;
    text-align: center;
    overflow-wrap: break-word;
    margin: auto;
}

.article-media {
    width: 380px;
    height: 731px;
    border-radius: 21px;
    background-color: #ffffff;
    margin: 55px 0;
    position: relative;

}

.article-media:nth-child(3n+2) {
    margin: auto;
}

.article-media:nth-child(3n+3) {
    margin-left: auto;
}

.figure-media {
    margin: 0;
}

.img-media {
    width: 380px;
    height: 253px;
    object-fit: cover;
    border-radius: 21px 21px 0 0;
}

.figcaption-media {
    font-family: "Anton", sans-serif;
    font-size: 1.125em;
    margin: 32px 0 0 25px;
}

.div-recipe-media {
    margin: 32px 25px 32px 25px;
}

.paragraph-recipe-media {
    font-size: 0.875em;
    color: #000000;
    height: 76px;
    overflow: hidden;
    line-height: 19.12px;
}

.div-ingrédient-media {
    margin: 0 25px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    height: 190px;
}

.title-recipe-media {
    font-weight: 700;
    font-size: 0.75em;
    color: #7A7A7A;
    text-transform: uppercase;
    grid-column: 1 / 3;
}

.div-title-media {
    height: 39px;
    margin-bottom: 25px;
}

.title-ingredient-media {
    font-size: 0.875em;
    font-weight: 500;
    line-height: 19.12px;
    margin: 0;
    width: 159px;
}

.ingredients-recipe-media {
    font-size: 0.875em;
    font-weight: 400;
    color: #7A7A7A;
    margin: 0;
}

.paragraph-time {
    position: absolute;
    top: 9px;
    left: 295px;
    width: 63px;
    height: 26px;
    background-color: #FFD15B;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75em;
    font-weight: 400;
    line-height: 16.39px;
}

@keyframes arrow_up {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-180deg);
    }
}

@keyframes arrow_down {
    from {
        transform: rotate(-180deg);
    }

    to {
        transform: rotate(0deg);
    }
}