@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;700&display=swap');

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

html, body {
  font-family: 'Nunito', sans-serif;
}

.navbar {
  height: 56px;
  width: 100%;
  background-color: cornflowerblue;
}

.navbar-list {
  display: flex;
  list-style: none;
  height: 100%;
  align-items: flex-end;
  gap: 10px;
  max-width: 40%;
  margin: 0 auto;
}

.navbar-list li {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 160px;
  height: 80%;
  background-color: rgb(44, 44, 44);
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  text-transform: uppercase;
  color: white;
}

.navbar-list li:hover {
  background-color:white;
  color: rgb(44, 44, 44);
  font-weight: 700;
}

.navbarActive {
  background-color:white !important ;
  color: rgb(44, 44, 44) !important;
  font-weight: 700;
}

.navbar-burger {
  display: none;
  width: 95%;
  margin: 0 auto;
  height: 100%;
  align-items: center;
}

.navbar-burger-img {
  height: 40px;
  width: 40px;
  background-image: url("/assets/menu.svg");
  background-repeat: no-repeat;
  background-size: cover;
}

aside {
  width: 40%;
  height: 100vh;
  position: fixed;
  top: 0;
  display: none;
  transition-property: transform;
  transition-duration: 300ms;
}

.navbar-burger-content {
  background: rgb(243, 247, 255);
  box-shadow: 3px 0 13px 0px rgba(92,92,92,0.66);
  -webkit-box-shadow: 3px 0 13px 0px rgba(92,92,92,0.66);
  -moz-box-shadow: 3px 0 13px 0px rgba(92,92,92,0.66);
  height: 100%;
}

.navbar-burger-content .close {
  width: 100%;
  height: 56px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 16px;
}

.navbar-burger-content .content {
  height: 100%;
  width: 100%;
  background-color: cornflowerblue;
  padding: 8px;
}

.navbar-burger-content .content li {
  margin-top: 16px;
  text-transform: uppercase;
  color: rgb(207, 207, 207);
}

.close-button {
  width: 40px;
  height: 40px;
  background-image: url("/assets/x-red.svg");
  background-repeat: no-repeat;
  background-size: cover;
}

.burgerActive {
  font-weight: 700;
  color: white !important;
}

.content-container {
  max-width: 40%;
  margin: 20px auto;
}

.hide {
  display: none;
}

.show {
  display: block;
}

.trash-icon {
  width: 24px;
  height: 24px;
  background-image: url("/assets/trash-2.svg");
  background-repeat: no-repeat;
  background-size: cover;
}

.unopened-book-icon {
  width: 24px;
  height: 24px;
  background-image: url("/assets/book.svg");
  background-repeat: no-repeat;
  background-size: cover;
}

.opened-book-icon {
  width: 24px;
  height: 24px;
  background-image: url("/assets/book-open.svg");
  background-repeat: no-repeat;
  background-size: cover;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1.2em;
}

.form-group input {
  padding: 16px 8px;
  border: 0;
  border-radius: 8px;
  font-size: 0.85em;
  color: rgba(44, 44, 44, 0.7);
}

.form-group input:focus {
  outline: none;
  border: 1px solid rgba(44,44,44,0.7);
  border-radius: 8px;
}

.form-group-checkbox {
  font-size: 1.2em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-group-checkbox input {
  width: 20px;
  height: 20px;
}

form button {
  height: 40px;
  font-size: 1.2em;
  background-color: cornflowerblue;
  border: 0;
  border-radius: 8px;
  color: white;
  text-transform: uppercase;
  margin-top: 16px;
  cursor: pointer;
}

.form-group-search {
  display: flex;
  gap: 16px;
  font-size: 1.2em;
  align-items: center;
}

.form-group-search input {
  padding: 16px 8px;
  border: 0;
  border-radius: 8px;
  font-size: 0.85em;
  color: rgba(44, 44, 44, 0.7);
  flex: 1;
}

.form-group-search input:focus {
  outline: none;
  border: 1px solid rgba(44,44,44,0.7);
  border-radius: 8px;
}

.required {
  color: red;
}

.search {
  width: 40px;
  height: 40px;
  background-image: url("/assets/search.svg");
  background-repeat: no-repeat;
  background-size: cover;
  cursor: pointer;
  margin-right: 8px;
}

.year {
  display: flex;
  justify-content: flex-end;
}

.card {
  margin-bottom: 24px;
  background: rgb(240, 239, 239);
  padding: 24px;
  border-radius: 16px;
}

.card-shadow {
  box-shadow: 0 10px 18px -7px rgba(0,0,0,0.40);
  -webkit-box-shadow: 0 10px 18px -7px rgba(0,0,0,0.40);
  -moz-box-shadow: 0 10px 18px -7px rgba(0,0,0,0.40);
}

.card-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-item-container {
  display: flex;
  flex-direction: column;
  gap:8px;
  background: white;
  padding: 16px;
  border-radius: 8px;
}

.card-button {
  display: flex;
  gap: 8px;
  font-weight: 700;
  justify-content: center;
  align-items: center;
  height: 40px;
  font-size: 0.85em;
  border: 0;
  border-radius: 4px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 16px;
  color: white;
}

.card-button-unread {
  background-color:goldenrod;
}

.card-button-read {
  background-color: seagreen;
}

.card-button-delete {
  background-color: firebrick;
}

article#modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.40);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

article .container {
  border-radius: 16px;
  width: 25%;
  background-color: white;
  padding: 32px 16px;
}

article .modal-item-container {
  width: 100%;
}

article .modal-item-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

article .modal-button-container {
  display: flex;
  margin-top: 24px;
  gap: 8px;
  width: 50%;
  margin: 24px auto 0;
}

article .modal-button {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  border: 0;
  color: white;
  cursor: pointer;
}

article .modal-button-cancel {
  background-color: seagreen;
}

article .modal-button-ok {
  background-color: firebrick;
}

.alert-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  margin-bottom: 16px;
  background-image: url("/assets/alert-circle.svg");
  background-repeat: no-repeat;
  background-size: cover;
}

@media only screen and (max-width: 1024px) {
  .navbar-list {
    display: none;
  }

  .navbar-burger {
    display: flex;
  }

  aside {
    display: block;
  }

  .content-container {
    margin: 12px auto;
    max-width: 95%;
  }

  article .container {
    width: 95%;
  }

  article .modal-button-container {
    width: 100%;
  }
}