:root {
    --color-primary: #2680ff;
    --color-light-white: #fff;
    --color-dark-black: #000;
    --color-dark-grey: #746a6a;
    --color-background-light: #e6e6e6;
    --color-background-light-1: #f4f4f4;
    --card-link-color: #929292;
    --card-title-color: #777777;
    --card-rating-color: #d6d6d6;
    --color-background: #f4f4f4;
    --color-btn-1: #0088cc;
    --color-btn-2: #383f48;
    --color-btn-hover-1: #00a0f0;
    --color-btn-hover-2: #48515d;
    --color-border: #eeeeee;
    --color-indicator: #cccccc;
    --border-color-length: 0.2rem solid #e7e7e7;
}

.main--padding {
    /* padding: 3.5rem 8rem; */
    max-width: 1280px;
    margin: 0 auto;
}

.section--breadcrum {
    display: flex;
    justify-content: flex-end;
    border-bottom: 0.5rem solid var(--color-indicator);
}

.section--breadcrum p {
    width: 40%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.section--breadcrum p > * {
    /* width: 100%; */
}

.section--description {
    /* after the addition of cart button jc is changed to flex-start*/
    display: flex;
    justify-content: flex-start;
    margin: 0 auto;
    gap: 1rem;
}

.section--description__image {
    display: flex;
    flex-direction: column;
    gap: 2rem;

    /*  */
}

.section--description > * {
    /* width: 100%; */
    /* after the addition of cart button width is commented*/
}

.section--description__image-1 {
    /* after the addition of cart the max-width is changed to 30 from 45 */
    max-width: 30rem;
    min-width: 28rem;
    min-height: 23rem;
    /*  */
    border-radius: 8px;
    overflow: hidden;
}

.section--description__image-1 img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.section--description__image-container {
    display: flex;
    flex-wrap: wrap;
}

.section--description__image-container > * {
    /* width: 100%; */
}

.review__image {
    width: 10rem;
    max-height: 10rem;
    border: 0.2rem solid #222529;
    border-radius: 6px;
    padding: 0.5px;
}

.review__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 6px;
    padding-left: 0.1rem;
}

/*  */
.section--description__body {
    /* after the addition of body flex grow = 1 and display flex*/
    flex-grow: 1;
    padding: 0 3rem;

    display: block;
}

.cart-container {
    display: flex !important;
}

