@import url('https://fonts.googleapis.com/css2?family=Hind:wght@400;500&family=Montserrat:wght@400;700&display=swap');

:root {
  --background: #fffffe;
  --text: #2e2e2e;
  --green: #4fc4cf;
  --purple: #994ff3;
  --yellow: #fbdd74;
}

body {
  font-family: Hind;
  font-size: 18px;
  line-height: 2;

  background-color: #fffffe;
  color: var(--text);
  max-width: 100%;

  background-image: url('cake.svg');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position-x: 15%;
  background-position-y: 50px;
  background-size: 90px;
}

/* HEADER STYLES  */

header {
  display: flex;
  max-width: 820px;
  margin: 0 auto 0 auto;

  /*   flex-flow:  flex-wrap; */
}

header div {
  /*   padding: 100px 0 0 0; */
  max-width: 600px;
  margin: 50px 0 50px 0;
}

h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 65px;
}

h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 56px;
  font-weight: 400;
  line-height: 60px;

  color: var(--purple);
}

img {
  display: none;
  min-width: 240px;
  max-width: 250px;
}

/* PARAGRAPH */

.paragraph {
  margin: 30px auto 30px auto;
  max-width: 820px;
}

.paragraph p {
  margin-top: 30px;
}

/*  */
/* SVG */
.svg-container {
  margin: 0 auto 0 auto;
  max-width: 820px;
}

.annotation-note-title {
  font-size: 16px;
}

.annotation-note-label {
  font-size: 12px;
}

h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 30px;
}

h4 {
  font-size: 12px;
  font-weight: 400;
  font-style: italic;
}

.svg-container p {
  font-size: 12px;
  font-weight: 400;
  font-style: italic;

  text-align: right;
}

.line-chart .path {
  fill: none;
  stroke: var(--green);
  stroke-width: 6px;
  stroke-linecap: round;
}

path.domain {
  stroke-width: 0px;
}

path text {
  font-family: Hind;
}

/* SVG ONE */
article {
  position: relative;
}
figure.sticky, figure.sticky-bar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}

#scrolly-overlay .scrolly  {
  max-width: 60rem;
  margin: 3rem auto;
  padding: 1rem;
}

#scrolly-overlay-bar .scrolly-bar {
  max-width: 60rem;
  margin: 3rem auto;
  padding: 1rem;
}


article {
  padding: 0;
  max-width: 30rem;
  margin: 0 auto;
  position: relative;
}
.step {
  min-height: 67vh;
  margin-bottom: 1rem;
}

step:last-of-type {
  margin-bottom: 0;
}

step.is-active p {
  background-color: black;
}

.step p {
  margin: 0;
  font-family: Hind;
  font-size: 16px;
  line-height: 2;
  padding: 1rem;
  text-align: center;
  font-weight: 400;
  background-color: rgba(241, 241, 241, 1);
  transition: background-color 250ms ease-in-out;
}

.step p span{
  color: var(--green);
  font-weight: 700;
}

.step p span.yellow{
  color: rgba(255, 207, 18, 1);
  font-weight: 700;
}

 .hoverable{
  opacity: 0;
}

 .bar-g:hover .hoverable{
  	opacity: 1;
   fill: var(--green);
}

 .bar-g:hover rect{
  fill: var(--green);
}

.end{
  margin-bottom: 100px;
}

a:link{

color: var(--purple);

text-decoration: none;

}
/* MOBILE */

@media only screen and (max-width: 1450px) {
  body {
    background-position-x: 10%;
  }
}

@media only screen and (max-width: 1300px) {
  body {
    background-position-x: 5%;
  }
}

@media only screen and (max-width: 1130px) {
  body {
    background-position-x: 2%;
    background-size: 55px;
  }
}

@media only screen and (max-width: 1019px) {
  img {
    display: block;
    min-width: 180px;
    max-width: 200px;
  }

  body {
    background-image: none;
  }
}

@media only screen and (max-width: 920px) {
  header,
  .paragraph {
    margin: 30px auto 30px auto;
    max-width: 80%;
  }

  h1,
  h2 {
    font-size: 48px;
  }

  header div {
    padding: 50px 0 0 0;
  }

  .svg-container {
    margin: 0 auto 0 auto;
    max-width: 80%;
  }
}

@media only screen and (max-width: 770px) {
  header {
    flex-wrap: wrap;
  }

  img {
    min-width: 120px;
    max-width: 130px;
  }

  header div {
    padding: 0 0 0 0;
    margin: 20px 0 50px 0;
  }

  h1,
  h2 {
    font-size: 36px;
    line-height: 50px;
  }
}

@media only screen and (max-width: 770px) {
  h1,
  h2 {
    font-size: 28px;
    line-height: 38px;
  }

  .paragraph {
    font-size: 16px;
  }
}
