@import url("styles.css");

html,
body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body::after {
    content: url('../images/map_cover.png');
}

.page-wrapper {
    height: 100% !important
}

#map {
    z-index: 0;
    height: 100%;
    width: calc(100% - 75px);
    position: relative;
    left: 37px;
}

#map-container {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

table {
    border-top: 1px solid #000;
    border-collapse: collapse;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-accent-bg: transparent;
    --bs-table-striped-bg: rgba(0, 0, 0, 0.05);
    --bs-table-active-bg: rgba(0, 0, 0, 0.1);
    --bs-table-hover-bg: rgba(0, 0, 0, 0.075);
    width: 100%;
    margin-bottom: 1rem;
    color: var(--bs-table-color);
    vertical-align: top;
    border-color: var(--bs-table-border-color);
}

.table> :not(caption)>*>* {
    padding: 0.5rem 0.5rem;
    background-color: var(--bs-table-bg);
    border-bottom-width: 1px;
    box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);
}

.table>tbody {
    vertical-align: inherit;
}

.table>thead {
    vertical-align: bottom;
}

.table-group-divider {
    border-top: 2px solid currentcolor;
}

.caption-top {
    caption-side: top;
}

.table-sm> :not(caption)>*>* {
    padding: 0.25rem 0.25rem;
}

.table-bordered> :not(caption)>* {
    border-width: 1px 0;
}

.table-bordered> :not(caption)>*>* {
    border-width: 0 1px;
}

.table-borderless> :not(caption)>*>* {
    border-bottom-width: 0;
}

.table-borderless> :not(:first-child) {
    border-top-width: 0;
}

.table-striped>tbody>tr:nth-of-type(odd)>* {
    --bs-table-accent-bg: var(--bs-table-striped-bg);
    color: var(--bs-table-striped-color);
}

.table-striped-columns> :not(caption)>tr> :nth-child(even) {
    --bs-table-accent-bg: var(--bs-table-striped-bg);
    color: var(--bs-table-striped-color);
}

.table-active {
    --bs-table-accent-bg: var(--bs-table-active-bg);
    color: var(--bs-table-active-color);
}

.table-hover>tbody>tr:hover>* {
    --bs-table-accent-bg: var(--bs-table-hover-bg);
    color: var(--bs-table-hover-color);
}

.table-primary {
    --bs-table-color: #000;
    --bs-table-bg: #cfe2ff;
    --bs-table-border-color: #bacbe6;
    --bs-table-striped-bg: #c5d7f2;
    --bs-table-striped-color: #000;
    --bs-table-active-bg: #bacbe6;
    --bs-table-active-color: #000;
    --bs-table-hover-bg: #bfd1ec;
    --bs-table-hover-color: #000;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color);
}

.table-secondary {
    --bs-table-color: #000;
    --bs-table-bg: #e2e3e5;
    --bs-table-border-color: #cbccce;
    --bs-table-striped-bg: #d7d8da;
    --bs-table-striped-color: #000;
    --bs-table-active-bg: #cbccce;
    --bs-table-active-color: #000;
    --bs-table-hover-bg: #d1d2d4;
    --bs-table-hover-color: #000;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color);
}

.table-success {
    --bs-table-color: #000;
    --bs-table-bg: #d1e7dd;
    --bs-table-border-color: #bcd0c7;
    --bs-table-striped-bg: #c7dbd2;
    --bs-table-striped-color: #000;
    --bs-table-active-bg: #bcd0c7;
    --bs-table-active-color: #000;
    --bs-table-hover-bg: #c1d6cc;
    --bs-table-hover-color: #000;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color);
}

.table-info {
    --bs-table-color: #000;
    --bs-table-bg: #cff4fc;
    --bs-table-border-color: #badce3;
    --bs-table-striped-bg: #c5e8ef;
    --bs-table-striped-color: #000;
    --bs-table-active-bg: #badce3;
    --bs-table-active-color: #000;
    --bs-table-hover-bg: #bfe2e9;
    --bs-table-hover-color: #000;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color);
}

