* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
header {
  display: flex;
  padding: 24px;
  justify-content: center;
  background-color: rgb(0, 9, 139);
  color: white;
  position: sticky;
  top: 0;
}
main {
  display: flex;
  flex-direction: column;
}
.input_section,
.search_section,
#overlay-edit,
.book_shelf {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 16px;
  border-radius: 8px;
  border: 1px solid black;
  margin: 16px 32px;
  padding: 32px;
}
#inputBook,
#searchBook,
#inputBookEdit {
  display: inline-flex;
  gap: 16px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.book_item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid black;
  justify-content: space-between;
}
.book_list {
  display: flex;
  gap: 16px;
}
.action {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.action button {
  flex: 1;
  width: 100%;
  padding: 5px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}
.red {
  background-color: rgb(139, 0, 0);
  color: white;
  font-weight: bold;
}
.green {
  background-color: rgb(29, 156, 59);
  color: white;
  font-weight: bold;
}
.yellow {
  background-color: rgb(157, 174, 2);
  color: white;
  font-weight: bold;
}
#completeBookshelfList,
#incompleteBookshelfList {
  display: flex;
  flex-wrap: wrap;
}
.book_shelf {
  align-items: flex-start;
}
form button {
  padding: 8px;
  border-radius: 8px;
  border: none;
  background-color: rgb(0, 9, 139);
  color: white;
  width: 200px;
  font-weight: bold;
  cursor: pointer;
}
form input {
  width: 100%;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid black;
}
form label {
  align-self: flex-start;
}
.input_inline {
  display: flex;
  gap: 4px;
  align-items: center;
  align-self: flex-start;
}
.input_inline input {
  width: fit-content;
  padding: 0;
}
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  justify-content: center;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.4);
}
#overlay-edit {
  background-color: white;
  cursor: default;
}
footer{
    display: flex;
    padding: 24px;
    justify-content: center;
    background-color: rgb(0, 9, 139);
    color: white;
    font-weight: bold;
}