body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.spacer {
    height: 1550px;
}

.sketchfab-embed-wrapper {
    position: absolute;
    top: 1275px;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; 
}

.mercedes-concept {
    font-family: 'Formula1-Display-Wide', sans-serif;
    position: absolute;
    top: 850px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background color */
    padding: 10px 20px; /* Adjust padding as needed */
    color: white;
    font-size: 18px;
}

.button {
    position: absolute;
    top: 500px;
    transform: translateY(-50%);
    z-index: 1; /* Ensure buttons appear above images */
    cursor: pointer; /* Add cursor pointer for better UX */
    width: 40px; /* Adjust button width */
    height: 40px; /* Adjust button height */
    color: white;
    background-color: transparent;
    border: none;
}

.button i {
    /* Apply styles to the chevron icons */
    transform: scale(3); /* Scale the icon up by a factor of 2 */
}

.button--left {
    left: 15px;
}

.button--right {
    right: 15px;
}

.concept-cars {
    font-family: 'Formula1-Display-Wide', sans-serif;
    position: absolute;
    top: 200px; /* Adjust position based on the height of the carousel */
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px; /* Adjust padding as needed */
    color: white;
    font-size: 18px;
}

.carousel {
    top: 410px; /* Center vertically */
    height: 240px; /* Adjusted height */
    width: 427px; /* Adjusted width */
    padding: 0;
    margin: 0;
    z-index: -1;
    position: absolute;
    left: calc(50% - 213.5px); /* Center horizontally */
    transform: translate3d(0, 0, 0); /* Reset transform */
}

.item {
    width: 427px;
    height: 240px;
    background: #dadada;
    float: left;
    list-style: none;
    margin-right: 20px;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-transform-style: preserve-3d;
    transition: all .5s ease;
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop to fit */
    margin-bottom: 50px;
}

.item:last-child {
    margin-right: 0;
}

[data-position='1'] {
    transform: scale(1.5) translate3d(-128px, 0px, 0px); /* Adjust translate3d values */
    z-index: 1;
}

[data-position='2'] {
    transform: scale(1.75) translate3d(-54px, 0px, 0px); /* Adjust translate3d values */
    z-index: 2;
}

[data-position='3'] {
    transform: scale(2) translate3d(0px, 0px, 0px);
    z-index: 3;
}

[data-position='4'] {
    transform: scale(1.75) translate3d(54px, 0px, 0px); /* Adjust translate3d values */
    z-index: 2;
}

[data-position='5'] {
    transform: scale(1.5) translate3d(128px, 0px, -5px); /* Adjust translate3d values */
    z-index: 1;
}

@keyframes crossfade {
    0% {
        opacity: 1;
    }
    5% {
        opacity: 0.7;
    }
    10% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
}