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

:root {
  --bg-primary-color: #f2f2f2;

  --bg-primary: #1b98e0;
  --bg-primary-hover: #295aac;
  --bg-secondary: #f39221;
}

ul,
li {
  margin: 0;
  padding: 0;
  list-style: none;
}

main form button {
  background: var(--bg-primary) !important;
}

main form button:hover {
  background: var(--bg-primary-hover) !important;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-primary-color);
  overflow-x: hidden;
}

/* HEADER */
#header {
  background: #0975c6;
  background: url(../img/banner.svg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

  position: relative;
}

#header .header-sign {
  display: flex;
  height: 8vh;

  border-top: 10px solid;
  border-image-slice: 1;
  border-width: 5px;

  border-image-source: linear-gradient(to left, #0975c6, #33e2ff);
}

#header .header-sign .container {
  display: flex;
  height: 100%;
}

#header .header-sign a {
  color: #fff;
}

#header .header-sign .container > ul {
  display: flex;
  gap: 1rem;

  align-items: center;
}

#header .header-sign .container li.checkout-shopping a {
  text-decoration: none;
}

#header .header-sign .container li.checkout-shopping a i {
  font-size: 1.5rem;
}

#header .header-sign .container li.checkout-shopping a sup {
  position: relative;
  top: -1rem;
}

#header .container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding-bottom: 1rem;
}

#header .container .logo {
  width: 15%;
  position: relative;
  transform: translateY(3rem);
}

#header .container .logo img {
  width: 100%;
}

#header .container .navbar form {
  background: #fff;
  display: flex;
  padding: 0.2rem 0.2rem;
  border-radius: 5rem;
}

#header .container .navbar form input {
  border: 0;
  border-top-left-radius: 5rem;
  border-bottom-left-radius: 5rem;
  width: 85%;

  padding-inline: 1rem;
}

#header .container .navbar form button {
  border: 0;
  border-top-right-radius: 5rem;
  border-bottom-right-radius: 5rem;
  width: 15%;

  background: var(--bg-secondary);
  color: #fff;
}

#header .container .navbar ul {
  display: flex;
  gap: 1.5rem;
}

#header .container .navbar ul li a {
  color: #fff;
}

#header .container .navbar ul li {
  padding-top: 0.8rem;
}

#header .container .navbar li.active {
  border-bottom: 1px solid var(--bg-secondary);
  padding-top: 0.8rem;
}

#header .container .navbar li.active a {
  color: #fff;
}

.btn-menu {
  display: none;
}

/* TITULO PRINCIPAL */
.title-section-livro {
  padding-block: 1rem;

  text-transform: uppercase;
}

.title-section-livro h2 span {
  font-weight: 100;
}

/* NAVS */
.nav-tabs button.active {
  background: var(--bg-primary-color) !important;
  font-weight: bold;
  border-color: none;
}

/* ITEMS */
.content-items-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;

  padding-bottom: 2rem;
}

.content-items-card .item-card {
  width: 32.3%;
  color: #000;

  opacity: 0.6;
  text-decoration: none;

  border: 1px solid #fafafa;
  background: #fff;

  padding-bottom: 1rem;
  transition: opacity, 0.5s ease-in-out;
}

.content-items-card .item-card:hover {
  opacity: 1;
}

.content-items-card .item-card h3 {
  margin-top: 1rem;
  font-size: 1.3rem;
}

.content-items-card .item-card .bg-card {
  background: #05050588;
  height: 30vh;
}

.content-items-card .item-card .content-livro {
  padding-inline: 1.5rem;
}

.content-items-card .item-card .buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.content-items-card .item-card .buttons button,
.content-items-card .item-card .buttons a {
  background: linear-gradient(to left, var(--bg-primary), var(--bg-primary));
  padding: 0.4rem 1rem;

  color: #fff;
  border: 0;

  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;

  gap: 0.7rem;
}

/* FOOTER */

footer {
  background: url(../img/fundo.jpg), linear-gradient(to left, #1b98e0, #1b98e0);
  background-size: cover;
  background-position: center;
  height: auto;
}

footer > .container {
  padding-bottom: 4rem;

  color: #fff;
}

footer > .container .logo img {
  width: 15%;
}

footer h4 {
  font-weight: 600;
  font-size: 1.2rem;
  color: #fff;
}

footer ul {
  margin-top: 1rem;
}

footer ul li a {
  color: #fff;
  text-decoration: none;
  opacity: 0.8;
}

footer ul li a:hover {
  opacity: 1;
  color: #fff;
}

footer .footer-redes-sociais {
  display: flex;
  gap: 1rem;
}

footer span {
  font-weight: bold;
}

#header > .container form {
  display: none;
}

@media (min-width: 720px) and (max-width: 1024px) {
}

.mobile-menu {
  display: none;
}

