* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}




header {
  position: fixed;  /* This is used to keep the header fixed up no matter how much we scroll */
  width: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(to right, RGB(48, 30, 16), RGB(64, 40, 24));
  display: flex;
  align-items: center;
  padding: 5px 20px 5px 20px;
  border-bottom: 2px solid black;
}
.header-name {
  font-size: 1.5rem;
  margin-left: 20px;
  color: white;
}
.header-navigator ul {
  list-style-type: none;
  display: flex;
  margin-left: 20px;
  gap: 20px;
}
.header-navigator ul li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.3s ease;
}
.header-navigator ul li a:hover {
  color: gray;
}


.search-bar {
  display: flex;
  justify-content: center;
  align-items: center;
}
#search-input {
  width: 200px;
  border: 2px solid #ccc;
  border-radius: 5px 0 0 5px;
  outline: none;
  box-sizing: border-box;
}
#search-button {
  background-color: white;
  color: white;
  cursor: pointer;
  border-radius: 0 5px 5px 0;
}
#search-button:hover {
  background-color: gray;
}
#search-input:focus {
  border-color: brown;
}
.dropdown {
  display: none; /* Hidden by default */
  position: absolute;
  background-color: RGB(64, 40, 24);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1;
}
.dropdown a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: white;
}
.dropdown a:hover {
  background-color: RGB(48, 30, 16);
}



main {
   flex: 1;
   display: flex;
   justify-content: center;
   align-items: center;
   background: linear-gradient(to bottom, RGB(48, 30, 16), RGB(72, 48, 30));
   padding: 20px;
}
.book-list {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 10px;
  max-width: 93%;
  box-sizing: border-box;
}
.book-list::-webkit-scrollbar {
  height: 8px;
  background: rgba(0, 0, 0, 0);
}

.book-list::-webkit-scrollbar-thumb {
  background: rgba(128, 128, 128, 0.5);
  border-radius: 10px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.book-list::-webkit-scrollbar-thumb:hover {
  background: rgba(128, 128, 128, 0.8);
}

.bookItem-description {
  display: flex;
  color: white;
  text-wrap: wrap;
  text-align: center;
  opacity: 0;
  padding: 10px;
  border-radius: 0 0 16px 16px;
  transition: 0.1s;
}
.bookItem:hover .bookItem-description {
  background: rgba(0, 0, 0, 0.8);
  background-size: cover;
  opacity: 1;
}
