@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap");
@import url(//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css);
:root {
  --body-bg-color: #e5f4f9;
  --body-color-light: #fff;
  --body-color-dark: #3d4954;
  --body-font: "Roboto", sans-serif;
  --page-bg-color: #f2f5f7;
  --body-color: #3d4954;
  --input-color: #fff;
   --span-color: #bac4cb;
  --border-color: #bacad8;
  --placeholder: #9ca2a3c5;
}

* {
  outline: none;
  box-sizing: border-box;
}

hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0, 0, 0, 0.1),
    transparent
  );
  margin: 10px 0;
}


img {
  max-width: 100%;
}

html {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: #fff;  
  font-family: var(--body-font);
  color: var(--body-color);
  font-weight: 400;
  margin: 0;
}
a {
  text-decoration:dashed;
  color: #064972;
}
a:hover {
  color: #446072;
}

h1, h2, h3, h4, h5, h6 {
  color: #3d4449;
  font-family: "Roboto Slab", serif;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 1em 0; }
  h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    color: inherit;
    text-decoration: none;
    border-bottom: 0; }

h1 {
  font-size: 4em;
  margin: 0 0 0.5em 0;
  line-height: 1.3; }

h2 {
  font-size: 1.75em; }

h3 {
  font-size: 1.25em; }

h4 {
  font-size: 1.1em; }

h5 {
  font-size: 0.9em; }

h6 {
  font-size: 0.7em; }
.likes, .year-book, .author, .main-menu, .profile-menu, .profile, .browse-category, .browse, .header {
  display: flex;
  align-items: center;
}

.book-store {
  display: flex;
  flex-direction: column;
  max-width: 95%;
  height: auto;
  background-color: var(--page-bg-color);
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0px 2px 50px 10px rgba(0, 0, 0, 0.21);
}

.header {
  position: fixed;
  height: 50px;
  width: 100%;
  background-color:#fff;
  padding: 0 30px;
  font-size: 14px;
  font-weight: 500;
  color: var(--body-color);
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 999999 !important;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.219);
}

.search-bar {
  position: relative;
  width: 30%;
  margin-left: 0;
}
.search-bar input {
  height: 38px;
  width: 100%;
  display: block;
  background-color: transparent;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-weight: 600;
  padding:  10px  40px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%238b939c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' class='feather feather-search'%3e%3ccircle cx='11' cy='11' r='8'/%3e%3cpath d='M21 21l-4.35-4.35'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 15px;
  background-position: 15px 50%;
  color: var(--body-color);
  font-family: var(--body-font);
}
.search-bar input::placeholder {
  color: var(--placeholder);
}

.browse-category {
  border-right: 1px solid var(--border-color);
  white-space: nowrap;
  cursor: pointer;
}
.browse-category svg {
  width: 16px;
  margin: 2px 10px 0 8px;
}

.header-title {
  font-size: 16px;
  font-weight: 400;
  margin-right: 120px;
}
.header-title span {
  font-weight: 800;
  color: var(--span-color);
}

.user-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-right: 15px;
}

.user-profile {
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.user-profile:before {
  content: "";
  position: absolute;
  background-color: #f86d72;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 2px solid var(--theme-bg-color);
  right: 12px;
  top: -3px;
  border: 2px solid #fff;
}

.profile {
  flex-shrink: 0;
}
.profile-menu {
 cursor: pointer;
}
.profile svg {
  width: 25px;
  margin: 0 8px 0 15px;
  flex-shrink: 0;
}

.book-slide {
  width: 100%;
  margin-top: 60px;
}

/* MENU LATERAL (DRAWER) */
nav#drawer-menu {
    position: fixed;
    top: 52px;
    right: -260px;
    width: 220px;
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 30px 0;
    transition:right 0.35s ease-in-out;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.211);
    border-radius: 6px;
    z-index: 100010;
}




nav#drawer-menu a {
    color: var(--body-color-);
    padding: 10px 20px;
    text-decoration: none;
    border-bottom: 0.5px solid #eae3e313;
    font-size: 0.9em;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 400;
    
}
nav#drawer-menu a:last-child {
  border-bottom: none;
}

