.wrapper, #custom-legend{
    width: 50%;
    margin: 0 auto;
    height: auto;
    text-align: center;
}
#custom-legend li span {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 5px;
}
#custom-legend li {
    display: inline-block;
    font-size: 0.8em;
    margin: 1em 1em 0 1em;
}