/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Chewy&family=Open+Sans:wght@400;700&display=swap');

.sin_raya {
    text-decoration: none;
}
.logo {
    width:100px;
    height:100px;
    display: inline-block;
    position: relative;
    top:40px;
    left: -100px;
}
.campo {
    background-color:#d5f5e3;
    border:0;
    outline: none;
    font-size: 15px;
    width: 320px;
    height: 28px;
}
.campoA {
    background-color:#d5f5e3;
    border:0;
    outline: none;
    font-size: 18px;
}

.boton {
    background-color: #db4409;
    color: white;
    width: 120px;
    height: 35px;
    outline: none;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

.button {
       background-color: #4CAF50; /* Color de fondo */
       border: none; /* Sin borde */
       color: white; /* Color de texto */
       padding: 10px 27px; /* Relleno */
       text-align: center; /* Alineación del texto */
       text-decoration: none; /* Elimina subrayado */
       display: inline-block; /* Para que se ajuste al contenido */
       font-size: 14px; /* Tamaño de la fuente */
       cursor: pointer; /* Cambia el cursor al pasar */
       border-radius: 5px; /* Bordes redondeados */
   }

.button:hover {
       background-color: #3e8e41; /* Cambia color al pasar el cursor */
  }

.image-blurred-edge {
  background-image: url('img/fondo_detalle1.png');
  width: 450px;
  height: 500px;
  background-position: center;
  box-shadow: 0 0 8px 8px white inset;
}
.boton:hover {
    background-color: #FFD700;
    color: #000000;
}

.detalle_libro {
    
    background: #e7f1e7;
    
    border: 4px outset #ffffff;
    padding: 8px;
}
.rotulo_ventas {
    background-color: #f9e79f;
    border-color: #fff;
    border-radius: 8px;
}
.detalle_libro2 {
    width: 720px;
    height: 520px;
    background: #e7f1e7;
    border: 4px outset #ffffff;
    padding: 4px;
}
.image-container{
  
  top: 2rem;
  left: 2rem;
  width: 390px; 
  height: 600px;
  border: 2px solid #7a7a7a; 
  box-shadow: 5px 5px 15px 5px;
  overflow: hidden; /* Evita que la imagen sobresalga */
  display: inline-block;
  justify-content: center;
  align-items: center;
  border-radius: 15px;

}
/*Estilos para que la imagen no se sobresalga*/
.image-container img {
  width: 100%; /* Ajusta el ancho al contenedor */
  height: 100%; /* Ajusta el alto al contenedor */
  object-fit: cover; /* Mantiene la proporción de la imagen */
}
/* General Body Styling */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, #0b8dc0, #ADD8E6); /* Soft peach to light blue gradient */
    color: #333;
    line-height: 1.6;
}

/* Header Styling */
header {
    background: linear-gradient(to right, #db4409, #FFD700); 
    /*background: linear-gradient(to right, #FF69B4, #FFD700);  Hot pink to gold gradient */
    color: white;
    padding: 4px 4px;
    text-align: center;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-family: 'Chewy', cursive;
    font-size: 3.5em; /* Larger font size for main title */
    margin-bottom: 10px;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.1);
}

header p {
    font-size: 1.5em;
    font-style: italic;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    justify-content: center;
   
}

header nav ul li {
    margin: 0 15px;

}

header nav ul li a {
    color: white;
    font-weight: 600;
    transition: color 0.3s ease;
    text-decoration: none;
    font-size: 14px;
}

header nav ul li a:hover {
    color: #FFD700; /* Amarillo dorado */
}

/* Main Content Area */
main {
    padding: 30px 20px;
    max-width: 1200px;
    margin: 20px auto;
}

/* Book Category Styling */
.book-category {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 6px ridge #abb2b9; /* Playful dashed border */
}

.book-category h2 {
    font-family: 'Chewy', cursive;
    font-size: 2.5em;
    color: #4CAF50; /* Green */
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.08);
}

/* Book Grid Layout */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;
}

/* Book Card Styling */
.book-card {
    background-color: #FFFFFF;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #87CEFA; /* Light blue border */
}

.book-card:hover {
    transform: translateY(-8px) rotate(2deg); /* Slightly lift and rotate on hover */
    box-shadow: 0 15px 15px rgba(0, 0, 0, 0.5);
}

.book-card img {
    max-width: 100%;
    height: 250px; /* Fixed height for consistent look */
    object-fit: cover; /* Ensures images cover the area without distortion */
    border-radius: 10px;
    margin-bottom: 15px;
    border: 4px solid #FFD700; /* Gold border around images */
}

.book-card h3 {
    font-family: 'Chewy', cursive;
    font-size: 1.8em;
    color: #FF4500; /* Orange-Red */
    margin-bottom: 8px;
}

.book-card .author {
    font-size: 1em;
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
}

.book-card .price {
    font-size: 1.5em;
    color: #228B22; /* Forest Green */
    font-weight: bold;
    margin-bottom: 15px;
}

.book-card button {
    background-color: #FF69B4; /* Hot Pink */
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.book-card button:hover {
    background-color: #FF1493; /* Deeper pink on hover */
    transform: scale(1.05); /* Slightly enlarge button on hover */
}

#column-left {
    background-color: #f4c508;
    border: 1px solid #D2D2D2;
    border-radius: 8px 8px 8px 8px;
    float: left;
    position: fixed;
	left:10px;
    min-height: 145px;
    margin-bottom: 10px;
    margin-right: 5px;
    overflow: hidden;
    text-align: center;
    width: 300px;
    padding: 15px;
    font-size:13px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5em;
    }

    header p {
        font-size: 1.2em; 
    }

    .book-category h2 {
        font-size: 2em;
    }

    .book-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .book-card img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 20px 10px;
    }

    header h1 {
        font-size: 2em;
    }

    header p {
        font-size: 1em;
    }

    main {
        padding: 20px 10px;
    }

    .book-category {
        padding: 5px;
    }

    .book-category h2 {
        font-size: 1em;
    }

    .book-card {
        padding: 15px;
    }

    .book-card h3 {
        font-size: 1em;
    }

    .book-card .price {
        font-size: 1.3em;
    }

    .book-card button {
        padding: 10px 20px;
        font-size: 1em;
    }
}