#toolbar{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 15px;
}

/* html{
    border-style: solid;
    border-color: #f2f2f2;;
    border-width: 3px;
} */

table {
    font-family: Arial, Helvetica, sans-serif;
    border-collapse: collapse;
    width: 100%;
}
  
table td, table th {
    border: 1px solid #ddd;
    padding: 8px;
}

table tr:nth-child(even){background-color: #f2f2f2;}

table tr:nth-child(odd){background-color: #f2f2f279;}

table tr:hover {background-color: #ddd;}

table th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: #9e663e;
    color: white;
}

#expand{
    margin: 0;
    position: absolute;
    display: inline-block;
    background-color: #9e663e;
    padding: 2rem 0;
    width: 1rem;
    border-style: solid;
    border-width: 1px 0 1px 1px;
    border-color: black;
    border-radius: 1rem 0 0 1rem;
    text-align: center;
    top: 50%;
    left: 0;
    -ms-transform: translate(-100%,-50%);
    transform: translate(calc(-100% - 5px),-50%);
    z-index: 15;
}

#expand:hover{
    cursor: pointer;
    background-color: #6e3d1a;
}

#expand-vert{
    display: none;
}

#showstate{
    text-align: center;
}

#stateListSelectable li{
    list-style-type: none;
    cursor: pointer;
}

#stateListSelectable li:hover{
    color:rgb(158 102 62);
    list-style-type: none;
    cursor: pointer;
}

#mapdiv{
    text-align: center;
    position: absolute;
    left: 5px;
    top: 5px;
    bottom: 5px;
    right: 30%;
}

#popupContent{
    margin: auto;
    width: 50%;
}

#popupContent>img{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.pdf-pop-up {
    width: 97%;
    height: 99%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.8);
    overflow: hidden;
    z-index: 1000;
    object-fit: contain;
}

.pdf-close-btn {
    position: absolute;
    top: 1%;       /* adjust as needed */
    right: 1%;     /* adjust as needed */
    padding: 10px; /* size it appropriately */
    background: rgba(0,0,0,0.7);
    color: #fff;   /* white text */
    border-radius: 5px;
    z-index: 2000; /* ensure it appears above the PDF and other content */
    cursor: pointer;
    font-size: 1.5em;
}

.pdf-popup-content {
    width: 100%;
    height: 100%;
    overflow: auto; /* Allow scrolling within the iframe if the PDF is larger than its container */
}

.popupContentPDF{
    width: 100%;
    height: 100%;
    overflow: auto;
}

#pop-up{
    border: 1px black solid;
    position: fixed;
    display: none;
    top: 1rem;
    bottom: 1rem;
    left: 1rem;
    right: 30%;
    box-shadow: 5px 5px 5px gray;
    z-index: 10;
    align-content: center;
    background-color: rgba(200,193,179,0.7);
}

#closePopUp{
    position: absolute;
    top: 0;
    right: 0;
    padding-right: 5px;
    color: red;
    font-size: 2em;
    font-weight: 900;
    text-shadow: 0px 1px 0 #000;
    z-index: 20;
}

#closePopUp:hover{
    color: rgb(160, 39, 39);
    cursor: pointer;
}

.pop-up-button {
	background-color:#9e663e;
	border-radius:6px;
	display:inline-block;
	cursor:pointer;
	color:#ffffff;
	font-family:Arial;
	font-size:17px;
	padding:10px 30px;
	text-decoration:none;
    border: 0;
    margin-top: 20px;
}
.pop-up-button:hover {
	background-color:#f2f2f2;
    color:#000;
}
.pop-up-button:active {
	position:relative;
	top:1px;
}

.zoom-out-button {
	background-color:#9e663e;
	border-radius:6px;
	display:inline-block;
	cursor:pointer;
	color:#ffffff;
	font-family:Arial;
	font-size:9px;
	padding:10px 18px;
	text-decoration:none;
    border: 0;
}
.zoom-out-button:hover {
	background-color:#f2f2f2;
    color: #000;
}
.zoom-out-button:active {
	position:relative;
	top:1px;
}



#infobox{
    position: fixed;
    right: 3px;
    top: 3px;
    bottom: 3px;
    left: 70%;
    background-color: rgb(200 193 179);
    border: 5px black double;
    padding: 0.5rem;
}

