body {
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    direction: rtl;
}
.main-div {
    margin: 0 20px;
}
.main-box {
    margin-top: 10px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 12px;
}
.description {
    height: 570px;
    overflow-y: auto;
    overflow-x: hidden;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.app-title {
    display: flex;
    align-items: center;
}
.app-title img {
    width: 130px;
    height: 130px;
    border-radius: 12px;
    margin-left: 15px;
}
.app-title h1 {
    margin: 0;
    font-size: 22px;
    color: #333;
}
.app-info {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-bottom: 10px;
    overflow: auto;
    gap: 10px;
}
.main-row {
    padding: 0.5rem 1.5rem 0 1.5rem;
}
.app-info .info-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f1f1f1;
    padding: 8px 28px;
    border-radius: 8px;
    width: 100%;   
}
.info-box p {
    font-size: 14px;
    color: #666;
    text-wrap: nowrap;
    margin: 0;
}
.app-info .info-box h6{
    margin: 0;
    flex-wrap: nowrap;
    text-wrap: nowrap;
}
.description h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}
.description p {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
    line-height: 1.6;
    text-align: justify;
    flex-wrap: nowrap;
}
.ratings h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}
.rating-chart {
    display: flex;
    align-items: center;
    margin-top: 10px;
}
.rating-chart div {
    background-color: #008e98;
    height: 10px;
    border-radius: 5px;
}
.rating-5 {
    width: 85%;
}
.rating-4 {
    width: 10%;
    margin-top: 3px;
}
.rating-3 {
    width: 5%;
    margin-top: 3px;
}
.rating-2, .rating-1 {
    width: 2%;
    margin-top: 3px;
}
.download-btn {
    width: 120px;
    padding: 8px 0;
    background-color: #008e98;
}
.main-titles {
    display: flex;
    flex-direction: column;
}
.description-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    margin: 10px 0 0 0;
    color: #003ddb;
}
.description-title::after {
    content: "";
    display: block;
    width: 120px;
    height: 4px; /* Adjust thickness */
    border-radius: 30px;
    background-color: #008e98; /* Adjust color */
    margin: 5px auto 0; /* Adds space above and centers the line */
}

.info-title {
    color: #787878;
}

/*       ScrollBar 1        */
#scrollbar1::-webkit-scrollbar {
    width: 10px;
}

#scrollbar1::-webkit-scrollbar-track {
    border-radius: 8px;
    background-color: #e7e7e7;
    border: 1px solid #cacaca;
}

#scrollbar1::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background-color: #015f6696;
}

/* Set the position of the arrow controls */
.splide__arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    pointer-events: none; /* To allow clicks to pass through */
    display: flex;
    justify-content: space-between; /* Moves arrows to left and right */
    transform: translateY(-50%);
    z-index: 10;
}

.splide__arrow {
    pointer-events: all; /* To make arrows clickable */
}

.splide__arrow--prev {
    left: 0; /* Position the left arrow */
}

.splide__arrow--next {
    right: 0; /* Position the right arrow */
}

.splide__slide {
    height: auto !important;
}

.splide-app-img {
    width: calc(95%) !important;
    border-radius: 15px;
}

@media only screen and (max-width: 675px) {
    .splide-app-img {
    width: 150px;
    }
}
@media only screen and (max-width: 570px) {
    .splide-app-img {
    width: 120px;
    }
}

/* stars start */
/* Overall Rating Container */
.rating-container {
    text-align: center;
}

.rating {
    direction: rtl;
    unicode-bidi: bidi-override;
    font-size: 2rem;
    display: inline-block;
    user-select: none;
}

.star {
    cursor: pointer;
    color: #ddd; /* Default star color */
    transition: color 0.3s ease, transform 0.2s ease; /* Smooth transition */
}

.star:hover,
.star:hover ~ .star {
    color: #f5d31f; /* Hover color */
    transform: scale(1.2); /* Slight scale up on hover */
}

.star.active {
    color: #ffc107; /* Selected star color */
}

/* Rating Feedback Text */
.rating-feedback {
    font-size: 16px;
    color: #008e98;
    margin: 0;
    font-weight: bold;
    transition: color 0.2s;
}

/* Accessibility */
.star:focus {
    outline: none;
    transform: scale(1.3);
}

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

.appCreator-name {
    color: #008e98;
    margin: 10px 0 0 0;
    font-weight: 600;
}

.download-btn-div {
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.main-titles h2 {
    font-size: 1.6rem;
}
/* stars end */

@media (max-width: 1130px) {
    .download-btn-div {
        flex-direction: column;
        gap: 8px;
    }
}
@media (max-width: 625px) {
    .main-row {
        padding: 0 5px;
    }
    #slider-main-div {
        margin: 1rem 0 3rem 0 !important;
    }
    .main-titles h2{
        font-size: 1.2rem;
    }
    .main-titles p{
        font-size: 0.8rem;
    }
    .download-btn {
        width: 75px;
        font-size: 0.76rem;
    }
    .app-title img {
        width: 95px;
        height: 95px;
    }
    .description-title {
        font-size: 16px;
    }
    .description-title::after {
        width: 80px;
    }
    .rating {
        font-size: 1.4rem;
    }
    .rating-feedback {
        font-size: 13px;
    }
    .description h4 {
        font-size: 13px;
    }
    .info-box {
        padding: 5px 15px;
    }
    .app-info .info-box h6 {
        font-size: 13px;
    }
    .info-box p {
        font-size: 11px;
    }
    .rating-number {
        font-size: 12px;
    }
    .navbar-brand {
        margin-right: 0 !important;
    }
}