.table-warning {
    --bs-table-color: #000;
    --bs-table-bg: #fff3cd;
    --bs-table-border-color: #e6dbb9;
    --bs-table-striped-bg: #f2e7c3;
    --bs-table-striped-color: #000;
    --bs-table-active-bg: #e6dbb9;
    --bs-table-active-color: #000;
    --bs-table-hover-bg: #ece1be;
    --bs-table-hover-color: #000;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color);
}

.table-danger {
    --bs-table-color: #000;
    --bs-table-bg: #f8d7da;
    --bs-table-border-color: #dfc2c4;
    --bs-table-striped-bg: #eccccf;
    --bs-table-striped-color: #000;
    --bs-table-active-bg: #dfc2c4;
    --bs-table-active-color: #000;
    --bs-table-hover-bg: #e5c7ca;
    --bs-table-hover-color: #000;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color);
}

.table-light {
    --bs-table-color: #000;
    --bs-table-bg: #f8f9fa;
    --bs-table-border-color: #dfe0e1;
    --bs-table-striped-bg: #ecedee;
    --bs-table-striped-color: #000;
    --bs-table-active-bg: #dfe0e1;
    --bs-table-active-color: #000;
    --bs-table-hover-bg: #e5e6e7;
    --bs-table-hover-color: #000;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color);
}

.table-dark {
    --bs-table-color: #fff;
    --bs-table-bg: #212529;
    --bs-table-border-color: #373b3e;
    --bs-table-striped-bg: #2c3034;
    --bs-table-striped-color: #fff;
    --bs-table-active-bg: #373b3e;
    --bs-table-active-color: #fff;
    --bs-table-hover-bg: #323539;
    --bs-table-hover-color: #fff;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

d-table {
    display: table !important;
}

.d-table-row {
    display: table-row !important;
}

.d-table-cell {
    display: table-cell !important;
}

#dropdownMenuButton:focus,
#skipBtn:focus,
#bckBtn:focus,
#bckBtn2:focus {
    outline: none;
    box-shadow: none;
}

#countryDropdown a:hover,
#stateDropdown a:hover {
    background-color: #183F37;
    color: #FFF9F0 !important;
}

.dropdown-toggle .selected-img {
    max-width: 30px;
    /* Adjust the max-width as needed */
    max-height: 30px;
    /* Adjust the max-height as needed */
    margin-right: 10px;
    /* Optional spacing between image and text */
}

.dropdown-item img {
    max-width: 30px;
    /* Adjust the max-width as needed */
    max-height: 30px;
    /* Adjust the max-height as needed */
    margin-right: 10px;
    /* Optional spacing between image and text */
}

.dropdown-item {
    padding: 0.5rem 1rem;
    /* Adjust padding as needed */
    font-size: 17px;
    /* Adjust font size as needed */
}

/* Optional: Hover effect to highlight items on mouse hover */
.dropdown-item:hover {
    background-color: #f8f9fa;
    /* Change the background color on hover */
}

#myTable {
    font-size: smaller;
    /* or specify a specific size, e.g., 12px */
}

#myTable th,
#myTable td {
    padding: 4px;
    /* Adjust as needed */
    margin: 0;
}

#submitButton {
    position: absolute;
    bottom: 30px;
    right: 20px;
    z-index: 400;
    background-color: #9BBE1D;
    height: 42px;
    width: 180px;
    font-family: 'Barlow Condensed', sans-serif;
    border-radius: 3px;
    font-size: 16px;
    font-weight: 700;
    color: #183F37;
}

#mapLegend {
    height: auto;
    position: absolute;
    z-index: 400;
    bottom: 5%;
    left: 100px;
    transform: scale(0.8);
    background-color: #FFF9F0;
}

.legend-color {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin: -5px 0;
    border: 1px solid #777;
}

.rectangle {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #9BBE1D;
    border-radius: 2px;
    margin-right: 10px;
}

/* #urbanSuburbanCheckbox {
    transform: scale(1.3);
    margin-right: 10px;
} */

