:root {
  --color-primary: #f7c50e;
  --color-secondary: #cc8e35;
  --color-accent: #ecf0f1;
  --color-light: #ffffff;
  --color-grey: #aaa69d;
  --color-dark: #060d0d;
}

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Quicksand", sans-serif;
}

input {
  font-family: "Quicksand", sans-serif;
}

main {
  display: flex;
  flex-direction: column;
  max-width: 1366px;
  margin: 0 auto;
}
@media screen and (min-width: 1200px) {
  main {
    flex-direction: row;
    height: 100vh;
    padding: 2rem;
  }

  main > * {
    height: 100%;
  }
}

/* UTILITIES */
.wrapper {
  padding: 1rem;
}
@media screen and (min-width: 768px) {
  .wrapper {
    padding: 1.5rem 3rem;
  }
}

/* Form section */
#page-info {
  display: flex;
  flex-direction: column;
}
#page-info > * {
  margin-bottom: 2rem;
}
@media screen and (min-width: 1200px) {
  #page-info {
    justify-content: center;
    padding: 2rem 4rem;
  }

  #page-info > * {
    margin: 0;
  }
}
@media screen and (min-width: 1366px) {
  #page-info {
    padding: 3rem;
  }
}
@media screen and (min-width: 1440px) {
  #page-info {
    padding: 4rem;
  }
}

/* HEADER */
header {
  border-radius: 0 0 20px 20px;
  padding: 1rem;
  background-color: var(--color-secondary);
}
@media screen and (min-width: 768px) {
  header {
    border-radius: 0 0 40px 40px;
    padding: 1.25rem;
  }
}
@media screen and (min-width: 1200px) {
  header {
    background: none;
    margin-bottom: auto !important;
    padding: 0;
  }
}

#logo {
  text-transform: uppercase;
  text-align: center;
  font-size: 1rem;
  color: var(--color-light);
}
#logo > span {
  font-weight: 300;
}
@media screen and (min-width: 768px) {
  #logo {
    font-size: 1.25rem;
  }
}
@media screen and (min-width: 1200px) {
  #logo {
    color: var(--color-secondary);
    text-align: left;
  }
}

/* opening text */
#opening {
  margin-bottom: 0;
  color: var(--color-dark);
}
@media screen and (min-width: 1200px) {
  #opening {
    margin-bottom: 2rem;
    padding: 0;
  }
}
@media screen and (min-width: 1440px) {
  #opening {
    margin-bottom: 3rem;
    padding: 0;
  }
}
@media screen and (min-width: 1920px) {
  #opening {
    margin-bottom: 4rem;
    padding: 0;
  }
}

#tagline {
  margin-bottom: 0.5rem;
  text-transform: capitalize;
  font-size: 1.5rem;
}
#tagline-desc {
  font-size: 1rem;
  font-weight: 300;
}
@media screen and (min-width: 375px) {
  #tagline {
    font-size: 1.75rem;
  }
  #tagline-desc {
    font-size: 1.125rem;
  }
}
@media screen and (min-width: 768px) {
  #tagline {
    font-size: 2rem;
  }
  #tagline-desc {
    font-size: 1.25rem;
  }
}

/* form content */
@media screen and (min-width: 1200px) {
  #content {
    margin-bottom: auto;
    padding: 0;
  }
}

.form {
  display: flex;
  flex-direction: column;
}
.form input {
  font-size: 1rem;
  padding: 0.75rem;
}
.form input[type="text"],
.form input[type="number"] {
  outline: none;
  border: none;
  border-bottom: 1px solid var(--color-secondary);
  background-color: rgba(204, 142, 53, 0.175);
  color: var(--color-dark);
}
.form input[type="text"]::placeholder,
.form input[type="number"]::placeholder {
  color: var(--color-secondary);
}
.form input[type="submit"] {
  outline: none;
  border: none;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: var(--color-dark);
  color: var(--color-light);
  cursor: pointer;
}
.form input[type="submit"]:focus,
.form input[type="submit"]:active {
  outline: var(--color-secondary) solid 4px;
}
@media screen and (min-width: 375px) {
  .form input {
    font-size: 1.125rem;
  }

  .form input[type="submit"] {
    font-size: 1rem;
  }
}
@media screen and (min-width: 768px) {
  .form {
    max-width: 500px;
    margin: 0 auto;
  }
}
@media screen and (min-width: 1200px) {
  .form {
    max-width: unset;
    margin: unset;
  }
}

