body {
    background-color: #272729;
    font-family: Arial, sans-serif; /* Font family for the body */
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
}

header {
    background-image: url('src/header_back.png'); /* Ajusta la ruta */
    background-size: cover;     /* Para cubrir todo el header */
    background-position: center;/* Centrado */
    color: rgb(255, 255, 255); /* White text */
    padding: 5px 0; /* Padding for spacing */
    text-align: center; /* Centered text */
    
}

.logo {
    width: 650px; /* Width of the logo */
    height: auto; /* Maintain aspect ratio */
    margin: -15px; /* Margin for spacing */
    
}

nav{
    background-color: #1f202c; /* Light gray background */
    padding: 10px; /* Padding for spacing */
    text-decoration: none; /* Remove underline from links */
}

a{
    display: inline-block;
    color: rgb(255, 255, 255); /* Black text for links */
    text-decoration: none; /* Remove underliSne from links */
    padding: 15px; /* Padding for links */
    
    font-weight: bold; /* Bold text for links */
    font-family: Arial; /* Font family for links */
    transition: transform 0.2s ease, color 0.2s ease; /* Smooth transition for hover effects */
}

a:hover {
    transform: scale(1.2);       /* Hace que el texto se agrande */
    color: rgb(65, 154, 255);  /* Cambia el color */
}

main {
    padding: 20px; /* Padding for main content */
    text-align: center; /* Centered text */
    background-color: #272729;
}


/* .tabLogo{
    Con esta de aqui puedes modificar los logos de cada tab
    Usa el background-color para que puedas ver el tamaño de los bloques de las imagenes
} */
 
.welcome {
    padding: 20px; /* Padding for main content */
    text-align: center; /* Centered text */
    background-color: #353535;
    color: white;
}



main{
    color: rgb(255, 255, 255);
}

p1 {
    color: rgb(123, 191, 255);
    font-size: 16px;
    margin-top: 20px;
    font-weight: bolder;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columnas */
  gap: 20px;
  margin: 20px auto;
  max-width: 1000px; /* opcional, para no desbordar */
}

.book {
  background-color: #182746;
  padding: 40px;
  border-radius: 50px;
  max-width: 700px;
  margin-bottom: 5%;
  margin-right: 5%;
  display: flex;
  flex-direction: column;
  box-shadow: 7px 7px 8px black;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.book:hover {
  box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.7);
  transform: translateY(-5px);
}

.book h2 {
  font-size: 22px;
  margin-bottom: 10px;
  text-align: center;
  color:rgb(255, 88, 11);
    transition: transform 0.2s ease, color 0.2s ease;
}


.book h2:hover {
  transform: scale(1.1);
  color: rgb(255, 145, 0);
}

.book a {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background-color: hsl(99, 68%, 64%);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  width: 175px;
  height: auto;
}

.book a:hover {
  background-color: #6ee44a;
}

@media (max-width: 768px) {
  .book {
    width: 100%;
  }
}

.book-image {
    width: 75%;
    height: auto;
    margin: 0 auto; /* Center horizontally */
    display: block; /* Required for margin auto to work */
}

.book-footer {
  margin-top: auto;
}

.pagination {
  margin: 20px;
  text-align: center;
}

.page-btn {
  margin: 0 5px;
  padding: 8px 12px;
  border: none;
  background-color: #ddd;
  cursor: pointer;
  border-radius: 5px;
}

.page-btn.active {
  background-color: #333;
  color: white;
}

.book-image {
    width: 75%;
    height: auto;
}

.DescriptionJustified {
    text-align: justify;
}

.PubDateBy {
    color: rgb(228, 113, 20);
    font-size: 12px;
    margin-top: 60px;
    font-weight: bolder;
    font-style: italic;
    text-align: left;
    justify-content: space-between;
    display: flex;
    flex-wrap: wrap;
}

.search-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #474747;
  border-radius: 50px;
  padding: 6px;
  transition: box-shadow 0.3s ease;
  max-width: 350px;
  width: 100%;
  margin-left: 30px;
}

.search-container:hover,
.search-container:focus-within {
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.search-container input[type="text"] {
  border: none;
  background: transparent;
  outline: none;
  flex-grow: 1;
  padding: 8px;
  font-size: 16px;
  color: #ffffff;
}

.search-container button {
  border: none;
  background: #02284d;
  color: white;
  font-size: 16px;
  border-radius: 50%;
  padding: 8px 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  justify-content: right;
  align-items: right;
}

.search-container button:hover {
  background-color: #204d80;
}

.category-banner {
    background-color: #1f202c;
    text-align: center;
}

.category-banner img {
    width: 20%;
    height: auto;
    object-fit: cover;
}

.search-banner {
    background-color: #1f202c;
    text-align: center;
    display: none;
    
}

.search-banner img {
    width: 20%;
    height: auto;
    object-fit: cover;
}

.frame{  
  display: flex;
  flex-direction: column;
  max-width: 75%;
  min-width: 50%;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.instructions{
  /* valores de prueba para simular la imagen y el esqueleto de la tab de help */
  display: flex;
  width: 90%;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
  border: solid rgb(190, 190, 180) 3px;
}
.instructionsText {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  
  padding: 10px;
  
  text-align: left; /* Add this line */
}

.instructions img{ 
  /* valores de prueba  en la tab help*/
  background-color: #2c80b4;
  width: 20vw; 
  height: 25vh;
  margin-right: 50px;
}


.instructions p{
  font-size: 1.5em;
}
#headerGuide{
  /* nomas para que se entienda que selecciona este selector en la tab help */
  background-color: #727372;
  font-size: 1.3em;
  margin-bottom: 50px;
  padding: 15px;
}

#footer {
  background-color: #1a1a2e;
  color: #ccc;
  font-size: 16px;
  padding: 20px;
  text-align: center;
  border-top: 1px solid #333;
  font-family: 'Segoe UI', Arial, sans-serif;
}

#footer p {
  margin: 8px 0;
}

.footer-button {
  display: inline-block;
  text-decoration: none;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 6px;
  transition: transform 0.2s ease, color 0.2s ease, background-color 0.2s ease;
  background-color: #2e2e3a;
  color: #76c7c0;
}

.footer-button:hover {
  color: #a8fff3;
  background-color: #3e3e50;
  transform: translateY(-2px);
}

.footer-button.donation {
  background-color: #66ff00;
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 59, 59, 0.4);
}


@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.10); }
  100% { transform: scale(1); }
}

.footer-button.donation {
  animation: pulse 1s infinite;
}

.ad-under-nav {
text-align: center;
}

.ad-under-bookcontainer {
text-align: center;
}