* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.navbar-inner-container {
    display: flex;
    justify-content: flex-start;
}

.navbar-img {
    height: 70px;
    width: 160px;
}

.navbar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* hero section style start */
.railway1 {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}

video {
    width: 99vw;
    height: 100vh;
    object-fit: cover;
}

.hero-text {
    width: 85%;
    text-align: center;
    font-weight: bold;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.85);
    color: #ffffff;
    /* Pure white text */
    padding: 20px;
    /* Adds spacing */
    border-radius: 10px;
    /* Smooth edges for text background */
}

.hero-text h1 {
    font-size: 4rem;
}

.hero-text h2 {
    font-size: 2rem;
}

/* hero section style end */


/* intoduction style section start */
.intoduction {
    width: 70%;
    padding: 1.2rem 0rem;
    text-align: justify;
}

.intoduction p {
    color: lavender;
}

/* intoduction style section end */


.workflow-contents,
.ring-contents,
.class-compare-contents {
    width: 70%;
    text-align: justify;
    margin: 0 auto;
}


/* flow-chart-style start */
.watermark-cover {
  position: absolute;
  top: 37px;             /* Move it downward */
  left: 28px;            /* Move it to the right */
  width: 250px;          /* Widen it to cover full line */
  height: 65px;          /* Cover both lines of watermark */
  background-color: #1b1b1b;
  z-index: 9999;
  pointer-events: none;
}

.workflow-container {
    padding: 10px;
    text-align: center;
}

.family-chart-container {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#myDiagramDiv {
    width: 95%;
    height: 90vh;
    background-color: transparent;
    /* Let container color show through */
}

/* flow-chart-style end */


/* study area start */
.study-area {
    position: relative;
}

.study-area .inner-container {
    display: flex;
    justify-content: center;
    align-items: start;
    z-index: 10;
}

.study-area .inner-container img {
    position: sticky;
    top: 20px;
    height: 100vh;
    width: 50%;
    object-fit: cover;
}


.cards-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    background: #333;
    border: 2px solid #06729a;
    padding: 20px;
    width: 100%;
    /* Adjust the width to fit the container */
    min-height: 150px;
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
    margin-bottom: 30rem;
}

.card:hover {
    background: #1b8a99;
    cursor: pointer;
}

/* study area end */


/* raw data dashboard start */
.rawdata-dashboard-container {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    position: relative;
}

#raw-data-dashboard {
    height: 100vh;
    width: 100vw;
    position: relative;
}

#sidebar {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 300px;
    background: rgba(255, 255, 255, 0.85);
    /* semi-transparent */
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.section {
    margin-bottom: 20px;
}

.section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
}

.checkbox-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}



#basemap-toggle {
    display: flex;
    gap: 10px;
}

.basemap-img {
    width: 60px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.basemap-img:hover {
    transform: scale(1.05);
}

.basemap-img.active {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.6);
}

select,
input[type="checkbox"] {
    cursor: pointer;
}

/* raw data dashboard end */


#comparison-container1,
#comparison-container2,
#kernal-container {
    width: 100%;
    height: 90vh;
    position: relative;
    overflow: hidden;
    /* Add this */
}

.row-map {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 20px;
}

.col-map {
    flex: 1;
    /* Makes it 50% */

}

#comparison-container1,
#comparison-container2,
#changedetection-container1,
#changedetection-container2,
#kernal-container {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;

}

.beforemap,
.aftermap,
#CD-map-NDVI,
#CD-map-NDBI,
.before-kernal-map,
.after-kernal-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


.mapboxgl-compare .compare-swiper {
    background: white !important;
    width: 3px !important;
}


/* class comparison start */
.changeDetection-contents ol {
    display: grid;
    grid-template-columns: repeat(1fr, 1fr);
}

/* class comparison end */



/* change detection style start */

/* chnage detection style end  */

/* legends start */
.legend {
    position: absolute;
    top: 78%;
    right: 10px;
    /* background: rgba(0, 0, 0, 0.1);  */
    padding: 15px 20px;
    border-radius: 8px;
    /* border: 2px solid #F8DE22;  */
    text-align: center;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
}

.legend h4 {
    margin: 0 0 12px;
    font-size: 18px;
    color: #F8DE22;
    /* Yellow Title */
    text-decoration: underline;
}

.legend h4 {
    margin: 0 0 12px;
    font-size: 18px;
    color: #F8DE22;
    /* Yellow Title */
    text-decoration: underline;
}

.min-max {
    display: flex;
    justify-content: space-between;
}


.legend-ds {
    width: 500px;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, red, white, green, );
    margin: 10px auto;
}

