:root {
    --red: #BF092F;
    --navy: #132440;
    --dark-turquoise: #16476A;
    --light-turquoise: #3B9797;
    /* background: linear-gradient(180deg, #0f1b2a 0%, #182e44 100%); */
    --font-headline: "Playfair Display", Georgia, serif;
    --font-body: "Source Sans Pro", "Inter", sans-serif;
    --text-max-width: 65ch;

}

body {
    /* background: linear-gradient(180deg, #0f1b2a 0%, #182e44 100%); */
    color: #ffffff;
    min-height: 100vh;
}

footer {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    font-size: 0.7rem;
    line-height: 1.0;
    letter-spacing: -0.05em;
    color:#fff;
    text-align: center;

    padding: 2rem 1rem 3rem;

}

h2 {
    font-family: var(--font-headline);
    text-align: center;
}


.daily-logo {
    /* top: 0; */
    margin: 0.5rem auto;
    /* margin-bottom: 0.5rem; */
    width: 300px;
    padding: 1rem;

}

.daily-logo img {
    height: auto;
    max-width: 100%;
    cursor: pointer;
    width: clamp(140px, 25vw, 300px);
    /* filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease; */
}



.container {
    display: flex;
    flex-direction: column;
    align-items: center;

}

.ward {
    fill: #b6acd1;
    stroke: #333;
    stroke-width: 2;
    cursor: pointer;
    transition: fill 0.2s ease;
}

.ward:hover {
    fill: #501e4c;
}


#block-location {
    margin-top: 5px;
}

@media (max-width: 600px) {

    .daily-logo img {
        width: 90vw;
        max-width: 500px
    }


}

.ward.active {
    fill: #501e4c;

    transition: 0.25s ease;
}


body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    color: #f7f7f7;
}

.title {
    font-family: var(--font-headline);
    font-weight: 400;
    font-size: clamp(1.8rem, 5vw, 4rem);
    line-height: 1.1;
    text-align: center;
    margin: 1rem auto 2rem auto;
    max-width: 22ch;
    color: #FFF;
    padding: 2rem;
    border-radius: 20px;
        background: rgba(26, 24, 30, 0.737);

    /* text-transform: uppercase; */
}

.story-block {
    max-width: var(--text-max-width);
    margin: 1rem auto;
    font-size: 1.05rem;
    color:#fff;
    line-height: 1.7;
    font-family: var(--font-body);
    letter-spacing: -0.07em;
    font-weight: 200;
    opacity: 1;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    padding: 50px;
    background: rgba(26, 24, 30, 0.737);
    border-radius: 20px;
}

.story-block.visible {
    opacity: 1;
    transform: translateY(0);
}


.story-block p {
    margin: 1.4rem 0;
    hanging-punctuation: first;
    text-indent: 0;
    letter-spacing: 0.01em;
}

.story-block a {
   color: var(--light-turquoise);
}


.byline {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-align: center;
    opacity: 0.7;
    margin-bottom: 2rem;
    font-weight: 300;
}


#ward-prompt {
    font-family: var(--font-headline);
    font-weight: 200;
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#ward-legend.visible {
    opacity: 1;
    transform: translateY(0);
}

.story-image {
    width: 100%;
    max-width: var(--text-max-width);
    margin: 0 auto 2rem auto;
    text-align: center;
}

.story-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    margin: 0 auto;
}

#tooltip {
    position: absolute;
    padding: 6px 10px;
    background: rgba(0,0,0,0.3);
    color: white;
    border: 2px solid #fff ;
    border-radius: 20px;
    font-size: 0.75rem;
    pointer-events: none;
    opacity: 0;
    z-index: 9999;
    transition: opacity 0.15s ease;
    font-family: var(--font-body);
}


#map-container {
    width: aut;
    margin: 0 auto;
    padding: 5px;  
    margin: 2rem auto;
    height: 100%;
    z-index: 999;
    display: block;
    max-width: 650px;
    border-radius: 20px;

}


#ward-map{
       width: auto;
        max-width: auto; 
    height: 100%; 
    display: block; 
}

.map-card {
    max-width: var(--text-max-width);
    margin: 1.5rem auto 0 auto;
    padding: 1rem 2rem;
    border-radius: 10px;
    backdrop-filter: blur(6px);
    text-align: center;
    color: #fff;
    font-family: var(--font-headline);
    background: rgba(26, 24, 30, 0.737);
}

#mapbox-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
#scroll-arrow {
    text-align: center;
    margin: 0px auto;

    display: none;
    animation: bounce 3s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(2px);
    }
}


#scroll-arrow svg {
    display: block;
    margin: 0 auto;
}

#scroll-arrow p {
    font-size: 16px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);

}