.section__title span {
    font-size: 3rem;
    color: #222529;
    line-height: 1.2;
    font-weight: bold;
    text-align: start;
    padding-right: 2rem;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.description--head {
    /* after cart flex grow 1 */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;

    max-width: 500px;
    margin-right: 2.6rem;
}

.section__title .top-picks__rating {
    color: #999;
    justify-content: flex-start;
    position: relative;
}

.section__title .top-picks__rating::after {
    content: "";
    position: absolute;
    width: 10%;
    height: 0.2rem;
    background-color: #e7e7e7;
    bottom: -100%;
    left: 0;
}

.section__summary {
    font-size: 1.4rem;
    text-transform: uppercase;
    color: #000;
    line-height: 2;
    border-bottom: var(--border-color-length);
}

.section__summary span {
    color: #999;
}

.section__summary a {
    color: #000;
    font-weight: bold;
}

.action {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-bottom: var(--border-color-length);
}

.action a {
    padding: 1.6rem 2.4rem;
    background-color: #222529;
    font-weight: 700;
    color: #fff;
    transition: 0.3s;
}

.action .fas {
    margin-right: 0.4rem;
}

.action a span {
    border-bottom: 1.5px solid transparent;
}

.action a:hover,
.action a:active {
    background-color: #0077b3;
}

.action a:hover span,
.action a:active span {
    border-bottom-color: #fff;
}

.description--head .links-section .social-links a {
    color: #000;
}
.description--head .links-section .social-links a:hover,
.description--head .links-section .social-links a:active {
    /* color: #fff; */
}

.description--head .links-section .social-links {
    border: 3px solid #e7e7e7;
    transition: 0.3s;
}

.description--head .links-section .social-links:active,
.description--head .links-section .social-links:hover {
    background-color: #dd4b39;
    border-color: transparent;
}

.description--head .links-section .social-links:hover a,
.description--head .links-section .social-links:hover a,
.social-links:active a,
.social-links:hover a {
    color: #fff;
}

/* tabbed component */
.section__tabbed {
    padding-top: 1rem;
}

.operations {
    background-color: #fff;
    position: relative;
}

.operations__tab-container {
    display: flex;
    justify-content: flex-start;
    gap: 3rem;
    border-bottom: var(--border-color-length);
    overflow-x: auto;
    overflow-y: hidden;
}

.btn--operations {
    white-space: nowrap;
    padding: 0.8rem 0rem;

    border: none;
    outline: none;
    cursor: pointer;
    border-bottom: 0.2rem solid transparent;
    background-color: transparent;
    text-transform: uppercase;
    font-family: inherit;
    font-weight: 700;
    font-size: 1.6rem;
    color: #818692;

    /*  */
}

.book__reader {
    position: relative;
}

.operations__tab-container::-webkit-scrollbar-track {
    background: rgba(222, 222, 222, 0.75);
}

.operations__tab-container::-webkit-scrollbar {
    width: 7px;
    background-color: #f5f5f5;
}

.operations__tab-container::-webkit-scrollbar:horizontal {
    height: 8px;
}

.operations__tab-container::-webkit-scrollbar-thumb {
    /* width: 7px; */
    height: 0px;
    background: rgba(0, 0, 0, 0.3);
}

.btn--operations::before,
.operations__tab--active::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 0.2rem;
    left: 0;
    bottom: -0.4rem;
    background-color: transparent;
    transition: 0.2s;
}

.btn--operations:hover::before {
    /* border-bottom: 0.2rem solid #222529; */
    background-color: #222529;
}

.operations__tab--active {
    position: relative;
    color: #222529;
}

.operations__tab--active::before {
    background-color: #222529;
}

.operations__content {
    display: none;
    font-size: 1.7rem;
    padding-top: 3rem;
}

.operations__content--active {
    display: grid;
    /* grid-template-columns: 7rem 1fr; */
    column-gap: 3rem;
    row-gap: 0.5rem;
}

.book__reader {
    width: 100%;

    /* test */
    min-height: 100rem;
    background: #515558;
}

/* operations_-content--2 table styles */

#table__data {
    font-family: Arial, Helvetica, sans-serif;
    border-collapse: collapse;
    width: 100%;
}

#table__data td,
#table__data th {
    border: 1px solid #ddd;
    padding: 0.8rem;
}

#table__data td {
    border: none;
    border-top: var(--border-color-length);
}

#table__data tr:nth-child(even) {
    background-color: #f9f9f9;
}

#table__data tr:hover {
    background-color: #ddd;
}

#table__data th {
    padding-top: 1.2;
    padding-bottom: 1.2rem;
    text-align: left;
    /* background-color: #045683; */
    color: white;
}

/* about author */

.author-name {
    font-family: inherit;
    font-size: 2.4rem;
}

.author-name:hover {
    text-decoration: underline;
}

.author__sub-details {
    margin-top: 1.5rem;
    color: #222529;
    display: flex;
    flex-direction: column;
    /* gap: rem; */
    justify-content: space-between;
}

.author__sub-details p {
    font-weight: 600;
}

.author__sub-details span {
    font-weight: normal;
    color: #777777;
}

.author__sub-details div {
    display: flex;
    gap: 0.5rem;
}

/* owl carousel recent books */

.heading {
    border-bottom: var(--border-color-length);
}

.heading h4 {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    /* color: ; */
}

.section__recent-books-carousel .top-picks__card {
    max-width: 25rem;
    min-width: 21rem;
    margin: 0 auto;
}
.section__recent-books-carousel .top-picks__card:hover,
.top-picks__card:active {
    transform: translateY(0);
}

