
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: url('images/background.png') no-repeat center center;
    background-size: cover;
    overflow: hidden;
    -webkit-animation: pixelShift 60s ease-in-out infinite;
    animation: pixelShift 60s ease-in-out infinite;
}

/* Anti-burn-in: slow pixel drift, ~4px movement over 45s cycle */
@-webkit-keyframes pixelShift {
    0%   { -webkit-transform: translate(0px, 0px); transform: translate(0px, 0px); }
    25%  { -webkit-transform: translate(4px, -3px); transform: translate(4px, -3px); }
    50%  { -webkit-transform: translate(-3px, 4px); transform: translate(-3px, 4px); }
    75%  { -webkit-transform: translate(-4px, -2px); transform: translate(-4px, -2px); }
    100% { -webkit-transform: translate(0px, 0px); transform: translate(0px, 0px); }
}
@keyframes pixelShift {
    0%   { transform: translate(0px, 0px); }
    25%  { transform: translate(4px, -3px); }
    50%  { transform: translate(-3px, 4px); }
    75%  { transform: translate(-4px, -2px); }
    100% { transform: translate(0px, 0px); }
}

body {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
}

/* Slideshow */
.slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    opacity: 0;
    -webkit-transition: opacity 1.2s ease-in-out;
    transition: opacity 1.2s ease-in-out;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* LY comparison badge */
.stat-compare {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    font-size: 17px;
    font-weight: bold;
    margin-top: 6px;
    min-height: 24px;
}

.stat-compare .ly-label {
    margin-left: 5px;
}

.stat-compare.positive { color: #2a7a2a; }
.stat-compare.negative { color: #b71c1c; }
.stat-compare.neutral  { color: #888; font-weight: normal; }

.stat-footnote {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 4px;
    font-style: italic;
}

.stat-compare .ly-label {
    font-size: 13px;
    font-weight: normal;
    opacity: 0.7;
    margin-left: 5px;
}

/* Slide 3 has no chart — add vertical padding to fill the space */
#slide-staff .stats {
    margin-top: 80px;
    margin-bottom: 80px;
}

/* Slide 1: compress h1 gap and give recovered space to the chart */
#slide-national h1 {
    margin-bottom: 24px;
}
#slide-national .chart-container {
    height: 480px;
}

        /* Main glass panel */
 .dashboard {
    background: rgba(255, 255, 255, 0.88); /* slightly more opaque as fallback when blur unavailable */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 80px 120px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    max-width: 1400px;
    width: 90%;
} 

h1 {
    font-size: 4.5em;
    margin-bottom: 60px;
    color: #0A7E89;
    font-family: 'Merriweather', 'Open Sans';
    /* font-family:sans-serif;  */
    font-weight: 700;
}

.stats {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-around;
    justify-content: space-around;
    margin-top: 20px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 75px;
    font-weight: bold;
    color: #0b3c5d;
}

.stat-icon {
    font-size: 0.85em;
}

.stat-label {
    font-size: 25px;
    color: #0b3c5d;
    font-weight: bold;

    margin-top: 4px;
}

.ranking {
    color: #0b3c5d;
}

.last-updated {
    position: absolute;
    bottom: 20px;
    right: 30px;
    font-size: 0.9em;
    color: #333;
    background: rgba(255, 255, 255, 0.6);
    padding: 8px 14px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}


.chart-title {
    font-size: 2em;
    font-family: 'Merriweather', serif;
    font-weight: bold;
    color: #0A7E89;
    text-align: center;
    margin-top: 16px;
    margin-bottom: 24px; /* space between title and canvas so elbow labels don't overlap */
}

.chart-container {
    height: 380px;
    margin-top: 0;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
}

#officesChart {
    height: 100% !important;  /* ensures canvas fills the container */
}


 .dashboard {
    max-width: 1300px;
    width: 85%;
    margin: auto;
    padding: 30px 40px;
    box-sizing: border-box;
    /* transform: scale(1.5);          50% bigger */
    /* width: 66.66%;                   1 / 1.5 to compensate scaling */


} 


