/*map*/
#ldpc_map svg g{
    position: relative;
    cursor:pointer;
}

#ldpc_map svg .title{
    position: absolute;
}

#ldpc_map svg g *:first-child{
    fill: #999;
    -webkit-transition: opacity 500ms linear;
    -moz-transition: opacity 500ms linear;
    -o-transition: opacity 500ms linear;
    -ms-transition: opacity 500ms linear;
    transition: opacity 500ms linear; 
}

#ldpc_map svg g:hover *:first-child{
    opacity: 0.8;
}

svg g.grade-A *:first-child {
    fill: #00599C!important;
}

svg g.grade-B *:first-child {
    fill: #75C2BD!important;
}

svg g.grade-C *:first-child {
    fill: #65D5E6!important;
}

svg g.grade-D *:first-child {
    fill: #D4E687!important;
}

svg g.grade-F *:first-child {
    fill: #949495!important;
}

/*card pop ups*/
.state-card {
    position: relative;
    background-color: #fff;
    border-radius: 5px;
    max-width: 90%;
    margin: 50px auto;
    width: 650px;
}

.state-card > *,
.special-note {
    padding-left: 50px;
    padding-right: 50px;
}

.state-card > *,
.special-button {
    padding-left: 50px;
    padding-right: 50px;
}

.state-card .card-headline {
    padding-top: 30px;
    padding-bottom: 30px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 24px;
    font-weight: 400;
    background-color: #00599C;
    color: #fff;
}

.card-headline .state-name{
    font-weight: 900;
}

.state-image-grade {
    position: relative;
    width: 200px;
    /* FIX: Changed from fixed 200px height to min-height so wide/flat state shapes
       (like Florida, Texas) don't leave a large blank gap below the image. */
    min-height: 120px;
    height: auto;
    padding-left:0;
    padding-right:0;
    margin: auto;
    padding-bottom: 40px; /* space for the grade letter at the bottom */
}

.state-image-grade .state-image{
    /* FIX: Changed from position:absolute (out of flow, caused height collapse)
       to position:relative so the container grows to fit the actual image size */
    position: relative;
    max-width: 100%;
}

.state-image-grade svg{
    display: block;
    width: 100%;
}

.state-card.grade-A .state-image-grade svg polygon,
.state-card.grade-A .state-image-grade svg path{
    fill: #0059cc!important;
}
.state-card.grade-A .state-image-grade span.grade{
    -webkit-text-stroke: 2px #0059cc
}

.state-card.grade-B .state-image-grade svg polygon,
.state-card.grade-B .state-image-grade svg path{
    fill: #75C2BD!important;
}
.state-card.grade-B .state-image-grade span.grade{
    -webkit-text-stroke: 2px #75C2BD;
}

.state-card.grade-C .state-image-grade svg polygon,
.state-card.grade-C .state-image-grade svg path{
    fill: #65D5E6!important;
}
.state-card.grade-C .state-image-grade span.grade{
    -webkit-text-stroke: 2px #65D5E6;
}

.state-card.grade-D .state-image-grade svg polygon,
.state-card.grade-D .state-image-grade svg path{
    fill: #D4E687!important;
}
.state-card.grade-D .state-image-grade span.grade{
    -webkit-text-stroke: 2px #D4E687;
}

.state-card.grade-F .state-image-grade svg polygon,
.state-card.grade-F .state-image-grade svg path{
    fill: #949495!important;
}
.state-card.grade-F .state-image-grade span.grade{
    -webkit-text-stroke: 2px #949495;
}

.state-image-grade span.grade {
    font-family: 'Roboto', sans-serif;
    font-size: 120px;
    z-index: 10;
    font-weight: bold;
    color: #fff;
    position: absolute;
    right: 0;
    line-height: 1em;
    bottom: 0!important;
}

.state-card .grades-key {
    padding-bottom: 30px;
}

.state-card .grades-key img {
    max-width: 100%;
    width: 400px;
    height: auto;
    margin: auto;
    display: block;
}

.state-card .measures-checklist{
    background-color: #f3f4f4;
    color: #666;
    padding-top: 45px;
    padding-bottom: 45px;
}

.state-card .measures-checklist ul{
    list-style: none;
    padding:0;
}

.state-card .measures-checklist li{
    margin: 0 0 25px 40px;
    color:#666;
    font-size: 18px;
    position: relative;
}