.card__link:hover {
    cursor: pointer;
}

.card__btn {
    padding: 0.6rem 1.6rem;
    /* background-color: #000; */
    margin-top: 0.5rem;
    color: #333333;
    border: var(--border-color-length);
    transition: 0.1s;
}

.card__link:hover > .top-picks__body .card__btn {
    cursor: pointer;
    color: #fff;
    background-color: #00a0f0;
    border: 0.2rem solid transparent;
}

.card__link:hover > a .top-picks__image {
    box-shadow: -2px 1px 21px 12px rgba(0, 0, 0, 0.14);
}

/* .card__btn:hover,
.card__btn:active {
  color: #fff;
  background-color: #00a0f0;
  border: 0.2rem solid transparent;
} */
/* mobile btn to display the containing section */

.operations__header {
    display: none;
    font-size: 1.4rem;
    font-weight: 700;
    /* align-self: center; */
    border-bottom: var(--border-color-length);
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.2s;
}

.operations__header span {
    padding: 0 0.9rem;
}
.operations__header span .fas {
    transition: 0.2s;
}

.operations__header-active {
    border-bottom-color: #0088cc;
}

.operations__header-active span .fas {
    /* transition: 0.2s; */
    transform: rotate(180deg);
}

/* review section */
.review__topic {
    font-size: 2.4rem;
    padding-bottom: 2rem;
}

/* review list */
.review__list {
    list-style: none;
    border-bottom: var(--border-color-length);
    padding-bottom: 3rem;
    margin-bottom: 3rem;
}

.review__list li {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}

.review__list li .img {
    width: 8rem;
    height: 8rem;
    background-color: #333;
}

.review__list li .img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* list description */
.list__description {
    flex-grow: 1;
    display: flex;
    background-color: #f5f7f7;
    padding: 2.4rem 1.8rem;
    border-radius: 5px;

    position: relative;
    z-index: 50;
}

.list__description::before {
    content: "";
    width: 4rem;
    height: 4rem;
    background-color: inherit;
    position: absolute;
    left: -1%;
    top: 50%;
    /* border: 5px solid black; */
    transform: translateY(-50%) rotate(45deg);
    z-index: -1;
}

.comment {
    flex-grow: 1;
}

.review__name {
    color: #6f6f6f;
    font-weight: bold;
    font-size: 1.8rem;
}

.review__name span {
    color: #a99d9e;
    font-weight: normal;
    font-size: 1.6rem;
}

/* review stars */
.star__ratings {
    direction: rtl;
}

.star__ratings input {
    display: none;
}

.star__ratings label {
    font-size: 1.6rem;
    padding: 0.1rem;
    color: #b8b9b9;
    cursor: pointer;
    transition: 0.2s;
}

.star__ratings input:not(:checked) ~ label:hover ~ label,
.star__ratings input:not(:checked) ~ label:hover {
    color: #5f5f62;
}

.star__ratings input:checked ~ label {
    color: #5f5f62;
}

/* no pointer events for displayed comment */
.list__description .star__ratings {
    pointer-events: none;
}

.comment__form {
    background-color: #f7f7f7;
    padding: 3.2rem 3.4rem;
}

.comment__form-group {
    display: flex;
    flex-direction: column;
}

.comment__form-group textarea {
    border: var(--border-color-length);
    border-radius: 3px;
}

/* checkbox */
.checkBox {
    padding: 2rem 0;
}

/* actions */
.review__actions {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
}

.a-btn {
    padding: 0.8rem 1.6rem;
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1.6rem;
}

.review__cancel {
    color: #606060;
}

.review__cancel:hover,
.review__cancel:active {
    text-shadow: 2px 3px 5px rgba(0, 0, 0, 0.2);
}

.review__btn {
    background-color: var(--color-primary);
    color: #fff;
}

.review__btn:hover,
.review__btn:active {
    background-color: #1e39c5;
}

/* E7E7E7 */

/* utility classes */
.u-default-padding-bottom {
    padding-bottom: 2rem;
}

