:root {
    --bg: #f7f5f3;
    --panel: #f7f5f3;
    --card: #eae5e0;
    --card-hover: #ded7d1;
    --line: #d6d5d3;   
    --line-2: #c5c3c0;
    --text: #1d201f;
    --text-2: #4a4d4b;
    --muted: #707170;
    --subtle: #9a9b9a;
    --lime: #ffbb01;
    --lime-glow: rgba(255, 187, 1, 0.35);
    --warning: #ffbb01;
    --blue: #60b8ff;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #3B3635;
        --panel: #302c2b;
        --card: #272322;
        --card-hover: #1f1b1a;
        --line: #504847;
        --line-2: #635b59;
        --text: #EEE3E0;
        --text-2: #d1c7c4;
        --muted: #C0B6B1;
        --subtle: #8a8280;
        --lime: #ffbb01;
        --lime-glow: rgba(255, 187, 1, 0.4);
        --warning: #ffbb01;
    }
}

html, body {
    min-height: 100vh;
    margin: 0;
}

body {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 500;
    font-size: 1.3rem;
    background-color: var(--bg);
    background-image: 
        linear-gradient(90deg, var(--line-2) 1px, transparent 1px),
        linear-gradient(0deg, var(--line-2) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    box-sizing: border-box;
}

#page {
    width: 650px;
    background: var(--panel);
    color: var(--text);
    padding: 2em;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

h1 {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    margin: 0 0 1em 0;
    padding: 0;
    color: var(--text);
}

#messaging {
    color: var(--subtle);
    margin-bottom: 1em;
    font-size: 1.1rem;
    font-weight: 500;
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 0.1rem;
    margin-bottom: 2.7rem;
}

.form-grid .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
}

.form-grid .label {
    color: var(--text);
    font-weight: 500;
}

#lat, #lon {
    font-family: 'Albert Sans', monospace;
    font-weight: 500;
    font-size: 0.9rem;
    width: 12em;
    background-color: var(--bg);
    color: var(--text);
    border: 1px solid var(--line);
    padding: 0.4em;
    border-radius: 4px;
}

#radius {
    font-family: 'Albert Sans', monospace;
    font-weight: 500;
    font-size: 0.9rem;
    width: 13.2em;
    color: var(--muted);
    border: solid var(--line) 1px;
    background-color: var(--bg);
    padding: 0.4em;
    border-radius: 4px;
}

.cardArea {
    position: relative;
}

#cardGps, #cardGo {
    border: none;
    background: transparent;
    width: 100%;
    height: auto;
}

.contentSection {
    margin: 1.2rem 0;
    line-height: 1.5;
    font-weight: 500;
}

.contentSection p {
    margin: 0 0 0.8rem 0;
    font-weight: 500;
}

.actionGroup {
    margin: 1.5rem 0;
    text-align: center;
}

.actionButton {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 500;
        font-size: 1.2rem;
    border: solid var(--line-2) 1px;
    border-radius: 8px;
    width: 100%;
    padding: 0.8rem 0;
    cursor: pointer;
    box-sizing: border-box;
}

.buttonGreen {
    background-color: var(--lime) !important;
    color: #1d201f !important;
    border: 1px solid var(--line-2) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.buttonGreen:hover {
    background-color: var(--lime-glow) !important;
    border-color: var(--lime) !important;
}

.buttonGray {
    background-color: var(--card) !important;
    color: var(--text-2) !important;
    border-color: var(--line-2) !important;
}

.buttonGray:hover {
    background-color: var(--card-hover) !important;
}

#footer,
#footer p {
    color: var(--subtle);
    font-size: 1rem !important;
    line-height: 1.5;
    text-decoration: none;
    font-weight: 400;
}

#footer {
    margin-top: 2rem;
}

#footer a {
    color: var(--subtle);
    text-decoration: underline;
}

#footer a:hover {
    text-decoration: wavy underline;
}

@media only screen and (max-device-width: 650px) {
    body {
        align-items: center;
        padding: 1rem;
    }

    #page {
        width: 100%;
        margin: auto;
        border-radius: 12px;
        border: 1px solid var(--line);
        padding: 1.5rem;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }
}