/* #internetCheckbox {
    transform: scale(1.3);
    margin-right: 10px;
} */

.option-boxes {
    display: flex;
    flex-wrap: wrap;
    font-size: 11px;
    padding-top: 20px;
    padding-bottom: 50px;
}

/* Basic styling for boxes, customize as needed */
.option-boxes .box {
    cursor: pointer;
    text-align: center;
    width: 227px;
    height: 387px;
    background-color: #FFF9F0;
    border: 2px solid #FFF9F0;
    border-radius: 3px;
    rotation: 90deg;
}

.option-boxes .box:hover {
    border: 2px solid #9BBE1D;
}

.option-boxes .box h5 {
    color: #183F37;
    font-family: 'Barlow Condensed', sans-serif;
    padding-top: 25px;
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
    text-align: center;
    margin: auto;
}

.option-boxes .box p {
    font-size: 12px;
    padding-left: 30px;
    padding-right: 30px;
    font-weight: 400;
    line-height: 16px;
    text-align: center;
    color: #183F37;
}

.option-boxes img {
    width: 227px;
    height: 228px;
    padding-left: 2px;
    padding-right: 2px;
}

.option-boxes .box.disabled {
    pointer-events: none;
    opacity: 0.2;
}

.option-boxes p {
    margin-top: 5px;
}

.option-boxes-dialog {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Basic styling for boxes, customize as needed */
.option-boxes-dialog .box {
    position: relative;
    border: 1.5px solid #30544C;
    cursor: pointer;
    text-align: center;
    width: 147px;
    border-radius: 3px;
    background-color: #30544C;
}

.option-boxes-dialog .box h5 {
    color: #FFF9F0;
    font-size: 14px;
    font-weight: 700;
    line-height: 23px;
    margin: 0;
}

.option-boxes-dialog .box p {
    color: #FFF9F0;
    font-size: 10px;
    font-weight: 400;
    line-height: 12px;
    padding: 5px 5px 10px;
}

.option-boxes-dialog img {
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 5px;
    width: 40px;
    height: 40px;
}

.dropdown-toggle::after {
    right: 5px;
    top: 15px;
    position: absolute;
}

#sidePanel {
    overflow-y: scroll;
    font-size: 12px;
    color: #1d1b31;
    position: absolute;
    top: 0;
    left: 75px;
    height: 100%;
    width: 282px;
    background-color: #f2f2f2;
    /* Example background color */
    border-right: 1px solid #999;
    z-index: 400;
}

.sidebar {
    padding: 0px;
}

.sidebar li.divider {
    border-top: 2px solid #2c3338;
}


.sidebar .logo-details {

    padding: 6px 14px;
}

.sidebar .logo-details #btn {
    width: 100%;
    /* padding: 6px 14px; */
}

.sidebar.open .logo-details #btn {

    right: 14px;
    padding: 0px;
}

.page-wrapper {
    transition: all 0.5s ease;
}

.page-wrapper.active {
    margin-left: 164px;
}

.side-table-of-content ul li {
    font-size: 14px;
    list-style-type: none;
    padding: 3px 0px;
}

.side-table-of-content ul li a {

    text-decoration: none;
    color: #000;
}

#sidePanel p,
h6,
hr {
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
}

#suggestions {
    display: none;
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    background-color: white;
}

#suggestions div {
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
}

#suggestions div:hover {
    background-color: #f2f2f2;
}

#bckBtn:hover {
    background-color: #9BBE1D;
}

#backButton:hover {
    background-color: #183F37;
    color: #FFF9F0 !important;
}

#bckBtn2:hover {
    background-color: #183F37;
    color: #F8F3E9 !important;
}


#panelButtons {
    width: 282px;
    padding: 20px;
    position: fixed;
    bottom: 0;
    background: #FFF9F0;
}

#editableStat:focus {
    outline: none;
    border-bottom: 1px solid lightgrey;
    /* Adds a subtle bottom border */
}

