/* FilterSidebar Styles */

#filters-container {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  align-items: center;
  position: fixed;
  top: 60px;
  right: 0;
  z-index: 500;
  background: #F9F4ED;
  transform: translateX(105%);
  transition: all 0.3s ease-in-out;
  height: calc(100vh - 60px);
  width: 100vw;
  box-shadow: -7px 5px 7px -1px rgba(0, 0, 0, 0.63);
  overflow: visible;
}

@media (min-width: 840px) {
  #filters-container {
    width: 30vw;
    top: 60px;
    height: calc(100vh - 60px);
  }
}

#filters-container.active {
  transform: translateX(0%);
}

#filters-container.active #close-btn {
  transform: translateX(0%);
}

#filters-container #close-btn {
  text-decoration: none;
  color: black;
  position: absolute;
  top: 0.6rem;
  right: 1rem;
  width: 3rem;
  opacity: 1;
  background: #F9F4ED;
  box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.63);
  border-radius: 100%;
  padding: 0.5rem;
  z-index: 500;
  display: flex;
  justify-content: center;
  cursor: pointer;
}

@media (min-width: 840px) {
  #filters-container #close-btn {
    left: -1.5rem;
    transform: translateX(100%);
    transition: all 0.1s linear;
  }
}

#filters-container #close-btn:hover {
  text-decoration: underline;
  opacity: 0.9;
  box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.63);
}

#filters-container #main-title {
  font-size: 1.8rem;
  margin: 2rem 0 1rem 0;
  font-family: RingBearer, serif;
  text-align: center;
  text-shadow: -3px 4px 7px rgba(81, 67, 21, 0.8);
}

#filters-container #site-description {
  text-align: center;
}

#filters-container #filters {
  padding: 1rem 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  height: 100%;
}

#filters-container #filters fieldset {
  display: flex;
  flex-wrap: wrap;
  margin: 1rem;
  align-items: center;
  padding: 0.6rem 1.5rem;
  gap: 0.5rem 1rem;
  border: 0;
  box-shadow: -5px 3px 7px -1px rgba(0, 0, 0, 0.5);
  font-size: 1.2rem;
}

#filters-container #filters fieldset legend {
  font-size: 1.5rem;
  margin-right: 2rem;
  font-weight: bold;
  padding: 0 1rem;
}

#filters-container #filters footer {
  margin-top: auto;
  text-align: center;
  padding-top: 2rem;
}

#filters-container #filters footer .credits {
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

#filters-container #filters fieldset div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#filters-container #filters fieldset input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  cursor: pointer;
}

#filters-container #filters fieldset label {
  cursor: pointer;
}
