body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

#banner-container {
    background-color: #000;
    position: relative;
    width: 100%;
}

.banner {
    width: 100%;
    height: 100%;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 10;
    margin-top: 150px;
    overflow: hidden;
}

.car-name {
    position: absolute;
    margin-top: 100px;
    left: -50%;
    /* Start off-screen */
    transform: translateY(-50%);
    animation: fadeInLeft 1s ease forwards;
}

/* Fade-in-left animation for the car name */
@keyframes fadeInLeft {
    to {
        left: 10%;
        /* Move to its final position */
        opacity: 0.7;
    }
}

/* Smoothly fade the banner in */
.banner.show {
    opacity: 0.9;
}

.responsive-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.content {
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

@media (max-width: 1600px) {
    .content {
        padding: 10px 0;
    }
}

.section {
    width: 70%;
    padding: 80px 0;
    margin: 0 auto;
    opacity: 0;
    transition: all 0.6s ease-out;
}

@media (max-width: 1600px) {
    .section {
        width: 90%;
        padding: 10px 0;
    }
}

.section-title {
    font-size: 2.5rem;
    margin: 0 auto;
    position: relative;
    /* Needed for pseudo-element positioning */
    display: inline-block;
    text-transform: uppercase;
    color: #f5f5f5;

}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    /* Adjust the distance below the text */
    transform: translateX(-50%) scaleX(0);
    /* Initially hidden */
    width: 70%;
    height: 5px;
    /* Thickness of the underline */
    border-radius: 80px;
    background-color:#f5f5f5;
    /* Color of the underline */
    transition: transform 0.5s ease-in-out;
    transform-origin: center;
}

/* Add a class for activating the animation */
.section-title.in-view::after {
    transform: translateX(-50%) scaleX(1);
    /* Animate underline into view */
}

.section-subtitle {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: bold;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.section.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Image transition effect */
.img-fluid {
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

h1 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.3rem;
    margin-top: 10px;
    font-weight: bold;
}

p {
    font-size: 1.15rem;
    color: #ccc;
}

.carousel-slide-container img {
    max-height: 800px;
}

.top-img {
    z-index: 1;
    min-height: 600px;
    background-size: cover;
    position: relative;
}

.top-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Dark overlay for the banner background */
    z-index: -2;

}

#color-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px auto;
    text-align: center;
    max-width: 100%;
}

.rounded-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 0;
    display: inline-block;
    text-align: center;
    line-height: 50px;
    position: relative;
    border: 2px solid transparent;
    /* Default border */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    /* Subtle shadow */
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Keyframes for fade-right effect */
@keyframes fadeRight {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Class to apply the animation */
.fade-right {
    animation: fadeRight 1.2s ease-in-out;
}

.rounded-button.btn-outline-danger {
    border: 1px solid darkred;
    border-right: 8px solid darkred;
}

.rounded-button:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    /* Bright glow on hover */
    border-color: #ff9900;
    /* Highlight border on hover */
}

#car-image {
    width: 100%;
}

@media (max-width: 1600px) {
    
}

@media (max-width: 768px) {
    .rounded-button {
        width: 30px;
        height: 30px;
    }
}