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

:root {
  --primary-color: green;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
}

body {
  font-family: "Poppins", Helvetica, sans-serif;
  height: 100vh;
}

button {
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 20px;
  padding: 7px 25px;
  cursor: pointer;
  &:hover {
    filter: brightness(90%);
  }
}

header {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 20px;
}

dialog {
  width: 100%;
  max-width: 300px;
  height: 450px;
  border: none;
  border-radius: 5px;
  margin: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

.open-dialog,
.submit-btn {
  background-color: var(--primary-color);
}

.close-dialog {
  background-color: red;
}

::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0.75;
}

.add-book-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
}

.form-item {
  display: flex;
  flex-direction: column;
}

fieldset {
  border: 1px solid black;
  border-radius: 5px;
  padding: 10px;
}

.add-book-form input {
  padding: 5px 10px;
  border: 1px solid black;
  border-radius: 20px;
}

main {
  display: flex;
  flex-direction: column;
  margin-top: 50px;
}

.books-table {
  width: 70vw;
  max-width: 100vw;
  border-collapse: collapse;
  margin: auto;
  text-align: center;
}

caption {
  margin-bottom: 10px;
}

tr {
  height: 40px;
}

thead {
  font-weight: 700;
  background-color: var(--primary-color);
  color: white;
}

td {
  border-bottom: 1px solid lightgray;
  padding: 20px;
}

.delete-btn {
  background-color: red;
}

.curr-page-input {
  padding: 5px 10px;
  border: 2px solid black;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
