/* General Styling */
body {
  font-family: Noto Serif Ethiopic Condensed;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #D9D9D9;
}

/* Header Styling */
#app-header {
  background-color: #D9D9D9;
  color: #D9D9D9;
  padding: 20px;
}

#app-header h1 {
  margin: 10px 0;
}

/* User Navigation */
#user-nav {
  padding-top: 25px;
}

#user-nav #page-links {
  margin-top: 10px;
}

#page-links .piped-list {
  list-style: none;
  padding: 0;
}

#page-links .piped-list li {
  display: inline;
  margin-right: 10px;
}

#page-links .piped-list li a {
  color: #D9D9D9;
  text-decoration: none;
  font-size: 1.2em; /* Added font size */
}

#page-links .piped-list li a:hover {
  color: #224672;
  text-decoration: none;
}

/* Banner Styling */
#banner {
  position: relative;
}

#banner h1 {
  font-size: 3em;
  font-weight: bold;
  color: #D9D9D9;
}

/* Search Bar Container */
#search-form .search-form-container {
  background-color: #224672;
  border: 1px solid #224672;
  padding: 10px;
  border-radius: 5px;
}

#search-form .search-form-container input {
  border: 1px solid #D9D9D9;
  color: #000000;
}

/* Tiles CSS */
.tile {
  margin-bottom: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.tile:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.product-tile {
  background-color: #fff;
  border: 1px solid #224672;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
  text-align: center; /* Center the text in the tiles */
  max-width: 100%; /* Ensure it doesn't exceed the container width */
  margin: 0 auto 20px; /* Center the tile and add bottom margin for spacing */
}

/* Responsive image handling */
.product-image {
  background-size: contain; /* Ensure the image fits within the container */
  background-position: center;
  height: auto; /* Allow the height to adjust automatically */
  width: 100%; /* Take up the full width of the container */
  max-height: 300px; /* Set a maximum height to keep the image manageable */
}

/* Text alignment within the tile */
.product-heading {
  padding: 15px;
  text-align: center;
}

/* Prevent overflow of text */
.product-title {
  font-size: 1.4em;
  margin: 0;
  color: #224672;
  overflow-wrap: break-word; /* Ensure long words break */
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* Adjust footer padding to avoid content overflow */
.product-footer {
  padding: 10px;
  background-color: #f9f9f9;
  text-align: center;
  white-space: nowrap; /* Prevent footer content from wrapping */
  overflow: hidden;
  text-overflow: ellipsis; /* Truncate text with an ellipsis */
}

/* Button Styling */
.search-refine-button {
  background-color: #224672;
  color: #D9D9D9;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.search-refine-button:hover {
  background-color: #18375b;
}

.search-refine-button__text {
  font-size: 1.5em;
}

/* Footer Styling */
footer {
  background-color: #224672;
  color: #D9D9D9;
  padding: 20px;
  text-align: center;
}

/* Logo Styling */
#logo-container {
  display: flex;
  align-items: center;
}

#logo-container .logo {
  width: 150px; /* Adjust this value as needed */
  height: auto; /* Maintain aspect ratio */
}

/* Carousel CSS */
.carousel-inner .item img {
  width: 100%;
}

.feature-region {
  background-image: none;
}

/* Adjusts the height of the images on listing descriptions */
.image-container .image-wrapper {
    height: 270px;
}

/* Hides Refine Button Dropdown */
#search-refine-button--refine {
    display: none;
}

/* Hides Search Box */
#search-form .search-label,
#search-form .search-box-wrapper {
    visibility: hidden;
}

/* Hides Categories Dropdown */
#search-refine-button--categories {
visibility: hidden;
}