#navigation_bar{
    background-color: #C91111;
}

.navbar-brand{
    color: white;
    font-weight: bold;
    font-size: xx-large;
    padding-left: 10px;
    padding-right: 20px;
    padding-bottom: 10px;
}
.btn-outline-success, .company_address, .company_details{
    color: #fffdf6;
}
.company_address, .company_details{
    font-size: small;
}
.nav-link{
    color: #fffdf6;
    padding-left: 20px;
}
#navbar_search_button{
    color: white;
    border-color: white;
}
#bottom_details{
    background-color: #C91111;
    color: white;
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;
}
.product_details{
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;
}
.row{
    max-width: 100%;
    margin: auto;
}

#lollypop-image-container {
    padding: 20px;
    overflow: hidden;
    max-width: 100%;
    height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#temperature-tips-image-container {
    padding: 20px;
    overflow: hidden;
    max-width: 100%;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#temperature_tips_image {
    width: 100%; /* Ensures the image fills the container */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Optional: Scales image to cover container, cropping excess */
    object-position: center;
}

#lollypop_image{
    position: relative;
    width: 100%;
    margin: none;
}
.catalogue_button{
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: #C91111;
    color: white;
}
.carousel_label{
    color: blanchedalmond;
}
.carousel_label:hover {
    color: #C91111;

}
.carousel-inner{
    height: 750px;
}
.carousel-item {
  position: relative;
  display: inline-block; /* Adjusts to image size */
}
.carousel-item img{
    width: 100%;
    height: 750px;
    object-fit: cover;
    object-position: center;
    display: block;
}
.carousel-caption{
    bottom: 20px;
}
#enquiry_form{
    padding: 40px;
}
#enquiry_form_submit_button{
    background-color: #C91111;
    border-color: #C91111;
}

.image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
}

.overlay-text {
    position: absolute;
    top: 280px; /* Adjusted for better spacing */
    left: 45px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap; /* Prevents text wrapping */
    max-width: calc(100% - 60px); /* Ensures text fits within container, accounting for left/right margins */
    overflow: hidden; /* Hides overflow */
    text-overflow: ellipsis; /* Adds ellipsis if text is too long */
}

.overlay-text-p {
    position: absolute;
    top: 330px; /* Moved down to avoid overlap with .overlay-text */
    left: 45px;
    color: white; /* Consistent with .overlay-text */
    font-size: 16px;
    max-width: 500px;
}

.overlay-button {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 400px; /* Moved down to avoid overlap with .overlay-text-p */
    left: 45px;
    width: 100px;
    height: 50px;
    color: white;
    background-color: #C91111;
    border-style: hidden;
    padding: 10px;
    box-sizing: border-box; /* Ensures padding is included in dimensions */
}
.fade-in{
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

#pyrometer_image {
    height: 70%;
}


.overlay-text { animation-delay: 0.2s; }
.overlay-text-p{ animation-delay: 0.4s; }
.overlay-button{ animation-delay: 0.6s; }

@keyframes fadeIn {
      from { opacity: 0; transform: translateY(20px); } /* Optional: slight upward motion */
      to { opacity: 1; transform: translateY(0); }
    }

/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
    .carousel-inner{
        height: 400px;
    }
    .carousel-item img {
        height: 400px; /* Reduced height to show more image content */
        object-fit: cover; transform: scale(1); 
    }
    .overlay-text {
        font-size: 17px; /* Smaller font to fit better */
        top: 125px; /* Adjusted for spacing */
        left: 30px;
        max-width: calc(100% - 60px); /* Ensure text fits */
    }

    .overlay-text-p {
        font-size: 14px; /* Smaller font */
        top: 160px; /* Adjusted to avoid overlap */
        left: 30px;
        max-width: 350px;
        margin-right: 30px;
    }

    .overlay-button {
        top: 245px; /* Adjusted to avoid overlap */
        left: 30px;
        width: 80px; /* Smaller button */
        height: 40px;
        font-size: 14px;
    }
    
    #pyrometer_image {
        height: 35%;
    }
}

#about_us_2nd_div {
        min-height: 200px;
        padding: 0;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#about_us_2nd_div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('6.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.9; /* Adjust opacity */
    background-color: rgba(0, 128, 255, 0.2); /* Blue tint with 30% opacity */
    background-blend-mode: overlay;
    z-index: 1;
}

#about_us_2nd_div > * {
  position: relative;
  z-index: 2;
  color: white; /* Ensures text is visible against the background */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#about_us_2nd_div_text {
    padding: 20px;
    padding-left: 30px;
    background-color: #C9111140;
    background-blend-mode: overlay;
    height: 100%;
}