*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-color: #f7f1de;
  font-family:
    Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial,
    sans-serif;
  font-weight: normal;
  width: 100vw;
  height: 100vh;
  display: flex;
}

.sidebar {
  width: 300px;
  padding: 10px;
  flex-shrink: 0;
  background-color: #c4a484;
  opacity: 0.9;
  box-shadow: 9px 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 100px;
  align-items: center;
}

h1 {
  margin-top: 20px;
  font-size: 40px;
  font-weight: 800;
  text-align: center;
}

.library {
  display: flex;
  flex-wrap: wrap;
}
.book {
  display: grid;
  grid-template-rows: repeat(3, 35px) 45px;
  width: 300px;
  border-radius: 10px;
  border: 1px solid #a8bba3;
  background-color: #a8bba3;
  padding: 10px;
  margin: 20px;
  box-shadow: 6px 10px 6px -1px rgba(0, 0, 0, 0.1);
}

.book-title,
.book-author,
.book-pages {
  display: grid;
  grid-template-columns: 60px 210px;
  gap: 8px;
  align-items: center;
}

.book-buttons {
  display: grid;
  grid-template-columns: 120px 120px;
  gap: 20px;
  padding: 12px 16px;
}

.book p:first-child {
  font-weight: 600;
  font-size: 14px;
}

img {
  height: 30px;
}

button {
  flex: 0;
  background-color: #b87c4c;
  height: 80px;
  width: 140px;
  font-size: 18px;
  font-weight: 600;
  padding-top: 8px;
  border-radius: 10px;
}

.book-buttons button {
  display: flex;
  height: 30px;
  width: 100px;
  font-size: 16px;
  background-color: #c4a484;
  align-items: center;
  justify-content: center;
  padding-bottom: 6px;
}

.book-buttons button[data-read='true'] {
  background-color: #b87c4c;
}

form {
  background-color: #a8bba3;
  margin: 10px;
  padding: 10px;
  box-shadow: 6px 10px 6px -1px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  display: none;
}

.title,
.author,
.pages {
  display: flex;
  flex-direction: column;
}

.pages {
  margin-bottom: 20px;
}

.input {
  width: 260px;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
}

form button {
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

input {
  border-style: none;
  border-radius: 5px;
  max-width: 300px;
  padding-left: 8px;
}

.validation {
  height: 15px;
  font-size: 12px;
  margin-left: auto;
  padding-top: 2px;
}
