body {
    background-image: url('images/Simplified_Lungs_Illustration.jpg'); 
    background-size: cover; /* Cover the entire page */
    background-repeat: no-repeat; /* Prevent repeating */
    background-attachment: fixed; 
    background-position: center; /* Center the image */
    font-family: Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row; /* Align sidebar and main content in a row */
    flex-wrap: wrap; /* Allow wrapping for small screens */
}



header {
    position: fixed; 
    top: 2.5vh;
    left: 16vw;
    width: 70vw; 
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    font-size: clamp(2rem, 4vw, 4.5vh);
    font-weight: bold;
    color: #d9f006;
    text-align: center;
    z-index: 1000;
    padding: 1vh 2vw;
    transition: left 0.5s ease-in-out, opacity 0.1s ease-in-out, visibility 0.3s ease-in-out;
    word-break: break-word;
    white-space: normal;
    box-sizing: border-box;
    text-wrap: balance;
}

@media (max-width: 600px) {
    header {
        left: 0; /* Set left to 0 for smaller screens */
        width: 100%; /* Set width to 100% to fit the screen */
        font-size: clamp(1.5rem, 5vw, 2.5rem); /* Adjust font-size to scale better */
        padding: 1vh 4vw;
    }
}

/* Move header to the right when Show All is clicked */
.header-move-right {
    left: 458px; /* Adjust the value as needed */
}

.sidebar-left .logo {
    height: 200px; /* Adjust the logo size */
    width: 200px/* Add spacing between logo and heading text */
}

.sidebar-left .logo1 {
    height: 120px; /* Adjust the logo size */
    width:150px;
    margin-bottom: 20px;
}
@media (max-height: 650px), (max-width: 400px) {
    .dropdown-menu {
        max-height: 200px; /* Adjust based on your layout */
        overflow-y: auto;
    }
}
/* Sidebar style for logos */
/* Sidebar style for logos */
.menu-button-container {
    position: fixed;
    top: 50px;
    left: 20px;
    z-index: 1000;
    width:200px;
}

.menu-button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 16px;
    font-size: 24px;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    width:150px;
}

.dropdown-menu {
    display: none;
    flex-direction: column;
    background-color: transparent;
    border-radius: 10px;
    padding: 15px;
    margin-top: 10px;
    position: absolute;
    top: 50px;
    left: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.dropdown-menu button,
.dropdown-menu a:not(:last-child) {
    margin: 5px 0;
    padding: 12px;
    background-color: rgba(188, 235, 232, 0.95);
    border: 1px solid black;  /* Add black border */
    cursor: pointer;
    text-align: left;
    border-radius: 5px;
    width: 150px; /* Set desired width */
    font-family: 'Arial', sans-serif; /* Set desired font */
    font-size: 18px; /* Adjust font size */
}

.dropdown-menu button:hover,
.dropdown-menu a:not(:last-child):hover {
    background-color: #45a049;  /* Darker green on hover */
}

.auth-links {
    margin-top:55px;
    text-align: center;
}

.auth-links a {
    color: black;
    text-decoration: underline; /* Underline to indicate links */
    font-size: 14px; /* Adjust font size */
    margin: 0 5px; /* Space between "Login" and "Register" */
}

.auth-links a:hover {
    color: red; 
}
.refresh-button {
    background-color: #4CAF50;  /* Green background */
    color: black;                /* White text color */
    border: none;                /* Remove default border */
    padding: 10px 20px;          /* Padding for size */
    text-align: center;          /* Center text */
    text-decoration: none;       /* Remove underline */
    display: inline-block;       /* Display as inline block */
    font-size: 14px;             /* Font size */
    border-radius: 2px;          /* Rounded corners */
    cursor: pointer;    
    margin-top: 10px;            /* A little space between buttons */
    transition: background-color 0.3s ease; /* Smooth transition */
      /* Align to the left */
}

.refresh-button:hover {
    background-color: #45a049;  /* Darker green on hover */
}

.refresh-button:active {
    background-color: #388e3c;  /* Even darker green when pressed */
}

/* Adjust button styling */
.sidebar-left button {
    width: 100%;
    padding: 20px;
    margin: 5px 0; /* Keep space between buttons unchanged */
    background: rgba(10, 10, 10, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

button[onclick="toggleSection('aboutUsContainer')"] {
    margin-top: 5px !important; /* Reduce space above "About Us" */
}

/* Button hover effect */
.sidebar-left button:hover {
    background: #555;
}
.sidebar-left button:last-child {
    
    position: absolute;
    bottom: 50px; /* Moves it 100px from the bottom */
    width: 70%;
}

/* Logo in sidebar */
/* .sidebar-left img {
    max-width: 60%; /* Keep logos within the sidebar */
    /* height:13%;
    margin-bottom: 10px; /* Increased space between logo and button */
/* } */ 
/* .sidebar img .logo1{
    max-width: 60%; /* Keep logos within the sidebar */
    /* height:10%;
}  */
  
.sidebar-right {
    max-width: 230px;
    width: auto;  /* Flexible width */
    background-color: transparent;
    display: block;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
    position: relative; /* Fix position relative to the viewport */
    left: 50%; 
    transform: translateX(-50%); /* Centering adjustment */
    bottom: 0; /* Fix it to the bottom of the page */
    margin-top: 800px;
    margin-bottom: 30px;
    z-index: 9999; /* Ensure it's above other content */
    max-height: 30vh; /* Optional: Limit height of the sidebar */
    transition: all 0.3s ease;
}

/* Scroll button styles (optional) */
/* .scroll-button {
    position: fixed;
    bottom: 10px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 10000;
    transition: background-color 0.3s ease;
}

.scroll-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
} */

/* Scroll up button (optional) */
.scroll-button-up {
    position: fixed;
    bottom: 50px; /* Position it above the first scroll button */
    right: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 10000;
}

.scroll-button-up:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

#piechart-title {
    display: none;
    font-size: 30px; /* Increased font size */
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 50px;
    text-align: right; /* Aligns the text to the right */
    color: white;
    padding-top:40px;
    padding-bottom:30px;
    background: transparent;
    white-space: nowrap;
    position: absolute;
    right: 5px; /* Move the title 20px from the right edge of the container */
}
#color-bar {
    background-color: white;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.2);
    font-size: 14px;
    position: absolute;
    top: 290px;
    right: 40px;
    z-index: 100;
}