.building-details {
    position: absolute;
    bottom: 20px;
    right: 50px;
    z-index: 400;
}

.headerTable {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    background-color: #D4D4D4;
    padding-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

table {
    width: 240px;
    height: auto;
    background-color: #FFF9F0;
    border: none;
}

tbody {
    display: contents;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px;
}

th {
    text-align: left;
    color: #506561;
    font-size: 8px;
    font-weight: 700;
}

td {
    border-bottom: 1px solid #d2d2d2;
    font-size: 10px;
    font-weight: 700;
    line-height: 12px;
    text-align: left;
    color: #183F37;
}

tr {
    font-size: 12px;
    display: flex;
    flex-direction: column;
    width: auto;
    height: auto;
    padding: 10px;
}

.form-group {
    position: relative;
}

.mini-placeholder {
    position: absolute;
    top: 0;
    left: 10px;
    /* Adjust as needed */
    font-size: smaller;
    color: grey;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-control {
    padding-top: 20px;
    /* Add padding to prevent overlapping with the label */
    background-color: #F8F3E9;
    height: 41px !important;
}

#myProgress {
    width: 100%;
    margin: 10px;
    border: 1px solid;
    border-radius: 25px;
}

#myBar {
    width: 0;
    height: 20px;
    background-color: #1B4D3E;
    text-align: center;
    line-height: 20px;
    color: white;
    border-radius: 25px;
}

.custom-title {
    color: red;
}



#areaSelect option:checked,
#subAreaSelect option:checked {
    /*background-color: #183F37;*/
    border: 1px solid #9BBE1D;
    /*color: #FFF9F0;*/
}

#areaSelect option:hover,
#subAreaSelect option:hover {
    /*background-color: #9BBE1D;*/
    border: 1px solid #9BBE1D;
}


#areaSelect,
#subAreaSelect {
    border: none;
    height: 337px;
}

::-webkit-scrollbar {
    width: 4px;
    margin-left: 10px;
}

/* Background of the scrollbar track */
::-webkit-scrollbar-track {
    background: #FFFCF7;
}

#sidePanel::-webkit-scrollbar-track {
    background: #FFF9F0;
}

/* Background of the draggable scrollbar thumb */
::-webkit-scrollbar-thumb {
    background: #183F37;
    border-radius: 4px;
}

/* Hover effect for the scrollbar thumb */
::-webkit-scrollbar-thumb:hover {
    background: #183F37;
}

#areaSelect option,
#subAreaSelect option {
    cursor: pointer;
    margin-bottom: 8px;
    border: 1px solid #FFFCF7;
    height: 41px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    padding-left: 5px;
    font-size: 12px;
    font-weight: 400;
    line-height: 28px;
    text-align: left;
    color: #183F37;
    background-color: #FFFCF7;
    margin-right: 5px;
}

#areaSelect:focus,
#subAreaSelect:focus {
    outline: black;
}

.highlighted {
    border: 1.5px solid #9BBE1D !important;
}

