body {
    background-color: black;
    background-image: url('glawrence_sanfran.jpg');
    background-repeat: no-repeat;
    background-position: center;
}

main {
    width: 1149px;
    height: 720px;
    text-align: center;
    margin: 0 auto;
    padding: 10px;
}

#leftColumn {
    width: 400px;
    height: 700px;
    float: left;
    text-align: left;
    padding: 10px;
    background: rgba(255,255,255,0.5);
    border: 1px solid black;
}

#rightColumn {
    width: 700px;
    height: 700px;
    float: right;
    text-align: left;
    padding: 10px;
    margin-left: 5px;
    background: rgba(255,255,255,0.5);
    border: 1px solid black;
}

label {
    display: inline-block;
    width: 100px;
    text-align: right;
    padding-right: 5px
}

.errorLabel {
    width: 300px;
    text-align: left;
    color: red;
    font-weight: bold;
}

.spnVisCheck {
    width: 300px;
}

button {
    margin-left: 5px;
}

#map {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    margin-top: 8px
}

.collections-pane {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 12px;
    align-items: start
}

.scrollbox {
    max-height: 420px;
    overflow: auto;
    border: 1px solid #1e2746;
    border-radius: 8px;
    padding: 6px
}

.detailsbox {
    min-height: 120px;
    border: 1px solid #1e2746;
    border-radius: 8px;
    padding: 8px;
    white-space: pre-wrap
}

a {
    color: darkblue;
    text-decoration: none
}

a:hover {
    text-decoration: underline
}

/* Collection list items */
.collection-item {
    padding: 6px 4px;
    border-bottom: 1px solid #1e2746;
    cursor: pointer;
    border-radius: 6px;
}

/* Highlight the selected collection */
.collection-item.selected {
    background: lightgray;
    border-color: #2b3a6b;
    outline: 1px solid #3b5bdb;
}

/* ===== Lightbox overlay (click-blocker) ===== */
#busyOverlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(11,16,32,0.72);
    backdrop-filter: blur(2px);
    z-index: 9999;
    pointer-events: all;
}

#busyOverlay.show {
    display: flex;
}

/* ===== Spinner layout ===== */
.ds-spinner {
    position: relative;
    width: 176px; /* overall box width */
    height: 210px; /* room for label */
    text-align: center;
    color: #e7ecf7;
    font-weight: 600;
    user-select: none;
}

/* Both layers use the transparent logo */
.ds-base,
.ds-icons {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 128px;
    height: 128px;
    transform: translateX(-50%);
    background-image: url("searchoursurveys_transparent.png"); /* <- NOTE new file */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Base (frame) stays perfectly still */
.ds-base {
}

/* Only the lens content animates; clipped to a circle */
.ds-icons {
    clip-path: circle(44% at 50% 46%); /* adjust if your lens is offset */
    transform-origin: 50% 50%;
    animation: ds-focus 1.4s ease-in-out infinite;
    opacity: 0.9;
}

/* Label + animated dots */
.ds-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    font-size: 36px;
    letter-spacing: 0.2px;
}

.ds-label .dots::after {
    content: "";
    display: inline-block;
    width: 1.5em;
    text-align: left;
    animation: ds-dots 1.2s steps(3, end) infinite;
}

/* Keyframes */
@keyframes ds-rotate {
    0% {
        transform: translateX(-50%) rotate(-8deg);
    }

    50% {
        transform: translateX(-50%) rotate(8deg);
    }

    100% {
        transform: translateX(-50%) rotate(-8deg);
    }
}

@keyframes ds-focus {
    0% {
        transform: translateX(-50%) scale(0.98);
        filter: blur(1.2px);
        opacity: 0.85;
    }

    50% {
        transform: translateX(-50%) scale(1.02);
        filter: blur(0px);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) scale(0.98);
        filter: blur(1.2px);
        opacity: 0.85;
    }
}

@keyframes ds-dots {
    0% {
        content: "";
    }

    33% {
        content: ".";
    }

    66% {
        content: "..";
    }

    100% {
        content: "...";
    }
}
