
/*PAGINA INDEX-----------------------------------------------------------------------------------------------------*/

body {
  min-height: 100vh;

  background-image:

    url("../imagenes/pared-ladrillo.jpg");
    
  background-size:
  
    25%;

  background-position:

    center;

  background-repeat:

    repeat;

  background-attachment:

    fixed;

  color: white;
}

/*=========================== 
           BANNER
===========================*/

#banner {
  height: 270px;
  background-image: url("../imagenes/banners/bannerlibrary.jpg") ;

  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;

  text-align: center;
  padding-top: 40px;
  position: relative;
  overflow: hidden;
}

/*ESTILO DE TITULO*/
#Titulo {
  color: #4b0082;
  font-size: 60px;
  margin: 0;
  font-family: 'Nosifer';
  text-shadow: 0px -3px darkred,
  0 6px 0 #600;
}


/*ESTILO DE BOTONES*/

#menu {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.menu-btn {
  padding: 8px 16px;
  border: 2px solid rgba(210, 175, 129, 1.0);
  box-shadow: 0px 0px 10px  rgba(210, 175, 129, 1.0);
  background: rgba(24, 20, 16, 1.6);
  text-decoration: none;
  font-family: "New Rocker", system-ui;
  font-size: 20px;
  color: rgba(210, 175, 129, 1.0);
  transition: all 0.2s ease;
}

.menu-btn:hover {
  filter:
    drop-shadow(0 0 6px rgba(210, 175, 129, 0.4))
    drop-shadow(0 0 12px rgba(255, 147, 0, 0.25));
}



/*PAGINA BOOKS-----------------------------------------------------------------------------------------------------------------------------------*/
.books {
  min-height: 100vh;

  background-image:
    url("../imagenes/biblioteca.jpg"),
    url("../imagenes/pared-ladrillo.jpg");
    
  background-size:
    contain,
    25%;

  background-position:
    center top,
    center;

  background-repeat:
    no-repeat,
    repeat;

  background-attachment:
    scroll,
    fixed;

  color: white;
}


/*=========================== 
        CANDELABROS
===========================*/

.candelabro {
  position: absolute;
  width: 10%;
  top: 80%;
  }
  
  .candelabro img {
  width: 100%;
  display: block;
}

/*=========================== 
       LUZ AMARILLA
===========================*/

.candelabro::after {
  content: "";
  position: absolute;
  top: -5%;       /* afecta a la posicion de la luz */
  left: 45%;
  width: 170%;
  height: 150%;

  background: radial-gradient(
    circle,
    rgba(255,180,80,0.8) 0%,
    rgba(255,180,80,0.4) 40%,
    transparent 50%
  );

  transform: translateX(-50%);
  pointer-events: none;
  animation: flicker 2s infinite;
}


/*=========================== 
       LUZ ROJA
===========================*/

.candelabro::before {
  content: "";
  position: absolute;
  top: 60%;       /* afecta a la posicion de la luz */
  left: 50%;
  width: 30%;
  height: 30%;

  background: radial-gradient(
    circle,
    rgba(200,0,0,0.6) 0%,
    rgba(120,0,0,0.3) 80%,
    transparent 5%
  );

  transform: translateX(-50%);
  pointer-events: none;

  animation: flickerRed 3.6s infinite;
}
  
/*=========================== 
     ANIMACION DE LLAMA
===========================*/

@keyframes flicker {
  0%   { opacity: 0.6; transform: translateX(-50%) scale(1); }
  40%  { opacity: 1;   transform: translateX(-50%) scale(1.1); }
  70%  { opacity: 0.7; transform: translateX(-50%) scale(0.95); }
  100% { opacity: 0.9; transform: translateX(-50%) scale(1); }
}

@keyframes flickerRed {
  0%   { opacity: 0.4; }
  30%  { opacity: 0.7; }
  60%  { opacity: 0.5; }
  100% { opacity: 0.6; }
}
  
  
.candelabro.derecha{
  top: 45%;
  right: 85%;
 }
 
.candelabro.izquierda{
  top: 45%;
  left: 85%;
  transform: scaleX(-1); /* imagen espejo */

 }

/*=========================
   LIBROS DE BIBLIOTECA
===========================*/

/*LIBRO UNO*/
.libro1 {
  position: absolute;
  top: 48%;
  left: 20%;
  transition: transform 0.4s ease;
  cursor: pointer;
}

.libro1 .lomo {
  width: 25px;
  height: 85px;
  transform: scaleX(1.6);
  display: block;
}

.libro1 .abierto {
  display: none;
}


.libro1 img {
  width: 25px;          
  height: 85px;
  display: block;
  cursor: pointer;

  transform: scaleX(1.6);
  transform-origin: center;

  filter: drop-shadow(0 0 0 rgba(0, 255, 120, 0));
}

/* HOVER */
.libro1:hover {
  transform: 
    scale(1.25)
    translateY(-12px)
    rotate(-2deg);
  z-index: 10;
}

.libro1:hover img {
  filter:
    drop-shadow(0 0 6px rgba(0, 255, 120, 0.4))
    drop-shadow(0 0 12px rgba(0, 255, 120, 0.25));
}

/*ABRIR LIBRO*/

.libro1.abierto {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  z-index: 999;
}





/*LIBRO DOS*/
.libro2 {
 position: absolute;   
  top: 48%;
  left: 22.3%;
  transition: 
    transform 0.35s ease,
    filter 0.35s ease;
}

.libro2 img {
  width: 25px;          
  height: 85px;
  display: block;
  cursor: pointer;

  transform: scaleX(1.6);
  transform-origin: center;

  filter: drop-shadow(0 0 0 rgba(0, 255, 120, 0));
}

/* HOVER */
.libro2:hover {
  transform: 
    scale(1.25)
    translateY(-12px)
    rotate(-2deg);
  z-index: 10;
}

.libro2:hover img {
  filter:
    drop-shadow(0 0 6px rgba(0, 255, 120, 0.4))
    drop-shadow(0 0 12px rgba(0, 255, 120, 0.25));
}


/*---------------------------*/