.custom-popup {
    position: absolute;
    pointer-events: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.popup-content {
    position: relative;
}

.popup-header {
    display: flex;
    justify-content: space-between;
}

.close-btn {
    cursor: pointer;
    font-size: 18px;
    padding: 3px;
}

.statsName {
    font-size: 16px;
    padding: 5px;
}

.custom-popup .set-view-btn {
    background: none;
    border: none;
    color: black;
    font-size: 16px;
    cursor: pointer;
    margin-right: 8px;
}

.custom-popup .set-view-btn:hover {
    color: red;
}

/*!*You can use [title] selector as well*!*/
/*[data-title] {*/
/*    position: relative;*/
/*    cursor: help;*/
/*}*/

/*[data-title]:hover::before {*/
/*    content: attr(data-title);*/
/*    position: absolute;*/
/*    bottom: -26px;*/
/*    display: inline-block;*/
/*    padding: 3px 6px;*/
/*    border-radius: 5px;*/
/*    background: #1d1b31;*/
/*    color: #fff;*/
/*    font-size: 12px;*/
/*    font-family: sans-serif;*/
/*    white-space: nowrap;*/
/*    z-index: 5;*/
/*}*/
/*[data-title]:hover::after {*/
/*    content: '';*/
/*    position: absolute;*/
/*    bottom: -10px;*/
/*    left: 8px;*/
/*    display: inline-block;*/
/*    color: #fff;*/
/*    border: 8px solid transparent;*/
/*    border-bottom: 8px solid #000;*/
/*}*/

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.floating-label {
    position: relative;
}

.floating-label input,
.floating-label select,
.floating-label input:focus,
.floating-label select:focus {
    width: 100%;
    padding-top: 13px;
    border: none;
    background-color: #30544C;
    border-radius: 5px;
    color: #FFF9F0;
    font-weight: 400;
    font-size: 12px;
    position: relative;
}

.floating-label label {
    position: absolute;
    top: 0.5rem;
    /* Adjust this value to lower the label */
    left: 1rem;
    padding: 0 0.5rem;
    background-color: #30544C;
    font-size: 16px;
    transition: all 0.2s ease-in-out;
    pointer-events: none;
}

.floating-label input:focus+label,
.floating-label input:not(:placeholder-shown)+label,
.floating-label select:focus+label,
.floating-label select:not([value=""])+label {
    font-size: 8px;
    color: #FFF9F0;
    font-weight: 700;
    text-align: left;
}

.floating-label input:focus+label,
.floating-label input:not(:placeholder-shown)+label {
    top: 0.3rem;
    left: 0.3rem;
}

.floating-label select:focus+label,
.floating-label select:not([value=""])+label {
    top: 0.3rem;
    left: 0.5rem;
}

.floating-label input:focus,
.floating-label select:focus {
    outline: none;
    border-color: #666;
}

#editableStat {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 45px;
    color: #183F37;
}

#squareArea,
#buildingsHeight,
#resBuildings,
#resBuildingsArea,
#resBuildingsConfidence,
#nonResBuildings,
#nonResBuildingsArea,
#nonResBuildingsConfidence,
#rural,
#urban,
#suburban {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 23px;
    color: #183F37;
    padding-bottom: 15px !important;
}

#sidePanel h6 {
    font-size: 20px;
    font-weight: 700;
    line-height: 19px;
    font-family: 'Barlow Condensed', sans-serif;
    color: #183F37;
}
.leaflet-top {
    top: 30px !important;
}

.popup-tabs {
    display: flex;
    justify-content: space-around;
    background-color: #FFF9F0;
    /* background-color: #f0f0f0; */
    padding: 5px;
}

.popup-tab {
    cursor: pointer;
    padding: 5px 10px;
    border: none;
    background: none;
    font-weight: bold;
    color: #9FABA2;
}

.popup-tab.active {
    /* background-color: #ccc; */
    background-color: #FFF9F0; 
    border-bottom: 2px solid #9BBE1D;
    color: #183F37;
    /* border-bottom: 2px solid #0000cd; */
}

.gray-screen {
    position: absolute;
    z-index: 500;
    width: 100%;
    height: 100vh;
    justify-content: center;
    align-items: center;
    background: rgb(105, 112, 119, 0.5);
    left: 37px;
    display: none;
}

.gray-screen > p {
    color: var(--color-base-beige);
}

.map-image {
    position: absolute;
    z-index: 450;
    width: 100%;
    height: 100vh;
    background-image: url('../images/map_cover.png');
    background-size: 96% 96%;
    background-repeat: no-repeat;
    background-position: center center;
    left: 37px;
    top: 19px;
    display: none;
}

#loading-text {
    display: inline-block;
    color: #545454;
    font-size: 1.125em;
    font-weight: 400;
    line-height: normal;
    text-align: center;
    font-family: 'Mulish', sans-serif;
    word-wrap: break-word;
    margin: 0;
    padding: 0;
}

#loading-dot::after {
    display: inline-block;
    animation: dotty steps(1,end) 1s infinite;
    content: '';
}

@keyframes dotty {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
}