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

h1 {
    margin: 0;
    padding: 20px 20px 5px 20px;
}

#subtitle {
    margin: 0 20px 20px 20px;
    color: #666;
    font-size: 14px;
}

#legendSection {
    margin-left: 20px;
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#normalizationToggle {
    margin-bottom: 20px;
    width: 100%;
}

.toggleButton {
    width: 100%;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    letter-spacing: 0.3px;
}

.toggleButton:hover {
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    border-color: #adb5bd;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.toggleButton:active {
    background: linear-gradient(to bottom, #e9ecef, #dee2e6);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

#summaryStats {
    display: flex;
    justify-content: space-around;
    margin: 0 20px 20px 20px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 5px;
}

.statItem {
    text-align: center;
}

.statItem .statLabel {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.statItem .statValue {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

#heatmapWrapper {
    display: flex;
    margin: 20px;
}

#heatmapSection {
    display: flex;
    flex-direction: column;
}

#heatmapContainer {
    width: 1280px;
    height: 600px;
    border: 1px solid #ccc;
    position: relative;
}

#yAxisLabels {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 100px;
    height: 600px;
    margin-right: 10px;
    padding-right: 10px;
}

#yAxisLabels > div {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 100%;
}

#yAxisLabels > div > div {
    text-align: right;
    font-size: 14px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#xAxisLabels {
    display: flex;
    width: 1280px;
    height: 30px;
    margin-top: 10px;
    justify-content: space-around;
    font-size: 14px;
}

#xAxisLabels div {
    text-align: center;
    font-weight: bold;
}

#legend {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#legendTitle {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

#legendContent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

#legendScale {
    height: 300px;
    width: 30px;
    position: relative;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: linear-gradient(to top, rgba(0, 0, 255, 0.4) 0%, rgba(0, 255, 255, 0.6) 25%, rgba(0, 255, 0, 0.7) 50%, rgba(255, 255, 0, 0.8) 75%, rgba(255, 0, 0, 0.9) 100%);
    flex-shrink: 0;
}

#legendLabels {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 300px;
    font-size: 11px;
    color: #666;
    flex-shrink: 0;
}

#legendLabels div {
    text-align: left;
    height: 60px;
    display: flex;
    align-items: center;
}

#tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    display: none;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.yearSeparator {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

