/* Base styles for the slideshow */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 84vh; /* Adjust this value to control the height of the slideshow */
    overflow: hidden;
    margin-top: 112px; /* Adjust this value to move the slideshow down */
}

.cb-slideshow,
.cb-slideshow:after { 
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    z-index: 0; 
    margin: 0; /* Ensure no margin */
    padding: 0; /* Ensure no padding */
}
.cb-slideshow:after { 
    content: '';
    background: url('../images/dot pattern small.png') repeat;
    background-size: auto; /* Ensure the background image tiles without stretching */
}

.cb-slideshow li span { 
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    color: transparent;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 0;
    animation: imageAnimation 36s linear infinite 0s; 
}

.cb-slideshow li div { 
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    position: absolute;
    bottom: 30px;
    left: 0px;
    height: 100%;
    width: 100%;
    text-align: center;
    opacity: 0;
    color: #fff;
    animation: titleAnimation 36s linear infinite 0s; 
    padding: 20px; /* Adjust as needed */
}

.cb-slideshow li div h3 { 
    font-family: 'BebasNeueRegular', 'Arial Narrow', Arial, sans-serif;
    font-size: 50px;
    padding: 0;
    line-height: 1.2; /* Adjust line height */
    word-wrap: break-word; 
}

.cb-slideshow li:nth-child(1) span { 
    background-image: url('../images/Consult2.jpg') 
}
.cb-slideshow li:nth-child(2) span { 
    background-image: url('../images/Site1.jpg');
    animation-delay: 6s; 
}
.cb-slideshow li:nth-child(3) span { 
    background-image: url('../images/Karim3.jpg');
    animation-delay: 12s; 
}
.cb-slideshow li:nth-child(4) span { 
    background-image: url('../images/Sign2.jpg');
    animation-delay: 18s; 
}
.cb-slideshow li:nth-child(5) span { 
    background-image: url('../images/House2.jpg');
    animation-delay: 24s; 
}
.cb-slideshow li:nth-child(6) span { 
    background-image: url('../images/Champagne1.jpg');
    animation-delay: 30s; 
}

.cb-slideshow li:nth-child(2) div { 
    animation-delay: 6s; 
}
.cb-slideshow li:nth-child(3) div { 
    animation-delay: 12s; 
}
.cb-slideshow li:nth-child(4) div { 
    animation-delay: 18s; 
}
.cb-slideshow li:nth-child(5) div { 
    animation-delay: 24s; 
}
.cb-slideshow li:nth-child(6) div { 
    animation-delay: 30s; 
}

@keyframes imageAnimation { 
    0% {
        opacity: 0;
        transform: scale(1.3);
        animation-timing-function: ease-in;
    }
    8% {
        opacity: 1;
        animation-timing-function: ease-out;
    }
    17% {
        opacity: 1;
        transform: scale(1.0);
    }
    25% {
        opacity: 0;
    }
    100% { 
        opacity: 0;
        transform: scale(1.0);
    }
}

@keyframes titleAnimation { 
    0% { opacity: 0 }
    8% { opacity: 1 }
    17% { opacity: 1 }
    19% { opacity: 0 }
    100% { opacity: 0 }
}

.no-cssanimations .cb-slideshow li span {
    opacity: 1;
}

@media screen and (max-width: 1140px) { 
    .cb-slideshow li div h3 { font-size: 140px }
}

@media screen and (max-width: 600px) { 
    .cb-slideshow li div h3 { font-size: 40px }
}

/* Additions to change header and carousel background color */



.carousel-caption {
    background-color: rgba(18, 17, 13, 0.7); /* Make the caption background semi-transparent */
    padding: 20px; /* Add some padding */
    border-radius: 10px; /* Round the corners */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1); /* Make the carousel controls visible against the dark background */
}
/* Override Bootstrap navbar background color */
.navbar, .navbar-expand-md, .navbar-dark, .fixed-top, .bg-dark{
    background-color: #12110D !important;
}

/* Set the height of the carousel */
.carousel {
    height: 250px; /* Adjust this value to your desired height */
    overflow: hidden; /* Hide any overflow */
    
}

.carousel-item {
    position: relative;
    overflow: hidden;
    height: 100%;
}
/* Ensure images cover the carousel container */
.carousel-item img {
    object-fit: contain;
    height: 100%; /* Make image take full height of the item */
    width: 100%; /* Ensure image covers the full width */
}
/* Handle extra height to make sure the content fits */
.carousel-item {
    height: 100%; /* Ensure it fills the carousel height */
}

/* Larger screens */
@media (min-width: 768px) {
    .carousel-item img {
        height: 500px;
    }
}

/* Extra large screens */
@media (min-width: 1200px) {
    .carousel-item img {
        height: 600px;
    }
}
.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%; /* Ensure it takes up the full height of its parent */
    overflow: hidden; /* Hide overflow to prevent images from spilling out */
}

