/* style.css */

/* General Styles */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
color: #333;
}

header {
background-color: #333;
color: #fff;
padding: 10px 0;
text-align: center;
}

header h1 {
margin: 0;
font-size: 2em;
}

nav a {
color: #fff;
margin: 0 15px;
text-decoration: none;
}

nav a:hover {
text-decoration: underline;
}

main {
padding: 20px;
}

footer {
background-color: #333;
color: #fff;
text-align: center;
padding: 10px 0;
position: fixed;
width: 100%;
bottom: 0;
}

.search-bar {
margin-bottom: 20px;
text-align: center;
}

.search-bar input[type="text"] {
padding: 10px;
width: 80%;
max-width: 400px;
border: 1px solid #ccc;
border-radius: 5px;
}

.search-bar button {
padding: 10px 20px;
border: none;
background-color: #333;
color: #fff;
border-radius: 5px;
cursor: pointer;
}

.search-bar button:hover {
background-color: #555;
}

.tags {
display: flex;
flex-wrap: wrap;
justify-content: center;
margin-bottom: 20px;
}

.tags a {
background-color: #333;
color: #fff;
padding: 10px 20px;
margin: 5px;
text-decoration: none;
border-radius: 5px;
}

.tags a:hover {
background-color: #555;
}

.search-results {
margin-bottom: 20px;
}

.search-results h2 {
text-align: center;
}

.search-results ul {
list-style: none;
padding: 0;
}

.search-results li {
background-color: #fff;
margin: 10px 0;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
display: flex;
align-items: center;
cursor: pointer;
transition: background-color 0.3s;
}

.search-results li:hover {
background-color: #f0f0f0;
}

.search-result-box {
display: flex;
align-items: center;
width: 100%;
text-decoration: none;
color: inherit;
}

.search-result-img {
width: 100px;
height: 100px;
object-fit: cover;
border-radius: 5px;
margin-right: 10px;
}

.search-result-text {
flex: 1;
}

.image-container {
max-width: 100%;
height: auto;
display: flex;
justify-content: center;
align-items: center;
}

.responsive-img {
max-width: 100%;
height: auto;
display: block;
margin: 0 auto;
}

/* Estilo para imágenes dentro del contenido de la página */
.content-img {
max-width: 100%; /* Asegura que la imagen no sea más ancha que el contenedor */
height: auto; /* Mantiene la relación de aspecto de la imagen */
display: block; /* Muestra la imagen como un bloque */
margin: 0 auto; /* Centra la imagen horizontalmente si es más pequeña que el contenedor */
width: 100%; /* Asegura que la imagen ocupe el 100% del ancho del contenedor */
object-fit: contain; /* Escala la imagen para que se ajuste dentro del contenedor manteniendo su relación de aspecto */
}

/* Asegura que las imágenes se ajusten al contenedor */
img {
max-width: 100%;
height: auto;
}