.color-label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.color-box {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border: 1px solid #000;
}


@media screen and (max-width: 1440px) {
    #color-bar {
        margin-top: -200px;
        margin-left: -230px;
    }
}
/* For medium screens */
@media screen and (max-width: 1024px) {
    #color-bar {
        margin-top: -200px;
        margin-left: -200px;
    }
}

/* For tablets and small desktops */
@media screen and (max-width: 768px) {
    #color-bar {
        margin-top: -30px;
        margin-left: -50px;
    }
}

/* For mobile devices */
@media screen and (max-width: 480px) {
    #color-bar {
        margin-top: -10px;
        margin-left: 0;
    }

    #color-bar img {
        width: 100% !important;  /* shrink image to fit smaller screens */
    }
}

.disease-volume-text {
    display: block; /* or leave default */
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: red;
    margin-top: 15px;
    background-color:white;
    width:100px;
    display: block; 
}

/* #piechart-container {
    display: grid !important;
    flex-wrap: wrap;
    justify-content: center;
    /* padding: 10px; */
    /* grid-template-columns: repeat(2, 1fr); /* 2 per row */
    /* align-items: flex-start; */
    /* row-gap: 10px; /* reduced vertical spacing between rows */
    /* column-gap: 20px; /* horizontal spacing between columns */
    /* width: 100%;
    margin:auto;
    margin-left: 50px;  
}  */
#piechart-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 10px;
    column-gap: 20px;
    width: 100%;
    margin: auto;
    margin-top:100px;
    margin-right: auto;
    padding-top:30px;
    visibility: visible; /* default visible */
    align-items: flex-start;
    justify-content: center;
}
@media (max-width: 768px) {
    .sidebar-right  {
        grid-template-columns: 1fr;
        margin: 0 10px;
        margin-left:100px;
    }
    
}
@media (max-width: 1024px) {
    .sidebar-right  {
        grid-template-columns: 1fr;
        margin: 0 10px;
        margin-left:100px;
    }
}
@media (max-width: 1440px) {
    .sidebar-right  {
        grid-template-columns: 1fr;
        margin: 0 10px;
        margin-left:100px;
    }
}
.hidden-container {
    visibility: hidden;
    height: 0;
    overflow: hidden;
}
.piechart-img{
    border: 2px solid black;
    cursor: pointer;
    display: block;
    position:center;
    transition: opacity 0.2s ease-in-out;
    background: white;

}
.regular-piechart-img {
    width: 450px;  /* Increased size */
    height: 300px;
    max-width: none; /* Remove max constraint */
    border: 2px solid black;
    cursor: pointer;
    display: block;
    position:center;
    transition: opacity 0.2s ease-in-out;
    background: white;
    /* transform: translateX(-120px); */
   
    
}
.summed-piechart-img {
    width: 450px;  /* Increased size */
    height: 300px;
    max-width: none; /* Remove max constraint */
    border: 2px solid black;
    cursor: pointer;
    display: block;
    position:center;
    transition: opacity 0.2s ease-in-out;
    background: white;

}


