/* Copyright (c) 2025 takotime808 */
:root {
    /* Global design variables */
    --primary: #ff6a3e;
    --primaryLight: #ffba43;
    --secondary: #ffba43;
    --secondaryLight: #ffba43;
    --headerColor: #1a1a1a;
    --bodyTextColor: #4e4b66;
    --bodyTextColorWhite: #fafbfc;
    /* 13px - 16px */
    --topperFontSize: clamp(0.8125rem, 1.6vw, 1rem);
    /* 31px - 49px */
    --headerFontSize: clamp(1.9375rem, 3.9vw, 3.0625rem);
    --bodyFontSize: 1rem;
    /* 60px - 100px top and bottom */
    --sectionPadding: clamp(3.75rem, 7.82vw, 6.25rem) 1rem;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

*, *:before, *:after {
    /* prevents padding from affecting height and width */
    box-sizing: border-box;
}

.cs-topper {
    font-size: var(--topperFontSize);
    line-height: 1.2em;
    text-transform: uppercase;
    text-align: inherit;
    letter-spacing: .1em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
    display: block;
}

.cs-title {
    font-size: var(--headerFontSize);
    font-weight: 900;
    line-height: 1.2em;
    text-align: inherit;
    max-width: 43.75rem;
    margin: 0 0 1rem 0;
    color: var(--headerColor);
    position: relative;
}

.cs-text {
    font-size: var(--bodyFontSize);
    line-height: 1.5em;
    text-align: inherit;
    width: 100%;
    max-width: 40.625rem;
    margin: 0;
    color: var(--bodyTextColor);
}


h1 {
    text-align: center;
    margin: 1rem 0;
}

#map {
    width: 100%;
    height: 80vh;
}

#legend {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.legend-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 6px;
}

#legend ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legend-item {
    cursor: pointer;
}

.legend-item.disabled {
    opacity: 0.5;
}

.legend-item.red {
    color: red;
}

.legend-item.red .legend-color {
    background: red;
}

.legend-item.teal {
    color: teal;
}

.legend-item.teal .legend-color {
    background: teal;
}

.legend-item.gold {
    color: gold;
}

.legend-item.gold .legend-color {
    background: gold;
}

.legend-item.orange {
    color: orange;
}

.legend-item.orange .legend-color {
    background: orange;
}

.legend-item.purple {
    color: purple;
}

.legend-item.purple .legend-color {
    background: purple;
}

.hidden {
    display: none;
}

#image-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

#image-popup.hidden {
    display: none;
}

#image-popup .popup-content {
    background: #fff;
    padding: 0.5rem;
    border-radius: 4px;
}

#image-popup img {
    max-width: 300px;
    max-height: 200px;
}