@import url(reset.css);

:root {
  --font-family: "Raleway", sans-serif;

  --body-font-size: 16px;
  --title-font-size: 22px;
  --max-width-content: 1440px;
  --logo-width: 61px;
  --height-hebergement-card-picuture-lg: 124px;
  --height-populaire-card-picuture-lg: 146px;
  --height-activities-card-picuture-lg: 380px;
  --height-activities-card-picuture-md: 200px;
  --height-activities-card-picuture-xs: 141px;

  --spacing-default: 0.5rem;
  --spacing-xxs: 0.25rem;
  --spacing-xs: 0.625rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.25rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 2.25rem;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;

  --line-height-xs: 1.4;
  --line-height-sm: 1.45;
  --line-height-md: 1.55;
  --line-height-lg: 1.6;
  --line-height-xl: 1.65;

  --font-weight-xs: 300;
  --font-weight-sm: 400;
  --font-weight-md: 500;
  --font-weight-lg: 600;
  --font-weight-xl: 700;

  --radius-default: 0.25rem;
  --radius-xs: 0.125rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl-light: 1rem;
  --radius-xl: 1.25rem;
  --radius-xxl: 2rem;

  --main-color: #0065fc;
  --main-bg-color: #f2f2f2;
  --filter-bg-color: #deebff;
  --border-color: #d9d9d9;
  --white--color: #ffffff;
  --dark--color: #000000;
}

html {
  font-size: var(--body-font-size);
}

body {
  font-family: "Manrope", sans-serif;
  font-optical-sizing: auto;
  font-weight: var(--font-weight-sm);
  font-style: normal;
  background-color: lightgrey;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
}

.header {
  background: #000000 url(../assets/banners/lampos-aritonang.png);
  background-size: cover;
  /* object-fit: cover; */
  height: 670px;
  padding: 48px;
}

.title__h2,
.header__title {
  font-family: "Anton", sans-serif;
  font-weight: var(--font-weight-sm);
  font-style: normal;
}

.header__title {
  width: 65%;
  font-size: 44px;
  margin-bottom: var(--spacing-xxl);
  color: #ffd15b;
  text-align: center;
}

.title__h2 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-xxl);
}

.title__h3 {
  color: #7a7a7a;
  font-weight: var(--font-weight-xl);
  margin-bottom: var(--spacing-md);
}

