body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
}

.top-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-add-book {
  cursor: pointer;
  border: none;
  border-radius: 20px;
  color: whitesmoke;
  background-color: #4353ff;
  font-size: 1rem;
  padding: 1rem 1.2rem;
  box-shadow: 6px 6px 10px rgba(0, 0, 0, 0.4);
  transition:
    opacity 500ms,
    color 500ms;
}

.btn-add-book:hover {
  opacity: 0.8;
  color: #333;
}
.book-display {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  width: 100dvw;
  min-height: 200px;
}
.card {
  overflow: hidden;
  border: 3px solid black;
  align-items: start;
  border-radius: 20px;
  display: grid;
  grid-template-rows: 45px repeat(4, 1fr);
}

.card > .title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
}

.card > *:not(.btn-container) {
  margin: 0 35px;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: none;
}

.modal-title {
  font-size: 22px;
  font-weight: 600;
  margin-top: 15px;
}

.modal-body {
  font-size: 18px;
  color: rgba(0, 0, 0, 0.6);
  text-align: center;
  margin-top: 8px;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
}

button {
  padding: 7px 15px;
  font-size: 14px;
  outline: none;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
}

.btn-submit {
  background: #4353ff;
  color: #fff;
}

.btn-close {
  border-color: rgba(0, 0, 0, 0.1);
}

.form {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 20px;
}

.form input {
  border-radius: 5px;
}

.btn-container {
  display: flex;
  width: 100%;
  align-self: end;
}

.btn-container > .delete-book,
.btn-container > .read-toggle {
  background-color: rgba(255, 0, 0, 0.7);
  flex: 1;
  border-radius: 0px;
}

.btn-container > .read-toggle {
  background-color: rgba(100, 0, 225, 0.7);
}

.card > .btn-submit:hover {
  background-color: rgba(255, 0, 0, 0.4);
}
