#countdown {
    flex-direction: row-reverse;
}

* {
    font-family: vazir, Arial;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    direction: rtl;
}

::-webkit-scrollbar-track {
    background-color: #84aeee1a;
}

::-webkit-scrollbar {
    scrollbar-width: thin;
    background-color: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    border: 1px solid #957e5b;
    border-radius: 0.5rem;
    background-color: #30431d;
    background-image: -webkit-linear-gradient(
            45deg,
            #eed1a4 25%,
            transparent 25%,
            transparent 50%,
            #eed1a4 50%,
            #eed1a4 75%,
            transparent 75%,
            transparent
    );
}

body {
    background-color: #f4efea;
}

h1 {
    display: none;
}

/* slider start */

.mySlides img {
    width: 100%;
    border-radius: 0.5rem;
}

.slide1 {
    max-width: 100%;
    margin: 10px 0;
}

/* slider end */

/* new book start */
.boxnow {
    margin-top: 15px;
}

.box-best-seller {
    margin-top: 15px;
}

.item {
    padding: 10px;
}

.item:hover {
    transform: scale(1.07);
}

.item > img {
    margin-bottom: 7%;
      box-shadow: -8px 8px 18px rgba(0, 0, 0, 0.7);
}

.text {
    text-align: right;
}

.text > h4 {
    margin: 0;
}

.text > p {
    font-size: 90%;
    margin: 0;
}

.owl-nav {
    position: absolute;
    left: 0;
    top: -1.5rem;
    margin-top: 0px !important;
}

.boxname {
    margin-right: 15px;
    display: flex;
    justify-content: flex-start;

    margin-bottom: 7px;
}

.boxname > h2 {
    display: block;
    font-size: 1.17em;

    font-weight: bold;
    unicode-bidi: isolate;
}

.boxname > h4 {
    display: block;
    font-size: 1.17em;

    font-weight: bold;
    unicode-bidi: isolate;
}

.price {
    display: flex;
    justify-content: flex-end;

    margin-top: 0.8rem;
}

.name-book {
    display: block;
    font-weight: bold;
    unicode-bidi: isolate;
}

@media screen and (max-width: 768px) {
    .text > p {
        font-size: 80%;
    }

    .price {
        font-size: 90%;
    }
}

.price > svg {
    width: 15px;
}

/* new book end */

/* genre box start */
.genre {
    width: 100%;
    padding: 10px;
}

/* Style adjustments for mobile responsiveness */
@media screen and (max-width: 768px) {
    .genre-item {
        width: 100px;
        height: 100px;
        /*font-size: 1em;*/
    }
}

/* genre box end */

/* Special discounts Start */
.Special-discounts {
    padding: 25px 10px;
    margin: 10px;
    display: flex;

    justify-content: space-between;
    border-radius: 1.5rem;
    border: 1px solid #957e5b;
    animation: rainbow 5s infinite;
}

.countdown-text {
    text-align: right;
}

#countdown {
    display: flex;
    justify-content: center;

    gap: 10px;
}

.baroon {
    display: flex;
    direction: rtl;
}

.box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 15px;
    width: 20%;
    border-radius: 0.5rem;
    background-color: #f4efea;
    color: #30431d;
    border: 2px solid #957e5b;
}

.box span {
    font-size: 1.5em;
}

@keyframes rainbow {
    0% {
        background-color: #ff9aa2;
    }
    16% {
        background-color: #feb7b1;
    }
    32% {
        background-color: #ffdac0;
    }
    48% {
        background-color: #e2f0cc;
    }
    65% {
        background-color: #b5ead6;
    }
    82% {
        background-color: #c7ceea;
    }
    100% {
        background-color: #ff9aa2;
    }
}

@media (max-width: 768px) {
    .Special-discounts {
        display: flex;
        flex-direction: column;
    }

    .countdown-text {
        margin-bottom: 15px;
    }
}

/* Special discounts End */

/* Popular Authors start */

.card {
    border-radius: 1rem;
    background-color: #eed1a4;
    width: 300px;
}

.image-author,
.card-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 14px;
}

.image-author {
    position: relative;
}

.overlay {
    background-color: #30431d;
    border-radius: 1rem 1rem 0 1rem;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.card-wrapper {
    display: flex;
    justify-content: center;
}

.card-image .card-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #eed1a4;
}

.ring-img {
    border: 4px solid #30431d;
    border-radius: 50%;
}

.card-image {
    position: relative;
    height: 100px;
    width: 100px;
    border-radius: 50%;
    border: 2px solid #eed1a4;
}

/* Popular Authors End */

/* font start */

@font-face {
    font-family: vazir;
    src: url(../fonts/Vazir.ttf);
}

@font-face {
    font-family: vazirb;
    src: url(../fonts/Vazir-bold.ttf);
}

@font-face {
    font-family: lalezar;
    src: url(../fonts/Lalezar.ttf);
}

/* font end */
