﻿.mosaic-container {
    width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .mosaic-container {
        width: 60%;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Logos */
.logo-left {
    height: 60px;
    width: auto;
}

.logo-right {
    height: 55px;
    width: auto;
}

/* Filter Band Colors */
.filter-band {
    background-color: rgb(0, 75, 140);
}

.border-white-50 {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

@media (min-width: 992px) {
    .border-start-lg {
        border-left: 1px solid rgba(255, 255, 255, 0.2);
    }
}

/* Monopoly Card Styling */
.monopoly-card {
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .monopoly-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
    }

.tracking-wide {
    letter-spacing: 1px;
}

/* Card Body Sizing & Images */
.viz-body {
    min-height: 220px;
}

.viz-bg {
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

/* Overlay to darken image slightly so the big text is readable */
.viz-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    transition: background 0.3s ease;
}

/* Big floating text styling */
.readout-text {
    font-size: 4rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
    transition: transform 0.3s ease;
}

/* Hover Animations for the card body */
.monopoly-card:hover .viz-bg {
    transform: scale(1.05); /* Slight zoom on image */
}

.monopoly-card:hover .viz-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%);
}

.monopoly-card:hover .readout-text {
    transform: scale(1.05); /* Slight zoom on text */
}















/* =========================================================================
   ACCESSIBILITY FIXES (WCAG 2.2 AA)
   ========================================================================= */

/* Visually hide content while keeping it accessible to screen readers */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    color: #ffffff;
    background-color: #000000;
}

.visually-hidden-focusable:focus,
.visually-hidden-focusable:focus-within {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
}

/* 
  High Contrast Focus Indicators (WCAG 2.4.11 / 2.4.7) 
  Helps keyboard users clearly see what element has focus.
*/
button:focus-visible,
a:focus-visible,
.card-link:focus-visible .monopoly-card {
    outline: 3px solid #ffc107 !important; /* High contrast amber */
    outline-offset: 4px !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.5) !important;
}

/* =========================================================================
   THEME COLORS & DYNAMIC CONTRAST RULES
   ========================================================================= */

/* Medium Gray - Requires Dark Text for 4.5:1 ratio */
.theme-default,
.bg-default {
    background-color: RGB(150, 150, 150) !important;
    color: #000000 !important;
    border: 1px solid #7a7a7a !important; /* Darker border for button definition */
}


.theme-landuse,
.bg-landuse {
    background-color: #0D4D8D !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important; /* Darker border for button definition */
}

/* Avocado Green - Requires Dark Text for 4.5:1 ratio */
.theme-population,
.bg-population {
    background-color: #A2CE61 !important;
    color: #0b3d1b !important; /* Very dark green to pass contrast */
    border: 1px solid rgb(124, 167, 56) !important;
}

/* Kelly Green - Dark enough for White Text (Passes ~4.4:1 ratio natively) */
.theme-jobs,
.bg-jobs {
    /* Slightly darkened to strictly pass WCAG AA (4.5:1 vs 4.4:1) */
    background-color: #007B3F !important;
    color: #ffffff !important;
    border: 1px solid rgb(0, 80, 40) !important;
}

/* Carolina Blue - Requires Dark Text for 4.5:1 ratio */
.theme-housing,
.bg-housing {
    background-color: #6CB2E2 !important;
    color: #00284d !important; /* Dark blue to pass contrast */
    border: 1px solid rgb(69, 139, 186) !important;
}

/* Override standard Bootstrap hover for our custom buttons */
.filter-btn:hover {
    filter: brightness(0.9);
}





/* =========================================================================
   CARD ADJUSTMENTS
   ========================================================================= */

/* Make overlay slightly darker at the top to guarantee white text contrast on light images */
.viz-overlay {

    transition: background 0.3s ease;
}

.monopoly-card:hover .viz-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.95) 100%);
}

.readout-text {
    font-size: 4rem;
    /* Increased shadow opacity for better readability (WCAG AA 1.4.3) */
    text-shadow: 2px 2px 6px rgba(0,0,0,1);
    transition: transform 0.3s ease;
}