.color-1 {
  color: #66c2a5;
}

.color-2 {
  color: #fc8d62;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

svg {
  display: block;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

body {
  font-family: Arial, sans-serif;
  color: #262626;
  font-size: 16px;
  line-height: 1.5;
}

p {
  font-family: Georgia, serif;
  color: #767676;
}

a {
  color: #262626;
}

h1 {
  font-size: 50px;
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
  padding: 0 10px 0 10px;
  line-height: 1.2;
  margin-bottom: 40px;
}

.intro p,
.outro p {
  font-size: 20px;
  color: #767676;
  margin: 20px auto;
  padding: 0 10px 0 10px;
  width: 80%;
}

.intro img,
.outro img {
  display: block;
  width: 60%;
  margin: auto;
}

.scrolly > article p {
  color: #262626;
}

main {
  width: 1080px;
  margin: 60px auto 60px auto;
}

.scrolly {
  margin: 60px auto;
  padding: 0 10px 0 10px;
  position: relative;
}

.scrolly > figure {
  position: sticky;
  top: 0;
  width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-areas: "stack";
}

.scrolly > figure > * {
  grid-area: stack;
}

.scrolly > figure > .chart-container {
  width: 100%;
  height: 600px;
}

.scrolly > figure > .side-container {
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
  background-color: rgba(255, 255, 255, 0.98);
  position: absolute;
  top: 0;
  right: 0;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
  transform: translate(0, 48px);
}

.scrolly > figure > .side-container > * + * {
  margin-top: 20px;
}

.scrolly > article {
  position: relative;
  width: 560px;
  z-index: 1;
  margin: 0 auto;
  padding-bottom: 100px;
  pointer-events: none;
}

.scrolly > article > .step {
  height: 100vh;
  margin: 0 auto;
}

.scrolly > article > .step > div {
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.98);
  border: 1px solid #ddd;
  box-shadow: 1px 1px 10px #ddd;
  border-radius: 3px;
  pointer-events: all;
}

.color-legend .legend-title,
.symbol-legend .legend-title {
  font-weight: bold;
}

.color-legend .legend-item,
.symbol-legend .legend-item {
  display: flex;
  align-items: center;
}

.color-legend .legend-item__swatch {
  border-radius: 50%;
  width: 1em;
  height: 1em;
  margin-right: 5px;
}

.color-legend .legend-item__label,
.symbol-legend .legend-item {
  color: #767676;
}

.chart .axes .domain,
.chart .axes .tick line {
  color: #ddd;
}

.chart .axes text {
  color: #767676;
  font-family: inherit;
  font-size: 14px;
}

.chart .axes .axis-title {
  font-weight: bold;
}

.chart .axes .domain {
  display: none;
}

.chart .dot__symbol {
  fill: #fff;
  stroke-width: 2px;
  pointer-events: all;
}

.chart .dot:hover .dot__symbol {
  filter: brightness(120%);
}

.chart .dot__capture {
  fill: none;
  pointer-events: all;
}

symbol {
  stroke-width: 0.5px;
  stroke: currentColor;
  fill: currentColor;
}

.chart .dot__label,
.chart .dot__halo {
  color: #767676;
  font-size: 14px;
  pointer-events: none;
}

.chart .dot__halo {
  stroke: #fff;
  stroke-width: 3px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart .dot:hover .dot__label {
  color: #262626;
}

.chart .line__path {
  fill: none;
  stroke-width: 2px;
}

.vis-tooltip {
  position: fixed;
  padding: 10px;
  font-size: 12px;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #ddd;
  box-shadow: 1px 1px 10px #ddd;
  color: currentColor;
  pointer-events: none;
  max-width: 400px;
  z-index: 1;
}

.vis-tooltip[data-position="top"] {
  transform: translate(-50%, calc(-100% - 10px));
}

.vis-tooltip[data-position="bottom"] {
  transform: translate(-50%, 10px);
}

.vis-tooltip > * + * {
  margin-top: 0.25rem;
}

.vis-tooltip::before,
.vis-tooltip::after {
  left: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}

.vis-tooltip::before {
  border-color: rgba(102, 102, 102, 0);
  border-width: 8px;
  margin-left: -8px;
}

.vis-tooltip::after {
  border-color: rgba(255, 255, 255, 0);
  border-width: 7px;
  margin-left: -7px;
}

.vis-tooltip[data-position="top"]::before,
.vis-tooltip[data-position="top"]::after {
  top: 100%;
}

.vis-tooltip[data-position="top"]::before {
  border-top-color: #ddd;
}

.vis-tooltip[data-position="top"]::after {
  border-top-color: #fff;
}

.vis-tooltip[data-position="bottom"]::before,
.vis-tooltip[data-position="bottom"]::after {
  bottom: 100%;
}

.vis-tooltip[data-position="bottom"]::before {
  border-bottom-color: #ddd;
}

.vis-tooltip[data-position="bottom"]::after {
  border-bottom-color: #fff;
}

.fade {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease-in-out, visibility 0.15s ease-in-out;
}

.fade.is-visible {
  opacity: 1;
  visibility: visible;
}

.text-center {
  text-align: center;
}