@media (max-width: 640px) {
  /* HEADER */
  #header .header-sign ul,
  #header .navbar {
    display: none !important;
  }

  #header .container .logo {
    width: 55%;
    transform: translateY(2.5rem);
  }

  #header .header-sign {
    border-image-source: none;
    border: none;
  }

  #header > .container {
    display: flex;
    flex-wrap: wrap;
  }

  #header > .container form {
    width: 100%;
    background: #fff;
    display: flex;
  }

  #header > .container form input {
    width: 80%;
    border: 0;
    padding: 0.8rem;
  }

  #header > .container form button {
    width: 20%;
    border: 0;

    background: var(--bg-secondary);
    color: #fff;
  }

  .mobile-menu .avatar-user {
    margin-bottom: 1rem;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    padding: 1rem 0 0.8rem 0;
  }

  .mobile-menu .avatar-user .user {
    display: flex;
    gap: 0.5rem;
  }

  .mobile-menu .avatar-user .user a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
  }

  .mobile-menu .navegator-user ul {
    gap: 0;
    padding-inline-start: 3rem;
  }

  .mobile-menu .navegator-user {
    display: none;
    opacity: 0;
  }

  .mobile-menu .navegator-user.active {
    display: flex;
    opacity: 1;
    transition: opacity 0.3s all;
  }

  .mobile-menu .avatar-user img {
    width: 40px;
    height: 40px;

    border-radius: 50%;
  }

  /* CARD */
  .content-items-card {
    flex-direction: column;
  }

  .content-items-card .item-card {
    width: 100%;
  }

  /* BTN MENU */
  .btn-menu {
    display: flex;

    border: 0;
    background: 0;
    color: #fff;

    font-size: 2rem;

    transform: translateY(-1rem);
  }

  .mobile-menu {
    background: url(../img/fundo.jpg);
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 100vh;
    position: fixed;

    overflow-y: scroll;

    top: 0;
    z-index: 9999;
  }

  .mobile-menu.active {
    display: flex;
  }

  .mobile-menu .header-menu-mobile {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
  }

  .mobile-menu .header-menu-mobile img {
    width: 30%;
  }

  .mobile-menu .header-menu-mobile button {
    background: none;
    border: 0;
    font-size: 3rem;
    color: #fff;
  }

  .body-menu {
    padding: 1rem;
  }

  .body-menu ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .body-menu ul li {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
  }

  .body-menu ul a {
    color: #fff;
    display: flex;
    width: 100%;
    padding-bottom: 1rem;

    text-decoration: none;
  }

  .footer-menu {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .footer-menu > a {
    padding: 1rem;
    background: var(--bg-secondary);
    color: #fff;
    display: flex;
    text-decoration: none;
    justify-content: center;
  }

  .primary-users {
    display: flex;
    gap: 1rem;
  }

  .primary-users a {
    width: 50%;
    background: var(--bg-secondary);

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;

    color: text;
    text-decoration: none;
    color: #fff;
  }
}

/* DROPDOWN */
.header .dropdown ul {
  display: block;
  position: absolute;
  left: 14px;
  top: calc(100% + 30px);
  margin: 0;
  padding: 10px 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  transition: 0.3s;
  border-radius: 4px;
}

.dropdown > ul {
  flex-direction: column;
  display: flex !important;
  gap: 0rem !important;
}

.dropdown > ul li a {
  margin: 0 !important;
  height: auto !important;
}

.dropdown > ul li a {
  color: #000 !important;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem !important;
}

.header .dropdown ul li {
  min-width: 200px;
}

.header .dropdown ul a {
  padding: 10px 20px;
  font-size: 15px;
  text-transform: none;
  font-weight: 100;
}

.header .dropdown ul a i {
  font-size: 12px;
}

.header .dropdown ul a:hover,
.header .dropdown ul .active:hover,
.header .dropdown ul li:hover > a {
  color: #16df7e;
}

.header .dropdown:hover > ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.header .dropdown .dropdown ul {
  top: 0;
  left: calc(100% - 30px);
  visibility: hidden;
}

.header .dropdown .dropdown:hover > ul {
  opacity: 1;
  top: 0;
  left: 100%;
  visibility: visible;
}

@media (max-width: 1366px) {
  .header .dropdown .dropdown ul {
    left: -90%;
  }

  .header .dropdown .dropdown:hover > ul {
    left: -100%;
  }
}

.menu-dropdown {
  display: flex;
  flex-direction: column;
}

.menu-dropdown ul {
  display: none;
  flex-direction: column;
  width: 90%;
}

.menu-dropdown ul.active {
  display: flex;
}

.menu-dropdown ul li a {
  display: flex;
  padding-top: 0.8rem;
}

/* ============================== PERFIL-AUTOR ==============================  */
#perfil-autor {
  margin-top: 2rem;
}
.banner {
  background: url(/teste/front/assets/img/blog1.png);
  background-size: cover;
  height: 60vh;

  color: #fff;
}

.banner a {
  color: #fff;
}

.banner .content {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;

  text-align: center;

  height: 100%;
}

.banner .content .header img {
  width: 90px;
  height: 90px;

  border-radius: 50%;

  margin-bottom: 1rem;
}

.banner .redes ul {
  display: flex;
  gap: 1rem;
}

.perfil-livros-postados .content-items-card .item-card {
  width: 100%;
}

.perfil-livros-postados .content-items-card .item-card a {
  text-decoration: none;
}

/* COMPONENT DA PARTE DE LEITURA */
.avaliacao-item {
  display: flex;
  justify-content: space-between;
}

.avaliacao-item .comment {
  height: 5vh;
}

.avaliacao-item h2 {
  font-size: 1rem;
}

.avaliacao-item button {
  width: 30px;
  height: 30px;

  border-radius: 50%;
  border: 0;

  color: #fff;
}

/* LOADING */
.loading {
  background: rgba(7, 7, 7, 0.795);
  position: absolute;
  top: 0;
  width: 100%;
  height: 100vh;

  z-index: 9999;

  position: fixed;

  color: #fff;
}

.loading .container {
  display: flex;
  align-items: center;

  height: 100%;
  justify-content: center;
}

@media (max-width: 640px) {
  .avaliacao-item {
    flex-direction: column;
    gap: 1rem;
  }

  .avaliacao-item .comment {
    height: auto;
    width: 45%;
  }

  .navegator {
    width: 100%;
  }
}

/* TABLE SCROLL */
.table {
  width: 1100px;
}