/* Fullscreen Popup */
#piechart-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

/* Popup Content */
.popup-content {
    position: relative;
    background: white;
    padding: 10px;
    border-radius: 8px;
    max-width: 80%;
    max-height: 80%;
    overflow: hidden;
}
.overall-barchart-img {
    height: 400px;
    width: 400px;
    border: 3px solid red; /* Optional: Different border color */
    margin: 10px;
    display: block;
    flex-shrink: 0; /* Prevents the bar chart from shrinking */
}
#piechart-container, #piechart-title, #piechart-btn {
    display: none; /* Hidden by default */
}

/* Popup Image */
.popup-content img {
    max-width: 80vw; /* Max width is 80% of the viewport width */
    max-height: 80vh; /* Max height is 80% of the viewport height */
    width: auto;
    height: auto;
    border-radius: 5px;
}


/* Popup Background */
/* Popup Background */
/* .poppup {
    display: none; /* Hidden by default */
    /* position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Transparent black background */
    /* z-index: 1000;
}

/* Popup Box */
/* .poppup-content {
    background: rgba(188, 235, 232, 0.9);
    padding: 20px;
    width: 300px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    text-align: center;
} */ 

/* Login & Register Links */
/* Make the login/register page take up the full window */
html, body {
    overflow: auto;
    height: auto;
}

/* When auth is active: hide background scroll completely */
body.auth-active, html.auth-active {
    overflow: hidden !important;
}
.auth-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #92dce5, #188fa7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
    z-index: 9999;

    overflow-y: auto;              /* allow scroll when needed */
    scrollbar-width: none;         /* Firefox */
    -ms-overflow-style: none;      /* IE 10+ */
}

.auth-page::-webkit-scrollbar {
    display: none;                  /* Chrome, Safari */
}







.auth-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    gap: 20px;
    flex: 1;
}

.auth-content {
    position: relative; /* Ensure absolute elements inside are positioned relative to this container */
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    width: 1000px;
    height: 700px; 
    text-align: center;
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    justify-content: space-around;
    top:150px;
    margin: 0 auto;
  
}


#main-container {
    display: block;
    
}

.auth-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    width: 400px;
    max-width: 90%;
    text-align: center;
}

.auth-content button {
    width: 130px;
    height: 50px;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    background: black;
    color: white;
    margin-bottom:50px;
    border-radius: 8px;
    cursor: pointer;
}

.auth-content h2 {
    font-size: 24px;
}

.auth-form {
    display: none;
    margin-top: 50px;

}

.auth-form input, 
.auth-form select,
#otherDesignation {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    color: #696868;
    box-sizing: border-box; 
    appearance: none; /* Removes browser-specific styles */
}
#otherDesignation {
    display: none; /* Keep it hidden until needed */
}

.auth-form select {
    background-color: white;
    cursor: pointer;
}


.auth-form button {
    width: 60%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background: #188fa7;
    color: white;
    font-size: 18px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.auth-form button:hover {
    background: #0d5c6b;
}

.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 20px;
    position: relative;
    top: -15px; /* Move the entire header slightly up */
}

.logoauth {
   
    position: relative;
    top: -10px; /* Moves individual logos slightly up */
}

.left-logo {
    margin-right: auto;
    height:170px;
    width:190px;
    right:70px;
}

.right-logo {
    margin-left: auto;
    height:130px;
    width:150px;
}


.logout-link {
    display: block;
    text-align: left;
    padding: 10px;
    color: red;
    text-decoration: none;
    font-size: 14px;
    margin-top:10px;
}

