@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Chau+Philomene+One:ital@0;1&family=Rock+Salt&family=Italianno&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Xanh+Mono:ital@0;1&display=swap');

:root {
    --main-font: "Chau Philomene One", sans-serif;
}

/* Corpo e Header*/
body{
    background-image: url(Imgs/Fundo-Páginas.jpg);
    background-position: center;
    margin: 0;
    padding: 0; 
    overflow-x: hidden;
    font-family: Arial, Helvetica, sans-serif;
}
header{
    color: white;
}

/* Titulo FlavLib */
#titulo{
    font-size: x-large;
    display: block;
    text-align: center;
    margin: auto;
    width: 70%;
    max-width: 1200px;
    height: 50px;
    background-color: #7899d4;
    border: 2px solid #c0dfff;
    border-radius: 20px;
    line-height: 1.1;
    padding: 10px;
    margin-bottom: 5px;
    font-family: var(--main-font);
    font-weight: bolder;
    font-style: normal;
    margin-top: 15px; 
    box-shadow: 4px 4px black;
    letter-spacing: 10px;
}

#lib{
    font-size: xx-large;
    display: block;
    margin-top: -15px;
    padding: 10px;
}
hr{
    color: white;
}

/* Menu: Home; Library; Apoio;*/
#menu{
    display: flex;
    justify-content: center;
    text-align: center;
    height: 25px;
    margin: 15px 0; 
}

#homeoption, #liboption, #lovoption{
    display: inline-flex;
    align-items: center; 
    justify-content: center;
    padding: 5px;
    margin: 2px;
    width: 20%;
    height: 20px;
    border: 2px solid #c0dfff;
    border-radius: 20px;
    padding: 2px;
    background-color: #7899d4;
    text-align: center;
    color: white;
    text-decoration: none;
    text-align: center;
    padding: 8px 12px;
    font-family: var(--main-font); 
    font-size: 125%;
    font-weight: bolder;
    box-shadow: 4px 4px black;
}

#homeoption .icon {
    width: 20px; 
    height: 20px;
}
#homeoption:hover, #liboption:hover, #donate:hover, #lovoption:hover{
  --text-light: rgba(255, 255, 255, 0.4);
  --edge-light: hsla(0, 0%, 50%, 1);
  text-shadow: 0px 0px 10px var(--text-light);
  box-shadow: inset 0.4px 1px 4px var(--edge-light),
    2px 4px 8px hsla(0, 0%, 0%, 0.295);
  transform: scale(1.1);
}
#homeoption:active, #liboption:active, #donate:active, #lovoption:active{
  --text-light: rgba(255, 255, 255, 1);

  box-shadow: inset 0.4px 1px 8px var(--edge-light),
    0px 0px 8px hsla(var(--back-color), 50%, 0.6);
  text-shadow: 0px 0px 20px var(--text-light);
  color: hsla(0, 0%, 100%, 1);
  letter-spacing: 0.1em;
  transform: scale(1);
}

/*Linha de divisão*/
hr{
    margin: 25px;
}

/*Conteúdo principal*/
main{
    font-family: Arial, Helvetica, sans-serif;
    display: block;
    background-color: #294d8b;
    width: 90%;
    max-width: 1200px; 
    height: auto;
    color: white;
    margin: 0 auto 50px; 
    text-align: center;
    font-size: 1.2em;
    border: 2px solid #c0dfff;
    border-radius: 2px 12px 1px 12px;
    box-shadow: 4px 4px black;
    padding: 50px;
    box-sizing: border-box; 
}

/*rodapé*/
footer{
    display: block;
    background-color: #294d8b;
    border: 2px solid #c0dfff;
    text-align: center;
    width: 30%;
    height: auto;
    color: white;
    padding: 10px;
    margin: auto;
    border-radius: 50px;
    font-family: var(--main-font);
    font-weight: bolder;
    box-shadow: 4px 4px black;
    position: relative; 
    z-index: 1; 
}

/* Frase eu te amo */
#fraseamor{
  font-family: "Italianno", cursive;
  font-weight: bold; 
  font-style: normal;
  font-size: 2em;
  margin-bottom: 2px;
  margin-top: 2px;
  text-decoration: underline;
}

/*Botão buy me a coffee*/
#donate{
    display: block;
    text-decoration: none;
    background-color: #27b64a;
    border: 3px solid white;
    border-radius: 50px;
    width: 30%;
    height: auto;
    padding: 10px;
    margin: auto;
    text-align: center;
    margin-bottom: 10px;
    color: White;
    font-family: var(--main-font);
    font-weight: normal;
    font-size: x-large;
    box-shadow: 4px 4px black;
}

/* Imagem flav lendo bonitinha  */
#flavlendo_sentada img{
    display: block;
    width: 30%;
    height: auto;
    margin: auto;
    margin-bottom: -10%;
    margin-top: -3%;
    position: relative; 
    overflow-x: auto;
}

