*{
box-sizing:border-box
}

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

header{
background:#111827;
color:white;
padding:20px;
text-align:center
}

header h1{
margin:0;
font-size:32px
}

header p{
margin:8px 0 0;
opacity:.8
}

main{
max-width:1400px;
margin:auto;
padding:20px
}

.map-box,.card{
background:white;
border-radius:12px;
padding:20px;
box-shadow:0 3px 15px rgba(0,0,0,.15);
margin-bottom:20px
}

h2{
margin-top:0
}

#map{
width:100%;
height:600px;
border-radius:10px
}

.legend{
margin-top:15px;
display:flex;
gap:20px;
flex-wrap:wrap;
font-size:15px
}

.dot{
width:15px;
height:15px;
display:inline-block;
border-radius:50%;
margin-right:5px
}

.red{
background:#e30000
}

.orange{
background:#ff9800
}

.green{
background:#17a34a
}

.blue{
background:#0066ff
}


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


.card{
min-height:150px
}


#stats,#location,#extraStats{
line-height:1.8;
font-size:16px
}


.chart-box{
height:450px
}


#crimeChart{
max-height:350px
}


@media(max-width:800px){

header h1{
font-size:24px
}

.cards{
grid-template-columns:1fr
}

#map{
height:450px
}

}