/* Basic styles for the content section */
.content {
    font-family: Arial, sans-serif;
    margin: 20px;
    color: #12110D;
    display: flex; /* Use Flexbox for layout */
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center children horizontally */
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 2px solid #ddd;
    padding: 8px;
    text-align: center;
    
}

th {
    background-color: #f4f4f4;
}

/* Hide the top-left cell completely */
th:first-child {
    background-color: transparent; /* Transparent background to fully hide shading */
    border: none; /* Remove all borders */
    padding: 0; /* Remove padding to avoid extra spacing */
    color: transparent; /* Hide text color */
    pointer-events: none; /* Disable any interaction with this cell */
    box-shadow: none; /* Remove any shadow effects */
}

/* Apply rounded top-left corner to the top-middle cell */
th:first-child + th {
    border-top-left-radius: 12px; /* Rounded top-left corner */
    border-left: 2px solid #ddd; /* Ensure the left border matches the other cell borders */
}

/* Apply rounded top-left corner ONLY to the first cell in the first row of the tbody */
table tbody tr:first-child td:first-child {
    border-top-left-radius: 12px; /* Rounded top-left corner */
    border-left: 2px solid #ddd; /* Ensure border consistency */
    background-color: #fff; /* Adjust background color if needed */
}

.quote_table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.quote_table th, .quote_table td {
    border: 2px solid #ddd;
    padding: 8px;
    text-align: center;
}

.quote_table th {
    background-color: #f4f4f4;
}

/* Specific Styling for .quote_table */
.quote_table th:first-child {
    color: black;
    /* No specific styles for the first cell in .quote_table */
    /* Remove these styles to maintain default appearance */
}

.quote_table th:first-child + th {
    /* No specific styles for the rounded top-left corner */
}

.quote_table tbody tr:first-child td:first-child {
    /* No specific styles for rounded corners in .quote_table */
}


/* Button styles */
.button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 18px;
    color: #fff;
    background-color: #d9534f;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
}

.button:hover {
    background-color: #c9302c;
}


.more-info {
    font-size: x-small;
}





/* Footer styles */
.footer {
    background-color: #12110D; /* Dark background for contrast */
    color: #ecf0f1; /* Light text color */
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Space between sections */
    margin-bottom: 20px;
}

.footer-section {
    flex: 1 1 200px; /* Flex-grow and shrink for responsiveness */
    padding: 10px;
}

.footer-section h4 {
    margin-top: 0;
    color: #ecf0f1; /* Light color for headers */
    font-size: 18px;
    border-bottom: 2px solid #3498db; /* Stylish border below headers */
    padding-bottom: 10px;
}

.footer-section p, .footer-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-section a {
    color: #ecf0f1; /* Light text color for links */
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.social-links {
    margin-top: 10px;
}

.social-icon {
    display: inline;
    margin: 0 10px;
}

.social-icon img {
    width: 40px; /* Set width for logos */
    height: 40px; /* Set height for logos */
    border-radius: 50%; /* Optional: rounded logos */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icon img:hover {
    transform: scale(1.1); /* Slightly enlarge on hover */
    opacity: 0.8; /* Slightly fade on hover */
}

.footer-bottom {
    border-top: 1px solid #34495e; /* Subtle border at the top of the footer bottom */
    padding-top: 10px;
    font-size: 14px;
}

.disclaimer {
    text-align: left;
    font-size: 15px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 177px;
}

.message-container {
    max-width: 600px;
    margin: auto;
    overflow-y: auto;
    height: 400px;  /* Set a fixed height for scrolling */
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    background: #f9f9f9; /* Slight background for contrast */
    display: flex;
    flex-direction: column;
    gap: 10px; /* Adds space between messages */
}

/* Message alignment */
.message {
    display: flex;
    align-items: flex-end;
    margin: 5px 0;
}

.message.assessor {
    justify-content: flex-start;  /* Align to the left */
}

.message.client {
    justify-content: flex-end;  /* Align to the right */
}

/* Message bubbles */
.message-bubble {
    padding: 12px;
    border-radius: 15px;
    max-width: 75%;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Assessor messages */
.message.assessor .message-bubble {
    background-color: #e1f5fe;  /* Light blue */
    color: #0277bd;  /* Darker blue text */
}

/* Client messages */
.message.client .message-bubble {
    background-color: #ffe0b2;  /* Light orange */
    color: #bf360c;  /* Darker orange text */
}

/* Timestamp styling */
.timestamp {
    font-size: 0.75em;
    color: gray;
    margin-top: 3px;
    display: block;
    text-align: right;
}

/* Ensures newest message is always visible */
.message-container::-webkit-scrollbar {
    width: 8px;
}

.message-container::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 10px;
}

.message-container::-webkit-scrollbar-track {
    background: #f7f7f7dd;
}

.message-container {
    width: 100%; /* Change to 100% or a larger percentage */
    max-width: 1400px; /* Optional: Set a max-width for better control */
    margin: auto;
    overflow-y: auto;
    height: 400px; 
    border: 1px solid #ccc;
}

/* Makes sure input field is styled well */
textarea {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    resize: none;
}
