@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@400;500&family=Kalnia:wght@700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: 'Kalnia';
  background-color: #fff;
  width: 100%;
  overflow-x: hidden !important;
  height: auto;
}

.capa-perfil {
  width: 100%;
  height: 300px !important;
  background-color: #ccc;
  position: relative;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.foto-perfil {
  width: 120px;
  height: 120px;
  background-color: #aaa;
  border-radius: 50%;
  border: 4px solid white;
  position: absolute;
  bottom: -60px;
  left: 40px;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  overflow: visible !important;
  box-sizing: border-box !important;

}

.nome-usuario {
  position: absolute;
  top: 324.75px !important;
  bottom: -90px;
  font-size: 30px;
  font-family: 'Georgia', serif;
  color: #181818;
  margin-left: 180px;
}

.perfil {
  display: flex;
  justify-content: space-around;
  gap: 30px;
  padding: 70px 120px 40px 120px;
}

.coluna h3 {
  font-size: 22px;
  margin-bottom: 10px;
  border-bottom: 1px solid #303030 ;
  font-weight: 600 !important;
  color: #1f1f1f;
}


.coluna.descricao {
  flex: 0 0 auto;
  max-height: 270px;
  /*min-width: 700px;*/
}

.coluna button {
  margin: 5px 5px 5px 0;
  padding: 6px 12px;
  font-family: 'Georgia', serif;
  background-color: #eee;
  border: 1px solid #ccc;
  cursor: pointer;
}

.coluna p {
  font-size: 20px;
  margin-bottom: 20px;
}

.amigo-foto {
  width: 40px;
  height: 40px;
  background-color: #bbb;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  margin-right: 8px;
  align-self: center;

  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.botao-main-espaco {
  padding-top: 30px;
  padding-right: 5%;
  justify-self: flex-end;
}

.botao-main {
  padding: 8px 16px;
  border-radius: 10px;
  transition: all 0.3s;
}

.botao-acao-true {
  background-color: #eba4f1 !important;
  color: white;
    
}

.botao-main:hover {
  background-color: #EE8AF8;
  transform: scale(1.05);
}

.botao-generos {
  border: none;
  color: #000;
  border-radius: 25px;
  transition: all 0.3s;
}

.botao-generos:hover {
  background-color: #EE8AF8;
  transform: scale(1.05);
}

/* Coluna consumo com gráfico */
.coluna.consumo {
  max-width: 100%;
}

.grafico-consumo {
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* Ajuste este valor para controlar o espaçamento */
  padding-top: 20px;
  font-family: 'Georgia', serif;
  font-size: 14px;
  position: relative;
  padding-left: 120px;
  /* espaço para os rótulos + linha */
}

.grafico-consumo::before {
  content: "";
  position: absolute;
  left: 110px;
  /* posição exata da linha divisória */
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: black;
}

.linha-consumo {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  /* Adicionando margem inferior */
}

.linha-consumo:last-child {
  margin-bottom: 0;
  /* Removendo a margem da última linha */
}

.rotulo-genero {
  width: 110px;
  position: absolute;
  left: 0;
  text-align: right;
  padding-right: 10px;
  line-height: 1.2;
  white-space: nowrap;
  /* Impede a quebra de linha */
}

.barra-genero {
  height: 6px;
  /* altura menor */
  background-color: #d3d3d3;
  border-radius: 3px;
  width: 180px;
}

.amigos-list {
  display: flex;
  flex-direction: column;
  gap: 10px !important;
}
.amigos-list li {
  display: flex;
  flex-direction: row;
  height: 50px;
}

.amigos-list span {
  display: flex;
  align-items: center;
}

.coluna.amigos {
  flex: 1 0 auto;
  max-height: 300px;
  max-width: 270px;
  overflow-y: auto;
  scrollbar-width: relative;
}

/* Carrossel */
.estantes {
  padding: 20px 40px;
}

.estantes h2 {
  font-size: 20px;
  margin-bottom: 10px;
  border-bottom: 1px solid #000;
}

.livros-container {
  /* display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 20px 0;
  scroll-snap-type: x mandatory; */
  display: flex;
  overflow-x: auto;
  gap: 10px;
  max-width: 100%;
  box-sizing: border-box;
}

.livro {
  min-width: 120px;
  height: 180px;
  background-color: #ddd;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Georgia', serif;
  font-size: 14px;
  text-align: center;
  border-radius: 8px;
}

.livros-container.centralizado {
  justify-content: center;
}

/* Responsividade */
@media (max-width: 1024px) {
  .perfil {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }

  .foto-perfil {
    left: 20px;
    transform: none;
    bottom: -60px;
  }

  .nome-usuario {
    top: 260px;
    margin-left: 150px;
    transform: none;
    text-align: left;
    z-index: 1;
    /* Esse z-index: 1 faz ficar acima de outras camadas */
  }

  .botao-main-espaco {
    justify-self: flex-end;
    padding-top: 20px;
    padding-right: 20px;
  }



  .grafico-consumo {
    padding-left: 0;
    align-items: flex-start;
  }

  .grafico-consumo::before {
    display: none;
  }

  .linha-consumo {
    flex-direction: column;
    align-items: flex-start;
  }

  .rotulo-genero {
    position: static;
    width: auto;
    text-align: left;
    padding: 0;
    margin-bottom: 4px;
  }

  .barra-genero {
    width: 100%;
    max-width: 250px;
  }

  .coluna.amigos {
    max-height: none;
  }

  .livros-container {
    padding: 10px 0;
  }
}

@media (max-width: 600px) {
  .livro {
    min-width: 100px;
    height: 150px;
    font-size: 12px;
  }

  .estantes {
    padding: 10px 20px;
  }

  .estantes h2 {
    font-size: 18px;
  }
}