/* v101 */ 
body, h1, p {
  margin: 0;
  padding: 0;
  font-family: 'brevia', sans-serif;
  font-style: italic;
  padding-top: 1px; /* Adjust based on the actual height of your fixed header */
}

header {
  background-color: #f8f8f8;
  padding: 10px 0;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100; /* Ensure it stays above other content */
}

#filters {
  margin-top: 2px; /* Adjust this value as needed to move filters down */
  margin-bottom: 2px;
  display: flex; /* Aligns children inline */
  flex-wrap: wrap; /* Allows wrapping */
  justify-content: center; /* Centers items horizontally */
  align-items: center; /* Centers items vertically */
  padding: 0 5px; /* Adds some padding on the sides */
}

#filters select, #filters button {
  margin: 0 5px;
  padding: 10px;
  font-size: 1em;
  min-width: 120px; /* Sets a minimum width for select elements and buttons */
}

#clearFilters {
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  flex-shrink: 0; /* Prevents buttons from shrinking */
}

#clearFilters:hover {
  background-color: #0056b3;
}

h1 {
  color: #333;
}

main {
  padding: 20px;
  display: flex;
  justify-content: center;
}

#imagesContainer {
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  gap: 1px;
  max-width: 1000px;
  width: 100%;
  margin-top: 120px; /* Adjust this value to increase or decrease the space */
}

.imageItem {
  border: 1px solid #ccc;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  background-color: #fff;
  transition: box-shadow 0.3s ease-in-out; /* Add transition for smooth effect */
}

.imageItem img {
  width: 100%;
  height: 300px;
  display: block;
  object-fit: cover; /* This will cover the container with the image, potentially cropping it */
  object-position: center; /* This sets the focal point of the image to the center */
}

.imageItem p {
  padding: 3px;
  color: #666;
  margin: 0;
  font-size: 0.9em;
  line-height: 1.2;
}

.imageItem:hover {
  box-shadow: 0 8px 16px rgba(0,0,0,0.4); /* Larger shadow on hover */
}
#addToCloset {
  cursor: pointer; /* Changes the cursor to pointer on hover */
  position: fixed; /* Keeps the icon floating */
  bottom: 55px; /* Adjusted to align with other icons */
  right: 20px; /* Matches the position of your arrows */
  z-index: 100; /* Ensures it floats above other content */
  /* SVG specific styles for size and background are handled within the SVG tag */
}

/* Hover effect for the SVG icon */
#addToCloset:hover {
  fill: #007bff; /* Change to a desired color on hover, adjusting the SVG fill color */
}


#scrollToTop:hover, #scrollToBottom:hover {
  background-color: #0056b3; /* Darker blue on hover */
}

#floatContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto; /* Allow vertical scrolling if content overflows */
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center; /* Center content vertically */
    justify-content: center; /* Center content horizontally */
    z-index: 200;
}

#floatContainer > div {
    margin: 20px; /* Add some margin to ensure content doesn't touch the edges */
    max-width: 600px; /* Maximum width of the content */
    width: auto; /* Adjust width based on content */
    background-color: #FFF;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    overflow-y: auto; /* Allow scrolling within the content if it overflows */
}

@media (max-width: 600px) {
  #imagesContainer {
    grid-template-columns: repeat(3, minmax(100px, 1fr));
}
  #filters {
    flex-wrap: wrap; /* Allows wrapping on small screens */
    overflow-x: hidden; /* Prevent horizontal scrolling */
  }
  #floatContainer img, #floatContainer form {
      width: 100%; /* Full width for both image and form on small screens */
      height: auto; /* Adjust height automatically for the image */
  }
  #floatContainer form {
      padding: 10px; /* Reduce padding on smaller screens */
  }
  /* Existing styles */

#toggleFilters {
  cursor: pointer;
  padding: 10px;
}

#filterPane {
  transition: max-height 0.5s ease-in-out;
  overflow: hidden;
  max-height: 0; /* Start hidden */
}

/* Adjust arrow direction using a class added by JS */
#toggleFilters span.down {
  transform: rotate(90deg); /* Rotates arrow to point down */
}

}
