sup { font-size: 0.8em !important; }

.loader-overlay {
    position:            absolute;
    width:               100%;
    height:              100%;
    z-index:             1002;
    color:               #ffffff;
    background:          rgba(0,0,0,0.25);
    -webkit-text-stroke: 1px black;
    font-weight:         bold;
    font-size:           32px;
    line-height:         110%;
    text-align:          center;
}
.loader-overlay .noaa-loader {
    position:   absolute;
    top:        33%;
    left:       50%;
    transform:  translate(-50%,-50%);
    background: radial-gradient(circle, #ffffff 0, #ffffff 20px, transparent 20px, transparent 100%);
}

@media (max-width: 991px) {
    #citation a {
        word-break: break-all;
    }
}

.ciac {
    border:           1px #8d9297 solid !important;
    padding:          0px 0.4em;
    color:            #0050d8 !important;
    background-color: #dcdee0 !important;
}

.ciac:hover {
    background-color: #8d9297 !important;
}

.event-note {
    padding:    0 !important;
    margin:     0 !important;
    font-size:  0.8em !important;
    font-style: italic;
}

/* Disaster Checkboxes */
/***********************/
.drought-cbl          {
    border-color: #cc9900 !important;
    color:        #cc9900;
}

.flooding-cbl         {
    border-color: #0a47cc !important;
    color:        #0a47cc;
}

.freeze-cbl           {
    border-color: #0099cc !important;
    color:        #0099cc;
}

.severe-storm-cbl     {
    border-color: #00ac23 !important;
    color:        #00ac23;
}

.tropical-cyclone-cbl {
    border-color: #ffd147 !important;
    color:        #ffd147;
}

.wildfire-cbl         {
    border-color: #ff810a !important;
    color:        #ff810a;
}

.winter-storm-cbl     {
    border-color: #9900cc !important;
    color:        #9900cc;
}

.all-disasters-cbl    {
    border-color: #bc312e !important;
    color:        #bc312e;
}

.drought-cbl:hover,
.drought-cbl:focus,
.disaster-checkbox:not(:disabled):checked ~ label.disaster-checkbox-label.drought-cbl:focus {
    -webkit-box-shadow: 0px 4px 15px rgba(204, 153, 0, 0.5) !important;
       -moz-box-shadow: 0px 4px 15px rgba(204, 153, 0, 0.5) !important;
            box-shadow: 0px 4px 15px rgba(204, 153, 0, 0.5) !important;
}

.flooding-cbl:hover,
.flooding-cbl:focus,
.disaster-checkbox:not(:disabled):checked ~ label.disaster-checkbox-label.flooding-cbl:focus {
    -webkit-box-shadow: 0px 4px 15px rgba(10, 71, 204, 0.5) !important;
       -moz-box-shadow: 0px 4px 15px rgba(10, 71, 204, 0.5) !important;
            box-shadow: 0px 4px 15px rgba(10, 71, 204, 0.5) !important;
}

.freeze-cbl:hover,
.freeze-cbl:focus,
.disaster-checkbox:not(:disabled):checked ~ label.disaster-checkbox-label.freeze-cbl:focus {
    -webkit-box-shadow: 0px 4px 15px rgba(0, 153, 204, 0.5) !important;
       -moz-box-shadow: 0px 4px 15px rgba(0, 153, 204, 0.5) !important;
            box-shadow: 0px 4px 15px rgba(0, 153, 204, 0.5) !important;
}

.severe-storm-cbl:hover,
.severe-storm-cbl:focus,
.disaster-checkbox:not(:disabled):checked ~ label.disaster-checkbox-label.severe-storm-cbl:focus {
    -webkit-box-shadow: 0px 4px 15px rgba(0, 172, 35, 0.5) !important;
       -moz-box-shadow: 0px 4px 15px rgba(0, 172, 35, 0.5) !important;
            box-shadow: 0px 4px 15px rgba(0, 172, 35, 0.5) !important;
}

.tropical-cyclone-cbl:hover,
.tropical-cyclone-cbl:focus,
.disaster-checkbox:not(:disabled):checked ~ label.disaster-checkbox-label.tropical-cyclone-cbl:focus {
    -webkit-box-shadow: 0px 4px 15px rgba(255, 209, 71, 0.5) !important;
       -moz-box-shadow: 0px 4px 15px rgba(255, 209, 71, 0.5) !important;
            box-shadow: 0px 4px 15px rgba(255, 209, 71, 0.5) !important;
}

