body p  {
    font-family: 'Manrope', sans-serif;
}
h1 h2 h3 {
    font-family: 'Anton', sans-serif;
}
header {
    position: relative;
}
 
header img {
    width: 100%;
    height: 660px;
    object-fit: cover;
}
.header-title {
  position: absolute;
  top: 5%;
  left: 5%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-title h1 {
  font-family: 'Anton', sans-serif;
  color: white;
  font-size: 24px;
  text-transform: uppercase;
  margin: 0;
}

.circle-icon {
  position: relative;
  width: 16px;
  height: 16px;
}

.circle-icon .outer {
  font-size: 16px;
  color: white;
  position: absolute;
  top: 0;
  left: 0;
}

.circle-icon .inner {
  font-size: 8px;
  color: white;
  position: absolute;
  top: 4px; /* center it */
  left: 4px;
}

header p {
    position: absolute;
    font-size: 44px;
    color: #ffd15d;
    top: 34%;
    margin: 0;
    font-family: 'Anton',sans-serif;
    text-align: center;
    width: 100%;
}
.searchbar {
  position: absolute;
  bottom: 35%;
  left: 16%;
  width: 70%;
  display: flex;
  align-items: center;
  position: absolute;
}

#main-search {
  width: 100%;
  height: 50px;
  border-radius: 10px;
  padding-left: 15px;
  padding-right: 70px; /* reserve space for icons */
  font-size: 16px;
  position: relative;
}

.search-icon-btn {
  position: absolute;
  right: 10px;
  height: 33px;
  width: 36px;
  background-color: black;
  border-radius: 9px;
  border: none;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-icon-btn:hover {
  background-color: #ffd15d;
  color: black;
}

.clear-icon {
  position: absolute;
  right: 55px;
  font-size: 20px;
  color: #888;
  cursor: pointer;
  display: none;
}

#top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: lightgray;
}

#recipe-count {
  font-size: 18px;
  font-weight: bold;
  color: #1b1b1b;
}

#filters {
    display: flex;
    padding: 20px;
    gap: 15%;
    background-color: lightgray;
    flex-wrap: wrap;
    flex-direction: row-reverse;
}
/* DROPDOWN CONTAINER */
.dropdown {
  position: relative;
  display: inline-block;
  margin-right: 1rem;
}

/* DROPDOWN TOGGLE BUTTON */
.dropdown-toggle {
  width: 179px;
  height: 56px;
  border-radius: 10px;
  cursor: pointer;
  padding: 0.6rem 1rem;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  font-weight: bold;
}

/* CONTENT INSIDE DROPDOWN (input + list) */
.dropdown-content {
  display: none;
  flex-direction: column;
  background: white;
  padding: 10px;
  position: absolute;
  top: 110%; /* below the button */
  z-index: 100;
  width: 250px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

/* WHEN DROPDOWN IS OPEN, SHOW CONTENT */
.dropdown.open .dropdown-content {
  display: flex;
}

/* THE INPUT INSIDE DROPDOWN */
.dropdown-content input {
  padding: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
}

/* THE LIST ITSELF */
.dropdown-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 180px;
  overflow-y: auto;
}

/* EACH LIST ITEM */
.dropdown-list li {
  padding: 5px;
  cursor: pointer;
  transition: background 0.2s;
}

/* ON HOVER */
.dropdown-list li:hover {
  background-color: #eee;
}

/* HIGHLIGHTED MATCHING PART */
.highlight {
  background-color: #ffd15d;
  font-weight: bold;
}
/* When hovering over any dropdown list item */
.dropdown-list li:hover {
  background-color: #ffd15d;
  color: black;
}
.dropdown-input-wrapper {
  position: relative;
  width: 100%;
}

.dropdown-input-wrapper input {
  padding: 8px 35px 8px 30px; /* left and right for icons */
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

/* Magnifying glass icon */
.dropdown-input-wrapper i.fa-search {
  position: absolute;
  right: 30px;
  top: 37%;
  transform: translateY(-50%);
  color: #999;
}

/* Clear icon */
.filter-clear {
  position: absolute;
  right: 52px;
  top: 39%;
  transform: translateY(-50%);
  color: #666;
  cursor: pointer;
  font-size: 18px;
  display: none;
}
/* Selected tag container */
#selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin:0;
  padding: 10px;
  background-color: lightgray;
}

/* Tag style */
.tag {
  background-color: #ffd15b;
  color: #000;
  padding: 20px 20px;
  border-radius: 15px;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

/* Tag remove  style */
.tag-remove {
  font-weight: bold;
  font-size: 16px;
  color: #000;
  cursor: pointer;
}

/* Highlighted text in dropdown filters */
.highlight {
  background-color: yellow;
  font-weight: bold;
}
.recipie-card img {
    width: 340px;
    height: 253px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    object-fit: cover;
}
.recipie-card {
    display: flex;
    flex-direction: column;
    width: 340px;
    background-color: white;
    position:relative;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.time {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ffd15d;
    padding: 9px;
    border-radius: 30px;
}
#recipies-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: lightgray;
    gap: 60px;
}
h3 {
    margin: 0;
    padding: 15px;
    color: grey;
}
.recipe-header {
    margin: 0;
    padding: 15px;
}
.description {
    margin: 0;
    padding: 15px;
}
.ingredients-grid {
    display: grid;
    grid-template-columns: 190px 190px;
    padding: 15px;
    margin: 0;
}
.far-fa.clock {
    border: 2px solid #ccc;
    border-radius: 27px;
    background-color: #ffd15d;
    padding: 5px;
    position: absolute;
    top: 25px;
    right: 25px;
}
