@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");

/* HTML css */
svg:not(:root) {
  overflow: hidden;
}
html {
  overflow-y: scroll;
}
ul,
div.nav {
  pointer-events: none;
}
li {
  pointer-events: all;
}
.catGroup h2 {
  border-bottom: 1px solid #e3e3e3;
  padding-bottom: 5px;
  margin-bottom: 5px;
  text-transform: uppercase;
  font-size: 20px;
  letter-spacing: 1px;
}
.hideMe {
  display: none;
}
.tempHide,
.unhighlight {
  fill-opacity: 0 !important;
}
.noMouse {
  pointer-events: none;
}
#document {
  margin: 5% auto;
  font: 0.8rem "Roboto", Helvetica, Arial, sans-serif;
}

#mapTitle {
  font-size: 28px;
  font-weight: normal;
  line-height: 100%;
}
#model {
  font-size: 14px;
  margin-bottom: 8px;
}
#linkButton {
  float: right;
  padding: 0.25em;
  font-size: 14px;
  font-weight: normal;
}
select {
  border: 1px solid #d3d3d3;
  color: #555555;
  font-weight: normal;
  white-space: nowrap;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  padding: 0.25em;
  font-size: 1rem;
}
select:disabled {
  background: silver;
  font-style: italic;
}
option.default {
  color: red;
  font-style: italic;
}
#model select {
  margin-bottom: 5px;
}
ul.tabs {
  list-style: none;
  padding: 35px 10px;
  margin: 0;
}
ul.tabs li {
  border: 1px solid #d3d3d3;
  color: #555555;
  font-weight: normal;
  font-size: 14px;
  list-style: none outside none;
  margin: 5px 0 5px 5px;
  padding: 0.25em 0.25em;
  top: 0;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  background-color: white;
  text-align: center;
}
ul.tabs li:hover {
  color: #212121;
  cursor: pointer;
  box-shadow: 0 14px 14px -14px #cccccc inset;
}
ul.tabs li.active,
ul.tabs li.active:hover {
  background-color: #7a7a7a;
  color: #f8f8f8;
  box-shadow: 0 14px 14px -14px #969696 inset;
  cursor: default;
  font-weight: bold;
}
div#tooltip {
  z-index: 10;
  color: #000;
  position: absolute;
  max-width: 170px;
  padding: 2px;
  background: rgba(255, 255, 255, 1);
  border: thin solid transparent;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  -webkit-box-shadow: 0 0 5px 0 rgba(50, 50, 50, 0.75);
  -moz-box-shadow: 0 0 5px 0 rgba(50, 50, 50, 0.75);
  box-shadow: 0 0 5px 0 rgba(50, 50, 50, 0.75);
  pointer-events: none;
  text-align: center;
  visibility: hidden;
}
#tooltip header {
  font-size: 0.8rem;
  font-weight: bold;
  border: none;
  padding: 1px;
}
#tooltip .question {
  font-size: 12px;
}
#tooltip .percent {
  font-size: 15px;
  font-weight: bold;
}
#tooltip .counts {
  font-size: 10px;
}
#tooltip hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #000;
  margin: 1px 0;
  padding: 0;
}
div.map {
  position: relative;
}

/* SVG css*/
text {
  pointer-events: none;
}
.axis text {
  font-size: 10px;
}
.axis path,
.axis line {
  fill: none;
  stroke: #000;
  shape-rendering: crispEdges;
}
.axis line.zeroLine {
  stroke: gray;
  stroke-linecap: round;
  stroke-opacity: 0.7;
}
rect.bgBox {
  fill: darkblue;
  fill-opacity: 0.05;
  shape-rendering: crispEdges;
}
line.meanLine {
  stroke: darkblue;
  stroke-dasharray: 3, 3;
  stroke-linecap: round;
  stroke-opacity: 0.2;
  shape-rendering: crispEdges;
}
line.regressionLine {
  stroke: darkblue;
  stroke-width: 1.5px;
  stroke-dasharray: 5, 3;
  stroke-linecap: round;
}
svg#scatter .point {
  fill: lightslategray;
  stroke: lightslategray;
  stroke-opacity: 0.5;
  fill-opacity: 0.2;
  cursor: pointer;
}
svg#scatter .point.selected {
  fill: #ff00ff;
  stroke: #ff00ff;
  stroke-opacity: 0.5;
  fill-opacity: 0.2;
}
.scatterTitle {
  font-weight: bold;
  font-size: 18px;
}
.scatterXLabel,
.scatterYLabel {
  font-weight: bold;
}
text.r2Text {
  fill: darkblue;
}
text.countText {
  fill: red;
  font-style: italic;
}
.extent {
  stroke: #fff;
  fill-opacity: 0.125;
  shape-rendering: crispEdges;
}
.geography path {
  stroke-linejoin: round;
  stroke-width: 0.2px;
}
path.selectionOutline {
  stroke: #212f3c;
  stroke-width: 0.1rem;
  fill: none;
}
g.place path {
  stroke-width: 0.5px;
  stroke: white;
  fill: black;
}
g.place text {
  font-size: 4px;
  fill: black;
}
g.place text.fore {
  font-size: 4px;
  fill: black;
}
g.place text.back {
  font-size: 4px;
  fill: none;
  stroke: white;
  stroke-linejoin: round;
}
g.place.capital path {
  stroke: white;
  fill: black;
}
g.place.capital text {
  fill: black;
}
.click {
  stroke: none;
  fill: none;
  pointer-events: all;
  cursor: pointer;
  stroke-linejoin: round;
}
.hover {
  fill: transparent !important;
  stroke: #000 !important; /*ff00ff*/
  stroke-width: 0.2rem !important;
  stroke-opacity: 1 !important;
  fill-opacity: 1 !important;
}
.click.zoomState {
  stroke: black;
  stroke-opacity: 1;
}
.chartTitle {
  font-size: 20px;
  font-weight: bold;
}
.barGroup rect {
  stroke: white;
  stroke-width: 1px;
}
text.name {
  margin-bottom: 15px;
}

