/* For the catalog app */
html, body, #viewDiv {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", "Helvetica Neue", "Arial", sans-serif;
}
.group-title {
    cursor: pointer;
    font-weight: bold;
    padding: 5px;
    background-color: #f0f0f0;
    border: 1px solid #ddd; /* Separation between groups */
    margin: 2px 0; /* Space between groups */
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Center items vertically */
}
.group-title:hover {
    background-color: #d0d0d0;
}
.icon {
    margin-right: 8px; /* Space between icon and title */
    font-size: 20px; /* Larger icon size */
}
.group-title .icon {
    font-size: 13px;
    color: #333;
}

 .layer-item {
    padding: 2px 0;
    cursor: pointer;
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Center items vertically */
    /*
                justify-content: space-between;
    */
}
.hidden {
    display: none;
}
#catalogContainer {
    overflow-y: auto;
    max-height: 500px;
    width: 30em;
    border: 1px solid #ccc;
    background-color: #fff;
    padding: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Optional: shadow for aesthetics */
    opacity: .2;
    border-radius: 5px;
}
#catalogContainer:hover {
    opacity: 1.0;
}
/*
#catalogContainer.pinned {
*/
.pinned {
    opacity: 1 !important;
}
.layerlist {
    padding-left: 20px; /* Indentation for layer items */
    /*
                overflow: auto;
                height: 100%;
   */
}
.layerLabel {
    font-weight: bold;
    margin-left: .5em;
    display: inline;
}
#vScale {
    padding: 2px;
    /*
    opacity: 0.5;
   */
    background-color: white; //rgba(255,255,255,0.8);
    color: black;
    position: relative;
    margin-left: .1em;
}
.esri-scale-bar__bar-container {
    font-size: 14px;
    padding: 1px;
}
#vScale, .esri-scale-bar__bar-container {
    bottom: 15px;
}
.toggle-labels {
    cursor: pointer;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    text-align: center; /* Center the icon */
    line-height: 20px; /* Center the text vertically */
    margin-left: 5px;
    float: right;
}
.label-active {
    background-color: #d1fff1;
}
.legend {
    margin-top: 5px;
    font-size: 12px; /* Smaller font for the legend */
}
.layer-toggle-icon {
    cursor: pointer;
    font-size: 14px; /* Icon size for toggle */
    margin-right: .1em;
    float: right;
    vertical-align: middle;
}
.slider {
    width: 65%;
}
.slider-label {
    width: 2em;
    display: inline-block;
    margin-left: 0.5em;
    margin-right: 1em;
    text-align: right;
}
.zoomto {
    padding: .2em;
    background-color: blue;
    color: white;
    border-radius: 15%;
    border-color: darkblue;
    margin-top: .5em;
    margin-bottom: .5em;
    float: left;
}
.zoomto:hover {
    color: blue;
    background-color:white;
}
.top-row {
    overflow: auto;
}

.custom-checkbox {
    position: relative;
    display: inline-block;
    cursor: pointer;
    font-size: 24px;
}

input[type="checkbox"] {
    opacity: 0; /* Hide the default checkbox */
    position: absolute;
    cursor: pointer;
}

.checkmark {
    width: 25px;
    height: 25px;
    background-color: white;
    /*
    border: 2px solid #ccc;
    border-radius: 4px;
   */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.checkmark:before {
    content: '\f070'; /* Font Awesome closed eye icon (fa-eye-slash) */
    font-family: "Font Awesome 5 Free";
    font-weight: 900; /* For solid icons */
    font-size: 12px;
    color: #555; // Default color
}

input[type="checkbox"]:checked + .checkmark:before {
    content: '\f06e'; /* Font Awesome open eye icon (fa-eye) */
    color: #000; /* You can customize the color for the checked state */
}

input[type="checkbox"]:checked + .checkmark {
    border-color: #4caf50; /* Optional: Change border color on checked */
    background-color: #e0ffe0; /* Optional: Change background on checked */
    border: 2px solid #ccc;
    border-radius: 4px;
}

.pinnedPushpin {
position: absolute; /* Position the pushpin absolutely */
top: 10px; /* Distance from the top */
right: 10px; /* Distance from the right */
color: red; /* Make the thumbtack red */
cursor: pointer; /* Change cursor to pointer on hover */
transition: transform 1s, color 0.3s; /* Smooth transitions */
font-size: 20px; /* Set the size of the thumbtack */
}

.pinnedPushpin.pinned {
transform: rotate(45deg); /* Rotate the pin 45 degrees when pushed */
}

i.pinnedPushpin:hover {
    color: #ff22bb !important; /* Make the pin lighter red on hover */
    background-color: pink;
    border: 2px solid blue !important;
    border-radius: 2px !important;
}
