body {
  /* margin: auto;
	width: 650px; */
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  margin: 0px; /*important so that margin calculations on iframes work*/
  font-size: 15px; /*standart size on statewatch website*/
  background-color: #f2f2f3;
  line-height: 1.4;
}

body > p,
body > .menu,
.caption > p {
  margin: 1em 20px;
}

h3 {
  font-size: 1.8rem;
  margin: 20px 20px 0px 20px;
  line-height: 1.1;
}

.line {
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
}

rect {
  stroke: #f2f2f3;
  stroke-width: 0.1px;
}

rect:hover {
  stroke: #333333;
  stroke-linecap: round;
  stroke-width: 1px;
}

.axis path {
  fill: none;
}
.tooltip {
  margin-right: 5px;
  font-size: 0.85rem;
  /* font-family: monospace; */
  position: absolute;
  display: none;
  background-color: white;
  border: none;
  opacity: 0.95;
  width: 150px;
  text-align: left;
  border-radius: 5px;
  /* box-shadow: 1px 1px 5px #7f7f7f; */
}

.tooltip > div {
  padding: 10px;
}

.tooltip-title {
  border-radius: 5px 5px 0px 0px;
  background-color: white;
  border-bottom: #e6e6e6 1px solid;
  padding-bottom: 7px !important;
}

.tooltip-content {
  padding-top: 7px !important;
}

.tick > text {
  font-size: 0.85rem;
  font-family: monospace;
}

text.text_label {
  font-size: 0.85rem;
}

svg > text {
  font-size: 0.8rem;
  fill: #666;
  font-family: monospace;
}

.grey_labels > g > text {
  /* font-weight: 600;
  fill: #666; */
  font-family: Arial, Helvetica, sans-serif;
}

.tick > line {
  display: none;
}

.y-axis > path,
.x-axis > path {
  display: none;
}
/* .line{
  opacity: 0.2
}

.line:hover {
  opacity: 1;
} */

.caption > p {
  color: #666;
  font-size: 0.85rem;
}

a {
  color: #7e7292;
}

a:hover {
  color: #715678;
}

.mobile-hidden {
  display: block; /* Show the text on desktop */
}

@media (max-width: 500px) {
  .mobile-hidden {
    display: none; /* Hide the text on mobile */
  }
  h3 {
    font-size: 18px;
    margin: 15px 10px 0px 10px;
  }
  p {
    font-size: 0.9em;
  }
  .caption p {
    font-size: 0.8em;
    line-height: 1.2;
  }
  .caption {
    position: absolute;
    bottom: 0;
  }
  .tick > text {
    font-size: 0.75rem;
    font-family: monospace;
  }

  body > p,
  body > .menu,
  .caption > p {
    margin: 1em 10px;
  }
}