/* Library conjunto dos livros*/
#caixa {
  padding: 20px;
  height: auto;
  overflow-x: hidden;  
  position: relative;
}

/* Container de movimentação com livros dentro*/
.livros-container {
  display: flex;
  gap: 20px;
  animation: scroll 20s linear infinite; 
  width: max-content;
}


.livros-container:hover {
  animation-play-state: paused;
}

/* Livros capas e Titulos*/
.livros {
  background-color: #003366;
  margin: 5px;
  padding: 0px;
  border: 2px solid white;
  border-radius: 10px;
  box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.705);
  flex: 0 0 auto;
  height: auto;
  width: 350px;
  text-decoration: none;
}

.livros img{
  border-radius: 10px;
}

.titulos-livros{
  margin: 5px;
  font-family: "Xanh Mono", monospace;
  font-weight: 400;
  text-align: center;
  color: white;
  font-style: italic;
  margin-top: 0px;
  font-size: 16px;
}

/* animação de rolagem infinita */
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%); 
  }
}

.livros:hover {
  border-radius: 15px;
  cursor: pointer;
  transform: scale(1.1);
  box-shadow: 0px 0px 10px 5px  rgba(0, 0, 0, 0.705);
  background: #195FCF;
}

.primeira-pagina {
  transition: all 0.4s;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  border-radius: 15px;
}

.livros:hover .primeira-pagina {
  height: 0px;
  opacity: 0;
}

.segunda-pagina {
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  transition: all 0.4s;
  font-size: 0px;
  transform: rotate(90deg) scale(-1);
}

.livros:hover .segunda-pagina {
  opacity: 1;
  height: 100%;
  font-size: 1.8rem;
  transform: rotate(0deg);
}

/*Designer página do Livro*/
.pagina-livro{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  margin: 50px auto;
  max-width: 1200px;
  padding: 0 20px;
  text-align: center;
  border: 2px solid transparent;
  border-radius: 2px 12px 2px 12px;
  height: auto;
}

.pagina-livro picture {
  flex: 0 0 auto;
}

.pagina-livro img{
  border-radius: 2px 12px 2px 12px;
  border: 2px solid white;
  max-width: 350px;
  width: 100%;
  height: auto;
}

/* Configurações descrição livro*/
#descricao{
  flex: 1;
  background-color: #000124;
  border: solid 2px white;
  max-width: 500px;
  height: auto;
  text-align: justify;
  font-weight: 400;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  padding: 20px;
  border-radius: 2px 12px 2px 12px;
}

#descricao h1 {
  font-size: 24px;
  text-align: center;
  margin-top: 0;
  margin-bottom: 15px;
}

#descricao p {
  margin-bottom: 15px;
  line-height: 1.5;
}

#descricao-detalhes{
  border: 2px solid white;
  border-radius: 2px 12px 2px 12px;
  margin: 5px;
  font-family: "Xanh Mono", monospace;
  font-weight: 400;
  font-size: small;
  background-color: #000237;
  padding: 10px;
}

/* Capitulo designer */
.card {
  display: flex;
  width: auto;
  height: 200px;
  border-radius: 4px;
  background: transparent;
  gap: 5px;
  padding: .4em;
  margin-right: auto;
}

.card a {
  height: 100%;
  flex: 1;
  overflow: hidden;
  cursor: pointer;
  border-radius: 2px;
  transition: all .5s;
  background: #000237;
  border: 1px solid #6488ea;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-decoration: none; 
}

.card a:hover {
  flex: 5;
}

.card a span {
  min-width: 14em;
  padding: .5em;
  text-align: center;
  transform: rotate(-90deg);
  transition: all .5s;
  text-transform: uppercase;
  color: #ADD8E6;
  letter-spacing: .1em;
}

.card a:hover span {
  transform: rotate(0);
}

/*Página buy me a coffee*/
#imgdonate{
  display: block;
  margin: auto;
}

/* Responsividade */
@media (max-width: 768px) {
  .card {
    flex-direction: column;
    height: auto;
  }
  
  .card a {
    width: 100%;
    height: 60px;
    margin-bottom: 5px;
  }
  
  .card a span {
    transform: rotate(0); 
  }
  
  .card a:hover {
    flex: 1;
    height: 80px;
  }
}

@media (max-width: 900px) {
  .livros-container {
    animation-duration: 15s; 
  }
  .livros{
    height: 250px;
    width: 250px;
  }
  #descricao{
    width: 250px;
  }
  
  .pagina-livro {
      flex-direction: column;
      align-items: center;
      gap: 20px;
      margin: 30px auto;
      padding: 0 10px;
  }
  
  .pagina-livro img {
      max-width: 90%;
      height: auto;
  }
  
  #descricao {
      width: 90%;
      max-width: none;
      padding: 15px;
  }
  
  #descricao h1 {
      font-size: 20px;
  }
}