/* Style the scrollbar track (background) */
#review-animation-block::-webkit-scrollbar-track {
    background-color: transparent; /* or any color you want */
    border-radius: 10px;
    margin-block: 10px; /* Creates space above and below the track */
}

/* Style the scrollbar thumb (the part that you drag) */
#review-animation-block::-webkit-scrollbar-thumb {
    background-color: #b3b3b3; /* or any color you want */
    border-radius: 10px;
    border: 4px solid transparent; /* Creates padding around the thumb */
    background-clip: content-box; /* Ensures the padding doesn't affect the color */
}

/* Define the width or height of the scrollbar */
#review-animation-block::-webkit-scrollbar {
    height: 12px; /* or any size you want */
}

#review-animation-block {
    font-size: 20px;
    color: #333;
    overflow-x: auto; /* Enables horizontal scrolling */
    white-space: nowrap; /* Ensures items are in a single line */
    max-width: 1128px;
    width: 90%;
    margin-right: auto;
    margin-left: auto;
    box-sizing: border-box;
    margin-bottom: 64px;
    margin-top: 64px;
}

.review-ticker-wrapper {
    text-align: center; /* This will center the inline-block elements inside it */
}

.review-ticker {
    padding-bottom: 20px; /* Adjust this value as needed */
    box-sizing: content-box; /* This ensures the padding does not affect the width of the ticker */
    display: inline-block; /* Align items in a single row */
}

.review-item {
    padding-bottom: 20px; /* Adjust this value as needed */
    box-sizing: content-box; /* This ensures the padding does not affect the width of the ticker */
    display: inline-block; /* Use inline-block for horizontal alignment */
    max-width: 250px; /* Maximum width for each review */
    margin-right: 50px; /* Space between reviews */
    text-align: left;
    vertical-align: bottom; /* Align the content to the top */
    white-space: normal; /* Allow text wrapping inside each review */
    margin-top: 32px;
}

.review-text, .review-rating {
    display: block; /* Makes the text appear above the name */
}

.review-text {
    border-bottom: 1px solid #ccc; /* Horizontal line below the review text */
    margin-bottom: 5px; /* Space between the text and the line */
    padding-bottom: 5px; /* Space between the text and the line */
}

.review-rating {
    font-size: 16px; /* Smaller font size for rating */
    margin-top: 5px; /* Space between the name and the rating */
}

/* new: read more and overlay */
.read-more-btn {
    background: #e3e3e3;
    color: black;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    margin-top: 12px;
    font-size: 12px;
    border-radius: 6px;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

.read-more-btn:hover {
    background: #0056b3;
    color: white
}

.review-overlay {
    visibility: hidden;
    opacity: 0;
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: left;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.review-overlay.show {
    visibility: visible;
    opacity: 1;
}

.review-overlay-content {
    background: #333;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.overlay-close-btn {
    margin-top: 16px;
    margin-bottom: 16px;
    background: gray;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.overlay-close-btn:hover {
    background: #007bff;
}
