@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap");
@import url(//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css);

.book-slide {
    width: 100%;
}

.book-cell {
    position: relative;
    display: flex;
    padding: 25px;
    width: 40%;
    height: 250px;
    margin-right: 1px;
    background-color: #0f2339;
}

.flickity-page-dots {
    display: none;
}

.flickity-prev-next-button .arrow {
    fill: #d6d6d6;
}

.flickity-prev-next-button svg {
    left: 25%;
    top: 25%;
    width: 50%;
    height: 50%;
}

.flickity-prev-next-button.previous {
    left: 15px;
}

.flickity-prev-next-button.next {
    right: 15px;
}

.flickity-viewport {
    overflow: visible;
}

.book-photo {
    width: 180px;
    flex-shrink: 0;
    bottom: -35px;
    left: 35px;
    border-radius: 2px;
    box-shadow: -2px 6px 19px 0px #7f818e;
    transition: 0.3s ease;
}

.book-photo:hover {
    transform: scale(1.03);
}

.book-img {
    flex-shrink: 0;
}

.book-title {
    text-overflow: ellipsis;
    overflow: hidden;
}

.book-title .heading__title a {
    color: #ffffff;
    font-weight: 600;
}

.book-author {
    margin-top: 3px;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.book-content {
    padding: 0 20px;
    color: #ffffff;
    overflow: hidden;
}

.blue>input:checked~label,
.blue:not(:checked)>label:hover,
.blue:not(:checked)>label:hover~label {
    color: #458997;
}

.blue>input:checked+label:hover,
.blue>input:checked~label:hover,
.blue>label:hover~input:checked~label,
.blue>input:checked~label:hover~label {
    color: #458997;
}

.purple>input:checked~label,
.purple:not(:checked)>label:hover,
.purple:not(:checked)>label:hover~label {
    color: #a76287;
}

.purple>input:checked+label:hover,
.purple>input:checked~label:hover,
.purple>label:hover~input:checked~label,
.purple>input:checked~label:hover~label {
    color: #a76287;
}

.yellow>input:checked~label,
.yellow:not(:checked)>label:hover,
.yellow:not(:checked)>label:hover~label {
    color: #ffad58;
}

.yellow>input:checked+label:hover,
.yellow>input:checked~label:hover,
.yellow>label:hover~input:checked~label,
.yellow>input:checked~label:hover~label {
    color: #ffad58;
}

.dark-purp>input:checked~label,
.dark-purp:not(:checked)>label:hover,
.dark-purp:not(:checked)>label:hover~label {
    color: #905587;
}

.dark-purp>input:checked+label:hover,
.dark-purp>input:checked~label:hover,
.dark-purp>label:hover~input:checked~label,
.dark-purp>input:checked~label:hover~label {
    color: #905587;
}

.book-voters {
    color: #fff;
    vertical-align: sub;
    font-size: 13px;
    margin-left: 7px;
    white-space: nowrap;
    margin-top: 7px;
}

.book-see {
    margin-top: 25px;
    text-align: center;
    background-color: #fff;
    color: #0f2339;
    font-weight: 600;
    padding: 8px;
    font-size: 14px;
    width: 160px;
    border-radius: 20px;
}

.book-see:hover {
    color: #ff6e72;
}

.book-see.book-blue {
    color: #a4e0eb;
}

.book-see.book-blue:hover {
    color: #22cdec;
}

.book-see.book-pink {
    color: #edb9d6;
}

.book-see.book-pink:hover {
    color: #ff6dbe;
}

.book-see.book-yellow {
    color: #fdca95;
}

.book-see.book-yellow:hover {
    color: #fb9124;
}

.book-see.book-purple {
    color: #cbb5e2;
}

.book-see.book-purple:hover {
    color: #a764ec;
}

.book-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 40px;
    grid-row-gap: 40px;
    position: relative;
}

.book-card {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 20px;
    background-color: #fff;
    box-shadow: -1px 3px 8px -1px rgba(0, 0, 0, 0.1);
    padding: 0 0 20px 20px;
}

.book-card-img-link {
    width: 40%;
    min-width: 250px;
}

.book-card-img {
    width: 100%;
    height: 350px;
    /* You can adjust this height as needed */
    object-fit: cover;
    display: block;
    margin-top: -35px;
    border-radius: 2px;
    box-shadow: 0px 1px 7px 2px #c7c9d3;
    border-bottom: 1px solid #dcddde;
    object-fit: cover;
    margin-bottom: 20px;
    transition: 0.3s ease;
}

.book-card-img:hover {
    transform: scale(1.04);
}

.card-content {
    color: var(--body-color);
    padding: 30px;
    overflow: hidden;
    position: relative;
}

.book-name {
    font-weight: 500;
    text-overflow: ellipsis;
    overflow: hidden;
}

.book-by {
    font-size: 13px;
    color: var(--body-color-light);
    margin-top: 4px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.book-rate>label {
    color: #cccccc;
}

.book-rate>input:checked~label,
.book-rate:not(:checked)>label:hover,
.book-rate:not(:checked)>label:hover~label {
    color: #ff9700;
}

.book-rate>input:checked+label:hover,
.book-rate>input:checked~label:hover,
.book-rate>label:hover~input:checked~label,
.book-rate>input:checked~label:hover~label {
    color: #ff9700;
}

.card-vote {
    color: var(--body-color-light);
}

.card-sum {
    color: var(--body-color-light);
    font-size: 13px;
    line-height: 1.6em;
    -webkit-line-clamp: 4;
    margin-top: 15px;
}

.content-wrapper {
    display: flex;
    position: relative;
}

@media (max-width: 768px) {
    .content-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
}

.like-name {
    font-size: 13px;
    margin-left: 15px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.like-name span {
    font-weight: 600;
}

@media (max-width: 1103px) {
    .book-cell {
        width: 60%;
    }
}

@media (max-width: 765px) {
    .book-cell {
        width: 80%;
    }
}

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

@media (max-width: 458px) {
    .book-photo {
        width: 180px;
    }

    .book-voters {
        display: none;
    }
}

@media (max-width: 420px) {
    .book-see {
        width: 120px;
        font-size: 13px;
    }

    .book-photo {
        width: 130px;
    }
}

@media (max-width: 1220px) {
    .card-vote {
        display: none;
    }
}

@media (max-width: 1085px) {
    .book-rate>label {
        font-size: 0.7em;
    }
}

@media (max-width: 725px) {

    .browse-category,
    .search-bar {
        display: none;
    }

    .header-title {
        margin-right: auto;
    }

    .book-cards {
        grid-template-columns: 1fr;
    }

    .book-types {
        display: none;
    }
}

@media (max-width: 372px) {
    .card-content {
        padding: 20px;
    }
}
@media (max-width: 768px) {
    .book-card-img-link {
        display: flex;
        justify-content: center;
    }

    .book-card-img {
        width: auto;
        max-width: 90%;
        height: auto;
        margin: 0 auto;
        object-fit: cover;
    }
}
