@import url('https://fonts.googleapis.com/css2?family=Newsreader:wght@200;300;400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Newsreader:wght@200;300;400;500&family=Ubuntu:wght@300;400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Itim&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@300;400&family=Itim&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Gloria+Hallelujah&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Newsreader:wght@300;400;600&display=swap');

:root {
  --purpleColour: #565264;
  --pinkColor: #805880;
  --lightBlueColour: #70a0af;
  --darkBlueColour: #70a0af;
  --lightColour: #e8e9ed;
  --darkColour: #2b2b2b;
}

body {
  background-color: var(--lightColour);
}
body, * {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: 'Ubuntu', sans-serif;
}


/*********************************************/
/************ Body of the article ************/
/*********************************************/
.article-text {
  width: 55%;
  min-width: 280px;
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.7;
  color: var(--darkColour);
  position: relative;
}
.article-body {
  font-size: 16px;
  column-count: 2;
}
.article-title {
  margin: 60px auto 40px auto;
  text-align: left;
  font-size: 55px;
  color: var(--lightColour);
  background-color: var(--lightBlueColour);
  background: linear-gradient(45deg, var(--lightBlueColour), var(--pinkColor));
  padding: 0px 60px 10px 10px;
  font-family: 'Inconsolata', monospace;
  border-radius: 5px;
}
.article-subtitle {
  text-align: center;
}
.speech-bubbles {
  color: var(--lightColour);
  font-size: 50px;
  position: absolute;
  top: 20px;
  right: 10px;
}
.scroll-down {
  margin: auto;
  margin-top: 30px;
  text-align: center;
  width: 200px;
  padding: 10px;
  font-weight: bold;
  color: var(--pinkColor);
}


/*********************************************/
/************** Graph and Steps **************/
/*********************************************/
.wrapper {
  margin: auto;
  position: relative;
  max-width: 1800px;
}
/* SVG chart */
figure {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: -1;
}
svg {
  margin-right: 25%; /* push the graph a bit to the left */
  z-index: -1;
}
/* scrolling text boxes */
.step {
  width: 25%;
  margin-left: 65%;
  margin-right: 10%;
  padding: 35px;
  margin-bottom: 100vh; /* this is how you give each step more height */
  background-color: #70a0af;
  color: var(--lightColour);
  z-index: 10;
  opacity: 1;
  line-height: 1.5;
}
#step-4 {
  background-color: #e8e9edb2;
  color: var(--darkColour);
}
#step-5 {
  background-color: var(--lightColour);
  padding: 0;
}
/* reduce the bottom margin of just the last step */
.step:last-of-type {
  margin-bottom: 120px;
}
/* words in the little word cloud */
.word {
  fill: var(--lightBlueColour);
  font-size: 40px;
  font-family: 'Gloria Hallelujah', cursive;
  text-anchor: middle;
}

.step-4-text {
  margin-bottom: 20px;
}

/* stats in the last step */
.stats-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  text-align: center;
  margin: auto;
}
.number-words, .age {
  font-size: 30px;
  font-family: 'Inconsolata', monospace;
  font-weight: bold;
  border: 1px solid var(--lightColour);
  border-radius: 5px;
}
.age {
  background-color: #706993;
  color: var(--lightColour)
}
.number-words {
  background-color: #805880;
  color: var(--lightColour)
}
.number-words-text, .age-text {
  width: 100px;
  margin-top: 0px;
  padding: 5px 0;
  color: rgb(37, 37, 37);
  font-family: 'Inconsolata', monospace;
}


/*********************************************/
/*********** various elements ****************/
/*********************************************/
.link, .link:visited {
  color: var(--lightBlueColour);
  text-decoration: none;
  border-bottom: 2px solid var(--lightBlueColour);
  transition: 0.3s ease;
}
.link:hover, .link:active {
  color: var(--lightColour);
  background-color: var(--lightBlueColour);
}
.link-blue {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid var(--lightColour);
  transition: 0.3s ease;
}
.link-blue:hover, .link-blue:active {
  background-color: var(--lightColour);
  color: var(--lightBlueColour);
}
.bold {
  font-weight: 700;
}


/*********************************************/
/************* Media Queries *****************/
/*********************************************/
@media(max-width: 1030px) {
  .article-text {
    width: 75%;
  }
  .article-title {
    text-align: left;
    font-size: 40px;
    padding: 0px 60px 10px 10px;
  }
  .step {
    width: 40%;
    margin-left: 55%;
    margin-right: 5%;
    background-color: #70a0afda;
  }
  #step-4 {
    background-color: #e8e9edde;
    color: var(--darkColour);
  }
}

@media(max-width: 650px) {
  .article-text {
    width: 80%;
  }
  .article-body {
    column-count: 1;
  }
}

@media(max-width: 500px) {
  .article-text {
    width: 87%;
  }
}