.wildfire-cbl:hover,
.wildfire-cbl:focus,
.disaster-checkbox:not(:disabled):checked ~ label.disaster-checkbox-label.wildfire-cbl:focus {
    -webkit-box-shadow: 0px 4px 15px rgba(255, 129, 10, 0.5) !important;
       -moz-box-shadow: 0px 4px 15px rgba(255, 129, 10, 0.5) !important;
            box-shadow: 0px 4px 15px rgba(255, 129, 10, 0.5) !important;
}

.winter-storm-cbl:hover,
.winter-storm-cbl:focus,
.disaster-checkbox:not(:disabled):checked ~ label.disaster-checkbox-label.winter-storm-cbl:focus {
    -webkit-box-shadow: 0px 4px 15px rgba(153, 0, 204, 0.5) !important;
       -moz-box-shadow: 0px 4px 15px rgba(153, 0, 204, 0.5) !important;
            box-shadow: 0px 4px 15px rgba(153, 0, 204, 0.5) !important;
}

.all-disasters-cbl:hover,
.all-disasters-cbl:focus,
.disaster-checkbox:not(:disabled):checked ~ label.disaster-checkbox-label.all-disasters-cbl:focus {
    -webkit-box-shadow: 0px 4px 15px rgba(188, 49, 46, 0.5) !important;
       -moz-box-shadow: 0px 4px 15px rgba(188, 49, 46, 0.5) !important;
            box-shadow: 0px 4px 15px rgba(188, 49, 46, 0.5) !important;
}

.disaster-checkbox:checked ~ label.disaster-checkbox-label.drought-cbl {
    background-color: #cc9900 !important;
    color:            #000000;
}
.disaster-checkbox:checked ~ label.disaster-checkbox-label.flooding-cbl {
    background-color: #0a47cc !important;
    color:            #ffffff;
}
.disaster-checkbox:checked ~ label.disaster-checkbox-label.freeze-cbl {
    background-color: #0099cc !important;
    color:            #000000;
}
.disaster-checkbox:checked ~ label.disaster-checkbox-label.severe-storm-cbl {
    background-color: #00ac23 !important;
    color:            #000000;
}
.disaster-checkbox:checked ~ label.disaster-checkbox-label.tropical-cyclone-cbl {
    background-color: #ffd147 !important;
    color:            #000000;
}
.disaster-checkbox:checked ~ label.disaster-checkbox-label.wildfire-cbl {
    background-color: #ff810a !important;
    color:            #000000;
}
.disaster-checkbox:checked ~ label.disaster-checkbox-label.winter-storm-cbl {
    background-color: #9900cc !important;
    color:            #ffffff;
}
.disaster-checkbox:checked ~ label.disaster-checkbox-label.all-disasters-cbl {
    background-color: #bc312e !important;
    color:            #ffffff;
}
/***********************/
/* Disaster Checkboxes */

/* Disabled Checkboxes */
/***********************/
.disaster-checkbox:disabled ~ label.disaster-checkbox-label:hover,
.disaster-checkbox:disabled ~ label.disaster-checkbox-label:focus,
.disaster-checkbox:disabled ~ label.disaster-checkbox-label {
    cursor:             default !important;
    -webkit-box-shadow: none !important;
       -moz-box-shadow: none !important;
            box-shadow: none !important;
}

.disaster-checkbox:disabled:not(:checked) ~ label.disaster-checkbox-label:hover,
.disaster-checkbox:disabled:not(:checked) ~ label.disaster-checkbox-label:focus,
.disaster-checkbox:disabled:not(:checked) ~ label.disaster-checkbox-label {
    background-color: #c6cace !important;
    color:            #f1f3f6 !important;
    border:           2px solid #c6cace !important;
}

.disaster-checkbox:disabled:checked ~ label.disaster-checkbox-label:hover,
.disaster-checkbox:disabled:checked ~ label.disaster-checkbox-label:focus,
.disaster-checkbox:disabled:checked ~ label.disaster-checkbox-label {
    background-color: #8d9297 !important;
    color:            #1c1d1f !important;
    border:           2px solid #8d9297 !important;
}
/***********************/
/* Disabled Checkboxes */