nav#drawer-menu a:hover {
  background: #edf0efd1;
  color: #446072;
}

/* OVERLAY ESCURO FUNDO */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 1001;
}
.active{
  background: #edf0efd1;
  color: #446072 !important; 
}



.book {
  background: #fff;
}

.book-cell {
  position: relative;
  display: flex;
  padding: 25px;
  width: 40%;
  height: 250px;
  margin-right: 1px;
}


.flickity-page-dots {
  display: none;
}

.flickity-prev-next-button .arrow {
  fill: #d6d6d6;
}

.flickity-prev-next-button svg {
  left: 25%;
  top: 25%;
  width: 50%;
  height: 50%;
}

.flickity-prev-next-button.previous {
  left: 15px;
}
.flickity-prev-next-button.next {
  right: 15px;
}

.flickity-viewport {
  overflow: visible;
}

.book-photo {
  width: 180px;
  flex-shrink: 0;
  bottom: -35px;
  left: 35px;
  border-radius: 2px;
  box-shadow: -2px 6px 19px 0px #7f818e;
  transition: 0.3s ease;
}
.book-photo:hover {
  transform: scale(1.03);
}

.book-img {
  flex-shrink: 0;
  max-width: 160px;
  max-height: 200px;
}

.book-title {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.book-title {
  color: var(--body-color);
  font-weight: 500;
}

.book-author {
  margin-top: 5px;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  color: #3d4954;
}

.book-content {
  padding: 0 20px;
  color: #ffffff;
  overflow: hidden;
}

fieldset,
label {
  margin: 0;
  padding: 0;
  display: inline-block;
  vertical-align: middle;
}

h1 {
  font-size: 0.5em;
  margin: 10px;
}

.rating {
  border: none;
}

.rating > input {
  display: none;
}

.rating > label:before {
  margin-right: 5px;
  margin-top: 10px;
  font-size: 0.9em;
  font-family: FontAwesome;
  display: inline-block;
  content: "";
}

.rating > label {
  color: #fff;
  float: right;
}

.rating > input:checked ~ label,
.rating:not(:checked) > label:hover,
.rating:not(:checked) > label:hover ~ label {
  color: #d85d61;
}

.rating > input:checked + label:hover,
.rating > input:checked ~ label:hover,
.rating > label:hover ~ input:checked ~ label,
.rating > input:checked ~ label:hover ~ label {
  color: #d85d61;
}

.blue > input:checked ~ label,
.blue:not(:checked) > label:hover,
.blue:not(:checked) > label:hover ~ label {
  color: #458997;
}

.blue > input:checked + label:hover,
.blue > input:checked ~ label:hover,
.blue > label:hover ~ input:checked ~ label,
.blue > input:checked ~ label:hover ~ label {
  color: #458997;
}

.purple > input:checked ~ label,
.purple:not(:checked) > label:hover,
.purple:not(:checked) > label:hover ~ label {
  color: #a76287;
}

.purple > input:checked + label:hover,
.purple > input:checked ~ label:hover,
.purple > label:hover ~ input:checked ~ label,
.purple > input:checked ~ label:hover ~ label {
  color: #a76287;
}

.yellow > input:checked ~ label,
.yellow:not(:checked) > label:hover,
.yellow:not(:checked) > label:hover ~ label {
  color: #ffad58;
}

.yellow > input:checked + label:hover,
.yellow > input:checked ~ label:hover,
.yellow > label:hover ~ input:checked ~ label,
.yellow > input:checked ~ label:hover ~ label {
  color: #ffad58;
}

.dark-purp > input:checked ~ label,
.dark-purp:not(:checked) > label:hover,
.dark-purp:not(:checked) > label:hover ~ label {
  color: #905587;
}

.dark-purp > input:checked + label:hover,
.dark-purp > input:checked ~ label:hover,
.dark-purp > label:hover ~ input:checked ~ label,
.dark-purp > input:checked ~ label:hover ~ label {
  color: #905587;
}

.book-voters {
  color: #fff;
  vertical-align: sub;
  font-size: 13px;
  margin-left: 7px;
  white-space: nowrap;
  margin-top: 7px;
}

.book-sum {
  max-width: 300px;
  margin-top: 20px;
  font-size: 14px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
   color: #213635;
}

.book-see {
  margin-top: 25px;
  text-align: center;
  background-color: #446072;
  color:  #fff;
  font-weight: 400;
  padding: 8px;
  font-size: 14px;
  width: 160px;
  border-radius: 20px;
  border: 1px solid ;
}
.book-see > a{
  color: #fff;
}
.book-see:hover {
  background-color: #374d5b;
}


.main-wrapper {
  width: 100%;
  height: auto;
  display: flex;
  flex-grow: 1;
  margin-top: 100px;
  overflow-y: auto;
  overflow-x: hidden;
}


.books-of {
  width: 320px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
}

.popular-books {
  flex-grow: 1;
  padding: 0 30px 50px;
  overflow-y: auto;
}

.genre {
  font-weight: 500;
  font-size: 15px;
}

.container{
    display: flex;
    max-width:800px;
    flex-direction: column;
    margin:75px auto;
    padding:20px;
    align-items: center;
}
.container h1{
  font-size: 3rem;
}
.apresentacao {
    text-align: justify ;
    padding: 18px 22px;
    margin: 25px 0;
    font-size: 15px;
    line-height: 1.7;
    color: #213635;
}
.apresentacao strong {
    color: #1c5052;
    font-weight: 600;
}
.apresentacao::first-letter {
    font-size: 150%;
    font-weight: bold;
    color: #374d5b;
}

 ul li{
  line-height: 1.5rem;
 }

 .btn {
    display: block;
    background: #374d5b;
    color: #fff;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    margin: 10px 0;
    font-size: 18px;
}

.btn:hover {
    background: #446072!important;
    color: #fff !important;
}

.main-menu {
  white-space: nowrap;
  padding-bottom: 15px;
  border-bottom: 1px solid #dcddde;
  position: sticky;
  top: 0;
  right: 0;
  background-color: var(--page-bg-color);
  z-index: 2;
}

.book-types {
  margin-left: auto;
}
.book-types a {
  text-decoration: none;
  color: var(--body-color);
  font-size: 14px;
  font-weight: 400;
}

.book-type + .book-type {
  margin-left: 20px;
}

.book-type {
  position: relative;
  transition: 0.2s;
}
.book-type.active, .book-type:hover {
  -webkit-text-stroke: 0.3px;
}
.book-type.active:before, .book-type:hover:before {
  content: "";
  position: absolute;
  width: 28px;
  height: 2px;
  bottom: -17px;
  right: 15px;
}
.book-type:nth-child(2):before {
  right: 12px;
}
.book-type:nth-child(3):before {
  right: 8px;
}
.book-type:nth-child(4):before {
  right: 6px;
}
.book-type:nth-child(5):before {
  right: 20px;
}

.week {
  padding: 0 30px;
}

.author + .author {
  margin-top: 20px;
}
.author-name {
  font-size: 14px;
}
.author:last-child {
  margin-bottom: 40px;
}

.author-title {
  padding: 0 0 20px;
  font-weight: 500;
  font-size: 15px;
}

.author-img {
  border-radius: 50%;
  width: 30px;
  height: 30px;
  margin-right: 16px;
  object-fit: cover;
  object-position: center;
}

.year-book-img {
  width: 45px;
  margin-right: 16px;
}
.year-book-name {
  margin-bottom: 15px;
  font-weight: 500;
}
.year-book-author {
  font-size: 13px;
}
.year-book + .year-book {
  margin-top: 20px;
}

.year-book-content {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.overlay {
  position: sticky;
  bottom: 0;
  left: 0;
  width: 340px;
  flex-shrink: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #f2f5f7 65%, #f2f5f7 100%);
  height: 60px;
  margin-left: -35px;
}

.book-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-column-gap: 40px;
  grid-row-gap: 40px;
  padding-top: 40px;
  position: relative;
}
@media (max-width: 900px) {
  .book-cards {
    grid-template-columns: 1fr;
    grid-row-gap: 30px;
  }
}


.book-card {
  margin-top: 20px;
  background-color: #fff;
  height: auto;
  box-shadow: -1px 3px 8px -1px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  padding: 0 0 20px 20px;
  color: var(--body-color-light);
}
@media (max-width: 480px) {
  .book-card {
    height: 300px;
    overflow: hidden;
  }
  .book-card-img {
  width: 100%;
  max-height: 150px;
  margin-top: 5px; 
}
.content-wrapper {
 margin-top: 45px;
}
}



.book-card-img {
  width: 100%;
  max-width: 160px;
  height: auto;
  max-height: 240px;
  margin-top: -35px;
  border-radius: 2px;
  box-shadow: 0px 1px 7px 2px #c7c9d3;
  border-bottom: 1px solid #dcddde;
  object-fit: cover;
  margin-bottom: 20px;
  transition: 0.3s ease;
}
.book-card-img:hover {
  transform: scale(1.04);
}



.card-content {
  color: var(--body-color);
  padding: 30px;
  overflow: hidden;
  position: relative;
}

.book-name {
  font-weight: 500;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.book-by {
  font-size: 13px;
  color: var(--body-color-light);
  margin-top: 4px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.book-rate > label {
  color: #cccccc;
}

.rate {
  display: inline-block;
  white-space: nowrap;
}

.book-rate > input:checked ~ label,
.book-rate:not(:checked) > label:hover,
.book-rate:not(:checked) > label:hover ~ label {
  color: #ff9700;
}

.book-rate > input:checked + label:hover,
.book-rate > input:checked ~ label:hover,
.book-rate > label:hover ~ input:checked ~ label,
.book-rate > input:checked ~ label:hover ~ label {
  color: #ff9700;
}

.card-vote {
  color: var(--body-color-light);
}

.card-sum {
  color: var(--body-color-dark);
  font-size: 13px;
  line-height: 1.6em;
  -webkit-line-clamp: 4;
  margin-top: 15px;
}

.content-wrapper {
  display: flex;
  border-bottom: 1px solid #ebedef;
  position: relative;
}
.content-wrapper:before {
  content: "";
  position: absolute;
  background-color: #8f98a9;
  background-color: #aaaebc;
  box-shadow: 0 -6px 0 0 #aaaebc, 0 6px 0 0 #aaaebc;
  width: 4px;
  height: 4px;
  border: 0;
  padding: 0;
  right: 12px;
  top: 17px;
  border-radius: 50%;
  margin-left: auto;
}

.like-name {
  font-size: 13px;
  margin-left: 5px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  color: var(--body-color-dark) !important;
  margin-top: 15px;
}
.like-name span {
  font-weight: 600;
}


/* BOTÃO WHATSAPP FIXO */
.btn-whatsapp {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: #25d366;
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1003;
}

.btn-whatsapp:hover {
    background: #1ebe57;
}



/* ---------------- FOOTER ---------------- */

footer {
    bottom: 0;
    left: 0;
    width: 100%;
    color:var(--body-color-dark);
    text-align: center;
    padding: 12px 0;
    font-size: 10px;
    z-index: 999;
}
footer > a{
  color: #446072;
  font-weight: 600;
  text-decoration: none;
}
footer > a:hover{ 
  text-decoration: dashed;
}

@media (max-width: 1103px) {
  .book-cell {
    width: 60%;
  }
}
@media (max-width: 765px) {
  .book-cell {
    width: 80%;
  }
}
@media (max-width: 575px) {
  .book-cell {
    width: 100%;
  }
}
@media (max-width: 458px) {
  .book-photo {
    width: 180px;
  }

  .book-voters {
    display: none;
  }
}
@media (max-width: 420px) {
  .book-see {
    width: 120px;
    font-size: 13px;
  }

  .book-photo {
    width: 130px;
  }

  .main-wrapper {
    margin-top: 50px;
  }
}
@media (max-width: 360px) {
  .rating > label:before {
    font-size: 0.8em;
  }
}
@media (max-width: 1220px) {
  .card-vote {
    display: none;
  }
}
@media (max-width: 1085px) {
  .book-rate > label {
    font-size: 0.7em;
  }
}
@media (max-width: 1045px) {
  .books-of {
    display: none;
  }
}
@media (max-width: 725px) {
  .browse-category, .search-bar {
    margin-right: 20px;
  }
  .search-bar {
  width: 80%;
  }

  .header-title {
    margin-right: auto;
  }

  .book-cards {
    grid-template-columns: 1fr;
  }

  .book-types {
    display: none;
  }
}
@media (max-width: 372px) {
  .card-content {
    padding: 20px;
  }
}
@media (max-width: 420px) {
  .header {
    padding: 0 12px;
  }
}


 canvas { border: 1px solid #446072; margin: 10px; padding:10px; border-radius: 5px;}
	#controls { margin-top: 10px; }
	#controls p{width:50%; border: 1px solid #446072; margin: 10px auto; padding:10px 20px;  font-family: Arial, sans-serif;  text-align: center; color: #7f888f;  border-radius: 5px; color: #446072; }
  #pdf-render {
  max-width: 80%;
  height: auto;
  margin: 12px auto;
}

.manual-header {
  text-align: center;
  margin-bottom: 24px;
  margin-top: 80px;
}

.manual-header h1 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #446072;
}

.manual-meta {
  font-size: 0.9rem;
  color: #5f6f6f;
}
.pdf-preview {
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.222);
  margin-bottom: 24px;
  overflow-x: auto;
  text-align: center;
}

.controls button {
  border: 1px solid #446072;
  background: transparent;
  color: #446072;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
}

.controls button:hover {
  background-color: #446072;
  color: #fff;
}

/* =========================
   AÇÕES PRINCIPAIS
========================= */
.manual-actions {
  text-align: center;
  margin: 24px 0;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: 6px;
  transition: 0.2s ease;
}

.btn.download {
  background-color: #446072;
  color: #fff;
}

.btn.download:hover {
  background-color: #3d4954;
}
/* =========================
   BLOCO EDITORIAL
========================= */
.manual-editorial {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  margin-bottom: 24px;
}

.manual-editorial h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: #446072;
}