.legend-kernal {
    width: 500px;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, green, yellow, red);
    margin: 10px auto;
}

.legend-line {
    width: 350px;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, #f7eb3d, #e91330, #0a6116);
    margin: 10px auto;
}


.legend-line-ryg {
    width: 250px;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, #e91330, #2dcb21);
    margin: 10px auto;
}

.legend-line-ryg-ndbi {
    width: 250px;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, #2dcb21, #f7eb3d, #e91330);
    margin: 10px auto;
}

.legend-line-rr {
    width: 500px;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, #162be9, #f7eb3d, #e91330, #8a0324, #52e666);
    margin: 10px auto;
}


.legend-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-top: 5px;
}

/* legends end */

/* check box map style start */
.inner-container-checkbox {
    display: flex;
    height: 100vh;
}

#map {
    width: 50%;
    height: 100%;
    position: relative;
}

.map-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background: white;
    padding: 10px;
    font-family: sans-serif;
    z-index: 1;
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

#sidePanel {
    width: 50%;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.info-section {
    display: none;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
    background-color: #000000;
    color: lavender;
}

/* check box map style END */


.contents {
    position: relative;
    left: 16%;
    z-index: 10;
    width: 70%;
    padding: 1.2rem 0rem;
    text-align: justify;
}

/* ring video start  */
.ring-video-container div video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ring video end */



/* Dashboard start */
.dashboard-chart {
    position: relative;
    height: 100vh;
}

#chart-dashboard {
    position: relative;
    width: 100%;
    height: 100%;
}

#chart-dashboard-map {
    position: absolute;
    top: 0;
    left: 0;
    right: 350px;
    /* leave space for the dashboard */
    bottom: 0;
    /* leave space for the graphs */
    z-index: 1;
}

#dashboard-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 350px;
    height: 100vh;
    /* background: rgb(0, 0, 0, 0.65); */
    backdrop-filter: blur(8px);
    color: white;
    z-index: 10;
    padding: 20px 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#dashboard-overlay h2 {
    text-align: center;
    margin-top: 0;
    font-size: 20px;
    margin-bottom: 12px;
}

.info-card {
    /* background: rgba(255, 255, 255, 0.05); */
    border-radius: 8px;
    padding: 10px;
    margin: 10px 0;
    width: 100%;
    text-align: center;
}

.stat {
    font-size: 32px;
    font-weight: bold;
    color: #00e676;
}

.label {
    font-size: 14px;
    color: #ccc;
}

.chart-container-dashboard {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 12px auto;
}

#areaChart {
    width: 100% !important;
    height: 100% !important;
}

#legend-dashboard {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    text-align: center;
    color: white;
    line-height: 1.4;
    pointer-events: none;
}

.button-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
    align-items: center;
}

.year-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: space-between;
}

.button-row button {
    flex: 1;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: bold;
    border: 2px solid white;
    background: transparent;
    color: white;
    transition: all 0.3s ease;
    text-align: center;
}

.button-row button:hover {
    background: white;
    color: black;
}


/* Charts at Bottom */
#graph-section {
    position: absolute;
    bottom: 0;
    left: 0;
    /* align with map edge */
    right: 280px;
    /* stop before dashboard */
    height: 33vh;
    /* background-color: rgba(20, 20, 20, 0.65); */
    background-color: rgb(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
    display: flex;
    gap: 100px;
    padding: 12px 20px;
    z-index: 5;
    border-radius: 0 12px 0 0;

}

#graph-section canvas {
    flex: 0 0 40%;
    max-width: 40%;
    background-color: transparent !important;
    height: 100% !important;
    margin-left: 30px;
}

/* dashboard end */


/* layout section style start  */
.layout-container {
    height: 100%;
    margin: 0;
    background-color: #000000;
}

.carousel,
.carousel-inner,
.carousel-item {
    height: 100vh;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: auto;
    margin: 0 auto;
    display: block;
}

/* layout section style end  */


/* pie image section start */
.pie-analysis-outer-container {
    background-color: #000000;
}

.pie-analysis-inner-container1 {
    display: flex;
    justify-content: start;
    width: 100vw;
    padding: 15px;
}

.pie-analysis-inner-container1 .pie-img-container1 {
    width: 55vw;
    padding: 16px;
}

.pie-analysis-inner-container1 .pie-img-contents1 {
    width: 50vw;
    padding: 10px 10px;
}

.pie-analysis-inner-container1 .pie-img-container1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pie-analysis-inner-container2 {
    display: flex;
    justify-content: start;
    width: 100vw;
}

.pie-analysis-inner-container2 .pie-img-container2 {
    width: 45vw;
    padding: 20px;
}

