body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
  padding-top: 50px; /* Avoid content being hidden behind the navbar */
}

.navbar {
  display: flex;
  justify-content: center; /* Center items horizontally */
  background-color: #333;
  overflow: hidden;
  position: fixed;
  top: 0;
  width: 100%;
}

.navbar a,
.navbar a:hover {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

.navbar a:hover {
  background-color: #ddd;
  color: black;
}

a {
  text-decoration: none;
  color: #007bff;
}

h1, h2 {
  text-align: center;
  color: #333;
  margin: 20px 0 0 0;
}

.book-details-subtitle {
  margin: 0 0 0 0;
  color: #1a1a1a;
  font-size: 1.2em;
  font-weight: normal;
}

.book-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.book-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  height: 80px;
}

.booklist-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.booklist-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  height: 50px;
}

.list-priority {
  margin-left: auto; 
  margin-right: 0;
  padding-right: 10px;
}

.book-thumbnail {
  width: 50px;
  height: auto;
  margin-right: 15px;
  border: 1px solid #333;
  border-radius: 4px;
}

.book-large-thumbnail {
  display: block;
  margin: 26px auto 16px auto;
  width: 200px;
  height: auto;
  border: 1px solid #333;
  border-radius: 4px;
}

.empty-book {
  align-items: center;
  color: #9aa0a6;
  background-color: #ececec;
  display: flex;
  width: 50px;
  height: 64px;
  line-height: 16px;
  margin-right: 15px;
  border: 1px solid #333;
  border-radius: 4px;
}

.empty-book-text {
  flex-grow: 1;
  padding: 2px;
  text-align: center;
}

.book-info {
  display: flex;
  flex-direction: column;
}

.book-title {
  margin: 0;
  font-size: 1.2em;
  color: #333;
}

.book-subtitle {
  margin: 0 0 4px 0;
  color: #1a1a1a;
  font-size: 0.8em;
  font-weight: normal;
}

.book-author {
  margin-top: 5px;
  font-size: 0.9em;
  color: #666;
}

.book-link .booklist-link {
  text-decoration: none; /* Removes underline from links */
}

.button-link {
  display: inline-block;
  padding: 10px 15px;
  background-color: #7c7c7c;  /* adjust as needed */
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 5px;
  margin: 5px;
  transition: background-color 0.3s ease;
}

.button-link.delete {
  background-color: #dc3545;  /* adjust as needed */
}

.button-link:hover {
  background-color: #5c5c5c;  /* adjust as needed */
}

.center-buttons {
  display: flex;
  justify-content: center;
}

.book-form {
  text-align: center;
}

.book-form button {
  background-color: #007bff;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
  filter: grayscale(100%);
  border: none;
  border-radius: 5px;
  margin: 5px;
  padding: 10px 15px;
}

.book-form button:hover {
  background-color: #0056b3;
}

.form-field,
.form-field label,
.form-field input[type="text"],
.form-field input[type="url"],
.form-field input[type="number"],
.form-field input[type="checkbox"],
.form-field textarea {
  max-width: 420px;
  padding: 10px;
  margin: 0 auto;
  box-sizing: border-box;
}

.form-control {
  width: 100%;
}

.form-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

input[type="checkbox"] {
  transform: scale(2.0);
}

.form-submit {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  filter: grayscale(100%);
}

.form-submit:hover {
  background-color: #45a049;
}

.search-form {
  padding: 2px;
  margin: 0 auto;
  box-sizing: border-box;
  text-align: center;
}

.search-form input[type="text"],
.search-field input[type="text"] {
  padding: 6px;
  box-sizing: border-box;
}

.login-form,
.login-field {
  padding: 10px;
  max-width: 300px;
  margin: 0 auto;  /* centers the element */
  box-sizing: border-box;
}

.login-form input[type="text"],
.login-form input[type="password"],
.login-field input[type="text"],
.login-field input[type="password"] {
  padding: 10px;
  box-sizing: border-box;
}

.logout-btn {
  background: none;
  color: white;
  border: none;
  padding: 14px 16px;
  font: inherit;
  cursor: pointer;
  outline: inherit;
}

.centered-container {
  max-width: 800px;
  margin: 0 auto;
}

.book-details {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  margin-top: 20px;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
