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

body,
input,
button {
  font-family: "Open Sans", sans-serif;
}

input,
button {
  font-size: 16px;
}

.head_bar {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: darkviolet;
  color: white;
}

.input_section {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid darkviolet;
  border-radius: 10px;
}

.input_section > h2 {
  text-align: center;
  color: darkviolet;
}

.input_section > form > .input {
  margin: 8px 0;
}

.input_section > form > button {
  background-color: darkviolet;
  color: white;
  border: 0;
  border-radius: 5px;
  display: block;
  width: 100%;
  padding: 8px;
  cursor: pointer;
}

.input_section > form > button > span {
  font-weight: bold;
}

.input_section > form > .input > input {
  display: block;
  width: 100%;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid darkviolet;
}

.input_section > form > .input > label {
  color: darkviolet;
  font-weight: bold;
}

.input_section > form > .input_inline {
  margin: 12px 0;
  display: flex;
  align-items: center;
}

.input_section > form > .input_inline > label {
  color: darkviolet;
  font-weight: bold;
  margin-right: 10px;
}

.search_section {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  border: 1px solid darkviolet;
  border-radius: 10px;
}

.search_section > h2 {
  color: darkviolet;
}

.search_section > form {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-gap: 6px;
}

.search_section > form > label {
  display: flex;
  align-items: center;
}

.search_section > form > input {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid darkviolet;
}

.search_section > form > button {
  background-color: darkviolet;
  color: white;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

.book_shelf {
  margin: 16px 0 0 0;
  border: 1px solid darkviolet;
  padding: 16px;
  border-radius: 10px;
}

.book_shelf > h2 {
  color: darkviolet;
}

.book_shelf > .book_list {
  padding: 0;
}

.book_shelf > .book_list > .book_item {
  padding: 8px 16px 16px 16px;
  border: 1px solid darkviolet;
  border-radius: 5px;
  margin: 10px 0 0 0;
  background: linear-gradient(to bottom, #fefefe, #f3f3f3);
}

.book_shelf > .book_list > .book_item > h3,
p {
  margin: 8px 0;
}

.book_shelf > .book_list > .book_item > .action > button {
  border: 0;
  padding: 5px 5px;
  margin: 0 5px 0 0;
  border-radius: 5px;
  cursor: pointer;
}

.book_shelf > .book_list > .book_item > .action > .green {
  background-color: darkgreen;
  color: white;
}

.book_shelf > .book_list > .book_item > .action > .red {
  background-color: darkred;
  color: white;
  margin-top: 2px;
}