/* Disaster Indicators */
/***********************/
.drought-ind          { background-color: #cc9900; }
.flooding-ind         { background-color: #0a47cc; }
.freeze-ind           { background-color: #0099cc; }
.severe-storm-ind     { background-color: #00ac23; }
.tropical-cyclone-ind { background-color: #ffd147; }
.wildfire-ind         { background-color: #ff810a; }
.winter-storm-ind     { background-color: #9900cc; }
.all-disasters-ind    { background-color: #bc312e; }
/***********************/
/* Disaster Indicators */

/* County Mapping */
/******************/
.drought-risk-key          { background: linear-gradient(90deg, rgb(255, 255, 255) 0%, rgb(204, 153,   0) 100%); }
.flooding-risk-key         { background: linear-gradient(90deg, rgb(255, 255, 255) 0%, rgb( 10,  71, 204) 100%); }
.freeze-risk-key           { background: linear-gradient(90deg, rgb(255, 255, 255) 0%, rgb(  0, 153, 204) 100%); }
.severe-storm-risk-key     { background: linear-gradient(90deg, rgb(255, 255, 255) 0%, rgb(  0, 172,  35) 100%); }
.tropical-cyclone-risk-key { background: linear-gradient(90deg, rgb(255, 255, 255) 0%, rgb(255, 209,  71) 100%); }
.wildfire-risk-key         { background: linear-gradient(90deg, rgb(255, 255, 255) 0%, rgb(255, 129,  10) 100%); }
.winter-storm-risk-key     { background: linear-gradient(90deg, rgb(255, 255, 255) 0%, rgb(153,   0, 204) 100%); }
.all-disasters-risk-key    { background: linear-gradient(90deg, rgb(255, 255, 255) 0%, rgb(188,  49,  46) 100%); }
/******************/
/* County Mapping */

/* Modals */
/**********/
.modal.drought          .modal-title, .modal.drought          caption { color: #cc9900 !important; }
.modal.flooding         .modal-title, .modal.flooding         caption { color: #0a47cc !important; }
.modal.freeze           .modal-title, .modal.freeze           caption { color: #0099cc !important; }
.modal.severe-storm     .modal-title, .modal.severe-storm     caption { color: #00ac23 !important; }
.modal.tropical-cyclone .modal-title, .modal.tropical-cyclone caption { color: #ffd147 !important; }
.modal.wildfire         .modal-title, .modal.wildfire         caption { color: #ff810a !important; }
.modal.winter-storm     .modal-title, .modal.winter-storm     caption { color: #9900cc !important; }
.modal.all-disasters    .modal-title, .modal.all-disasters    caption { color: #bc312e !important; }

.modal.drought          table th { background-color: #cc9900 !important; }
.modal.flooding         table th { background-color: #0a47cc !important; }
.modal.freeze           table th { background-color: #0099cc !important; }
.modal.severe-storm     table th { background-color: #00ac23 !important; }
.modal.tropical-cyclone table th { background-color: #ffd147 !important; }
.modal.wildfire         table th { background-color: #ff810a !important; }
.modal.winter-storm     table th { background-color: #9900cc !important; }
.modal.all-disasters    table th { background-color: #bc312e !important; }

.modal.drought          table tr:nth-child(2n) td { background-color: #faf6e8 !important; }
.modal.flooding         table tr:nth-child(2n) td { background-color: #e9eefa !important; }
.modal.freeze           table tr:nth-child(2n) td { background-color: #e8f6fa !important; }
.modal.severe-storm     table tr:nth-child(2n) td { background-color: #e8f7eb !important; }
.modal.tropical-cyclone table tr:nth-child(2n) td { background-color: #fffbee !important; }
.modal.wildfire         table tr:nth-child(2n) td { background-color: #fff4e9 !important; }
.modal.winter-storm     table tr:nth-child(2n) td { background-color: #f6e8fa !important; }
.modal.all-disasters    table tr:nth-child(2n) td { background-color: #f9ecec !important; }
/**********/
/* Modals */

/* Nav Bar Menu *
*****************/
#section-menu {
    position: relative;
}

#section-menu ul {
    margin-top:         0 !important;
    background-color:   #ffffff;
    -webkit-box-shadow: 0 8px 6px -6px rgba(0,0,0,0.4);  /* Safari 3-4, iOS 4.0.2 - 4.2, Android 2.3+ */
       -moz-box-shadow: 0 8px 6px -6px rgba(0,0,0,0.4);  /* Firefox 3.5 - 3.6 */
            box-shadow: 0 8px 6px -6px rgba(0,0,0,0.4);  /* Opera 10.5, IE 9, Firefox 4+, Chrome 6+, iOS 5 */
}

@media (min-width:  768px) and (max-width: 1199px) { #section-menu ul li { font-size: 14px !important; } }
@media (min-width: 1200px) { #section-menu ul li { font-size: 20px !important; } }

#show-menu-container {
    text-align:    right;
    margin-bottom: 0.5em;
}

@media (min-width: 768px) {
    #show-menu-container,
    #section-menu ul li#hide-menu { display: none; }
}

@media (max-width: 767px) {
    #section-menu:not(.show-mobile-menu) { display: none; }
    #section-menu.show-mobile-menu { display: block; height: 0; }

    #section-menu {
        position: absolute;
        left:     1rem;
        margin:   -1rem 0 0 -1rem !important;
        width:    100%;
        z-index:  2;
    }

    #section-menu ul {
        display:          block !important;
        background-color: rgba(22, 46, 81, 0.975);
    }

    #section-menu ul li,
    #section-menu ul li a,
    #section-menu ul li span,
    #section-menu ul li.selected,
    #section-menu ul li.selected a,
    #section-menu ul li.selected span {
        display:    block !important;
        text-align: right !important;
        color:      #ffffff !important;
    }

    #section-menu ul > *.selected::before,
    #section-menu ul > *:hover::before {
        visibility: hidden;
    }

    #section-menu ul > *.selected::before,
    #section-menu ul > *:focus::before {
      background-color: transparent !important;
    }
}
/****************/
/* Nav Bar Menu */

/* CPI Toggle buttons */
/**********************/
input.cpi-toggle { position: absolute; opacity: 0; } /* hide radio button */

label.cpi-toggle-label {
    cursor:           pointer;
    padding:          0.5em !important;
    font-weight:      normal;
    font-size:        0.8em;
    border:           solid 1px #112f4e;
    color:            #112f4e;
    background-color: #ffffff;
    transition:       background-color 0.25s ease,
                      box-shadow 0.25s ease;
}

.cpiToggleControls {
    display: flex;
    justify-content: flex-end;
}
.cpiToggleControls .cpiToggleControl:first-of-type label.cpi-toggle-label { border-right-width: 0; border-radius: 8px 0 0 8px; }
.cpiToggleControls .cpiToggleControl:last-of-type  label.cpi-toggle-label { border-left-width: 0; border-radius: 0 8px 8px 0; }

input.cpi-toggle:not(:checked) ~ label.cpi-toggle-label:focus,
input.cpi-toggle:not(:checked) ~ label.cpi-toggle-label:hover {
    background-color:   #52daf2;
    color:              #112f4e;
    -webkit-box-shadow: 0px 4px 15px rgba(82,218,242,0.4) !important;
       -moz-box-shadow: 0px 4px 15px rgba(82,218,242,0.4) !important;
            box-shadow: 0px 4px 15px rgba(82,218,242,0.4) !important;
}

input.cpi-toggle:checked ~ label.cpi-toggle-label {
    cursor:           default;
    background-color: #112f4e;
    color:            #52daf2;
}
/**********************/
/* CPI Toggle buttons */

/* Forms */
/*********/
form.select-form.tall,
form.select-form .tall { line-height: 250%; }

option,optGroup { text-transform: capitalize !important; }
optgroup { font-weight: bold !important; }
/*********/
/* Forms */

/* Checkboxes *
***************/
.checkboxes {
    display:         flex;
    flex-flow:       row wrap;
    justify-content: space-around;
    align-items:     stretch;
    padding:         0;
    margin:          1em auto;
}

.checkboxes .checkflexbox {
    text-align: center;
    margin:     0.5em auto;
}

/* hide checkbox */
input.disaster-checkbox,
input.vulnerability-checkbox,
input.future-damages-checkbox {
    position: absolute;
    opacity: 0;
}

label.disaster-checkbox-label,
label.vulnerability-checkbox-label,
label.future-damages-checkbox-label {
    cursor:        pointer;
    padding:       0.5em !important;
    width:         95%;
    height:        100%;
    border:        solid 1px transparent;
    border-radius: 8px;
    transition:    background-color 0.25s ease,
                   box-shadow 0.25s ease;
}

@media (max-width:  575px) {
    .checkboxes .checkflexbox {
        width: 25%;
    }

    label.disaster-checkbox-label,
    label.vulnerability-checkbox-label,
    label.future-damages-checkbox-label {
        font-size: 16px !important; 
    }
}
@media (min-width:  576px) {
    .checkboxes .checkflexbox {
        width: 45%;
    }

    label.disaster-checkbox-label,
    label.vulnerability-checkbox-label,
    label.future-damages-checkbox-label {
        font-size: 16px !important; 
    }
}
@media (min-width:  768px) {
    .checkboxes .checkflexbox {
        width: 150px;
    }

    label.disaster-checkbox-label,
    label.vulnerability-checkbox-label,
    label.future-damages-checkbox-label {
        font-size: 15px !important; white-space: nowrap;
    }
}
@media (min-width:  992px) {
    .checkboxes .checkflexbox {
        width: 110px;
    }

    label.disaster-checkbox-label,
    label.vulnerability-checkbox-label,
    label.future-damages-checkbox-label {
        font-size: 13px !important; white-space: nowrap;
    }
}
@media (min-width: 1200px) {
    .checkboxes .checkflexbox {
        width: 132px;
    }

    label.disaster-checkbox-label,
    label.vulnerability-checkbox-label,
    label.future-damages-checkbox-label {
        font-size: 16px !important;
        white-space: nowrap;
    }
}
/**************/
/* Checkboxes */

/* Tables */
/**********/
.ind {
    display:        inline-block;
    width:          20px;
    height:         20px;
    line-height:    20px;
    vertical-align: top;
    border-radius:  5px;
    margin:         0 5px 0 0;
    border:         1px solid #c6cace;
}

@media (max-width:  575px) { .hscrollbox table caption { max-width: calc(100vw - 33px); } }
@media (min-width:  576px) { .hscrollbox table caption { max-width:  507px; } }
@media (min-width:  768px) { .hscrollbox table caption { max-width:  687px; } }
@media (min-width:  992px) { .hscrollbox table caption { max-width:  927px; } }
@media (min-width: 1200px) { .hscrollbox table caption { max-width: 1107px; } }
/**********/
/* Tables */

.leaflet-control-container label {
    font-weight: normal;
    font-size:   12px;
}

/* Modals */
/**********/
.btn-mdl {
    font-size:     0.8em !important;
    padding:       1px 2px !important;
    border-width:  1px !important;
    border-radius: 6px;
}

.modal table { margin: 0 auto; width: auto !important; }

.modal caption { font-style: normal; }
/***********/
/* Modals */

/* Mapping Pre-Load */
/********************/
.map-container {
    position:         relative;
    width:            100%;
    margin:           0.5em auto;
    padding:          5px;
    border:           solid 1px #c6cace;
    background-color: #ffffff;
}

.conus-map {
    width:            100%;
    background-color: #ffffff !important;
}

.inset-map {
    position:         absolute;
    height:           0;
    z-index:          1001;
    background-color: #ffffff !important;
    border:           #8d9297 solid 1px;
    box-shadow:
        0.1px 0.1px 2.2px rgba(0, 0, 0, 0.02),
        0.3px 0.3px 5.3px rgba(0, 0, 0, 0.028),
        0.6px 0.6px 10px rgba(0, 0, 0, 0.035),
        1.1px 1.1px 17.9px rgba(0, 0, 0, 0.042),
        2.1px 2.1px 33.4px rgba(0, 0, 0, 0.05),
        5px 5px 80px rgba(0, 0, 0, 0.07);
}

.ak-map {
    left:        15px;
    width:       20%;
    padding-top: 20%;
}

.hi-map {
    left:        25%;
    width:       18%;
    padding-top: 12%;
}

.pr-map {
    width:       10%;
    padding-top:  7%;
}

.gu-map,
.vi-map {
    width:        5%;
    padding-top:  5%;
}

@media (max-width: 575px) {
    .pr-map { left: 45%; }
    .vi-map { left: 55%; }
    .gu-map { left: 60%; }
}

@media (min-width: 576px) and (max-width: 767px) {
    .pr-map { left: 50%; }
    .vi-map { left: 63%; }
    .gu-map { left: 70%; }
}

@media (min-width: 768px) {
    .pr-map { left: 53%; }
    .vi-map { left: 67%; }
    .gu-map { left: 75%; }
}

@media (max-width: 767px) {
    #ak-risk-map, #hi-risk-map,
    #ak-state-map, #hi-state-map, #pr-state-map, #gu-state-map, #vi-state-map { bottom: 15px; }

    #conus-state-map  { height: 695px; }
    #primary-risk-map { height: 475px; }

    .info h4 { font-size: 16px !important; }
}
@media (min-width: 768px) and (max-width: 991px) {
    #ak-risk-map, #hi-risk-map,
    #ak-state-map, #hi-state-map, #pr-state-map, #gu-state-map, #vi-state-map { bottom: 15px; }

    #conus-state-map  { height: 700px; }
    #primary-risk-map { height: 600px; }

    .info h4 { font-size: 18px !important; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    #ak-risk-map, #hi-risk-map { bottom: 100px; }
    #ak-state-map, #hi-state-map, #pr-state-map, #gu-state-map, #vi-state-map { bottom: 125px; }

    #conus-state-map  { height: 775px; }
    #primary-risk-map { height: 775px; }

    .info h4 { font-size: 22px !important; }
}
@media (min-width: 1200px) {
    #ak-risk-map, #hi-risk-map { bottom: 100px; }
    #ak-state-map, #hi-state-map, #pr-state-map, #gu-state-map, #vi-state-map { bottom: 125px; }

    #conus-state-map  { height: 785px; }
    #primary-risk-map { height: 785px; }

    .info h4 { font-size: 26px !important; }
}
/********************/
/* Mapping Pre-Load */

/* noUiSlider */
/**************/
.billions-slider {
    padding: 0 16px;
    margin:  0 auto;
    line-height: 1.5em;
}

.billions-slider .noUi-connect {
    background: rgba(0, 80, 216, 0.5);
}

.billions-slider .noUi-handle:before,
.billions-slider .noUi-handle:after {
    background: #fff;
    height:     11px;
    top:        3px;
}
.billions-slider .noUi-handle:before {
    left: 7px;
}
.billions-slider .noUi-handle:after {
    left: 10px;
}

.billions-slider .noUi-handle {
    background: #2491ff;
    border:     none;
    box-shadow: none;
    cursor:     grab;
}
.billions-slider .noUi-handle:active {
    cursor: grabbing;
}

.billions-slider .noUi-tooltip {
    font-size:  20px;
    padding:    0 5px;
    top:        -40%;
    height:     1.66em;
    background: rgba(255, 255, 255, 1);
}

/* Year noUiSlider */
/*******************/
#year-slider {
    /* account for width of tooltips on either side */
    width: calc(100% - 90px);
}

#year-slider .noUi-handle {
    height: 18px;
    width:  18px;
    top:    -1px;
    right:  -9px;
}

#year-slider .noUi-handle[data-handle="0"] .noUi-tooltip {
    left: -150%
}

#year-slider .noUi-handle[data-handle="1"] .noUi-tooltip {
    left: 250%
}
/*******************/
/* Year noUiSlider */

/* Cost noUiSlider */
/*******************/
#cost-slider {
    /* account for width of tooltips on either side */
    width: calc(100% - 110px);
}

#cost-slider .noUi-handle {
    height: 18px;
    width:  18px;
    top:    -1px;
    right:  -9px;
}

#cost-slider .noUi-handle[data-handle="0"] .noUi-tooltip {
    left: -32px;
    width: 64px;
}

#cost-slider .noUi-handle[data-handle="1"] .noUi-tooltip {
    left:  50px;
    width: 64px;
}
/*******************/
/* Cost noUiSlider */
