/* styles for recipe searches, etc */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.no-flex {
  display: block;
}

.logo-image-sm {
  width: 200px;
  height: auto;
  border-radius: 3px;
}

.logo-image {
  width: 400px;
  height: auto;
  border-radius: 5px;
}

.logo-image-lg {
  width: 800px;
  height: auto;
  border-radius: 6px;
}

.recipe {
  margin: 10px;
}

.recipe-image {
  width: 400px;
  height: auto;
}

.search-results .row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch; /* ensures child cards stretch to match the tallest card in the row */
}

/* Ensure the column wrapper stretches its content */
.search-results .row .col.result {
  display: flex;
  margin-bottom: 25px;
}

/* Make the card fill the height of its column wrapper */
.search-results .row .col.result .card {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Make the card body take up any remaining space */
.search-results .row .col.result .card .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.search-results .row .col.result .card .card-body .recipe-link {
  margin-top: auto;
}

.thumbnail {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
}

.card {
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  flex: 1; /* allow card to grow equally */
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
  .recipe-link {
    cursor: pointer;
  }
}

.card.no-click {
  pointer-events: none;
}

.card-body {
  flex-grow: 1;
}

.card-body a{
  width: 100%;
}

.slogan {
  text-align: center;
}

.search.container {
  padding: 50px 10px 50px 10px;
}

.search-component {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  input {
    margin: 5px;
  }
}

.btn-search {
  min-width: 80px;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-search:disabled {
  background-color: gray;
  border-color: gray;
  cursor: not-allowed;
}
.btn-search:hover {
  background-color: var(--dark-color);
  border-color: var(--dark-color);
}

tags {
  min-width: 400px;
  max-width: 400px;
}

.tagify__input {
  min-width: none;
  min-height: 25px;
}

.tagify--select::after {
  display: none;
}

/* mobile */
@media (max-width: 768px) {
  .slogan {
    h3 {
      width: 74%;
    }
  }

  .tags {
    max-width: none;
  }
}


/* Hide the scrollbar but keep functionality */
::-webkit-scrollbar {
  width: 0;
  height: 0;
}

* {
  scrollbar-width: none; /* For Firefox */
  -ms-overflow-style: none; /* For Internet Explorer and Edge */
}