.manual-editorial p {
  font-size: 0.95rem;
  color: var(--body-color);
  margin-bottom: 12px;
}

/* =========================
   CTA DISCRETO
========================= */
.manual-cta {
  background: #446072;
  color: #f2f2f2;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 50px;
}

.manual-cta p {
  font-size: 1rem;
  margin-bottom: 12px;
}

.manual-cta ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.manual-cta li {
  font-size: 0.9rem;
  margin-bottom: 6px;
}


.category-dropdown {
  position: absolute;
  top: 52px;
  left: 0;
  width: 220px;
  max-width: 90vw;
  background-color: #fff;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.211);
  border-radius: 3px;
  display: none;
  flex-direction: column;
  z-index: 1000;
  animation: slideDown 0.2s ease-in-out;
  padding: 30px 0;
}

.category-dropdown a {
  color: var(--body-color);
  padding: 10px 20px;
  text-decoration: none;
  font-size: 0.9em;
  border-bottom: 1px solid #f0f0f078;
  transition: background 0.2s ease;
  font-weight: 400;
}

.category-dropdown a:last-child {
  border-bottom: none;
}

.category-dropdown a:hover {
  background-color: #f6f7f9;
}


@media (max-width: 725px) {
  .category-dropdown {
    width: 30%;
  }
}


/* animação */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== FORMULÁRIO ===== */
form {
    max-width: 520px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    font-family: Arial, Helvetica, sans-serif;
}

/* ===== CAMPOS ===== */
.file-box {
    display: flex;
    flex-direction: column;
}

.file-box label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.file-box input,
.file-box textarea {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
    transition: all 0.2s ease;
    background-color: #fafafa;
}

.file-box textarea {
    resize: vertical;
    min-height: 110px;
}

/* ===== FOCO ===== */
.file-box input:focus,
.file-box textarea:focus {
    border-color: #348e91;
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 142, 145, 0.15);
}

/* ===== INPUT FILE ===== */
.file-box input[type="file"] {
    padding: 10px;
    background-color: #f2f2f2;
    cursor: pointer;
}