main {
  padding-top: 0;
}

section {
  padding: 0;
}

#logo-parent {
  position: absolute;
  width: 45vh;

  top: calc(50px + 5vh);
  left: 10vw;

  display: flex;
  flex-direction: column;
  justify-content: center;

  box-shadow: 0 0 50px 50px #0005;
  background-color: #0005;
  user-select: none;
}

@media (max-width: 1000px) {
  #logo-parent {
    width: 23vh;
    top: calc(50px + 2vh);
    left: 50vw;
    transform: translate(-50%, 0);
  }
}

#home-background {
  position: absolute;
  width: 100vw;
  height: 55vh;
  top: 50px;
  z-index: -10;

  filter: saturate(1.2);
  background-size: cover;
  background-position: center;
  /* background-image: url("/static/bulle/home_banner.png"); */
  background: repeating-linear-gradient(calc(90deg - var(--angle)), var(--bg) 0px, var(--bg) 50px, var(--bg-dd) 50px, var(--bg-dd) 100px);

  animation: 800ms forwards fade-appear;
}

.search-view {
  position: relative;
  border-top: 1px solid var(--border-color);
  margin-top: calc(50px + 50vh);
  padding-bottom: 50px;
  background-color: var(--bg);
  min-height: calc(50vh - 50px);
  overflow: clip;
}

.main-background {
  pointer-events: none;
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/static/ludo/games_bg.jpeg");
  background-size: 50vw;
  filter: contrast(0.3) brightness(1.5);
}

.main-background-gradient {
  pointer-events: none;
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #fff8, #fffe 20%, #fffe 80%, #fff8);
}

@media (max-width: 1000px) {
  .search-view {
    margin-top: calc(30vh + 50px);
    min-height: calc(70vh - 50px);
  }

  #home-background {
    height: 35vh;
  }

  .main-background {
    background-size: 100vw;
  }

  .main-background-gradient {
    background: linear-gradient(90deg, #fff8, #fffc 20%, #fffc 80%, #fff8);
  }
}

#search-view-head {
  padding: 10px;
  text-align: center;
}

#search-container {
  position: sticky;
  top: 49px;
  z-index: 5000;

  display: flex;
  justify-content: center;
  align-items: stretch;

  background-color: var(--bg-dd);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);

  height: 50px;
}

#search-main,
#search-overflow {
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 100%;
}

#search-overflow>* {
  min-width: 10vw;
  padding: 0 40px;
}

#search {
  color: black;
  border: none;
  padding: 0 20px;
  width: 50vw;
}

#search::placeholder {
  color: #0005;
}

.sep {
  width: 100vw;
  height: 5px;
}

.rainbow-bg {
  background: linear-gradient(
    90deg,
    var(--bulle-green),
    var(--bulle-blue)
  );
}

.search-bar-item {
  border-right: 1px solid var(--border-color);
}

.search-bar {
  border-left: 1px solid var(--border-color);
}

.search-bar::after {
  position: absolute;
  content: " ";
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--bg-d);
  transition: 200ms;
}

.search-bar input {
  z-index: 100;
}

.search-bar:focus-within {
  outline: none;
  background: linear-gradient(
    90deg,
    var(--bulle-green),
    var(--bulle-blue)
  );
  background-repeat: repeat;
  animation: search-focus 500ms forwards;
}

.search-bar:focus-within::after {
  animation: search-focus-after 300ms forwards;
}

#search-collapse-btn {
  display: none;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  font-size: 1.5rem;
}

@keyframes search-focus-after {
  0% {    
    height: 100%;
    width: 100%;
    opacity: 0.8;
  }
  100% {
    height: calc(100% - 5px);
    width: calc(100% - 5px);
  }
}

@keyframes search-focus {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 0 0;
  }
}

@media (max-width: 1000px) {
  #search-container {
    flex-direction: column;
    height: unset;
  }

  #search-main {
    margin: auto;
  }

  .search-bar-item-1 {
    height: 50px;
    width: 80%;
  }

  #search {
    width: 100vw;
  }

  #search-overflow {
    display: none;
    flex-direction: column;
  }

  #search-overflow.visible {
    display: block;
  }

  #search-overflow>* {
    height: 40px;
    margin: 0 -20px;
  }

  #search-overflow .search-bar-item {
    border-top: 1px solid var(--border-color);
  }

  .search-bar-item:focus-within {
    outline: none;
  }

  #search-collapse-btn {
    display: block;
  }

  #search-collapse-btn * {
    margin: 0 10px;
  }

  #show-labels-container {
    display: none;
  }

  #reset-filter-container {
    max-width: unset;
    width: unset;
  }
}

#search-collapse-btn {
  line-height: 50px;
}

#results-loading {
  margin-top: 50px;
  font-size: 2em;
  opacity: 0.5;
}

#results-no-results {
  color: var(--txt);
  font-size: 2em;
  z-index: 200;
}

.min-max-search-bar-item {
  display: flex;
  flex-direction: row;
  text-align: center;
  justify-content: center;
  gap: 20px;
}

.min-max-search-bar-item > span {
  text-align: center !important;
  height: 1em;
}

.min-max-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: fit-content;
  gap: 5px;
}

.min-max-label {
  width: fit-content;
}

.min-max-input {
  width: 2em;
  border: none;
  text-align: center;
  padding: 2px 0;
}

.min-max-input-parent {
  border: 1px solid var(--border-color);
  background-color: var(--bg-d);
  padding: 0 5px;
  overflow: hidden;
}

select, button {
  font-size: 1em;
  text-align: center !important;
}

.tag {
  background-color: #fff8;
  padding: 5px 10px;
  border: 1px solid var(--border-color);
}

#show-labels, #reset-filter {
  width: min-content;
  height: 40px;
  margin: 0 5px !important;
}

#show-labels img, #reset-filter img {
  height: 30px;
  margin: 5px !important;
}

.search-item-icon {
  flex-shrink: 5;
  padding: 0 !important;
  min-width: unset !important;
  width: 60%;
  max-width: 60px;
}

#cards-section {
  margin-top: 40px;
}

#search-tags {
  position: sticky;
  top: 99px;
  z-index: 4900;
  min-height: 50px;
  background-color: var(--bg-dd);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 0 50px;
}

#tag-list {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0;
}

#add-tag-btn {
  padding: 5px 10px;
  background-color: var(--rainbow-0);
  color: white;
}

@media (max-width: 900px) {
  #search-tags {
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px;
    justify-content: center;
  }

  #tag-list {
    margin: 0;
  }
}
