body {
    font-family: Arial, sans-serif;
    margin: 40px;
    background-color: #f4f4f4;
}

h1 {
    margin-bottom: 0;
}

.author {
    font-size: 1.2em;
    font-style: italic;
    color: #555;
    margin-bottom: 4px;
}

.divider {
    margin: 24px 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(to right, #aaa, #ddd);
}

.dashboard {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.maps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.charts {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.source {
    font-size: 12.5px;
    color: #888;
}

.source a {
    color: #888;
}

.axis-label {
    font-size: 13px;
    fill: #888;   
}

.legend-title {
  font-size: .7rem;
  font-weight: 600;
}

.legend-label {
  font-size: .7rem;
}

.dropbtn {
    background-color: #08519c;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.dropbtn:hover, .dropbtn:focus {
    background-color: #063d75;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {background-color: #ddd;}

.show {display:block;}

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

.control-panel {
    display:flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    margin-top: 12px;
}

#tooltip {
    position: absolute;
    display: none;
    background: #fff;
    box-shadow: 3px 3px 3px 0px rgb(92 92 92 / 0.5);
    border: 1px solid #ddd;
    font-size: 12px;
    font-weight: 500;
    padding: 8px;
    min-width: 160px;
    color: #333;
}

.tooltip-title {
    color: #000;
    font-size: 14px;
    font-weight: 600;
}

.country.is-hovered {
    stroke: #ffbf47;
    stroke-width: 1.6;
    filter: drop-shadow(0 0 4px rgba(255, 191, 71, 0.6));
}

.country.is-dim {
    opacity: 0.35;
}

.country.is-selected {
    stroke: #ff6b6b;
    stroke-width: 2.5;
}

.point.is-hovered,
.hist-bar.is-hovered {
    stroke: #ffbf47;
    stroke-width: 1.6;
    filter: drop-shadow(0 0 4px rgba(255, 191, 71, 0.6));
}

.point.is-dim,
.hist-bar.is-dim {
    opacity: 0.35;
}

#tooltip ul {
    margin: 5px 0 0 0;
    padding-left: 20px;
}