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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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;
}

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

.intro p {
  font-size: 20px;
  color: #767676;
  max-width: 830px;
  text-align: center;
  margin: 0 auto 52px;
  padding: 0 10px 0 10px;
  margin-top: 16px;
  width: 80%;
  margin-bottom: 0px;
}

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

.intro img {
  width: 80%;
  margin: 40px auto;
}

.scrolly {
  padding: 0 10px 0 10px;
  position: relative;
  display: grid;
}

.scrolly > * {
  grid-area: 1 / -1;
}

.scrolly > article {
  width: 250px;
  z-index: 1;
}

.scrolly > figure {
  position: sticky;
  top: 0;
  width: 100%;
  height: 640px;
  display: grid;
}

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

.scrolly .step {
  min-height: 100vh;
}

.scrolly .step > * + * {
  margin-top: 1em;
}

.scrolly > article .filters-container > * + * {
  margin-top: 20px;
}

.scroll-button {
  color: #767676;
  font-size: 18px;
  line-height: 40px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  user-select: none;
  align-items: center;
  border: none;
  background: none;
  transition: color 0.15s ease-in-out;
  margin-top: 300px;
}

.scroll-button > svg {
  margin-right: 0.5em;
}

.scroll-button:hover {
  color: #262626;
}

.select label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
}

.select .tail-select {
  width: 100%;
}

.select .tail-select input[type="text"] {
  font-size: 14px;
}

.select .tail-select .select-dropdown ul li {
  font-size: 14px;
}

.select .tail-select .select-dropdown ul li.dropdown-option {
  color: #767676;
}

.select .tail-select .select-dropdown ul li.dropdown-option.selected {
  color: #262626;
}

.legend-container {
  width: calc(100% - 260px);
  margin-left: auto;
  z-index: 1;
  transform: translate(-100px, 0);
  visibility: hidden;
  opacity: 0;
  transition: transform 1s ease-in-out, visibility 1s ease-in-out,
    opacity 1s ease-in-out;
  height: 110px;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  display: flex;
}

.legend-container.is-visible {
  transform: translate(0, 0);
  visibility: visible;
  opacity: 1;
}

.legend-container > * {
  padding: 0 10px;
}

.legend-container > * + * {
  border-left: 1px solid #ddd;
}

.color-legend .legend-items {
  width: 100%;
  display: grid;
  gap: 10px;
  grid-auto-flow: column;
  grid-auto-columns: 6em;
}

.color-legend .legend-item {
  display: grid;
  grid-template-areas: "stack";
  align-items: center;
  justify-items: center;
}

.color-legend .legend-item > * {
  grid-area: stack;
}

.color-legend .legend-item__swatch {
  width: 68px;
  height: 68px;
  border-radius: 50%;
}

.color-legend .legend-item__label {
  text-align: center;
  line-height: 1.2;
  font-size: 14px;
}

.swatch {
  display: inline-block;
}

.swatch::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.125em;
  border-radius: 50%;
  background-color: var(--color);
  position: relative;
  top: 0.15em;
}

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

.chart .bubble {
  transition: opacity 0.15s ease-in-out;
}

.chart .is-highlighting .bubble:not(.is-highlighted) {
  opacity: 0.2;
}

.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;
}