.pie-analysis-inner-container2 .pie-img-contents2 {
    width: 55vw;
    padding: 10px 20px;
}

.pie-analysis-inner-container2 .pie-img-container2 img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

/* pie image section end */


/* lulc style start */
.lulc-outer-container {
    width: 100vw;
    height: 100vh;
}

/* lulc style end */


/* kernal style start */
.kernal_outer_container {
    width: 100vw;
    height: 100vh;
}

/* kernal style end */

/* lulc dashboard start */
.lulc-dashboard-container {
    height: 100vh;
}

.lulc-dashboard {
    height: 100%;
    display: flex;
    background-color: #010101;
    padding: 20px;
}

.lulc-dashboard-map {
    width: 60%;
    height: 100%;
    border-right: 2px solid #000000;
}

.lulc-right-section {
    width: 40%;
    padding: 20px;
    background-color: #000000;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.lulc-legend-container {
    margin-bottom: 10px;
    padding: 15px;
    background-color: #4a4949;
    border-radius: 8px;
    font-size: 16px;
    height: 350px;
    color: white;
    overflow-y: auto;
}

.lulc-legend-item {
    display: flex;
    align-items: center;
    margin: 12px 0;
}

.lulc-legend-checkbox {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ccc;
    appearance: none;
    outline: none;
    cursor: pointer;
    margin-left: 10px;
    position: relative;
    transition: background-color 0.3s, border-color 0.3s;
    background-color: transparent;
}

#checkbox-class1 {
    background-color: red;
}

#checkbox-class2 {
    background-color: yellow;
}

#checkbox-class3 {
    background-color: grey;
}

#checkbox-class4 {
    background-color: green;
}

#checkbox-class5 {
    background-color: brown;
}

.lulc-legend-checkbox:checked {
    border-color: #4CAF50;
    background-color: #4CAF50;
}

.lulc-legend-checkbox:checked::after {
    content: '✔';
    color: black;
    position: absolute;
    top: 2px;
    left: 8px;
    font-size: 25px;
}

.lulc-area-display {
    padding: 20px;
    background-color: #e5f6e5;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    color: #333;
    min-height: 100px;
}

#lulc-chart-container {
    height: 700px;
    margin-top: 20px;
    background-color: #000000;
    padding: 20px;
    border-radius: 8px;
    color: white;
}

#lulc-comparison-chart {
    width: 100%;
    height: 300px;
}

.lulc-button-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lulc-control-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.lulc-control-button:hover {
    background-color: #45a049;
    transform: translateY(-3px);
}

.lulc-control-button.active {
    background-color: #3e8e41;
}

@media (max-width: 768px) {
    .lulc-dashboard {
        flex-direction: column;
    }

    .lulc-dashboard-map {
        width: 100%;
        height: 300px;
    }

    .lulc-right-section {
        width: 100%;
        padding: 15px;
    }

    #lulc-chart-container {
        height: 200px;
    }
}

/* lulc dashboard end */

/* boundary style start */
.building-container {
    position: relative;
    height: 100vh;
    /* width: 100vw; */
}

#building-dashboard {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    bottom: 0;
}

.building-img {
    position: absolute;
    height: 30%;
    width: 100%;
    bottom: 0;
    display: flex;
    justify-content: space-evenly;
    gap: 5px;
    overflow-x: scroll;
}

.building-img img {
    height: 200px;
    width: 350px;
}

.dashboard-popup {
    max-width: 300px;
    font-family: 'Segoe UI', sans-serif;
}

.dashboard-popup-content {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 12px;
    font-size: 13px;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.dashboard-popup-content h4 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.dashboard-popup-content table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-popup-content td {
    padding: 4px 6px;
    vertical-align: top;
}

.dashboard-popup-content td:first-child {
    font-weight: 500;
    color: #555;
    width: 40%;
}

.dashboard-popup-content td:last-child {
    font-weight: 400;
    color: #222;
}

/* boundary style end */


@media (max-width: 768px) {
    .intoduction {
        width: 92%;
        padding: 0.8rem 0rem;
    }

    .scroll-container {
        top: 650px;
        right: 40px;
    }

    .scroll-container i {
        font-size: 36px;
    }
}


@media (max-width: 426px) {

    .logo-container img {
        height: 35px;
        width: 70px;
    }

    .intoduction {
        width: 85%;
        padding: 0.8rem 0rem;
    }

    .scroll-container {
        top: 600px;
        right: 30px;
    }

    .scroll-container i {
        font-size: 28px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
        font-weight: bold;
    }


    .hero-text h2 {
        font-size: 1.2rem;
        font-weight: bold;
    }
}