text.label {
  font-size: 12px;
  font-weight: normal;
}
text.bar.value {
  font-size: 14px;
}
rect.legendBack {
  fill: white;
  fill-opacity: 0.8;
  stroke: none;
  pointer-events: none;
}
rect.legendRect {
  shape-rendering: crispEdges;
}
line.legendLine {
  shape-rendering: crispEdges;
  stroke: #565656;
  stroke-width: 1px;
  pointer-events: none;
}
text.legendText,
path.arrowHead,
text.arrowText {
  fill: #565656;
}
.legendGroup:first-of-type .legendLine,
.legendGroup:first-of-type .legendText {
  display: none;
}
.legendGroup.show:first-of-type .legendLine,
.legendGroup.show:first-of-type .legendText,
.legend .extreme {
  display: inline;
  fill: #565656;
}
text.legendTop,
text.legendBottom {
  text-anchor: middle;
  font-size: 16px;
  font-weight: bold;
  text-rendering: optimizeLegibility;
}
text.legendNatVal {
  font-size: 12px;
  text-rendering: optimizeLegibility;
  font-weight: normal;
}
g.legend text.legendTop {
  fill: #1b7837;
}
g.legend text.legendBottom {
  fill: #762a83;
}
text.legendInteractionText {
  text-decoration: underline;
  fill: blue;
  cursor: pointer;
  pointer-events: all;
}
text.legendLabel {
  font-weight: bold;
}
g.backBtn rect {
  fill: #dfdfdf;
  stroke: black;
  stroke-width: 0.5px;
  cursor: pointer;
}
g.backBtn rect:hover {
  fill: #bfbfbf;
}
g.backBtn path {
  pointer-events: none;
}
text.chartTitle {
  font-weight: bold;
  font-size: 24px;
}
text.chartTitle.front {
  fill: black;
}
text.chartTitle.back {
  fill: white;
  stroke: white;
  stroke-width: 3px;
}
text.natText {
  font-size: 42px;
}
text.natText.back {
  stroke: white;
  stroke-width: 2px;
  stroke-linejoin: round;
}
rect.backRect {
  fill: #c0c0c0;
  stroke: #858585;
}
.agree text,
.disagree text {
  fill: white;
}
text.name {
  font-size: 15px;
}
line.halfLine {
  stroke: #919191;
}
text.halfText {
  font-size: 10px;
  fill: #919191;
}
.aboutDiv {
  margin-top: 40px;
  line-height: 150%;
  min-height: 20px;
  padding: 19px;
  margin-bottom: 20px;
  background-color: #f5f5f5;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}
.aboutDiv h4 {
  font-size: 18px;
  margin: 12px auto;
}

@media print {
  .moreCharts {
    page-break-after: always;
  }
}

.masked {
  z-index: -999;
  position: absolute;
  opacity: 0;
}
.show-cluster {
  display: block;
}

.display-1 {
  font-size: 2vmin;
}

button {
  margin-left: 0.2vw;
  margin-right: 0.2vw;
}

#barPlots {
  width: 100%;
  max-height: calc(100vh * 0.28);
  background-color: #fff;
  border: 1px solid var(--theme-color);
  border-radius: 10px;
  -moz-box-shadow: 10px 10px 10px var(--theme-color),
    -10px -10px 10px var(--theme-color);
  -webkit-box-shadow: 10px 10px 10px var(--theme-color),
    -10px -10px 10px var(--theme-color);
  box-shadow: 10px 10px 10px var(--theme-color),
    -10px -10px 10px var(--theme-color);
  padding: 0.5em 1em;
  margin: 1em 0em 0em 0em;
  overflow-y: scroll;
  z-index: 0;
}
tbody {
  cursor: default;
}

.table {
  margin-bottom: 0;
}
.table td {
  width: 3ch;
}
thead {
  vertical-align: middle;
  text-align: center;
}
th {
  font-weight: 600;
  padding: 0rem 0rem !important;
  vertical-align: middle !important;
  max-width: 10em;
  border: none !important;
}
td {
  overflow: hidden;
  padding: 0rem 0rem !important;
  position: relative;
  border-top: none !important;
  /* z-index: 2; */
}
#barsL td {
  vertical-align: top !important;
}
thead tr {
  height: 4ch;
}

/* Hide scrollbar for Chrome, Safari and Opera */
#barPlots::-webkit-scrollbar {
  display: none;
}
/* Hide scrollbar for IE and Edge */
#barPlots {
  -ms-overflow-style: none;
}

.bar-chart {
  border: 0px solid #fff;
  -webkit-print-color-adjust: exact;
  background-color: transparent !important;
}
.neg-bar {
  font-weight: 600;
  /* width: 2.2ch; */
  width: 1.8ch;
  top: 0;
  position: absolute;
  /* z-index: 1; */
}
.pos-bar {
  font-weight: 600;
  /* width: 2.2ch; */
  width: 1.8ch;
  bottom: 0;
  position: absolute;
  /* z-index: 1; */
}
.chart-label {
  font-size: 0.5rem;
  /* writing-mode: vertical-rl; */
  /* writing-mode: horizontal-tb; */
}
#barsP .chart-label {
  writing-mode: vertical-rl;
}
#barsN .chart-label {
  writing-mode: horizontal-tb;
}
#state {
  font-size: 0.5rem;
}
.figTitle {
  float: left;
  padding: 0.1em 1em;
  background-color: #ddd;
  top: 0;
  font-weight: 600;
}