.logout-link:hover {
    color: green;
    text-decoration: underline;
    background-color: transparent;  /* Remove the background color */
}
/* Default disclaimer stays fixed at the bottom */
.disclaimer {
    position: relative;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    font-size: 12px;
    color: black;
    text-align: center;
    padding: 10px;
    
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    z-index: 1000;
  }

/* Override for small screens */
@media (max-width: 600px) {
    .disclaimer {
        position: fixed;
        bottom: 50px;        /* keep bottom fixed */
        left: 50%;           /* keep horizontal center */
        transform: translateX(-50%);  /* keep centering */
        width: 95%;
        font-size: 10px;
        padding: 10px;
        margin: 0 auto;      /* optional */
        z-index: 1000;
    }
    .main-content {
        padding-bottom: 100px; /* so content doesn't hide behind disclaimer */
    }
}




#auth-selection {
    margin-top: 150px !important;
    text-align: center; /* Center align text and buttons */
}


#form-subtitle {
    margin-top:180px;
    font-size: 16px;
    text-align: center;
    margin-bottom:100px;
}

#form-subtitle button {
    margin-top: 10px; /* Add some spacing below text */
}
.auth-page .about-us-popup{
    background: rgb(255,255,255);
}

/* Custom styles for About Us button */
.about-us-buttonauth {
    position: relative!important;
    width: 80px !important;
    height: 30px !important;
    font-size: 12px !important;
    background: black !important;
    color: white !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    /* margin-top: 20px !important; */
    transition: 0.3s !important;
    top: 100px;
    left: 85%;
    /* Center text */
    display: flex !important; 
    align-items: center !important; /* Vertical centering */
    justify-content: center !important; /* Horizontal centering */
    text-align: center !important;
    padding: 0 !important; /* Remove padding if needed */
    /* margin-left: 900px!important; 
    top: 600px!important;  */
}


.about-us-buttonauth:hover {
    background-color: #45a049;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 24px;
    font-weight: bold;
    color: black;
    cursor: pointer;
}

/* .disclaimer {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #666;
    text-align: center;
    width: 90%;
    max-width: 600px;
} */

/* Medium devices (tablets, 768px and up) */
@media (max-width: 768px) {
    .auth-content {
      width: 85%;
      height: 700px;
      padding: 30px;
      top:8px;
    }
    .auth-content button{
        width:100px;
        height:70px;
        font-size:14px;
    }
    /* .auth-box {
      width: 90%;
      top:8px;
    }
     */
    .left-logo, .right-logo {
      height: 120px;
      width: 130px;
    }
  
    .about-us-buttonauth {
      left: 80%;
      bottom:50px;
    }
  
    /* #form-subtitle {
      margin-top: 100px;
      margin-bottom: 60px;
    } */
    .disclaimer {
        bottom: 200px;
        font-size: 8px;
        width: 95%;
      }
  }
  @media (max-width: 1024px) {
    .auth-content {
      width: 90%;
      height: auto;
      padding: 30px;
    }
  
    /* .auth-box {
      width: 90%;
    } */
  
    .left-logo, .right-logo {
      height: 120px;
      width: 130px;
    }
  
    .about-us-buttonauth {
      left: 80%;
      top: 120px;
    }
  
    /* #form-subtitle {
      margin-top: 100px;
      margin-bottom: 60px;
    } */
  }
  @media (max-width: 1440px) {
    .auth-content {
        top:8px;
      }
    .disclaimer {
        bottom: 6px;
        font-size: 10px;
        width: 95%;
      }
  }
  /* Small devices (phones, 600px and down) */
  @media (max-width: 600px) {
    .auth-content {
      width: 95%;
      height: auto;
      padding: 20px;
      top: 100px;
      margin-bottom:100px;
    }
  
    .auth-box {
      width: 100%;
      padding: 20px;
    }
  
    .auth-content button {
      width: 100%;
      height: 45px;
      font-size: 16px;
      padding: 10px;
    }
  
    .auth-header {
      flex-direction: column;
      align-items: center;
    }
  
    .left-logo, .right-logo {
      height: 100px;
      width: 120px;
      margin: 10px 0;
    }
  
    .about-us-buttonauth {
      width: 100px !important;
      height: 35px !important;
      font-size: 14px !important;
      left: 50%;
      transform: translateX(-50%);
      top: 50px;
    }
  
    #form-subtitle {
      font-size: 14px;
      margin-top: 50px;
      margin-bottom: 40px;
    }
  
    .auth-form button {
      width: 100%;
      padding: 10px;
    }
  
    .disclaimer {
      bottom: 20px;
      font-size: 10px;
      width: 95%;
    }
  }
  

