@import url(/css/style.css);

h3, p{
  color: white;
}

.book-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.book-card {
  background-color: #0f0f0f;
  width: calc(25% - 20px);
  margin-bottom: 20px;
  margin-top: 7%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  overflow: hidden;
}

.book-card-img {
  height: 200px;
  overflow: hidden;
}

.book-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-card-info {
  padding: 20px;
}

.book-card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.book-card-author {
  font-size: 18px;
  margin-bottom: 10px;
}

.book-card-description {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.book-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #ccc;
}

.book-card-price {
  font-size: 24px;
  font-weight: bold;
}

.book-card-buy-btn {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #ff6363;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

.book-card-buy-btn:hover {
  background-color: #e60000;
}


/* Estilos para telas menores */
@media screen and (max-width: 768px){
  .store-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .store-card {
    width: 90%;
    margin: 10px;
  }
}

@media only screen and (max-width: 600px) {
  .book-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .book-card-img {
    width: 80%;
  }
  
  .book-card-info {
    width: 100%;
    text-align: center;
  }
  
  .book-card-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}
