@font-face {
    font-family: "harryP";
    src: url('./fonts/HARRYP__.TTF');
}

body {
    background-image: url(./images/pergamino.jpg);
    display: flex;
    flex-direction: column;
    align-items: center;
}


.title-page {
    background-image: url(./images/pergaminoletras.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 50%;
    height: 100px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "harryP", sans-serif;
    font-size: 2em;
    margin-top: 0;

}

.home {
    display:flex;
    width: 100%;
    justify-content: flex-end;
    margin-right: 10em;
    margin-top: 2em;
    
}
.data {
    display: flex;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.data input {
    border-radius: 50px;
    font-size: 1em;
    padding: 0.5em;
    font-family:arial;
    color: white;
    background: rgba(75, 46, 32, 0.71);
    border: 3px solid #E3A900;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(2px);
    background-image: url(./images/iconsearch.svg);
    background-position: 11em center;
    background-repeat: no-repeat;
    background-size: 1.5em;
    
}

.data select {
    border-radius: 50px 50px 50px 50px;
    font-size: 1em;
    border: 2px solid #4B2E20;
    padding: 0.5em;
    font-family:arial;
    color: white;
    color: white;
    background: rgba(75, 46, 32, 0.71);
    border: 3px solid #E3A900;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(2px);
    width: 15%;
}

#selectSort {
    border-radius: 50px 50px 50px 50px;
    font-size: 1em;
    padding: 0.5em;
    font-family:arial;
    color: white;
    background: rgba(75, 46, 32, 0.71);
    border: 3px solid #E3A900;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(2px);

}


.charactersPage {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;


}

#charactersPage div {
    box-sizing: border-box;
    background: #E3A900;
    border: 4px solid #4B2E20;
    border-radius: 0px 50px 50px 50px;
    letter-spacing: 0.1em;
    padding: 1em;
    margin: 4em;
    height: 10em;
    width: 15em;
    display: flex;
    flex-wrap: wrap;
    font-family: 'Viaoda Libre', cursive;
    font-size: 1em;

}


#counter {
    display: flex;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    font-family: 'Viaoda Libre', cursive;
}



#facts {
    border-radius: 50px 50px 50px 50px;
    background: #E3A900;
    color: white;
    display: flex;
    align-self: flex-start;
    justify-content: space-evenly;
    padding: 1em;
    margin-left: 14%;
    text-decoration: none;
    width: 14vw;
    border: 2px solid #4B2E20;

}

#facts2 {
    border-radius: 50px 50px 50px 50px;
    background: #E3A900;
    color: white;
    display: flex;
    align-self: center;
    padding: 1em;
    text-decoration: none;

}

#text {
    font-family: 'Viaoda Libre', cursive;
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 69px;
    display: flex;
    align-items: center;
    text-align: center;
    color: #000000;
    letter-spacing: 0.1em;
}



#tableAncestry {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    flex-wrap: wrap;
  }

.ancestry {
        box-sizing: border-box;
        background: #E3A900;
        border: 4px solid #4B2E20;
        border-radius: 0px 50px 50px 50px;
        letter-spacing: 0.1em;
        padding: 0.5em;
        margin: 2em;
        width: 18em;
        display: flex;
        flex-wrap: wrap;
        font-family: 'Viaoda Libre', cursive;
        font-size: 1em;
        flex-direction: column;
        
}

/* ESTILOS DE LA PAGINA BOOKS */


#textBooks {
    font-family: 'Viaoda Libre', cursive;
    display: flex;
    align-items: center;
    font-size: 1em;
}

#dataInBooks {
    display: flex;
    justify-content: center;
    gap: 2em;
    width: 100%;
}


#cardBook {
    display: flex;
   text-align: center;
    flex-wrap: wrap;
    padding: 5em;
    gap: 7em;
    font-family: 'Viaoda Libre', cursive;
    justify-content: center;
}


.imageBook {
    transition: transform 0.5s ease-in, opacity 0.2s ease-in-out;
    transform-origin: center;
  }

  .imageBook:hover {
    transform: rotateY(180deg);
    background-color: white;
    opacity: 0.2;
  }

  .imageBook:active {
    transform: rotate(0deg);
    background-color: transparent;
    opacity: 10;
  }


  
.spellsPage {
    margin: 5em;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-content: center;



  }
 
  
  .spellsPageInner {
    width: 80em;
    height: 10em;
    padding: 0.5em;
    margin: 3em;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    font-family: Arial, Helvetica, sans-serif;
    color: black;
    letter-spacing: 0.1em;

  }

  
  .spellsPageInner::before {
    content: ""; /* Necesario para crear el pseudo-elemento */
    position: absolute; /* Para que el pseudo-elemento se posicione en relación a la sección */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(https://fondosmil.com/descargar/harry-potter-23797);
    background-position: center;
    opacity: 0.3; /* Valor de opacidad, puedes ajustarlo según tus necesidades */
    border: 4px solid #4B2E20;
    border-radius: 0px 50px 50px 50px;
  }
  

  .spellsPage:hover .spellsPageInner  {
    transform: rotateX(180deg);
  }
  
  .spellsPageFront, .spellsPageBack {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  
  .spellsPageFront {
    font-size: 1.5em;
    text-align: center;
    padding-top: 1em;
    
  }
  
  .spellsPageBack {
    font-size: 1em;
    transform: rotateX(180deg);
    padding-top: 10em;
    text-align: center;
  }

/* AQUI EMPIEZa LA JODA */
  .flip-card-book {
    background-color: transparent;
    width: 300px;
    height: 464px;
    gap: 20;
    /* perspective: 1000px; */
  }
  
  .flip-card-inner-book {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);

  }
  
  .flip-card-book:hover .flip-card-inner-book {
    transform: rotateY(180deg);
  }
  
  .flip-card-front-book, .flip-card-back-book {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  

  .flip-card-back-book {
    border-radius: 10px;
    padding: 1em;
    background: #83604e;
    color: white;
    transform: rotateY(180deg);
  }
