﻿#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white; /* Optional: Light overlay */
    z-index: 9999; /* Make sure it's on top of everything */
}

#carShow {
    padding: 100px 0;
}

#carouselExampleIndicators {
    width: 125%;
    height: auto;
}


#colorButtons {
    background-color: #f5f5f5; /* Light gray background */
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    max-width: 600px; /* Optional: Limit the width for better layout */
    margin: 0 auto; /* Center align */
    position: relative; /* Ensure stacking context */
    z-index: 1; /* Maintain z-index context */
}

.color-btn {
    position: relative; /* Ensure tooltip aligns with button */
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Circular buttons */
    border: 2px solid #ccc; /* Light gray border */
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    margin-bottom: 10px; /* Keep your original margin */
}

    .color-btn.white {
        border-color: #999; /* Darker border for the white button */
    }

    .color-btn:hover {
        transform: scale(1.1); /* Slight zoom on hover */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* Enhanced shadow */
    }

    .color-btn.selected {
        border-color: white; /* Focus color */
    }

    /* Tooltip Styling */
    .color-btn::after {
        content: attr(data-tooltip); /* Tooltip from data attribute */
        position: absolute;
        bottom: 60px; /* Position tooltip above the button */
        left: 50%;
        transform: translateX(-50%);
        background-color: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 5px 10px;
        border-radius: 5px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
        white-space: nowrap;
        font-size: 14px;
        z-index: 9999; /* Ensure tooltip stays above everything */
        pointer-events: none; /* Prevent blocking other interactions */
    }

    /* Show tooltip on hover */
    .color-btn:hover::after {
        opacity: 1;
        visibility: visible;
    }

/* Color Classes */
.color-ashen-beige {
    background-color: #8E7A68;
}

.color-deep-black-matt {
    background-color: #1F1F1F;
}

.color-deep-black-satin {
    background-color: #272829;
}

.color-canyon-copper {
    background-color: #5A4033;
}

.color-deep-black-gloss {
    background-color: #0E0E0E;
}

.color-night-blue {
    background-color: #002A5A;
}

.color-dust-grey-gloss {
    background-color: #626668;
}

.color-sherwood-green-gloss {
    background-color: #0D2207;
}

.color-shark-grey-gloss {
    background-color: #33322F;
}

.color-pearl-grey-gloss {
    background-color: #575F61;
}

.color-yas-marina-blue-gloss {
    background-color: #346891;
}

.color-bronze-grey-gloss {
    background-color: #6D6A60;
}

.color-meteorite-grey-gloss {
    background-color: #95989B;
}
.color-santi-grey-matt {
    background-color: #5A5957;
}

.color-anthracite-grey-matt {
    background-color: #444446;
}

.color-military-green-matt {
    background-color: #413D33;
}

.color-celestial-blue-satin {
    background-color: #273B54;
}

#carouselTitle {
    position: absolute;
    top: 20px; /* Adjust spacing for better layout */
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.9rem; /* Larger font size for emphasis */
    font-weight: 700; /* Heavier font for premium look */
    color: #333; /* Subtle dark gray for sophistication */
    text-transform: uppercase; /* Make the title uppercase for brand consistency */
    letter-spacing: 2px; /* Increase letter spacing for modern touch */
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.11); /* Softer shadow for elegance */
    z-index: 10; /* Ensure it stays above the images */
    font-family: 'Poppins', sans-serif; /* Use a clean, modern font */
}

.colorInfo {
    display: flex; /* Ensures logo and text align properly */
    flex-direction: column;
    align-items: center;
    visibility: visible; /* Ensure it's visible when needed */
    transition: all 0.2s ease-in-out;
}

.colorName p {
    font-family: 'Poppins', sans-serif;
}

.colorName, .hexCode {
    visibility: hidden; /* Hide the text initially */
    transition: visibility 0.2s ease-in-out;
}
/* Media Queries for Responsiveness */
@@media (max-width: 768px) {
    .color-btn {
        width: 40px;
        height: 40px;
    }

    #colorButtons {
        padding: 10px;
    }
}

@media (max-width: 768px) {
    #carouselExampleIndicators {
        width: 100%; /* Full width on smaller screens */
    }
}

@media (max-width: 1200px) {
    #carouselTitle {
        font-size: 1.6rem; /* Adjust font size for smaller screens */
        top: 10px;
    }
}

@media (max-width: 1000px) {
    #carouselTitle {
        font-size: 1.4rem; /* Adjust font size for smaller screens */
        top: 10px;
    }
}

@media (max-width: 768px) {
    #carouselTitle {
        font-size: 1.2rem; /* Adjust font size for smaller screens */
        top: 10px;
    }
}

@media (max-width: 450px) {
    #carouselTitle {
        font-size: 1rem; /* Adjust font size for smaller screens */
        top: 10px;
    }
}
