
/*PAGINA INDEX-----------------------------------------------------------------------------------------------------*/

body {
  margin: 0;
  background-image: url("imagenes/fondo.gif");
  background-size: 10%;
  background-repeat: repeat;
  background-attachment: fixed;
  background-position: center;
  color: white;
  font-family: monospace;
}

/*=========================== 
           BANNER
===========================*/

#banner {
  height: 180px;
  background: linear-gradient(90deg, #000, #111, #000);
  color: #00ffcc;
  text-align: center;
  padding-top: 40px;
  position: relative;
  overflow: hidden;
  border: 100px darkred;
  box-shadow: 0 0 10px red;
}

/*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: 17px;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.menu-btn {
  padding: 8px 16px;
  border: 2px solid red;
  background: rgba(0, 0, 0, 0.6);
  color: #00ffcc;
  text-decoration: none;
  font-family: "New Rocker", system-ui;
  font-size: 20px;
  color: #4b0082;
  transition: all 0.2s ease;
}


/*ESTILO NOTICIAS IMPORTANTES*/

#news {
  
  margin-top: 10px;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  border-top: 3px solid darkred;
  border-bottom: 3px solid darkred;
  padding: 0px 0;
  
}

#news h2 {
  text-align: center;
  font-family: "New Rocker", system-ui;
  font-size: 40px ;
  color: darkred;
  margin-top: 0px;
  margin-bottom: -13px;
  text-shadow: 0 0 0px red;
}

#news p {
  text-align: center;
  font-size: 16px;
  font-family: "Noto Serif", serif;
  color: #ccc;
}

/*PAGINA BLOG-----------------------------------------------------------------------------------------------------------------*/

.post {
  margin-top: 20px;
  background: rgba(0, 0, 0, 0.8);
  border: 4px solid darkred;
  border-radius: 10px 10px 0 0;
  padding: 20px;
  max-width: 600px;
  margin: 20px auto 40px auto;
  margin-bottom: 40px;
  box-shadow: 0 0 0px rgba(255, 0, 0, 0.3);
}

.post-title {
  border: 4px solid darkred;
  border-radius: 10px 10px 0 0;
  padding: 10px;
  text-align: center;
  margin: -30px auto 15px auto;
  background: black;
  font-family: "New Rocker", system-ui;
  color: #4b0082;
  font-size: 25px;
  text-shadow: 0 0 0px red;
}

.post-date {
  display: block;
  font-size: 12px;
  color: #aaa;
  margin-bottom: 15px;
}

.post-content p {
  font-family: system-ui;
  line-height: 1.6;
  color: #ddd;
}

.post-content img {
  max-width: 100%;
  display: block;
  margin: 15px auto;
  border: 1px solid #300;
}

summary {
  color: green;
  font-size: 15px;
  
}

/*PAGINA REVIEWS-----------------------------------------------------------------------------------------------------------------*/

.reviews {
  margin-top: 20px;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid darkred;
  padding: 20px;
  max-width: 600px;
  margin: 20px auto 40px auto;
  margin-bottom: 40px;
  box-shadow: 0 0 0px rgba(255, 0, 0, 0.3);
}

.reviews-title {
  border: 2px solid darkred;
  padding: 10px;
  text-align: center;
  margin: -30px auto 15px auto;
  background: black;
  font-family: "New Rocker", system-ui;
  color: #4b0082;
  font-size: 25px;
  text-shadow: 0 0 1px red;
}

.reviews-date {
  display: block;
  font-size: 12px;
  color: #aaa;
  margin-bottom: 15px;
}

.reviews-product {
  display: block;
  font-size: 15px;
  color: red;
  margin-bottom: 15px;
}

.reviews-content p {
  font-family: system-ui;
  line-height: 1.6;
  color: #ddd;
}

.reviews-content img {
  max-width: 100%;
  display: block;
  margin: 15px auto;
  border: 1px solid #300;
}

/*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));
}


/*---------------------------*/