.about-us-popup {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -20%);
    width: 50%;
    height:50%;
    background: rgb(216, 241, 241);
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    text-align: center;
    z-index: 1000;
    margin-top:10px;
    transition: all 0.1s ease;
    overflow-y: auto;
}

.about-content {
    display: flex;
    align-items: flex-start; /* Aligns items to the top */
    gap: 20px; /* Space between image and text */
}

.about-us-img {
    width: 200px;
    height: 200px;
}
.about-text {
    flex: 1; /* Make the text take up the remaining space */
    text-align: left;
}



.about-us-popup button {
    margin-top: 10px;
    padding: 8px 12px;
    background: red;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom:50px;
}
.about-us-popup.show-all {
    display: none !important;
}
.team-container {
    display: flex;
    justify-content: center; /* Centers images */
    gap: 20px; /* Space between images */
    margin-top: 20px;
    flex-wrap: wrap; /* Ensures images wrap inside */
    max-height: 550px;
    overflow-y: auto; /* Enable vertical scrolling */
    padding-right: 10px; /* Space for scrollbar */
}

.team-member {
    text-align: center;
}

.team-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ccc;
}

.collaborators-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 250px; /* Adds extra space below */
}

.collaborator-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px;
}

.collaborator-img {
    width: 140px; /* Adjust size as needed */
    height: 140px;
} 

.collaborator-name {
    margin-top: 8px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    color: #333;
}

.collaborator-member:nth-child(2) .collaborator-img {
    width: 340px; /* New size for AIIMS image */
    height: 140px;
}


/* Main content area */
.main-content {
    margin-left: 250px; /* Increase space between the sidebar and main content */
    padding-top: 100px; 
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(2, 1fr); /* Create 2 equal columns */
    gap: 30px 60px; /* Space between rows and columns */
    margin-top: 20px; /* Space between heading and sections */
    width: calc(100% - 250px); /* Take remaining space after sidebar */
    height: calc(100vh - 130px);
}

/* Default section styling */
.section {
    background-color:(255,255,255,0.9);
    border: 2px solid hwb(51 2% 58%);
    padding: 20px;
    text-align: center;
    margin-left: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 200px;  
    width: 600px;   
    transition: all 0.3s ease;
}

/* Expanded section (when viewing one at a time) */
.section.expanded {
    height: 70vh !important;
    width: 50vw !important;
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background-color: (255,255,255,0.9);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Adjust content alignment */
    align-items: center;
    padding: 10px;
    overflow: hidden;
}
@media (max-width: 768px) {
    .section.expanded {
        width: 95vw;
        height: 80vh;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .section.expanded {
        width: 98vw;
        height: 90vh;
        padding: 10px;
    }
}
/* Maximize image display area */
.section.expanded .image-container
{
    width: 100%;
    height: calc(90% - 60px); /* Reduced height for button space */
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
   
}
.progress-container {
    width: 100%;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    display: none;
    position: relative;
    height: 20px; /* Same height for all */
    margin-top: 10px;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: #4caf50;
    text-align: center;
    line-height: 20px; /* Ensure text is centered */
    color: white;
    font-weight: bold;
    font-size: 12px; /* Consistent font size */
}


#progress-text {
    text-align: center;
    font-size: 14px;
    margin-top: 2px;
    display: none; /* Initially hidden */
}
#progress-bar-merge {
    width: 100%;
    height: 250%;
    background: #4caf50;
    position: relative;
}

#progress-bar-merge::after {
    content: attr(data-progress); /* Show progress percentage */
    position: center;
    left: 50%;
    top: -20px; /* Adjust position */
    transform: translateX(-50%);
    color: black;
    font-size: 10px;
    font-weight: bold;
}

.section.expanded .gradcam-container
{
    width: 100%;
    height: calc(88% - 60px); /* Reduced height for button space */
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    /* overflow: hidden; */
    background: transparent;
}
.section.expanded .segmentedparenchymacontainer 
{
    width: 100%;
    height: 400px;  /* Reduced height for button space */
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: transparent;
    /* padding-bottom: 19px; */
    
}

