body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #222;
    background: #fff;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 30px;
}

h1 {
    margin-bottom: 25px;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.control {
    display: flex;
    flex-direction: column;
    min-width: 190px;
}

.control label {
    font-weight: 600;
    margin-bottom: 6px;
}

select {
    font-size: 15px;
    padding: 8px;
    border: 1px solid #aaa;
    border-radius: 4px;
}

.hidden {
    display: none;
}

#description {
    margin-top: 15px;
    font-size: 18px;
}

#national-total {
    font-size: 28px;
    font-weight: 600;
    margin: 8px 0 20px 0;
}

#map-container {
    position: relative;
    width: 100%;
}

#map {
    width: 100%;
    height: auto;
}

.state {
    stroke: white;
    stroke-width: 0.7px;
    cursor: pointer;
}

.state:hover {
    stroke: #222;
    stroke-width: 1.5px;
}

#tooltip {
    position: absolute;
    display: none;

    background: white;
    border: 1px solid #aaa;

    padding: 10px;

    pointer-events: none;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);

    font-size: 14px;

    line-height: 1.5;
}

.table-container {
    margin-top: 30px;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th,
td {
    padding: 9px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    font-weight: 600;
}

.state-row {
    cursor: pointer;
}

.state-row:hover {
    background: #f5f5f5;
}

#legend {
    margin: 10px auto 20px auto;
    width: 500px;
    text-align: center;
}

#map-layout {
    display: flex;
    align-items: center;
    width: 100%;
}

#legend {
    width: 85px;
    flex-shrink: 0;
    margin-right: 10px;
}

#map-container {
    position: relative;
    width: 100%;
}

#map {
    width: 100%;
    height: auto;
}