body{
  font-family: 'Anton', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: var(--color-light-grey);
}

:root {
  --color-yellow: rgba(255, 209, 91, 1);
  --color-black: rgba(27, 27, 27, 1);
  --color-grey: rgba(122, 122, 122, 1);
  --color-light-grey:rgba(229, 229, 229, 1);

}


header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-image: url("../assets/images/header.jpg");
    background-size: cover;
    height: 667px;
}

.logo-container {
  display: flex;
  justify-content: flex-start;
  width: 100%;}

#logo{
  margin-top: 50px;
  margin-left: 70px;
  height: 25px;
}

h1 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 44px;
  text-align: center;
  color: var(--color-yellow);
  margin-left: 275px;
  margin-right: 275px;
  margin-top: 245px;
  margin-bottom: 30px;
  text-align: center;
  word-break: break-all;
  width: 890px;
}

.search-bar {
  position: relative;
  width: 954px;
  margin: 0 245px;
}

#search-input {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 72px;
  padding: 25px 35px;
  padding-right: 60px; 
  border-radius: 11px;
  border: none;
}

#search-input::placeholder {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: var(--color-grey);
}

#search-button {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    border: none;
    background-color:rgba(27, 27, 27, 1);
    display:flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

#search-button:hover,
#search-button:active {
  background-color: var(--color-yellow) !important;
}
#search-button:hover .bi-search,
#search-button:active .bi-search {
  color: var(--color-black) !important;
}

#clear-button{
    border: none;
    background: none;
    padding: 0;
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

article {
  width: 380px;
  height: 731px;
  border-radius: 21px;
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0px 4px 34px 30px rgba(0, 0, 0, 0.04);
}

article img {
  width: 100%;
  height: 253px;
  border-top-left-radius: 21px;
  border-top-right-radius: 21px;
  object-fit: cover;
}

article .text-content {
  padding: 30px 25px;
}

article h2 {
  font-family: 'Anton';
  font-weight: 400;
  font-size: 18px;
  color:var(--color-black);
  margin-bottom: 30px;
}

article h3{
  font-family: 'Manrope';
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  color:var(--color-grey);
  margin-bottom: 10px;
}

article p, .dropdown-item, #search-input-dropdown, .tag span {
  font-family: 'Manrope';
  font-weight: 400;
  font-size: 14px;
  color: var(--color-black);
}

article h4 {
  font-family: 'Manrope';
  font-weight: 500;
  font-size: 14px;
  color: var(--color-black);
}

.ingredient {
  color: var(--color-grey);
}

.ingredients-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 0px;
  justify-items: start; 
}

.image-container {
  position: relative;
  width: 100%;
}

.image-container span {
  position: absolute;
  top: 20px;
  right: 20px;
  border-radius: 50%;
  background-color: var(--color-yellow);
  width: 65px;
  height: 26px;
  border-radius: 14px;
  padding: 5px;
  font-family: 'Manrope';
  font-weight: 400;
  font-size: 12px;
  text-align: center;
  color: var(--color-black);
}

.recipes-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 66px;
  column-gap: 50px;
  justify-content: center;
  margin: 42px 100px;
}

.description {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
}

.dropdown-item {
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.dropdown-item:hover {
  background-color: var(--color-yellow);
  color: var(--color-black);
}

.dropdown {
  font-family: 'Manrope';
  font-weight: 500;
  font-size: 16px;
  color: var(--color-black);
  border-radius: 11px;
}

.dropdown-button {
  width: 195px;
  height: 56px;
  border-radius: 11px;
  padding: 16px;
  border: none;
  display: flex;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 1);
  z-index: 3 !important;
}

.dropdown-menu {
  margin-top: -10px !important;
  gap: 13px;
  background-color: rgba(255, 255, 255, 1);
  width: 195px;
  height: 315px;
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  border-bottom-left-radius: 11px;
  border-bottom-right-radius: 11px;
  padding-top: 10px;
  border: none;
  overflow: hidden;
  overflow-y: auto;
  z-index: 2 !important;
}

.search-input-dropdown {
  border: 1px solid rgba(198, 198, 198, 1);
  width: 163px;
  height: 36px;
  border-radius: 2px;
  color: var(--color-grey);
  padding-right: 52px;
  padding-left: 10px;
}

.clear-icon, .dropdown-search-icon, .clear-button-icon {
  color: var(--color-grey);
}

.search-button-dropdown {
  border: none;
  background: none;
  padding: 0;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.clear-button-dropdown {
  border: none;
  background: none;
  padding: 0;
  position: absolute;
  right: 42px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.dropdown-button:hover, .dropdown-button:focus {
  background-color: rgba(255, 255, 255, 1);
  color: var(--color-black);
  animation-timing-function: ease-out;
  animation-duration: 300ms;
}

.search-bar-dropdown {
  margin-bottom: 10px;
  width: 195px;
  padding: 0 16px;
  position: relative;
}

.dropdown-button,
.dropdown-button:active,
.dropdown-button.active,
.dropdown-button[aria-expanded="true"],
.dropdown.show .dropdown-button {
  background-color: #fff !important;
  color: var(--color-black) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.dropdown-button .bi-chevron-down {
  transition: transform 0.3s ease;
}

.dropdown-button[aria-expanded="true"] .bi-chevron-down {
  transform: rotate(180deg);
}

.filters-container,.tags-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding : 20px 100px;
}

.subtitle {
  font-family: 'Anton';
  font-weight: 400;
  font-size: 21px;
  color:var(--color-black)
}

.recipes-filters {
  display: flex;
  gap: 65px;
}

.tags-container {
  justify-content: flex-start;
  gap: 15px;
  padding: 0 100px;
}

.tag {
  width: 203px;
  height: 53px;
  border-radius: 10px;
  padding: 17px;
  background-color: var(--color-yellow);
  display:flex;
  align-items: center;
  justify-content: space-between;
}

.tag button {
  border: none;
  background: none;
  padding: 0;
  color: var(--color-black)
}

.tag span {
  flex:1
}

.selected-dropdown-item {
  background-color: var(--color-yellow);
  font-weight: 700;
  cursor: default;
}

.dropdown-tag-remove {
  cursor: pointer;
}

.no-results-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.no-results-message {
  text-align: center;
  margin-top: 50px;
  max-width: 700px;
  width: 100%;
}