/* Allow buttons and interactive elements inside the container */
/* .section.expanded .segmentedparenchymacontainer * {
    pointer-events: auto; /* Restore interaction for child elements */
/*} */

.section.expanded .quant-container {
    width: 100%;
    height: calc(90% - 60px); /* Reduced height for button space */
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    /* overflow: hidden; */
}

.section.expanded img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    margin-bottom: 10px; /* Space between image and buttons */
}
/* Increase image width properly */
/* Ensure the image is centered */
/* Ensure image stays within bounds and scales properly*/
.section.expanded .segmentedparenchymacontainer img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: auto;
    object-fit: contain;
    overflow: hidden;
    /*margin-bottom: 40px; /* Space between image and buttons */
}
.section.expanded #merged-results {
    height: auto; /* Change from height: 0 to height: auto */
    display: flex; /* Ensure it is displayed properly */
    justify-content: center;
    align-items: center;
}


/* Increase image width properly */
.section.expanded .gradcam-container img {
    width: 120% !important; /* Increase width beyond container */
    max-width: unset !important; /* Remove max-width limits */
    height: auto !important; /* Keep aspect ratio */
    object-fit: contain;
    display: block; /* Prevent inline spacing issues */
}

.section.expanded .image-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    margin-bottom: 40px; /* Space between image and buttons */
}
.section.expanded .quant-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    margin-bottom: 40px; /* Space between image and buttons */
}


/* Move buttons to the bottom */
.section.expanded .button-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 5px; /* Move to bottom */
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
    background: rgba(0, 0, 0, 0.5); /* Optional background for contrast */
    border-radius: 8px;
}
/* Ensure buttons remain interactive */
.section.expanded .segmentedparenchymacontainer .button-container {
    z-index: 9999; /* Ensure buttons stay above */
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding-top: 20px;
    pointer-events: auto; /* Allow button interaction */
}
.section.expanded .gradcam-container .button-container {
    position: absolute;
    bottom: 10px; /* Stick to bottom */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7); /* Darker background for visibility */
    border-radius: 8px;
    z-index: 100; /* Ensure it is above other elements */
}

/* Individual buttons styling */
.section.expanded button {
    margin: 0 5px; /* Space between buttons */
    padding: 5px 10px;
    font-size: 10x;
    background-color: #6f942a;
    color: white;
    border: none;
    cursor: pointer;
}

.section.expanded button:hover {
    background-color: #874B1A;
}


.section.show-all {
    height: 50vh !important; 
    width: 30vw !important;
    overflow: auto; /* Adds scroll if content is too large */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); 
    margin: 10px auto;
    position: relative;
    right:150px; 
}


/* Default section styling with smaller size */
.section {
    background-color: rgb(255,255,255,0.8);
    border: 2px solid hwb(51 2% 58%);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 250px;  /* Reduced height */
    width: 800px;
    transition: all 0.3s ease;
}


/* Increase image size */
.section img {
    max-width: 100%;
    max-height: 100%; /* Ensure it scales properly */
    object-fit: contain; /* Keep aspect ratio */
}

/* Adjust the container grid for 4 sections */
.container {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
    gap: 10px 0; /* Space between sections */
    padding: 0;
    margin-top: 30px; /* Space between heading and sections */
    height: 60vh; /* Fix height so it doesn't change */
    overflow-y: 90vh; /* Enable scrolling if needed */
}

/* Apply margin-left to give spacing between sidebar and content */
.container > :nth-child(1),
.container > :nth-child(2),
.container > :nth-child(3),
.container > :nth-child(4) {
    margin-left: 200px; /* Remove margin left to avoid extra space between sidebar */
}

/* Apply specific styles for each container */
/* .container > :nth-child(4),
.container > :nth-child(5) {
    grid-column: span 1; /* Ensure sections don't span multiple columns */
/*} */

/* Increase only the image size inside sections */
.section img {
    width: 100% !important;  /* Increase width */
    height: 100% !important;  /* Increase height */
    cursor: default;
    object-fit: contain; /* Keep aspect ratio */
}

/* Specifically for HRCT, Segmented, GradCAM, and Quantification images */
#image-display, 
#mask-results, 
#gradcam-results, 
#quant-results, 
#merged-results img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain; /* Prevent distortion */
    cursor: default;
}

