.rate-type-selector {
    display: flex;
    align-items: flex-start;
    text-align: left;
    flex-direction: row;
    margin-bottom: 0;
    border-bottom: 1px solid #e6e6e6;
    margin-top: 50px;
}
.rate-type-selector li {
    margin-right: 20px;
    align-self: stretch;
}
.rate-type-selector li.active em {
    border-color: #0575bc;   
}
.rate-type-selector em {
    padding-bottom: 20px;
    border-bottom: 4px solid transparent;
    height: 100%;
    font-weight: 400;
    cursor: pointer;
    display: block;
    font-style: normal;
}
.rate-type-selector li:last-child {
    margin-right: 0;
}


/* ------ for atlas
-----------------------------------------------*/

.map-box .story li { margin-left: auto; }

.map-box .wrapper {
    text-align: center;
    position: relative;
    padding: 0 0 30px 0;
}

.over {
    width: 100%;
    overflow: hidden;
    zoom: 1;
}

#map {
    width: 100%;
    min-width: 895px;
    min-height: 505px;
    height: auto;
    margin: 0 auto;
}

.map-box {
    position: relative;
}

.lt-ie8 .legend p {
    display: inline;
    zoom: 1;
}

.lt-ie8 #legends_block li .before,
.lt-ie8 .sub-type-selector li .before {
    display: none;
}

#type-selector {
    margin: 0;
    padding: 0;
}

#type-selector ul {
    padding: 0;
}

.sub-type-selector {
    text-align: left;
    margin-top: 50px;
    list-style: none;
    width: 80%;
}

.sub-type-selector li {
    cursor: pointer;
    font-size: 16px;
    position: relative;
    background: none;
    vertical-align: top;
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
}

.sub-type-selector em {

}
.sub-type-selector .active em, .sub-type-selector .active:hover em {
    font-weight: 400;
    color: #0575bc;
    border-color: #0575bc; 
    background: #ffffff;
}
.sub-type-selector em {
    padding: 6px 15px;
    transition: all .2s linear;
    border: 1px solid #e6e6e6;
    border-radius: 3px; 
    cursor: pointer;
    font-style: normal;
    text-decoration: none;
    display: block;
    color: #848484;
    min-width: 90px;
}
.sub-type-selector li:hover em { background: #f5f5f5; }

#type-selector .year-list li {

    font-size: 1em;
    text-transform: uppercase;
}

.ib li {
    display: inline-block;
}

.map-box .wrapper .digit-box {
    position: absolute;
    display: none;
    text-align: left;
    background: #ffffff;
    font-weight: normal;
    width: 550px;
    margin-top: -65px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    padding: 30px;
    opacity: 1;
    box-shadow: 7px 7px 20px 2px rgba(0,0,0,.2);
}

.map-box .digit-box.digit-box--opendata .point h2 {
    padding-left: 0;
    border-bottom: 0;
}

.map-box .content-wrap {
    overflow: auto;
    max-height: 250px;
    max-width: 100%;
}

.map-box .wrapper .digit-box th, .map-box .wrapper .digit-box td { padding: 9px 10px; }

.point table {
    margin: 0;
}

.rate-list table {
    white-space: nowrap;
}

.point table td {
    border: none !important;
}

.map-box .point h2 {
    color: #0575bc;
    font-size: 20px;
    text-transform: none;
    line-height: 20px;
    padding: 0;
    margin: 0 0 5px 0;
    border-bottom: 1px solid #e6e6e6;
    padding-bottom: 25px;
    padding-left: 40px;
    position: relative;
}
.map-box .no-bottom-border { 
    border-bottom: 0 !important; 
    padding-bottom: 0 !important;
}
.map-box .point h2 .marker {
    position: absolute;
    left: 0;
    top: 1px;
}

.map-box .rate-list h2 {
    border-bottom: 1px solid #9C867A;
    padding: 0 0 5px;
}

.digit-box .point h3 {
    font-size: 16px;
    font-weight: 600;
}

.point th {
    border: 1px solid #e6e6e6;
    padding: 16px;
    white-space: nowrap;
    font-weight: normal;
    text-align: center;
}
.point tr th:first-child {
    text-align: left;
}
.point .year th, .point .value th {
    font-weight: 600;
}
.point .value { 
    color: #0575bc;
}
.point .value .title { 
    font-weight: 300;
    color: #333333;
}

.point td {
    padding: 0 0 5px 10px;
    vertical-align: top;
    border: 1px solid #e6e6e6 !important;
    white-space: nowrap;
    text-align: center;
    font-weight: bold;
}

.rate-list td {
    padding: 0 0 5px 10px;
    border: none !important;
    text-align: left;
}

.marker {
    margin: 0 5px 0 0;
}

.table-box .digit, .rate-list .table-box .digit {
    width: 35px;
    text-align: right;
    padding: 0;
    font-weight: bold;
    font-size: 14px;
}

.multiple-layer th, .multiple-layer td, .multiple-layer .table-box .digit {
    color: #B5B7B7;
}

/*
.multiple-layer .current td, .multiple-layer .current th, .multiple-layer .current .digit{
  color: #fff;
}*/
.region-info {
    padding: 10px;

}

