@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}
@-webkit-keyframes spinner {
    to {
        -webkit-transform: rotate(360deg);
    }
}
div.tooltip {
    color: #222;
    background: #ffffff;
    padding: .5em;
    text-shadow: #f5f5f5 0 1px 0;
    border-radius: 2px;
    box-shadow: 0 0 2px 0 #a6a6a6;
    opacity: 0.9;
    position: absolute;
}
.d3-tip {
    line-height: 1;
    font: bold 10px "Open Sans", "Helvetica Neue", Helvetica, sans-serif;
    padding: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border-radius: 2px;
}
/* Creates a small triangle extender for the tooltip */
.d3-tip:after {
    box-sizing: border-box;
    display: inline;
    font-size: 10px;
    width: 100%;
    line-height: 1;
    color: rgba(0, 0, 0, 0.8);
    content: "\25BC";
    position: absolute;
    text-align: center;
}
/* Style northward tooltips differently */
.d3-tip.n:after {
    margin: -1px 0 0 0;
    top: 100%;
    left: 0;
}
#infographic-container {
    color: #666;
    background: #fcfcfc;
    font: normal 10px "Open Sans", "Helvetica Neue", Helvetica, sans-serif;
    width: 100%;
    margin: 0;
    margin-top: 3rem;
    
    /* scale layup to the desktop version */
}
#infographic-container.loaded {
    background-image: url('../images/noisy_grid.png');
    opacity: 1;
}
#infographic-container.loaded #map-graph-container {
    opacity: 1;
}
#infographic-container.loaded .spinner {
    display: none;
}
#infographic-container .spinner {
    min-width: 50px;
    min-height: 50px;
}
#infographic-container .spinner:before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    margin-left: -25px;
}
#infographic-container .spinner:not(:required):before {
    content: '';
    border-radius: 50%;
    border: 4px solid #ccc;
    border-top-color: #1087af;
    animation: spinner .9s linear infinite;
    -webkit-animation: spinner .9s linear infinite;
}
#infographic-container .hidden {
    display: none;
}
#infographic-container #map {
    overflow: hidden;
    line-height: 1;
    position: relative;
    cursor: pointer;
}
#infographic-container #map > svg > rect {
    fill: #efefef;
}
#infographic-container #map > select {
    position: absolute;
    top: 5px;
    right: 5px;
}
#infographic-container .zoomed .country {
    stroke-width: .1px;
}
#infographic-container .zoomed-max .country {
    stroke-width: .03px;
}
#infographic-container .graticule {
    fill: none;
    stroke: #999;
    stroke-width: .1px;
}
#infographic-container .graticule.outline {
    stroke: #333;
    stroke-opacity: 1;
    stroke-width: 1.5px;
}
#infographic-container .zoomed-max .graticule {
    stroke-width: .03px;
}
#infographic-container .zoom-controls {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    text-align: center;
    line-height: 30px;
    font-size: 18px;
    font-weight: bold;
}
#infographic-container .zoom-in,
#infographic-container .zoom-out {
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: inline-block;
    margin-bottom: 3px;
    background: #fbfbfb;
    border-radius: 2px;
    color: #112f52;
    transition: background-color 0.2s ease;
}
#infographic-container .zoom-in:active,
#infographic-container .zoom-out:active {
    background-color: #fff;
}
#infographic-container .country {
    fill: #d1d3d4;
    stroke: #dcdcdc;
    stroke-width: .3px;
    stroke-linejoin: round;
    cursor: pointer;
    transition: stroke-width 750ms ease;
}
#infographic-container .country.gray-out {
    fill: #aaa !important;
}
#infographic-container circle.close-button {
    position: absolute;
    top: 0;
    right: 0;
}
#infographic-container rect {
    fill: none;
    pointer-events: all;
}
#infographic-container .chart-canvas {
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
    /* IE 8 */
    filter: alpha(opacity=50);
    /* IE 5-7 */
    -moz-opacity: 0.5;
    /* Netscape */
    -khtml-opacity: 0.5;
    /* Safari 1.x */
    opacity: 0.5;
    /* Good browsers */
}
#infographic-container .axis {
    font: 11px sans-serif;
}
#infographic-container .axis path,
#infographic-container .axis line {
    fill: none;
    stroke: #000;
    shape-rendering: crispEdges;
}
#infographic-container .axis.x path {
    display: none;
}
#infographic-container .bar {
    fill: #112f52;
    cursor: pointer;
}
#infographic-container .grid-background {
    fill: none;
}
#infographic-container .grid line,
#infographic-container .grid path {
    fill: none;
    shape-rendering: crispEdges;
}
#infographic-container .tick {
    cursor: pointer;
}
#infographic-container .brush .extent {
    stroke: #000;
    fill-opacity: .125;
    shape-rendering: crispEdges;
}
#infographic-container .resize path {
    fill: #666;
    fill-opacity: .8;
    stroke: #000;
    stroke-width: 1.5px;
}
#infographic-container .grid line {
    stroke: #ffffff;
}
#infographic-container .brush .extent {
    stroke: none;
    fill: #ffffff;
    fill-opacity: .25;
}
#infographic-container .resize path {
    fill: #2b83a3;
    stroke: none;
}
#infographic-container .axis {
    font: 9px "Open Sans", sans-serif;
    font-weight: 700;
}
#infographic-container #map-graph-container {
    background: #ffffff;
    position: relative;
    border: 3px solid #112f52;
    opacity: 0;
    transition: opacity .5s ease;
}
#infographic-container .investment-content {
    background: url('../images/noisy_grid.png');
    display: block;
    font: normal 8px "Open Sans", "Helvetica Neue", Helvetica, sans-serif;
    line-height: 1;
    float: none;
    width: 100%;
    padding: 0.5%;
}
#infographic-container .investment-content p {
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    margin-top: 0;
    color: #000;
}
#infographic-container #slider {
    padding: 10px 0 10px;
}
#infographic-container #infographic-title-select h1 {
    margin: 0;
    color: #ffffff;
    background-color: #112f52;
    padding: 10px 15px;
    font-size: 19px !important;
}
#infographic-container #slider-wrapper > svg {
    display: block;
    margin: 0 auto;
}
#infographic-container #slider-wrapper .axis {
    font: 13px "Open Sans", sans-serif;
    font-weight: 700;
    fill: #efefef;
}
#infographic-container #slider-wrapper p {
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
}
#infographic-container select {
    background: #fafafa no-repeat 100% center;
    border: 1px solid #cccccc;
    padding: 0.44444rem;
    font-size: 0.77778rem;
    font-family: "Open Sans", sans-serif;
    color: rgba(0, 0, 0, 0.75);
    line-height: normal;
    border-radius: 5px;
    height: 2.05556rem;
}
#infographic-container #infographic-title-select {
    background-color: #112f52;
}
#infographic-container #total-investment {
    padding: 5px;
    background-color: #e3e8ee;
    font-size: 16px;
    font-weight: 700;
    color: #112f52;
    text-align: center;
}
#infographic-container .map-slider-container {
    float: none;
    width: 100%;
    border-right: none;
    position: relative;
}
#infographic-container .download {
    padding: 10px;
    font-size: 10px;
    text-transform: uppercase;
}
#infographic-container .download a {
    color: #383739;
    font-weight: 700;
}
#infographic-container .reset-sector {
    float: right;
}
#infographic-container .clear {
    clear: both;
}
#infographic-container .details-wrapper {
    background: #112f52;
}
#infographic-container .reset {
    text-transform: uppercase;
    display: inline-block;
    text-decoration: none;
    background: #fafafa no-repeat 100% center;
    border: 1px solid #cccccc;
    padding: 0.44444rem;
    font-size: 0.77778rem;
    font-family: "Open Sans", sans-serif;
    color: rgba(0, 0, 0, 0.75);
    line-height: normal;
    border-radius: 5px;
    line-height: 1.2em;
    font-size: .9em;
    text-align: center;
}
#infographic-container .reset .reset-arrow {
    font-size: 2.5em;
    font-weight: bold;
    margin: .3em 0;
    text-align: center;
    -ms-transform: rotate(-80deg);
    /* IE 9 */
    -webkit-transform: rotate(-80deg);
    /* Chrome, Safari, Opera */
    transform: rotate(-80deg);
}
#infographic-container .map-options {
    background: #ffffff;
    overflow: hidden;
}
#infographic-container .map-options .map-options-title {
    padding: 5px;
    background-color: #e3e8ee;
    font-size: 16px;
    cursor: pointer;
    text-align: right;
    font-size: 14px;
    background-color: #112f52;
    color: #ffffff;
    white-space: nowrap;
}
#infographic-container .map-options .arrow {
    display: inline-block;
    margin-left: 10px;
    -ms-transform: rotate(180deg);
    /* IE 9 */
    -webkit-transform: rotate(180deg);
    /* Chrome, Safari, Opera */
    transform: rotate(180deg);
    transition: transform .2s ease;
}
#infographic-container .map-options.expanded .arrow {
    -ms-transform: rotate(0deg);
    /* IE 9 */
    -webkit-transform: rotate(0deg);
    /* Chrome, Safari, Opera */
    transform: rotate(0deg);
}
#infographic-container .map-options.expanded .investment-content {
    display: block;
}
#infographic-container .map-options .investment-content {
    display: none;
}
#infographic-container .map-options .map-filters {
    display: table;
    width: 100%;
}
#infographic-container .map-options .map-filters > div {
    padding: 10px;
    display: table-cell;
    vertical-align: middle;
}
#infographic-container .map-options .map-filters > div:first-child {
    width: 80%;
}
#infographic-container .map-options .map-filters select {
    width: 100%;
    margin-bottom: 10px;
    
}
#infographic-container .map-options .map-filters select:last-of-type {
    margin-bottom: 0;
}
#infographic-container .slider-container {
    background: #112f52;
}
#infographic-container #details-table {
    padding: 30px 0 10px;
}
#details-table {
    margin: 0px 20px;
}

  .div-kind {
    width: 100%;
    margin-bottom: 20px;
  }

    .checkbox-inline {
        position: relative;
        /* display: inline-block; */
        padding-left: 4px;
        margin-bottom: 0;
        font-weight: 400;
        vertical-align: middle;
        cursor: pointer;
    }
    .checkbox input[type=checkbox], .checkbox-inline input[type=checkbox] {
        position: absolute;
        margin-left: -20px;
    }

    #details-table label {
        color: #fff;
        text-transform: none;
        font-size: .8rem;
        position: inherit;
        background: inherit;
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }
    #details-table select {
        -webkit-box-shadow: unset;
        box-shadow: unset;
        margin-left: 10px;
        margin-right: 10px;
    }
    table {
        color: #fff;
    }
    table thead {
        font-size: 14px;
    }
    table tbody {
        font-size: 13px;
    }
    table tr {
        background-color: #112f52;
    }
    table th {
        text-align: inherit;
    }

    .modal {
        display: none; /* Hidden by default */
        position: fixed; /* Stay in place */
        z-index: 1; /* Sit on top */
        padding-top: 100px; /* Location of the box */
        left: 0;
        top: 0;
        width: 100%; /* Full width */
        height: 100%; /* Full height */
        overflow: auto; /* Enable scroll if needed */
        background-color: rgb(0,0,0); /* Fallback color */
        background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
      }
      
      /* Modal Content */
      .modal-content {
        background-color: #fefefe;
        margin: auto;
        padding: 20px;
        border: 1px solid #888;
        width: 80%;
      }
      
      /* The Close Button */
      .close {
        color: #aaaaaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
      }
      
      .close:hover,
      .close:focus {
        color: #000;
        text-decoration: none;
        cursor: pointer;
      }
@media (min-width: 768px) {
    #infographic-container .map-options {
        width: 30%;
        float: left;
    }
    #infographic-container .map-options.expanded {
        position: absolute;
        bottom: 0;
        min-height: 120px;
        top: 45px;
    }
    #infographic-container .map-options.expanded .arrow {
        -ms-transform: rotate(180deg);
        /* IE 9 */
        -webkit-transform: rotate(180deg);
        /* Chrome, Safari, Opera */
        transform: rotate(180deg);
    }
    #infographic-container .map-options .arrow {
        -ms-transform: rotate(0deg);
        /* IE 9 */
        -webkit-transform: rotate(0deg);
        /* Chrome, Safari, Opera */
        transform: rotate(0deg);
    }
    #infographic-container .investment-details {
        width: 70%;
        float: right;
    }
    #infographic-container .zoom-controls {
        display: block;
    }
}
