* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
:root {
  --darkblue: rgb(0, 6, 12);
  --blue: #011930;
  --yellow: #ffc300;
}
.theme {
}
@media (prefers-color-scheme: light) {
  :root {
    --darkblue: rgb(255, 255, 255);
    --blue: #09315f;
    --yellow: #ffc300;
  }
  label,
  input,
  .form,
  .form input[type="text"] {
    color: black;
  }
}
html {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
}
body {
  display: grid;
  grid-template: 1fr 9fr / 1fr 5fr;
  background-color: var(--darkblue);
}
.header {
  grid-area: 1 / 1 / 2 / 3;
  display: flex;
  justify-content: center;
  background-color: var(--blue);
  align-items: center;
}
.header .logo__text {
  color: var(--yellow);
}
.logo {
  display: grid;
  grid-template: 1fr / 1fr;
  margin: 1rem;
}
.logo__icon {
  justify-self: center;
  width: 100px;
  filter: brightness(0) saturate(100%) invert(82%) sepia(33%) saturate(4347%)
    hue-rotate(359deg) brightness(102%) contrast(106%)
    drop-shadow(0px 0px 30px #ffc40062);
}
.logo__text {
  font-size: 1rem;
  text-align: center;
}

/* aside */
.aside {
  background: var(--darkblue);
  padding: 2rem 0 2rem 2rem;
}
.form {
  color: white;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form h2 {
  text-align: center;
}
.form label {
  font-weight: 500;
  text-indent: 1rem;
}
.form label:nth-child(2) {
  margin-top: 2rem;
}
.form input {
  display: block;
  margin-bottom: 2rem;
  height: 2rem;
  border-radius: 2rem;
  corner-shape: squircle;
  border: 1px solid var(--blue);
  background-color: var(--darkblue);
  color: white;
  padding: 1rem;
  transition:
    transform 0.2s ease-in-out,
    border 0.1s ease-in-out;
}
.form input:hover {
  transform: translateY(-1px);
}
.form input:focus,
.form input:active {
  border: 3px solid var(--blue);
  outline: none;
}
.form input[type="submit"] {
  display: flex;
  height: 2.5rem;
  cursor: pointer;
  padding: 0;
  background-color: var(--blue);
  text-align: center;
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
}
.form input[type="submit"]:hover {
  border: 3px solid var(--darkblue);
}
.form input[type="submit"]:active,
.form input[type="submit"]:focus {
  border: 1px solid white;
}
.books {
  display: grid;
  grid-template:
    repeat(auto-fit, minmax(250px, 400px))
    / repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 2rem;
}
.book__card {
  min-height: 250px;
  display: grid;
  background-color: var(--blue);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.158);
  text-align: center;
  color: whitesmoke;
  border-top-right-radius: 1rem;
  border-bottom-right-radius: 1rem;
  cursor: pointer;
  animation: appear 0.5s ease-in forwards;
}
@keyframes appear {
  from {
    transform: scale(0.99);
    opacity: 0.95;
  }
  to {
    opacity: 1;
  }
}
.book__title {
  align-self: end;
  font-size: clamp(0.5rem, 1.5vw, 3rem);
}
.book__author {
  font-weight: 400;
  font-size: 1.3rem;
  font-style: italic;
  margin-bottom: auto;
}
.book__pages {
  align-self: end;
  margin-bottom: 1rem;
}
.buttons__section {
  display: flex;
  align-items: end;
  justify-content: end;
}
.delete__btn,
.haveRead__btn {
  display: flex;
  align-self: end;
  justify-self: end;
  background: transparent;
  border: none;
  cursor: pointer;
  width: fit-content;
  height: fit-content;
}
.delete__btn img,
.haveRead__btn img {
  padding: 1rem;
}
.delete__btn img:hover,
.haveRead__btn img:hover {
  transform: scale(1.15);
}
.haveRead__svg {
}
.readed {
  filter: brightness(0) saturate(100%) invert(79%) sepia(48%) saturate(2001%)
    hue-rotate(356deg) brightness(99%) contrast(107%)
    drop-shadow(0px 0px 5px #ffc40062);
}