.region-info ul {
    width: 100%;
    display: table;
}

.region-info h3 {
    color: #000;
    font-size: 14px;
    text-transform: uppercase;
}

.region-info h3 span {
    color: #00447a;
    padding: 0 0 0 15px;
}

.region-info ul {
    margin: 0;
    padding: 0;
}

.region-info li {
    list-style-type: none;
    text-align: left;
    background: none;
    margin: 0;
    padding: 0;
    display: table-row;
    width: 100%;
    min-height: 55px;
    vertical-align: middle;
}
.region-info li * { 
    vertical-align: middle; 
}
.legend {
    clear: both;
    display: none;
}

.legend p {
    padding-right: 10px;
    white-space: nowrap;
    display: table-cell;
    padding-top: 10px;
    padding-bottom: 10px;
}
.region-info li p:last-child { padding-right: 0; }
.legend p span {
    white-space: nowrap;
    display: inline-block;
}

.legend em, .marker {
    display: inline-block;
    height: 20px;
    width: 20px;
    margin: 0;
    border-radius: 50%;
}

.legend h4 {
    font-size: 16px;
    font-weight: 300;
    margin: 0;
    display: table-cell;
}

.null h4 {
    background: none;
}

.null em {
    background-color: #fff;
}

/*.addition1{background-color: #F0F7CE;}
.addition2{background-color: #DEFA7E;}
.addition3{background-color: #C1EA36;}
.addition4{background-color: #8BB205;}
.decline1{background-color: #FCE5E3;}
.decline2{background-color: #FAC4BF;}
.decline3{background-color: #F78E83;}
.decline4{background-color: #FC3624;}*/

.addition1 { background-color: #c0dcee; }
.addition2 { background-color: #9bc8e4; }
.addition3 { background-color: #5ca5d3; }
.addition4 { background-color: #2a8ac6; }
.addition5 { background-color: #056fb2; }
.addition6 { background-color: #045e96; }
.addition7 { background-color: #034671; }
.addition8 { background-color: #022f4b; }
.addition9 { background-color: #012338; }

.decline1 { background-color: #facfd5; }
.decline2 { background-color: #f8b2bc; }
.decline3 { background-color: #f38192; }
.decline4 { background-color: #f05b70; }
.decline5 { background-color: #e13b53; }
.decline6 { background-color: #be3246; }
.decline7 { background-color: #8e2534; }
.decline8 { background-color: #5f1923; }
.decline9 { background-color: #47121a; }

#main h1 {
    color: #000000;
    font-size: 2em;
    font-weight: normal;
}

/*for story*/
#story h2 {
    border-top: 1px solid #e6e6e6;
    font-size: 1.66em;
    padding: 35px 0 0 0;
    margin-bottom: 25px;
    margin-top: 40px;
}
#story h2.story-top-title {
    padding: 70px 0 10px 0;
    margin-bottom: 35px;
}

#story h3 {
    margin: 0;
    margin-bottom: 20px;
    font-weight: 600;
}

#story ul {
    margin: 0 0 10px 0;
}

#story li {
    margin: 0 0 5px 20px;
    padding: 0;
    background: none;
}

#story td {
    vertical-align: top;
}

#story .digit {
    color: #369;
    font-weight: bold;
    font-size: 14px;
}

#story .point {
    margin-bottom: 40px;
}
.atlas-wrap {
    overflow: auto;
}

/*loader*/
/* loader
---------------------------------------- */
#loader {
    padding: 10px 0;
    width: 25em;
    font-family: Arial, Helvetica, sans-serif;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.6);
}

#loader .loader {
    width: 48px;
    height: 16px;
    background: url('../img/loader.gif') no-repeat 0 0 transparent;
}

#loader #l_image {
    float: left;
    padding: 0 10px;
}

#loader #l_text {
    color: #fff;
}

#loader p {
    padding: 0 10px;
    line-height: 16px;
}

#loader .ok {
    color: #D0EC67;
}

#loader .err {
    color: #FDA2A2;
}

.map-box .source {
    color: #b3b3b3;
    font-size: 14px;
    text-align: right;
    margin-top: 50px;
    width: 20%;
    height: 34px;
    float: right;
    line-height: 34px;
    min-width: 150px;
}

#story .chart-box {
    vertical-align: middle;
}

.chart-box img {
    cursor: pointer;
}

#addressBox p, #blahblahblahBox p {
    text-indent: -0.9em;
}

.point table {
    margin: 0;
    width: 100%;
}

.rate-title {
    text-transform: uppercase;
}

h3.rate-title {
    font-weight: bold;
}

.stat .hh4 {
    cursor: pointer;
    transition: all .2s linear;
    font-weight: 300 !important;
}
.stat .hh4:hover {
    color: #0575bc;
    text-decoration: underline;
}

.atlas-content-table table th, .atlas-content-table table td {
    border: 1px solid #e6e6e6;
    padding: 16px 16px;
}
.atlas-content-table .table-striped > tbody > tr { background: transparent !important; }
.atlas-content-table table { 
    margin-top: 30px;
    margin-bottom: 60px;
}
