body {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  gap: 20px;
}

.header {
  display: flex;
  flex-direction: column;
}

h4 > span {
  font-weight: normal;
}

#book-log {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

#books-years {
  width: 100%;
}

#years, #books {
  min-width: 49%;
  max-width: 49%;
}

#years {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

#years > button {
  width: 150px;
}

li {
  text-decoration: none;
  color: black;
  border: 1px solid transparent;
  padding: 2px;
  border-radius: 5px;
}

li:hover {
  background-color: lightgray;
  cursor: pointer;
}

#book-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

#book-cover > * {
  max-width: 100%;
  max-height: 100%;
}

#cover {
  cursor: pointer;
  border: 1px dotted transparent;
}

#placeholder {
  width: 400px;
  height: 500px;
  border: 1px dotted gray;
  color: darkgray;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nodisp {
  display: none !important;
}

/* Button selection states */

button {
  cursor: pointer;
  font-size: 20px;
  padding: 5px;
  border-radius: 5px;

  color: black;
  background-color: white;
  border: 1px dotted black;
}

button:hover {
  background-color: lightgray;
}

.selected {
  color: black;
  background-color: skyblue;
  border: 1px solid black;
}

/* Loading spinner */
.spinner {
  width: 24px;
  height: 24px;
  margin: auto; /* Center the spinner */
  background-image: url('../../assets/book.svg');
  background-size: cover;
  animation: spin-animation 1s linear infinite;
}
@keyframes spin-animation {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}