body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: rgba(244, 244, 244, 0.5);
    /* Change the opacity value (0.8) as needed */
    background-image: url('imgs/City_Landscape_Background.jpg');
    /* Replace 'background-image.jpg' with your own image */
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.container {
    text-align: center;
    margin-top: 20px;
}

.title {
    color: white; /* Set the title color to white */
    font-weight: bold; /* Make the title bold */
    text-align: center; /* Center the title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Add a subtle shadow */
    letter-spacing: 1px; /* Add some space between letters */
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
}

.work {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center items horizontally */
    justify-content: center;
    /* Center items vertically */

}

.work h2 {
    font-size: 1.1em;
    /* Adjust font size as needed */
    display: -webkit-box;
    /* Display as a flexible box */
    -webkit-line-clamp: 3;
    /* Limit to two lines */
    -webkit-box-orient: vertical;
    /* Arrange vertically */
    overflow: hidden;
    /* Hide overflow content */
    text-overflow: ellipsis;
    /* Add ellipsis for truncated text */
    max-width: 100%;
    /* Ensure the title does not exceed the width of its container */
}



.work p {
    margin-bottom: 0;
}

.work a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.work:hover {
    background-color: #dcdcdc;
    /* Light Gray */
    cursor: pointer;
}

.work img {
    width: 100%;
    height: auto;
    /* Maintain aspect ratio */
    border-radius: 10px;
    /* Add rounded corners */
    border: 2px solid #ccc;
    /* Add border */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Add shadow for depth */
}



.footer {
    color: #fff;
    text-align: left;
    padding: 20px;
    width: 100%;
    position: fixed;
    /* Set position to fixed */
    bottom: 0;
    /* Align to bottom of viewport */
    display: flex;
    /* Use flexbox */
    justify-content: space-between;
    /* Align items with space between */
    box-sizing: border-box;
    /* Ensure padding is included in width */
    background: rgba(0, 0, 0, 0.55);
    /* Dark bar so white text stays legible over the light background image */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    /* Extra contrast for the text */
}

.footer .left {
    margin-left: 20px;
    /* Add left margin for space */
}

.footer .right {
    margin-right: 20px;
    /* Add left margin for space */
}

.footer .left p,
.footer .right p {
    margin: 0;
}



.footer a {
    color: #fff;
    text-decoration: underline;
}



/*------------------------ */
/* Add a class to the body tag for the detailed view page */
.detailed-view {
    display: flex;
    /* justify-content: center; */
    /* align-items: center; */
}

.work-detail {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 800px;
    margin: auto;
    display: none;
    transition: opacity 0.5s ease-in-out;
}

.work-detail h2 {
    margin-top: 0;
}

.work-detail p {
    margin-bottom: 0;
}

.work-detail a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

/* Add this CSS to remove the bullets from the list */
.datasets ul {
    list-style-type: none;
    /* Remove bullets */
    padding: 0;
    /* Remove default padding */
}

.datasets li {
    margin-bottom: 10px;
    /* Add some space between each dataset */
}

.description {
    position: relative; /* Position relative for the tooltip */
    display: inline-block; /* Inline block for proper spacing */
    margin-left: 10px; /* Space between icons */
    cursor: pointer; /* Cursor change on hover */
}
.description .tooltip {
    visibility: hidden; /* Hide tooltip by default */
    width: 300px; /* Width of the tooltip */
    background-color: #555; /* Background color */
    color: #fff; /* Text color */
    text-align: center; /* Centered text */
    border-radius: 6px; /* Rounded corners */
    padding: 5px 0; /* Padding inside the tooltip */
    position: absolute; /* Absolute positioning */
    z-index: 1; /* Ensure tooltip is above other elements */
    bottom: 125%; /* Position above the icon */
    left: 50%; /* Center the tooltip */
    margin-left: -100px; /* Use negative margin to center the tooltip */
    opacity: 0; /* Hide the tooltip */
    transition: opacity 0.3s; /* Smooth transition */
}
.description .tooltip::after {
    content: ''; /* Empty content for the arrow */
    position: absolute; /* Absolute positioning */
    top: 100%; /* Position at the bottom of the tooltip */
    left: 33%; /* Center the arrow */
    margin-left: -5px; /* Center the arrow */
    border-width: 5px; /* Size of the arrow */
    border-style: solid; /* Solid border */
    border-color: #555 transparent transparent transparent; /* Arrow color */
}
.description:hover .tooltip {
    visibility: visible; /* Show tooltip on hover */
    opacity: 1; /* Fully visible */
}

.description .tooltip ul {
    list-style-type: disc; /* Use disc for bullet points */
    padding-left: 20px; /* Add padding to align bullets properly */
    text-align: left; /* Ensure text aligns correctly */
    margin: 0; /* Reset margin */
}
.description .tooltip li {
    margin-bottom: 5px; /* Space between list items */
}

/* Add these styles for the carousel functionality */
.carousel {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: auto;
}

/* Clear left/right navigation arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s ease;
}

.carousel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.85);
}

.carousel-arrow.prev {
    left: 10px;
}

.carousel-arrow.next {
    right: 10px;
}

.work-detail.active {
    display: block;
    opacity: 1;
}

.dots {
    text-align: center;
    padding: 10px 0;
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #464545; /* Inactive dot color */
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
    cursor: pointer;
}

.dot.active {
    background-color: #fff; /* Active dot color */
}

.justify-text {
    text-align: justify;
}
