/* styles.css */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.navbar {
    background-color: #08364F;
    color: white;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 2em;
    font-weight: bold;
    color: #ffb400;
}

.navbar-menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar-menu li {
    margin-left: 20px;
}

.navbar-menu li a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
}

.navbar-menu li a:hover {
    background-color: #0056b3;
    border-radius: 4px;
}

.map-container {
    display: flex;
    height: calc(100vh - 50px); /* Adjust height based on navbar */
}

.controls {
    width: 100%;
    /* background-color: #f4f4f4; */
    /* padding: 20px; */
    /* overflow-y: auto; */
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.controls h3 {
    margin-top: 0;
    color: #333;
    /* text-align: center; */
    color: #ff9d9d;
    font-size: x-large;
}

.controls label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 16px;
    color: #ffffff;
}

.sidebar {
    width: 300px;
    background-color: #08364F;
    color: white;
    padding: 20px;
    box-shadow: 2px 0px 5px rgba(0, 0, 0, 0.3);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#map {
    flex: 1;
    height: 100%;
    background-color: #E6E6E6
}

#checkboxes {
    width: 250px;
    /* background-color: #f4f4f4; */
    
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    margin-right:20px;
}

#checkboxes h3 {
    margin-top: 0;
}

#checkboxes label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
}

.legend-container {
    margin: 20px;
    width: 200px;
}

.legend-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.style-selector {
    width: 100%;
    padding: 5px;
    margin-bottom: 20px;
}

.legend-list {
    list-style: none;
    padding: 0;
}

.legend-list li {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.color-box {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 1px solid #000;
    display: inline-block;
}

/* chart legend */
#chart-container {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    top: 10px; /* Adjust position as needed */
    left: 10px; /* Adjust position as needed */
    width: 300px; /* Adjust size as needed */
    max-width: 600px;
    height: 300px; /* Adjust size as needed */
    z-index: 1000; /* Ensure it is on top */
    border-radius: 50%; /* This makes the div a circle */
    background-color: rgb(226, 221, 221); /* Background color inside the circle */
    border: 5px solid white; /* Black border around the circle */    
    position: absolute;
    display: none; /* Initially hide the div */
}


#chart {
    flex: 1; /* Set a fixed width for the chart */
    height: 100%; /* Full height of the container */  
   
}

#chart-legend {
    flex: 0 0 auto;
    /*width: 600px; /* Adjust as needed */
    display: flex;
    flex-direction: column; /* Stack legend items vertically */
   
    
}

#chart-legend ul {
    list-style: none; /* Remove default list styling */
    padding: 0;
    margin: 0;
}

#chart-legend ul li {
    display: flex;
    align-items: center; /* Center items vertically */
    margin-bottom: 10px; /* Space between legend items */
}

.legend-color {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px; /* Space between color and label */
    /*border-radius: 50%; /* Make it circular */
}

.legend-label {
    font-size: 14px; /* Adjust font size */
    margin-right: 10px; /* Space between label and value */
    padding-left:5px;
}

.legend-value {
    font-weight: bold; /* Highlight value */
}
    .odd-row {
        background-color: #e5e7eb;/* Example faded color (light green) */
    }

    /* legend details page */
    .container{
        width: 80%;
    }

#enableSwipe{
    position: absolute;        
    background-color: #a0b128cc; 
    padding: 10px;    
    cursor: pointer;
    border: none;
    margin:5px;
    z-index:10;
}

#enableSwipe:hover{
    background-color: #7c8921;
}


/* Style the map container */
#map {
    width: 100%;
    /* height: 100vh; */
}

/* Swipe tool container */
.swipe-tool {
    position: absolute;
    /*top: 50%; /* Position at the vertical center */
    left: 50%; /* Position at the horizontal center */
    transform: translate(-50%, -50%); /* Adjust for exact centering */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    border-radius: 30px; /* Rounded corners */
    padding: 5px;
   /* width: 250px;*/ /* Adjust width as needed */
    height: 50px; /* Adjust height as needed */
}

/* Vertical line styling (hidden by default) */
.vertical-line {
    position: fixed;   /* Fixed to the viewport */
    top: 0;            /* Start from the top of the page */
    left: 50%;         /* Center horizontally */
    width: 2px;        /* Line thickness */
    background-color: #000; /* Line color */
    height: 100vh;     /* Full height of the viewport */
    z-index: -1;      /* Ensure it's above other content */
    display: none;     /* Initially hidden */
}

/* Show the vertical line when the swipe is enabled */
#swipeTool.active .vertical-line {
    display: block;
}

/* Styling for the arrow buttons */
.arrow-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

/* Hover effect for arrows */
.arrow-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

/* Styling for the swipe button in the center */
.swipe-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px; /* Make the icon larger */
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

/* Hover effect for the center button */
.swipe-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

/* Positioning of the left and right arrows */
.arrow-btn:first-child {
    margin-right: 10px;
}

.arrow-btn:last-child {
    margin-left: 10px;
}

table tr > td {
    margin-bottom: 5px;
  }

table tr:nth-child(even).color > td.legend-label,table tr:nth-child(even).color > td.legend-value{
    background-color:#ebebeb
}

.legend-color{
    margin-right:5px
}


.ol-swipe > button:nth-child(1){background-color: black !important}
.ol-zoom{top:3rem;}
div.ol-swipe.ol-unselectable.ol-control.vertical > button{background-color: black;}







