.carousel {
    position: relative;
    width: 100%;
    margin: auto;
    overflow: hidden;
    height: 170px;
    background-color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 1px 0 white;
    margin-bottom: 5px;
    padding-bottom: 10px;
}

.carousel-inner {
    display: flex;
}

.carousel-item {
    background-color: red;
    height: 140px;
    display: flex;
    text-align: center;
    flex: 0 0 auto;
    margin: 0 10px;
    border-radius: 5px;
    max-width: 255px;
    width: auto; /* Ensure items do not stretch */
    transition: none; /* Initially no transition */
}

.carousel-item.item-transition {
    transition: transform 0.5s ease-in-out;
}

.carousel-item img {
    background-color: white;
    padding: 5px;
    margin-top: -4.5px;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

.carousel-item img:hover {
    filter: brightness(88%);
    transform: scale(1.05); /* Slightly scale up the image */
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: #717171;
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    user-select: none;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    font-size: 20px;
}

.carousel img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.new-released {
    display: flex;
    justify-content: center; /* Center content within the element */
    align-items: center;
    background-color: #333;
    padding: 10px 10px;
    width: 200px;
    color: white;
    font-size: 20px;
    font-weight: bold;
    position: relative;
    user-select: none;
    pointer-events: none;
    margin: 0 auto; /* Center the element horizontally */
}

.new-released span {
    display: inline-block;
    padding: 5px 15px;
    background-color: black;
    border-radius: 5px;
    user-select: none;
    -webkit-user-select: none; /* For Safari */
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    pointer-events: none; /* Prevent clicking */
    -webkit-pointer-events: none; /* For Safari */
}

/* Optional: Ensure the parent container of .new-released takes full width */
.parent-container {
    display: flex;
    justify-content: center; /* Center children horizontally */
    background-color: #222; /* Example background color */
    padding: 20px; /* Example padding */
    width: 100%; /* Ensure it takes full width of the screen */
}
