html, body {
  height: 100%;
  width:100%;
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden; /* Disable horizontal scrolling */
}

header, footer {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: #333;
  color: white;
  text-align: center;
  padding: 10px 0;
  z-index: 1000; /* Ensure the footer stays on top of other content */
}

.home-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 30px;
  border-radius: 50%;
  background-color: #fff;
  color: #fff;
}

.title {
  margin-left: 50px;
  font-size: 1.5em;
  font-weight: bold;
  color: #fff;
}

#search-bar-container {
  display: flex;
  align-items: center;
  margin: 20px 0;
  width: 35%;
  max-width: 1200px;
}

#search-bar {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 20px;
  outline: none;
  font-size: 1em;
  margin-right: 10px;
}

.search-icon {
  position: absolute;
  margin-left: -30px;
  color: #ccc;
}

.page-indicator {
  margin: 10px 0;
  font-size: 1.1em;
  color: #666;
  width: 40%;
  max-width: 1200px;
  text-align: left;
}

#results-container {
  flex: 0;
  display: flex;
  justify-content: center;
  width: 50%;
}

#results::-webkit-scrollbar {
  width: 5px; /* Width of the scrollbar */
}

#results::-webkit-scrollbar-thumb {
  background-color: #888; /* Scrollbar color */
  border-radius: 10px; /* Rounded edges for the scrollbar */
}

#results::-webkit-scrollbar-thumb:hover {
  background-color: #555; /* Darker shade on hover */
}

#results::-webkit-scrollbar-track {
  background-color: #f1f1f1; /* Track color */
  border-radius: 10px;
}

#results::-ms-scrollbar {
    width: 10px;
}

#results::-ms-thumb {
    background-color: black;
    border-radius: 10px;
}

#results::-ms-track {
    background-color: #f1f1f1;
    border-radius: 10px;
}

#results {
  width: 80%;
  max-width: 1200px;
  max-height: calc(100vh - 240px); /* Dynamic height */
  overflow-y: auto; /* Enable vertical scrolling */
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin-bottom: 20px;
}

.result {
  padding: 20px;
  border-bottom: 1px solid #ccc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.word-link {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.color-info {
  display: flex;
  align-items: center;
}

.color-box {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border-radius: 3px;
  border: 1px solid #ccc;
}

.hex-code {
  font-family: 'Courier New', Courier, monospace;
}

.pagination-buttons {
  display: flex;
  justify-content: center;
  width: 80%;
  max-width: 1200px;
}

.pagination-buttons button {
  padding: 5px 20px;
  margin: 0 10px;
  border: none;
  border-radius: 5px;
  background-color: #333;
  color: #fff;
  cursor: pointer;
  font-size: 1em;
}

.pagination-buttons button:disabled {
  background-color: #999;
  cursor: not-allowed;
}

#pagination {
  margin-top: 5px;
  text-align: center;
}

.page-link {
  margin: 0 5px;
  cursor: pointer;
  padding: 5px 10px;
  background-color: #007bff;
  color: white;
  border-radius: 3px;
}

.page-link:hover {
  background-color: #0056b3;
}

.hidden {
  display: none;
}


