body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html,
body,
#viewDiv {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0
}

.esri-ui-top-left,
.esri-attribution {
    display: none !important
}

#spinBtn {
    position: absolute;
    bottom: 10px;
    left: calc(50% - 40px);
    z-index: 99;
    padding: 8px 12px;
    background: white;
    width: 80px;
    color: black;
    border: 3px solid black;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .3)
}

#splash {
    position: absolute;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #1e1e1e;
    color: white;
    font-family: Arial, sans-serif
}

#splash h1 {
    font-size: 2em;
    margin-bottom: 20px
}

#spinner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    animation: spin 1s linear infinite
}

.error {
    background: white;
    color: black;
    font-size: 20px;
    overflow: hidden
}

@keyframes spin {
    from {
        transform: rotate(0)
    }

    to {
        transform: rotate(360deg)
    }
}

#disclaimer {
    position: absolute;
    inset: 0;
    z-index: 101;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.disclaimer-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: fadeIn 0.3s ease-out;
}

.disclaimer-content h2 {
    margin-top: 0;
    color: #333;
    font-size: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.disclaimer-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
    text-align: left;
}

#closeDisclaimer {
    background: #3D81C3;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

#closeDisclaimer:hover {
    background: #2b6196;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#home-btn {
    box-sizing: border-box;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: white;
    border: 3px solid black;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    color: #1a5e7b;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 0;
}

#home-btn:hover {
    background: #f0f0f0;
}

#info-panel {
    position: absolute;
    top: 65px;
    left: 20px;
    z-index: 102;
    background: white;
    border: 3px solid black;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

#info-panel.expanded {
    width: 280px;
    height: auto;
    border-radius: 12px;
}

#info-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    color: #1a5e7b;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

#info-toggle svg {
    width: 26px;
    height: 26px;
}

#info-panel.expanded .icon-question {
    display: none;
}

#info-panel.expanded .icon-close {
    display: block !important;
}

.info-content {
    padding: 15px;
    display: none;
    font-family: Arial, sans-serif;
}

#info-panel.expanded .info-content {
    display: block;
}

.info-content h3 {
    margin-top: 5px;
    margin-right: 30px;
    /* Space for the close button */
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #333;
    font-weight: normal;
}

.info-item {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.info-item strong {
    display: block;
    margin-bottom: 2px;
    font-size: 0.95rem;
    color: #444;
}

.info-item span {
    font-size: 0.9rem;
    color: #666;
}

.error {
    text-align: left;
    color: #555;
}

.error h1 {
    margin-top: 0;
}