:root {
  --purple: #6a51a3;
  --light-purple: #cbc9e2;
  --gray: #f2f0f7;
  --font-family: "Outfit", sans-serif, "Verdana", "Arial";
  --shadow-color: 0 2px 6px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
}

html,
body {
  background: var(--gray);
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vw;
}

.nav-container {
  background: white;
  width: 100vw;
  height: 5rem;
}

.nav-bar {
  justify-content: center;
  height: 100%;
  padding: clamp(0.8rem, 1vw, 1rem);
  justify-content: center;
  box-shadow: var(--shadow-color);
}

.main-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  width: 90%;
  margin-top: 2rem;
  padding: 1rem;
}

.card {
  background: white;
  width: 100%;
  height: 100%;
  min-height: 250px;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: var(--shadow-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.card button:hover {
  cursor: pointer;
}

.info-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  font-size: 14px;
  font-weight: 400;
}

.chkbox-container {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: end;
  gap: 5px;
  font-size: 14px;
}

input[type="checkbox"] {
  cursor: pointer;
  accent-color: var(--purple);
}

.remove-btn-container {
  width: 100%;
  margin: -10px -5px 0 0;
  display: flex;
  justify-content: end;
}

.remove-btn {
  border: none;
  padding: 3px;
  background: none;
  font-size: 20px;
}

.add {
  padding: 0;
  order: -1;
}

.add-btn:hover {
  background: var(--purple);
  color: var(--light-purple);
}

.add-btn {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
  font-size: 4rem;
  background: var(--light-purple);
  color: var(--purple);
  cursor: pointer;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#book-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.input-container {
  display: flex;
  flex-direction: column;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  box-shadow: var(--shadow-color);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-content input,
.modal-content button {
  padding: 0.5rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.modal-content button {
  background: var(--purple);
  color: white;
  border: none;
  cursor: pointer;
}