/* Ensure the displayed image fills the container */
/* #image-display, 
#mask-results, 
#gradcam-results, 
#quant-results, 
#merged-results img {
    max-width: 100%;
    max-height: 100%;
    cursor: default;
} */
.image-container img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: none !important; /* Ensure no border */
    display: block; /* Prevent inline spacing issues */
    overflow: scroll;
    position: relative;
}
.gradcam-container  img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: none !important; /* Ensure no border */
    display: block; /* Prevent inline spacing issues */
}
/* .segmentedparenchymacontainer  img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: default;
} */
.quant-container  img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: none !important; /* Ensure no border */
    display: block; /* Prevent inline spacing issues */
    
}
.section {
    overflow: hidden; /* Prevent unnecessary scrollbars */
    box-shadow: none;    
}
img:not([src]), img[src=""] {
    display: none;
}
img[src]:not([src=""]) {
    display: block;
}




/* Add this to your CSS file */
.image-container {
    width: 100%;
    height: 400px;  /* Adjust the height as needed */
    overflow: auto;  /* Allows scrolling */
    position: relative;
    border: 1px transparent;  /* Optional border for visibility */
    margin: 0 auto;  /* Center the container */
}

/* #image-display {
  
    /*max-height: 100%; /* Ensure it fits vertically */
/*} */



.segmentedparenchymacontainer {
    display: flex;
    justify-content: center; /* Center the button */
    align-items: center; /* Center vertically */
    cursor: default;
    overflow: hidden;
}


#merged-results {
    width: 100%;
    height: 400px;  /* Adjust height as necessary */
    overflow: auto;  /* Allows scrolling */
    position: relative;
    border: transparent;  /* Optional border for visibility */
    margin: 0 auto;  /* Center the container */
    cursor: default;
}


#merged-results {
    transition: transform 0.2s ease-in-out;  /* Smooth zoom effect */
    transform-origin: center center;  /* Keep the content centered when zooming */
    cursor: default;
    
}
/* #merged-results img.zoomable {
    max-width: none; /* Remove max constraints */
    /*max-height: none; /* Remove max constraints*/
    /*cursor: default;
} */



/* .segmentedmaskcontainer {
    width: 100%;
    height: 400px;  /* Adjust the height as needed */
    
    /*position: relative;
    border: 1px transparent;  /* Optional border for visibility */
    /*margin: 0 auto;  /* Center the container */
/*}

#mask-results {
    transition: transform 0.2s ease-in-out;  /* Smooth zoom effect */
   /* transform-origin: center center;  /* Keep the image centered when zooming */
/*} */
.gradcam-container {
    width: 100%;
    height: 400px;  /* Adjust the height as needed */
    overflow: auto;  /* Allows scrolling */
    position: relative;
    border: 1px transparent;  /* Optional border for visibility */
    margin: 0 auto;  /* Center the container */
}

#gradcam-results {
    transition: transform 0.2s ease-in-out;  /* Smooth zoom effect */
    transform-origin: center center;  /* Keep the image centered when zooming */
}
.quant-container #color-bar {
    display: none;
}

.quant-container {
    width: 100%;
    height: 400px;
    overflow: auto;
    position: relative;
    border: transparent; /* Temporary border for visibility */
    margin: 0 auto;
    background-color: transparent; /* Temporary background */
}

.affected-area-box {
    margin-top: 10px;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    border-radius: 3px;
    display: none;
    height:40px;
    width: 160px; 
    max-width: 120%; 
    top: 50%;  /* Position vertically in the middle of the page */
    right: 80%;
    left:0%;
    margin-left: auto;
    margin-right: auto; 
    position:absolute;
}


#quant-results {
    transition: transform 0.2s ease-in-out;  /* Smooth zoom effect */
    transform-origin: center center;  /* Keep the image centered when zooming */
}
.section button, 
.section select {
    padding: 5px 10px;
    background-color: #6f942a;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 10px;
    margin-top: 15px;
}
.section button:hover {
    background-color: #874B1A;
}


.section button,
.section select {
    padding: 5px 10px;
    background-color: #6f942a;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 10px;
    margin-top: 15px;
}

.section button:hover {
    background-color: #874B1A;
}
/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 70px;
    background-color: black;
    color: white;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position above the button */
    left: 50%;
    margin-left: -60px; /* Center the tooltip */
    opacity: 0;
    transition: opacity 0.2s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
