body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal overflow */
    display: flex;
    flex-direction: column;
    min-height: 140vh; /* Ensure the body takes up the full height */
}

html, body {
    height: 100%; /* Ensure the body and html elements take up the full height */
}

header {
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    color: #333;
    padding: 1rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute; /* Position the header absolutely */
    width: 100%; /* Make the header span the full width */
    top: 0; /* Align the header to the top */
    z-index: 1000; /* Ensure the header is above other content */
}

.header-left img {
    max-width: 160px;
    padding-left: 1rem; /* Add padding to the left */
    padding-right: 1rem; /* Add padding to the right */
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 2rem; /* Add padding to the right to indent further left */
}

.header-right nav {
    display: inline-block;
}

.header-right nav a {
    color: #333;
    text-decoration: none;
    margin: 0 0.5rem;
}

.header-right nav a:hover {
    text-decoration: underline;
}

.main-content {
    background-image: url("/static/images/project_background_1.png");
    background-size: cover; /* Ensure the background image covers the entire area */
    background-position: center;
    background-repeat: no-repeat; /* Prevent the background image from repeating */
    padding: 5rem 0 1rem 0; /* Add padding to the top to account for the header */
    flex: 1; /* Allow the main content to grow and fill the available space */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    margin: 0; /* Remove any margin to prevent overflow */
}

h2 {
    color: #333; /* Customize the color */
    font-size: 1.75rem; /* Customize the font size */
    margin-bottom: 1rem; /* Add some space below the heading */
    text-align: center;
}

h3 {
    color: #333; /* Customize the color */
    font-size: 1rem; /* Customize the font size */
    margin-bottom: 1rem; /* Add some space below the heading */
}

p {
    color: #666;
    padding: 0 1rem;
    text-align: left; /* Ensure text aligns to the left */
}

.container {
    max-width: 800px;
    margin: 1rem auto; /* margin to adjust gap */
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent background */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: left; /* Justify text to the left */
    color: #333; /* Customize the color */
}

.containertitle {
    max-width: 650px;
    margin: 2.5rem auto 2rem; /* margin to adjust gap */
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent background */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: left; /* Justify text to the left */
    color: #333; /* Customize the color */
}

.hanging-indent {
    display: block;
    margin-left: 1.5em;
    text-indent: -1.5em;
    color: #666; /* Customize the color */
}

.hanging-indent span:first-child {
    font-weight: bold;
}

footer {
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    color: #333;
    text-align: center;
    padding: 1rem;
    width: 100%; /* Make the footer span the full width */
    position: relative; /* Ensure the footer is positioned relative to the body */
    bottom: 0; /* Align the footer to the bottom */
    margin-top: auto; /* Push the footer to the bottom of the page */
}

.total-project-cost {
    font-weight: bold;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.calculator-notes {
    font-size: 0.875rem; /* Smaller text */
    margin-top: 1rem;
    padding: 0 1rem; /* Ensure text aligns to the left */
}

/* Add this to your existing styles.css file */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position above the input */
    left: 50%;
    margin-left: -100px; /* Center the tooltip */
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%; /* Arrow at the bottom */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Width for the calculator table column 3 */
table th:nth-child(3),
table td:nth-child(3) {
    width: 60px; /* Adjust the width as needed */
}

/* Styles for input boxes within the calculator table */
table input[type="number"] {
    color: #333; /* Text color */
    background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent background */
    border: 1px solid #666; /* Border color */
    margin-left: 0px;
    padding: 0.5rem; /* Padding */
    width: 80%; /* Full width */
    box-sizing: border-box; /* Ensure padding and border are included in the width */
}

table input[type="number"]::placeholder {
    color: #666; /* Placeholder text color */
}

/* Container for project types */
.container.projects {
    text-align: center;
    margin-top: 2rem;
}

.container.projects h3 {
    margin-bottom: 1.5rem;
    color: #333;
}

/* Project images */
.project {
    display: inline-block;
    position: relative;
    margin: 0 1rem;
}

.project img {
    width: 170px; /* Adjust the width as needed */
    height: auto;
    border-radius: 8px;
}

/* Overlay text */
.project .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 1rem;
    border-radius: 0 0 8px 8px;
}

/* Show overlay text on hover */
.project:hover .overlay {
    visibility: visible;
    opacity: 1;
}