.form-item:not(:last-child) {
  margin-bottom: 1rem;
}

.form-align-right {
  margin-right: 1rem;
  text-align: right;
}
.form-align-right > input {
  margin-right: 0.5rem;
}
@media screen and (min-width: 375px) {
  .form-align-right > * {
    font-size: 1.125rem;
  }
}

/* BOOK LIST */
#page-shelf {
  border-radius: 20px 20px 0 0;
  background-color: var(--color-primary);
}
@media screen and (min-width: 768px) {
  #page-shelf {
    border-radius: 40px 40px 0 0;
  }
}
@media screen and (min-width: 1200px) {
  #page-shelf {
    border-radius: 40px;
    flex-grow: 1;
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
  }
  #page-shelf > * {
    flex: 1;
  }
}

.book-list {
  margin-bottom: 2rem;
  color: var(--color-dark);
}
@media screen and (min-width: 1200px) {
  .book-list {
    position: relative;
    margin-bottom: 1rem;
    overflow-y: scroll;
  }

  .book-list::-webkit-scrollbar {
    width: 3px;
  }
  .book-list::-webkit-scrollbar-track {
    background: var(--color-primary);
  }
  .book-list::-webkit-scrollbar-thumb {
    background: var(--color-dark);
  }
}

.category-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--color-dark);
}
.category-list > * {
  width: 50%;
}
@media screen and (min-width: 1200px) {
  .category-list {
    position: sticky;
    top: 0;
    border-bottom: 3px solid var(--color-dark);
    background-color: var(--color-primary);
  }
}

.category-name {
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 700;
}
@media screen and (min-width: 375px) {
  .category-name {
    font-size: 1.125rem;
  }
}

.category-search {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 0;
  background-color: rgba(204, 142, 53, 0.175);
  transition: all 0.3s ease-in-out;
}

.search-field {
  border: none;
  outline: none;
  pointer-events: none;
  width: 100%;
  padding: 0.5rem 0 0.5rem 0.5rem;
  font-size: initial;
  background: none;
}

.search-btn {
  border: none;
  padding: 0.5rem;
  font-size: inherit;
  background: none;
  cursor: pointer;
}
.search-btn i {
  font-size: inherit;
}

.list-item {
  padding-left: 1rem;
}
@media screen and (min-width: 540px) {
  .list-item {
    padding: 0 1rem;
  }
}
@media screen and (min-width: 768px) {
  .list-item {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 1rem;
  }
}

.item-text {
  border-radius: 10px;
  padding: 0.75rem;
  background-color: var(--color-accent);
}
.item-text > h2 {
  margin-bottom: 0.5rem;
  text-transform: capitalize;
  font-size: 1rem;
}
.item-text > p {
  text-transform: capitalize;
  font-size: 0.75rem;
  font-weight: 300;
}
@media screen and (min-width: 768px) {
  .item-text {
    padding: 1rem;
  }

  .item-text > h2 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
  }
}

.item-option {
  padding: 0.75rem 0;
  text-align: right;
}
.item-option > button {
  padding: 0.5rem;
  border: 2px solid transparent;
  border-radius: 4px;
  background: none;
}
.item-option > button:hover {
  border: 2px solid var(--color-dark);
}
.item-option > button i {
  font-size: 1.25rem;
  color: var(--color-dark);
  pointer-events: none;
}
@media screen and (min-width: 768px) {
  .item-option {
    padding: 0.5rem 0;
  }
}