.header__content {
  width: 70%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.button__submit {
  background-color: #000000;
  color: #fff;
  padding: 0 var(--spacing-md);
  border: inherit;
  border-radius: var(--radius-md) !important;
  position: absolute;
  right: 0;
  /* height: 100%; */
  height: calc(100% - (var(--spacing-sm)));
  z-index: 1000;
  margin: 0.35rem 0.4rem 0 0;
}

.header__form {
  position: relative;
}

.header__form__input {
  /* padding: 10px 0; */
  border-radius: var(--radius-md) !important;
  padding: var(--spacing-md) !important;
}

.header__form__input::placeholder {
  font-size: var(--body-font-size);
}

.icone__loop {
  font-size: 22px;
}

.icone__delete{
  font-size: 28px;
  color: grey;
  position: absolute;
  right: 74px;
  top: 20px;
  z-index: 1000;
  cursor: pointer;
  display: none;
}

.card__recipe {
  box-shadow: 0px 4px 34px 30px #0000000a;
  border-radius: 21px;
  background-color: #fff;
}

.main__container {
  width: 95%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 3fr 3fr 3fr;
  padding: 0 2rem 2rem 2rem;
  gap: 48px;
}

.filters__container {
  width: 95%;
  margin: 0 auto;
  /* min-height: 200px; */
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card__recipe {
  position: relative;


}

.main__article{
  width: 100%;

}

.card__picture__recipe {
  height: 250px;
  object-fit: cover;
  width: 100%;
  border-radius: 21px 21px 0 0;
}

.recipe__time {
  position: absolute;
  padding: 5px 15px 5px 15px;
  background-color: #ffd15b;
  border-radius: var(--radius-xxl);
  right: var(--spacing-md);
  top: var(--spacing-md);
}

.card_content {
  padding: var(--spacing-xxl) var(--spacing-xl);
  max-height: 400px;
  overflow: hidden;
  overflow-y: auto;
}

.card__description {
  color: #7a7a7a;
  margin-bottom: var(--spacing-xxl);
}

.card__content__ingredients {
  display: flex;
  flex-wrap: wrap;
  /* grid-template-columns: repeat(2, 1fr); */
  /* padding: var(--spacing-md) 48px;
    gap: 48px; */
}

.item__ingredient__p {
  width: 50%;
  display: flex;
  flex-direction: column;
  margin-bottom: var(--spacing-xl);
  padding-right: var(--spacing-sm);
}

.item__ingredient {
  font-weight: var(--font-weight-md);
}

.item__quantity {
  color: #7a7a7a;
}

/* FILTERS */

.empty__recipe{
  text-align: center;
  font-weight: bold;
}

.filters {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.block__filter{
  width: 95%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
}

.dropdown__filters{
  display: flex;
  gap: 2.5rem;
  width: 95%;
  margin: 0 auto;
  /* padding: 2rem 48px 0 48px; */
}

.nbRecipes{
  width: 115px;
  font-family: "Anton", sans-serif;
  font-weight: var(--font-weight-sm);
  font-style: normal;
  font-size: var(--font-size-xl);
  display: flex;
  justify-content: flex-end;
}

.dropdown {
  position: relative;
}

.buttonDropdown {
  width: 195px;
  height: 56px;
  top: 20px;
  left: 20px;
  padding: 0 1rem;
  gap: 63px;
  border-radius: 11px;
  background-color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.dropdown__items {
  width: 195px;
  height: 0;
  overflow: hidden;
  overflow-y: scroll;
  background-color: #ffffff;
  border-radius: 0 0 11px 11px;
  position: absolute;
  z-index: 1000;
}

.items__link {
  display: flex;
  flex-direction: column;
}

.dropdown__items::-webkit-scrollbar {
  display: none;
}

.dropdown__item {
  text-decoration: none;
  color: #1b1b1b;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.dropdown__item:hover {
  background-color: #ffd15b;
}

.active_search_item {
  background-color: #ffd15b;
}

.search {
  padding: 0 1rem 0 1rem;
  margin-bottom: 0.5rem;
}

.icone__search {
  position: absolute;
  right: 1.1rem;
  top: 0.1rem;
  cursor: pointer;
  overflow: hidden;
  background-color: #fff;
  padding: 0.25rem;
}

.search__input {
  width: 100%;
  padding: 0.25rem 0 0.25rem 0.25rem;
  border: 1px solid #c6c6c6;
}

.dropdown__toggle {
  height: 315px;
}

.dropdown__down {
  height: 0;
}

.icone__arrow__toggle {
  transform: rotate(180deg);
}

.radius__toggle {
  border-radius: 11px 11px 0 0 !important;
}

.icone__chevron__up {
  display: none;
}

.icone__show {
  display: block !important;
}

.icone__hide {
  display: none !important;
}

.block__label__search {
  width: 95%;
  margin: 0 auto;
  padding: 0 2rem 2rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.label__search {
  width: 200px;
  background-color: #ffd15b;
  border-radius: 0.75rem;
  padding: 17px 18px 17px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icone_close_label{
  font-size: 1.25rem;
  cursor: pointer;
}


@media screen and (max-width: 768px) {

  .header__content {
    width: 100%;
    
  }

  .header__title {
    width: 100%;
    font-size: 22px;
  }

  .block__filter{
    padding: 2rem 0;
    gap: 1rem;
  }

  .main__container{
    display: flex;
    flex-wrap: wrap;
  }

  .card__recipe{
    max-height: 545px;
  }

  .card__recipe{
    max-height: 545px;
    overflow: hidden;
    overflow-y: scroll;
  }





  .dropdown__filters{
    flex-direction: column;
    gap: 1rem;

  }


}
