
:root {
    --book-gap: 36px;
}

#book-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: var(--book-gap);
    padding: var(--book-gap);
}

.book-item {
    display: flex;
    flex-direction: column;
    align-items: center;    
}


.book-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}





.book-item img {
    aspect-ratio: calc((601/371) / 2.1);
    object-fit: cover;
    object-position: 100% 0;
    transition: object-position 0.3s ease-in-out, box-shadow 0.4s ease-out;
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.1);
}

.book-item img:hover {
    object-position: 0% 0;
    transition: object-position 0.3s ease-out, box-shadow 0.4s ease-out;
    box-shadow: 0 8px 12px -2px rgba(0, 0, 0, 0.4);
}

.book-item .title {
    padding-right: 20%;
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1.25;
}
.book-item .description{
    font-size: 13px;
}

.book-item .actions {
    margin: calc(var(--book-gap) / 2) auto;
    align-items: center;
    display: flex;
    justify-content: unset;
    gap: calc(var(--book-gap) / 1.5);
}
/*.book-item .actions {
  opacity: 0;
  position: relative;
  top: var(--book-gap);
  transition: opacity 0.4s ease-in-out, top 0.4s ease-in-out;
}
.book-item:hover .actions{
  top: 0;
  opacity: 1;
}*/

.book-item .actions a{
    display: inline-block;
    white-space: nowrap;
    color: #000;
    text-decoration: none;
}

.book-item .actions a.buy {
    background: #FFD814;
    padding: 4px 24px;
    border-radius: 1000px;
    box-shadow: 0 2px 5px 0 rgba(213, 217, 217, 0.5);
}
.book-item .actions a.buy:hover {
    background: #F7CA00;
}

.book-item .actions a.preview {
  opacity: 0.6;
}




/* Header  */
@media(min-width: 992px) {
    .navbar-collapse {
        flex-grow: unset;
    }

    .nav-flex {
        display: flex;
        justify-content: space-between;
    }
}







/* Book Grid Display  */
.book-item {
/*    flex-basis: calc(20% - var(--book-gap));*/
/*    flex-basis: calc(33.333% - var(--book-gap));*/
      flex-basis: calc(50% - var(--book-gap));
    flex-direction: row;
    gap: var(--book-gap);
    margin-bottom: 24px;
}
@media (max-width: 1400px) {
    .book-item {
/*        flex-basis: calc(25% - var(--book-gap));*/
/*flex-direction: column;*/
    }
}

@media (max-width: 992px) {
    .book-item {
/*        flex-basis: calc(33.333% - var(--book-gap));*/
flex-direction: column;
    }
}

@media (max-width: 800px) {
    .book-item {
        flex-basis: calc(50% - var(--book-gap));
    }
}

@media (max-width: 500px) {
    .book-item {
        flex-basis: 100%;
    }
}