/* .u-padding-standard {
  padding: 0rem 15rem;
} */

/* @media (max-width: 1510px) {
  .u-padding-standard {
    padding: 0rem 14rem;
  }
}

@media (max-width: 1455px) {
  .u-padding-standard {
    padding: 0rem 12rem;
  }
}

@media (max-width: 1300px) {
  .u-padding-standard {
    padding: 0rem 3rem;
  }
} */

.description--head .top-picks__rating {
    justify-content: flex-start;
}

@media (max-width: 1165px) {
    .section--breadcrum {
        padding: 3rem 8rem;
    }

    .section--breadcrum p {
        width: auto;
    }

    .section__title span {
        font-size: 2.8rem;
    }

    .section--description {
        gap: 1rem;
    }

    .section--description__body {
        flex-direction: column;
        gap: 3rem;
    }

    .description--head {
        width: 100%;
        max-width: 100%;
    }

    .card__payment-details {
        max-width: 100%;
        width: 100%;
        box-shadow: none;
        border-top: 2px solid #e5e5e5;
        border-radius: 0;
    }

    .card__payment-details h2 {
        text-align: center;
        border-bottom: none;
    }
}

@media (max-width: 950px) {
    .section--description {
        flex-direction: column;
    }

    .section--description__image {
        flex-direction: row;
    }

    .section--description__body {
        padding: 2rem 0;
    }
}

@media (max-width: 780px) {
    .operations__tab-container {
        display: none;
    }

    .operations__header {
        line-height: 4;
        display: block;
    }

    .operations__content {
        display: grid;
        padding-top: 0rem;
        /* padding-bottom: 2rem; */
    }

    .hide-content {
        display: none;
        transform: translateY(-3rem);
        margin-top: 3rem;
    }

    .display--content {
        display: block;
        transition: 5s;
        transform: translateY(0rem);
    }

    .section__tabbed {
        padding-bottom: 2rem;
    }

    .review__list li .img {
        width: 5rem;
        height: 5rem;
    }
}

@media (max-width: 600px) {
    .section--description__image {
        flex-direction: column;
    }

    .section--description,
    .section--breadcrum {
        padding: 2rem 5rem;
    }

    .section--description__image-1 {
        min-width: 25rem;
    }

    .review__name {
        display: flex;
        flex-direction: column;
    }

    .list__description .star__ratings label {
        font-size: 1.4rem;
        padding: 0;
    }

    .list__description {
        flex-direction: column;
    }
}

@media (max-width: 400px) {
    html {
        font-size: 58%;
    }

    .section__title span {
        font-size: 2.2rem;
    }

    .author-name {
        font-size: 2.2rem;
    }

    .author__sub-details p {
        font-size: 1.6rem;
    }

    .section__title span {
        font-size: 2.5rem;
    }

    .section--description,
    .section--breadcrum,
    .section {
        padding: 2rem;
    }

    .review__topic {
        font-size: 2rem;
    }

    .review__list li {
        gap: 1rem;
    }
}

/* added */
.section__recent-books-carousel .heading {
    margin-bottom: 2rem;
}

.book__reader {
    position: relative;
}

#get__full-screen-mode {
    position: absolute;
    top: -0.5%;
    right: 65px;
    color: #e3e3e3e3;
    font-size: 1.9rem;
}

@media (max-width: 758px) {
    #get__full-screen-mode {
        right: 25px;
    }
}
@media (max-width: 340px) {
    #get__full-screen-mode {
        right: 0px;
    }
}

.operations__tab-container::-webkit-scrollbar-track {
    background: rgba(222, 222, 222, 0.75);
}

.operations__tab-container::-webkit-scrollbar {
    width: 7px;
    background-color: #f5f5f5;
}

.operations__tab-container::-webkit-scrollbar:horizontal {
    height: 8px;
}

.operations__tab-container::-webkit-scrollbar-thumb {
    /* width: 7px; */
    height: 0px;
    background: rgba(0, 0, 0, 0.3);
}
