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

#spinner {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: none;
    /*background: rgba(0,0,0,0.4);*/
    z-index: 10000;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    pointer-events: none;
}

.spinner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.loader {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

.spinner-text {
    margin-top: 10px;
    font-weight: bold;
    color: white;
    font-size: 16px;
    text-align: center;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

path.leaflet-interactive:focus {
    outline: none;
}

#map {
    width: 100%; height: 100%; position: relative; z-index: 1;
}

/* Google search box styling (top-left) */
#googleSearchContainer {
    position: absolute; top: 10px; left: 60px; z-index: 2000;

}
.pac-container {
    z-index: 99999 !important;
}
#includeBuildingsContainer {
    position: absolute; top: 60px; left: 60px; z-index: 2;

    display:inline-block;
    background: rgba(255,255,255,0.8);
    padding: 4px 6px;
    border: 1px solid #333;
    border-radius: 4px;
    font-family: sans-serif;
    font-size: 14px; z-index: 1500;
}

#includeRoadsContainer{
    position: absolute; top: 90px; left: 60px; z-index: 2;

    display:inline-block;
    background: rgba(255,255,255,0.8);
    padding: 4px 6px;
    border: 1px solid #333;
    border-radius: 4px;
    font-family: sans-serif;
    font-size: 14px; z-index: 1500;
}

/* infoBox (top-right) */
#infoBox {
    position: relative;
    display:inline-block;
    width:100%;
    background: rgba(255,255,255,0.8);
    padding: 8px 12px;
    border: 1px solid #333;
    border-radius: 4px;
    font-family: sans-serif;
    font-size: 14px; z-index: 1500;
}

/* Controls container (bottom-right) */
#verticalControl {
    position: absolute;
    bottom: 25px;
    right: 10px;
    background: rgba(255,255,255,0.8);
    padding: 8px 12px;
    border: 0 solid #333;
    border-radius: 10px;
    font-family: sans-serif;
    font-size: 14px;
    z-index: 1500;
    max-width: 350px;
}

/* Single tile mode buttons (center) */
#buttonContainer {
    text-align: center;
    width:auto;
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000; display: none;
}

#buttonContainer button {
    margin: 2px;
}

#closeStl {
    position: fixed; top: 10%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000; display: block;
}

/* STL viewer modal container */
#stl_cont {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: transparent; border: 2px solid #333;
    z-index: 2000; display: none; overflow: hidden;
}
#stl_controls {
    position: absolute; top: 5px; right: 5px; z-index: 2100;
}
#stl_controls button {
    margin: 0.2em;
}



/* Credits */
#creditBox {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 10px;
    border: 1px solid #333;
    border-radius: 4px;
    font-family: sans-serif;
    font-size: 12px;
    z-index: 1500;
}

/* The bounding rectangle handle for multi-tiles */
.drag-handle-icon {
    display: inline-block; background: #ffc;
    border: 2px dashed #333; padding: 3px 8px;
    font-family: sans-serif; font-size: 12px;
    cursor: move; /* show move cursor */
}

/* BASEMAP SELECTOR CONTROL (top-right) */
#basemapControl {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1600;
    font-family: sans-serif;
}
#basemapControl .bm-icon {
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 8px;
    border: 1px solid #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: inline-block;
}
#basemapOptions {
    display: none;
    margin-top: 4px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #333;
    border-radius: 4px;
    padding: 4px;
}
#basemapOptions div {
    padding: 2px 4px;
    cursor: pointer;
}
#basemapOptions div:hover {
    background: #eee;
}