/*General Index pages*/
p {
  margin: 0.1rem;
}

#index-top-container {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding-top: 8rem;
  margin-bottom: 3.15rem;
  position: relative;
  height: 18rem;
}

#search-bar-mover {
  position: absolute; 
  bottom: -3.15rem; 
  width: 100%;
}

.index-title {
  color: white;
  text-shadow: 0px 0px 10px black;
}

/* #index-container {
  padding-top: 4rem;
  padding-left: 1rem;
  padding-right: 1rem;
} */

.badge-dark {
  white-space: inherit;
}

#index-item-container {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

#advanced-filter-link {
  display: none;
  margin-bottom: 1.5rem;
}

.flex-container {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  padding: 0;
  margin: 0;
  list-style: none;
}

.flex-item {
  padding: 20px 15px 0 15px;
  flex-basis: 15%;
  flex-grow: 0;
  text-align: left;
}

@media only screen and (max-width: 2000px) {
  .flex-item {
    flex-basis: 25%;
  }
}

@media only screen and (max-width: 1600px) {
  .flex-item {
    flex-basis: 33.33%;
  }
}

@media only screen and (max-width: 768px) {
  .flex-item {
    flex-basis: 50%;
  }
}

@media only screen and (max-width: 450px) {
  .flex-item-video,
  .flex-item-article {
    flex-basis: 100%;
  }
}

.flex-item-article .card-img {
  object-fit: cover;
  aspect-ratio: 3/2;
}

.flex-item h3.title {
  padding-top: 1rem;
}

.dropdown-menu {
  width: 100%;
  transition: all 0.3s ease-in-out;
}

.dropdown-menu {
  background-color: rgb(255, 255, 255, 0);
}

.dropdown-menu[role="combobox"] {
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  background-color: rgb(255, 255, 255, 0.7);
}

.dropdown-menu:hover {
  border-radius: 20px;
}

.btn.dropdown-toggle {
  padding: 0.3rem 0.8rem 0.3rem 0.5rem;
}

.dropdown.bootstrap-select {
  width: 210px;
}

.filter-column {
  min-width: 250px;
  min-height: 33px;
}

.dropdown button {
  background-color: var(--col-green-5);
  color: var(--col-green-1) !important;
  font-weight: 300;
}

.dropdown button:hover,
.dropdown button:active {
  background-color: var(--col-green-5);
  color: var(--col-green-1) !important;
  font-weight: 300;
}

.pagination {
  display: inline-block;
  margin: 0 auto;
}

.pagination-form {
  display: inline;
}

.pagination-form-input {
  width: initial;
  display: inline;
  padding: 0.2rem;
  text-align: center;
  width: 2.5rem;
}

.page-arrow {
  font-size: 1.9rem;
  padding: 0 0.5rem 0 0.5rem;
  opacity: 0.4;
}

.page-text {
  font-size: 1.2rem;
}

.page-arrow:hover {
  opacity: 1;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

/*Allergen*/
.badge.badge-circle {
  border-radius: 50%;
  width: 1.7rem;
  height: 1.7rem;
  box-shadow: 1px 1px 3px grey;
}

.badge-icon-container {
  position: relative;
  margin-top: 1rem;
}

#index-yt-icon {
  vertical-align: middle;
}

#index-yt-link:hover {
  transform: scale(1.05);
}

/*Tablet*/
@media only screen and (max-width: 992px) {
  /* #advanced-filter-link {
    font-size: 0.9rem;
    padding: 0.2rem 0.4rem 0.2rem 0.4rem;
  } */

  #advanced-filter {
    display: none;
  }

  #advanced-filter-link {
    display: inline-block;
  }
}

/*Mobile*/
@media only screen and (max-width: 576px) {
  #index-container {
    padding-top: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #index-container .col-sm-6 {
    padding: 0;
  }

  #index-container h1 {
    font-size: 1.6rem;
  }

  #index-container h5 {
    font-size: 1.1rem;
  }

  #index-container .btn {
    font-size: 0.9rem;
    padding: 0.2rem 0.4rem 0.2rem 0.4rem;
  }

  #index-item-container {
    padding: 0.2rem;
  }

  /*Index*/
  .flex-item {
    padding: 10px 2px 0 2px;
    text-align: left;
    line-height: 1;
    position: relative;
  }

  .flex-item h3 {
    margin-bottom: 0.2rem;
  }

  .flex-item h3.subtitle {
    margin-bottom: 0.2rem;
  }
}
