body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#map {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    transition: opacity 0.5s ease;
}

#map.hidden {
    opacity: 0;
    pointer-events: none;
}

.map-legend {
    color:#333333;
    opacity:0.9;
    padding:10px;
    background:white;
    border: 2px solid #ccc;
    font-size: 15px;
}

.blue-circle {
    width: 11px;
    height: 11px;
    background-color: deepskyblue;   /*#67a9cf;*/
    border-radius: 50%; 
    display: inline-block;
}
.red-circle {
    width: 10px;
    height: 10px;
    background-color: crimson;
    border-radius: 50%; 
    display: inline-block;
}

.magenta-circle {
    width: 12px;
    height: 12px;
    background-color: magenta;
    border-radius: 50%; 
    display: inline-block;
}

.grey-circle {
    width: 15px;
    height: 15px;
    background-color: black;
    opacity: 0.4;
    border-radius: 50%; 
    display: inline-block;
}

.triangle-up {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 12px solid #a6611a;
}

.square {
    width: 10px;
    height: 10px;
    background: #ef8a62;
    opacity: 0.7;
    display: inline-block;
}

.circle-letter-icon {
    height: 20px;
    width: 20px;
    border: 2px solid #fff; /* Border color */
    border-radius: 50%; /* Makes it a circle */
    background-color: darkorange;

    /* Center the letter */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Style the letter */
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
}
.circle-t-orange { background-color: darkorange; }
.circle-v-purple { background-color: purple; }
.circle-red { background-color: crimson; } 

.story-section .container {
    padding-left: 0 !important;
    margin-left: 40px !important;
}

.story-container {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.story-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 50px 0;
    pointer-events: none;
}

.chart-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    pointer-events: auto;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background: linear-gradient(135deg, #6e7074 0%, #1d1e1e 100%);
    position: relative;
    z-index: 3;
}

.chart-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    max-width: 1000px;
    width: 90%;
}

.chart-container h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 700;
    text-align: center;
}

.chart-container p {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 20px;
}

.story-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-width: 500px;
    pointer-events: auto;
    transition: opacity 0.5s ease, transform 0.5s ease;
}
@media screen and (min-width: 731px) and (max-width: 950px) {
    .story-content {
      padding: 20px;
      max-width: 400px;
    }
}

@media screen and (min-width: 480px) and (max-width: 730px) {
    .story-content {
      padding: 20px;
      max-width: 300px;
    }
}

.story-content.fade-out {
    opacity: 0.3;
    transform: translateY(20px);
}

.story-content h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
}

.story-content h3 {
    color: #34495e;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.2rem;
}

.story-content p {
    color: #34495e;
    line-height: 1.6 /*1.8*/;
    font-size: 1rem /*1.1rem*/;
    margin-bottom: 18px;
}

.stat-highlight {
    background: #e8f4f8;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    border-left: 4px solid #3498db;
}

.stat-highlight strong {
    color: #2c3e50;
    font-size: 1.3rem;
}

.spacer {
    height: 50vh;
}

#intro {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
}

#intro .content {
    text-align: center;
    color: white;
    padding: 40px;
    max-width: 800px;
}

#intro h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

#intro p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.arrow-down {
    width: 30px;
    height: 30px;
    border-left: 3px solid white;
    border-bottom: 3px solid white;
    transform: rotate(-45deg);
}

.form-select {
    font-size: 1.1rem;
    padding: 10px;
    margin-bottom: 20px;
}

.stat-box {
    background: #f3f3f3; /*#f8f9fa;*/
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.stat-box h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.stat-box .value {
    font-size: 2rem;
    font-weight: 700;
    color: #3498db;
}

.stat-box .label {
    color: #474f50;
    font-size: 1rem;
}

.alert-brown, .btn-brown {
    background-color: #524037;
    color: #fff;
    border-radius: 10px;
}
.alert-brown p { color: #fff; }
.alert-brown h1, .alert-brown div, .alert-brown span  { color: lemonchiffon; }

.alert-orange { background: #f1a340; color: #000; opacity: 0.8; }
.alert-purple { background: #998ec3; color: #000; opacity: 0.8; }

.progress {
    background-color: #fff;
}