.state-card .measures-checklist li:before{
    content: "";
    position: absolute;
    left: -40px;
    top: 5px;
    display: inline-block;
    background-size: cover;
    background-position: center center;
    width: 25px;
    height: 25px;
}

.state-card .measures-checklist li.check:before{
    background-image: url("./img/checked.png");
}

.state-card .measures-checklist li.no-check:before{
    background-image: url("./img/not-checked.png");
}

.state-card .special-note {
    padding-top: 30px;
    padding-bottom: 30px;
    background-color: #00599C;
    color: #fff;
    font-family: 'Roboto';
    font-size: 18px;
    font-weight: 100;
    letter-spacing: 1px;
    text-align: center;
}

.state-card .special-button {
    padding-top: 30px;
    padding-bottom: 30px;
    background-color: #ffffff;
    color: #fff;
    font-family: 'Roboto';
    font-size: 18px;
    font-weight: 100;
    letter-spacing: 1px;
    text-align: center;
}


.state-card .card-footer {
    background-color: #efefef;
    display: flex;
    flex-direction: column;
    padding-top:24px;
    padding-bottom: 24px;
    justify-content: center;
}

.card-footer .foaf-logo{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-footer .footer-text,
.card-footer .footer-text a{
    font-family: 'Roboto Condensed';
    font-size: 18px;
    font-weight: 500;
    color: #00599C;
    text-align: right;
}

html body .state-card button.mfp-close {
    top: 0!important;
}

.select-wrapper:before {
    content: ">";
    position: absolute;
    right: 37px;
    margin-top: 5px;
    font-size: 36px;
}

select#states_dropdown {
    -webkit-appearance: none;
    width: 100%;
    padding: 20px;
    font-size: 18px;
    text-align: center;
    font-family: Roboto;
    border-radius: 35px;
}

.preloader{
    position: fixed;
    top:0;
    bottom:0;
    left:0;
    right:0;
    background-color: rgba( 0,0,0,0.5);
}

#card_template{
    display: none;
}

.special-note-wrapper{
    display: inline-block;
    padding-left: 0;
    padding-right: 0;
}

.special-button-wrapper{
    display: inline-block;
    padding-left: 0;
    padding-right: 0;
}

.state-card button.mfp-close {
    color: #fff!important;
    /*margin-top: -20px;*/
    padding: 0!important;
    top:0px;
    right: 8px;
}

.we-teqso {
    display: flex;
    justify-content: space-around;
}

.we-teqso .special-button-wrapper {
    margin: 30px 0;
}

.btn-rk {
    font-size: 16px !important;
    border-width: 0;
    background: #0086c3;
    padding: 15px 22px !important;
    border-radius: 8px !important;
}
/*special txt*/

.ts_special {
    padding-top: 30px;
    padding-bottom: 30px;
    background-color: #003787;
    color: #fff;
    font-family: 'Roboto';
    font-size: 18px;
    font-weight: 100;
    letter-spacing: 1px;
    text-align: center;
}
.btn-rk-special {
   font-size: 24px !important;
   border-width: 0;
   background: #8dc892;
   color:#fff;
   padding: 10px 22px !important;
   border-radius: 20px !important;
   font-weight: 400;
   font-family: "Roboto Condensed", sans-serif;
   border-radius: 25px 25px 25px 25px;
}
.btn-rk-special:hover{
  color:#000 !important;
}
.btn-rk-link:hover{
   color:#8dc892 !important;
}
/*above phone*/
@media (min-width: 480px){

    .state-card .measures-checklist{
        columns: 2;
    }

    .state-card .card-footer {
        flex-direction: row;
    }

    .card-footer .foaf-logo,
    .card-footer .footer-text{
        width: 50%;
    }

}

/* === Popup scroll fix ===
 * The state card has a lot of content (header + image + measures + footer)
 * that can exceed the viewport height. Make the popup overlay scrollable
 * so users can scroll through the full card without the popup appearing cut off.
 */
.mfp-wrap {
    overflow-y: auto !important;
}

/* Align content to top so card starts at top of popup, not middle */
.mfp-container {
    vertical-align: top !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

/* Tighten card margin inside popup so it doesn't sit too far down */
.mfp-content .state-card,
.mfp-inline-holder .state-card {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}