#poweredBy{
    text-align: center;
}

#infodata{
    scrollbar-width: thin;
    scrollbar-color: gray lightgray;
    height: 95%;
    overflow-y: scroll;
    overflow-x: auto;
    padding-right: 0.5rem;
    margin-left: 0.5rem;
    margin-right: 0;
}

/* width */
#infodata::-webkit-scrollbar {
    width: 10px;
}

/* Track */
#infodata::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey; 
    border-radius: 10px;
}

/* Handle */
#infodata::-webkit-scrollbar-thumb {
    background: #9e663e; 
    border-radius: 10px;
}

/* Handle on hover */
#infodata::-webkit-scrollbar-thumb:hover {
    background: #613a1f; 
}


#mapdiv>svg{
    width: 100%;
    min-height: 100%;
}

input[type="range"] {
    width:90%;
  }

.arrow {
  border: solid black;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
}

.flip {
    transform: rotate(-45deg);
  }


  .collapsible-header {
    cursor: pointer;
    position: relative;
    padding-left: 30px; /* Space for the arrow */
}

.collapsible-header::before {
    content: ''; 
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%) rotate(270deg); /* Arrow initially pointing right */
    border: 5px solid transparent;
    border-right-color: black; /* Right-pointing arrow */
    transition: transform 0.3s ease-in-out; /* smooth transition for rotating the arrow */
}

.collapsible-header.active::before {
    transform: translateY(-50%) rotate(180deg); /* Arrow pointing down when active */
}

.data-text{
    font-size: 20px;
    padding: 0.5rem;
    margin: 0;
}

table {
    width: 100%; /* Set table to take full width of its container */
    border-collapse: collapse; /* Collapse borders for a cleaner look */
    font-family: Arial, sans-serif; /* Set a clean font */
    margin-top: 20px; /* Some space at the top */
}

th, td {
    padding: 8px 12px; /* Padding inside each cell */
    text-align: left; /* Align text to the left */
    border-bottom: 1px solid #ddd; /* Border at the bottom of each cell */
}

th {
    background-color: #f2f2f2; /* A light background color for headers */
    font-weight: bold; /* Bold font for headers */
}

tr:hover {
    background-color: #f5f5f5; /* Slight background color change on row hover for interactivity */
}

@media only screen and (max-device-width: 900px) {
    /* #toolbar{
        transform-origin: top;
        margin-bottom: 2.5rem;
        scale: 2.5;
    }

    .select2-dropdown{
        transform-origin: top left;
        scale: 2.5;
    } */

    #mapdiv{
        position: absolute;
        left: 0px;
        right: 0px;
        top: 0px;
        bottom: 70%;
    }

    #pop-up{
        border: 1px black solid;
        position: fixed;
        display: none;
        top: 0px;
        bottom: 70%;
        left: 0px;
        right: 0px;
        box-shadow: 5px 5px 5px gray;
        z-index: 10;
        align-content: center;
        background-color: rgba(200,193,179,0.7);
    }

    #infobox{
        position: fixed;
        bottom: 0px;
        left: 0px;
        right: 0px;
        top: 30%;
        background-color: rgb(200 193 179);
        border-top: 5px black double;
        border-left: none;
        width: 100%;
        height: 60%;
    }

    #expand-vert{
        margin: 0;
        position: absolute;
        display: inline-block;
        background-color: #9e663e;
        padding: 0 3rem;
        height: 1.5rem;
        border-style: solid;
        border-width: 1px 1px 1px 0;
        border-color: black;
        border-radius: 1rem 1rem 0 0;
        text-align: center;
        left: 50%;
        top: 0;
        -ms-transform: translate(-50%, calc(-100% - 5px));
        transform: translate(-50%, calc(-100% - 5px));
        z-index: 15;
    }

    #expand-vert:hover{
        cursor: pointer;
        background-color: #6e3d1a;
    }

    .arrow {
        border: solid black;
        border-width: 0 3px 3px 0;
        display: inline-block;
        padding: 3px;
        transform: rotate(-135deg);
        -webkit-transform: rotate(-135deg) translate(-50%, -50%);
    }
      
    .flip {
        transform: rotate(45deg);
    }
}