body, html {
  margin: 0;

  
}
body,
html,
.wealth-wrapper-outer
.wealth-row {
  min-height: 100%;
}
.title-screen {
  width: 100vw;
}
.title-screen.middle-screen{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6, p, li span {
  font-family: Raleway, sans-serif ;
}
h1 {
  text-align: center;
  font-size: 60px;
  line-height: 0.9;
  width: 100%;
  margin-top: 100px;
}

h2 {
  font-weight: normal;
}

h2.center{
  text-align: center;
}

h3 {
  text-align: center;
  font-size: 30px;
  line-height: 0.9;
  width: 100%;
  margin-top: 100px;
}
.scroll-this-way {
  align-self: flex-end;
  width: 460px;
  height: 165px;
  position: absolute;
  right: 0;
  bottom: 70px;
  padding-top: 22px;
  padding-left: 48px;

  font-size: 30px;
  color: #00000033;

  background-image: url(img/right.svg);
  background-repeat: no-repeat;
  background-size: 60%;
  background-position: 50px 40px;

  animation-name: bouncy-arrow;
  animation-delay: 0;
  animation-iteration-count: infinite;
  animation-direction: forward;
  animation-duration: 3s;
}

.footer {
  position: absolute;
  bottom: 40px;
  text-align: center;
  font-size: 12px;
  width: 100vw;
}

.social{
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.social .twitter-share-button{
  margin-left: 20px;
}

@media (max-width: 450px) {
  .scroll-this-way {
    right: -35vw;
  }

  .title-screen {
    width: 94vw;
    padding-right: 3vw;
    padding-left: 3vw;
  }

  .footer {
    width: 94vw;
  }
  
}
@keyframes bouncy-arrow {
  0% {background-position: 50px 40px;}
  20% {background-position: 50px 40px;}
  25% {background-position: 70px 40px;}
  30% {background-position: 45px 40px;}
  35% {background-position: 70px 40px;}
  40% {background-position: 50px 40px;}
  100% {background-position: 50px 40px;}
}

.wealth-wrapper-outer {
  font-family: Raleway, sans-serif ;
  overflow: visible;
  display: inline-block;
}
.center-sticky {
  position: sticky;
  left: 50%;
  transform: translate(-50%, 0);
}
.navigation {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translate(-50%, 0);
  display: flex;
}
.navigation .button {
  color: rgba(0,0,0,0);
  width: 20px;
  display: block;
  height: 20px;
  border-radius: 100%;
  background-position: 5px;
  background-color: #d8d8d8;
  box-shadow: inset 1px 6px 12px #e2e2e2, inset -1px -10px 5px #a9a9a9, 1px 2px 1px #797979;
  overflow: hidden;
  margin: 4px;
}
.navigation .button-inner {
  background-repeat: no-repeat;
  background-size: 8px;
  height: 100%;
  background-position: 5px;
}
.navigation .prev-button .button-inner {
  background-image: url(img/prev.svg);
}
.navigation .next-button .button-inner {
  background-image: url(img/next.svg);
  background-position: 7px 5px;
}
.navigation .home-button .button-inner {
  background-image: url(img/house.svg);
  background-size: 12px;
  background-position: 4px 4px;
}
.navigation .about-button .button-inner {
  color: #999999;
  font-weight: bold;
  text-decoration: none;
  text-indent: 5px;
  line-height: 22px;
}


.wealth-row {
  display: inline-flex;
}
.arrow {
  margin-left: -6px;
  margin-top: 5px;
}
.wealth-wrapper {
  margin: 1em 3em;
}
.wealth {
  background-color: black;
  align-items: center;
  display: flex;
}
.title {
  margin-bottom: 5px;
}
.wealth > .wealth-title {
  flex-basis: 1%;
  padding: 10px;
}



@media (max-width: 450px) {
  .wealth-title {
    font-size: 19px;
  }
}
.wealth-title {
  align-self: flex-start;
  position: sticky;
  left: 0;
  margin-bottom: 5px;
  color: black;
  margin-top: 0;
}


.ruler {
  background-image: url('img/ruler.svg');
  background-repeat: repeat-x;
  background-position: 0 470px;
}



/****************************************************************
INFOBOXES
****************************************************************/


.text-infobox .title,
.infobox .chart {
  max-width: 450px;
}
.infobox .chart img {
  max-width: 100%;
}
.infobox .chart,
.infobox .title-square-wrapper,
.infobox .title {
  font-weight: normal;
  line-height: 1.4;
  width: 96vw;
  max-width: 600px;
}
@media (max-width: 450px) {
  .infobox .midtext,
  .infobox .title {
    width: 90vw;
  }
}
.infobox.year-veteran .title {
  position: sticky;
  left: 0;
}
.infobox .chart,
.infobox .piechart,
.infobox .worldchart,
.infobox .chart-outer,
.infobox .midtext,
.infobox .title-square-wrapper,
.text-infobox .title {
  position: sticky;
  left: 50%;
  transform: translate(-50%);
}
@media (max-width: 450px) {
  .infobox.line-chart .chart-outer {
    left: 5px;
    width: 98vw;
  }
  .infobox .square,
  .infobox .title-square-wrapper,
  .infobox .piechart,
  .infobox .chart-outer,
  .infobox .midtext,
  .infobox .title {
    left: 10px;
    transform: none;
  }
}
.sub-infobox .square,
.sub-infobox .midtext,
.sub-infobox .title {
  position: static;
}
.infobox {
  z-index: 1;
  margin-left: 8000px;
  width: 15000px;
}
.flex {
  display: flex;
}



.infobox.first {
  margin-left: 2300px;
}
.infobox.first .title {
  max-width: 450px;
}
.infobox.coming-up .title,
.infobox.five-pixels .title {
  max-width: 280px;
}
.infobox-half {
  margin-left: 4000px;
}
.infobox-quarter {
  margin-left: 2000px;
}
.infobox-close {
  margin-left: 500px;
}
.infobox-very-close {
  margin-left: 200px;
}
.infobox-none {
  margin-left: 00px;
}
.sub-infobox {
  margin: 0 40px;
}
.sub-infobox .title {
  width: 430px;
}
.midtext-wrapper {
  display: flex;
  margin-top: 150px;
  width: 60%;
}
.column-infobox .sub-infobox {
  margin-bottom: 20px;
}



/****************************************************************
Objects
****************************************************************/


.one{
  width: 100px;
}
.one-hundred {
  width: 1px;
  height: 1px;
  margin-top: 5px;
}

.median {
  width: 320px;
}
.median .wealth {
  margin-top: 5px;
  width: 13.56px;
  height: 13.56px;
}
.explainer {
  font-size: 16px;
  font-weight: normal;
}
.million {
  width: 150px;
}
.million .wealth {
  width: 100px;
  height: 100px;
  background-color: #4CAF50;
}



.billion .wealth-title {
  min-width: 200px;
}
.billion .wealth {
  width: 20000px;
  height: 500px;
  background-color: #03A9F4;
}
.billion .vertical {
  display: flex;
}
.billion .vertical > h2{
  width: 400px;
  align-self: center;
  text-align: right;
  padding-right: 16px;
}
.billion .vertical > .wealth{
width: 10px;
height: 500px;
background-color: crimson;
}
.billion .vertical.fifty-vertical > .wealth{
  width: 50px;
}

@media (max-width: 450px) {
  .billion .wealth {
    border-bottom: 3px dotted #007fb7;
  }
}

.tap {
  margin-right: 0;
}
.tap .wealth {
  width: 64000px;
  height: 500px;
  background-color: orange;
}
.tap .wealth-title{
  min-width: 400px;
}
.four-hundred .wealth {
  margin-left: 100px;
  width: 6401200px;
  height: 500px;
  background-color: #03A9F4;
}

.key {
  position: absolute;
  top: 450px;
  width: 170px;
  background-image: url(img/scale.svg);
  background-repeat: no-repeat;
  background-position: 0px 4px;
  display: flex;
  justify-content: center;
}
.key > span {
  display: inline-block;
}
.tap .key > span {
  background-color: orange;
}


.four-hundred .key > span {
  background-color: #03A9F4;
}
.shadow {
  box-shadow: -3px 5px 10px;
}
.counter {
  align-self: flex-end;
  left: 10px;
  position: sticky;
  transform: translate(0, 27px);
  color: black;
  padding: 5px;
  min-width: 140px;
}



.lifetime .square {
  width: 77.33px;
  height: 77.33px;
  background-color: blue;
}

.doctor .square {
  width: 148.32px;
  height: 148.32px;
  background-color: #0661b9;
}

.nurse .square {
  width: 95.6px;
  height: 95.6px;
  background-color: #008a61;
}

.piloto .square {
  width: 216.8px;
  height: 216.8px;
  background-color: #9daebf;
}


.healthcare .square {
  width: 4.96px;
  height: 4.96px;
  background-color: blue;
}

/* municipal budgets 219 M€ */
.municipal-budgets .square {
  height: 400px;
  width: 5475px;
  margin-top: 5px;
  background-color: #8BC34A;
}
.municipal-budgets .square .title {
  width: auto;
  padding: 10px;
  max-width: 380px;
  left: 0;
  position:sticky;
}
.municipal-budgets .midtext-wrapper {
  width: 100%;
}


/* hospital 132.9 M€ */

.hospital-budget {
  width: auto;
}
.hospital-budget .square {
  height: 400px;
  width: 3325px;
  background-color: #03A9F4;
  box-sizing: border-box;
}
.hospital-budget .square .title {
  padding: 10px;
  position: sticky;
  left: 1px;
  display: inline-block;
}
.hospital-budget .key {
  top: 310px;
}
.hospital-budget .key > span {
  background-color: #03A9F4;
}


/* guarda */
.il-guarda-logo {
  background-image: url('img/il-guarda.jpeg');
  background-size: 120px;
  background-position: center center;
  width: 120px;
  height: 120px;
  border-radius: 140px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}


.title-screen.last{
  margin-left: 80px
}

.title-screen.last .vote{
  margin-top:50px;
}

.title-screen.last .slogan{
  padding: 10px;
  background-color: #c3007a;
  border-radius: 5px;
  font-weight: 600;
  color: white;
  text-transform: uppercase;

  max-width: 450px;
  margin-top: 50px;
  margin-right: auto;
  margin-left: auto;
}

@media (max-width: 450px) {
  .title-screen.main h1 {
    font-size: 36px;
    margin-top:50px;
    margin-bottom: 10px;
  }
  .title-screen.main h2 {
    font-size: 23px;
  }

  .title-screen.last .vote{
    margin-top:40px;
  }

  .title-screen.last h1{
    font-size: 34px;
    margin-top: 50px;
  }

  .title-screen.last .slogan{
    text-align: center;
    margin-top: 40px;
    font-size: 20px;
  }

  .il-guarda-logo {
    background-size: 80px;
    width: 80px;
    height: 80px;
  }
}

/* familias */
.people {
  background-image: url('img/person.svg');
  background-size: 20px;
}
.people.first {
  margin-top: -1040px;
}
.people-wrapper-outer h2 {
  font-size: 16px;
  font-weight: normal;
  text-align: center;
  margin: 5px;
}
.people-wrapper {
  width: 800px;
  height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
}
.four-hundred-people .people {
  width: 800px;
  height: 400px;
}
.sixty-percent-people .people {
  width: 800px;
  height: 22700px;
}
.sixty-percent-people .people-wrapper {
  box-shadow: inset 0 0 10px #000000;
}
.bubble {
  border-radius: 10px;
  font-weight: bold;
  box-shadow: 4px 4px 5px;
  font-size: 28px;
  background-color: white;
  text-align: center;
  padding: 10px;
}
.people-label {
  position: absolute;
  top: 40%;
  left: 30%;
}
.scroll-indicator {
  position: absolute;
  top: 40%;
  left: 260px;
  font-size: 18px;
  max-width: 240px;
}
.people-sub-label {
  font-weight: normal;
  font-style: italic;
  font-size: 14px;
  margin-top: 4px;
}
.people-wrapper .percent {
  background-color: rgb(255, 255, 255);
  font-size: 20px;
  font-weight: bold;
  display: inline-block;
  border-radius: 10px;
  box-shadow: 4px 4px 5px;
  padding: 10px;
  position: -webkit-sticky;
  position: sticky;
  margin-top: 1000px;
  top: 160px;
  margin-left: 350px;
}
@media (max-width: 450px) {
  .people {
    background-size: 10px;
  }
  .people-wrapper {
    width: 200px;
    height: 400px;
  }
  .four-hundred-people .people {
      width: 200px;
      height: 400px;
  }
  .sixty-percent-people .people {
    width: 200px;
    height: 22700px;
  }
  .people-label {
    left: 15px;
    font-size: 20px;
  }
  .people-wrapper .percent {
    margin-left: 66px;
  }
}




/* others */



.line-chart svg {
  max-width: 100%;
}
.line-chart .chart-outer {
  width: 720px;
  max-width: 100vw;
  text-align: center;
}
.line-chart .chart-inner {
  height: 200px;
  overflow: hidden;
  margin-bottom: 5px;
}
.zoom.line-chart .chart-inner {
  transition: box-shadow .8s;
  box-shadow: inset 0 0 10px #00000042;
}
.zoom.line-chart svg {
  transition: all 1.5s;
  width: 700%;
  max-width: 700%;
  height: auto;
  margin-top: -84%;
  margin-left: -20%;
}
@media (max-width: 450px) {
  .line-chart .chart-inner .zero,
  .line-chart .chart-inner .two-hundred-million,
  .line-chart .chart-inner .zuck-name {
    font-size: 28px;
  }
  .zuck-wealth {
    font-size: 20px;
  }
  .line-chart .zero-outer {
    transform: translate(160px, 356px);
  }
  .desktop-zuck {
    display: none;
  }
  .zoom.line-chart svg {
    width: 1200%;
    max-width: 1200%;
    margin-top: -140%;
    margin-left: -36%;
  }
}
@media (min-width: 451px) {
  .mobile-zuck {
    display: none;
  }
}
.zoom-out,
.zoom .zoom-in {
  display: none;
}
.zoom .zoom-out {
  display: inline;
}
.no-single-human {
  margin-left: 18000px;
}
.no-single-human .title {
  max-width: 390px;
}

.ninety-wrapper {
  width: 590px;
  max-width: 96vw;
}
.plane-wrapper {
  width: 480px;
  max-width: 96vw;
}
.ninety-wrapper img,
.plane-wrapper img {
  width: 100%;
  height: auto;
}
.what-could-we-do.title {
  width: 330px;
  text-align: center;
  font-size: 25px;
  font-weight: bold;
}
.piechart {
  position: relative;
}
.piechart .piechart-outer {
  width: 300px;
  height: 300px;
  transform: rotate(-50deg);
  background: yellowgreen;
  border-radius: 50%;
}
.piechart .piechart-inner {
  fill: yellowgreen;
  stroke: #655;
  stroke-width: 32;
}
@media (max-width: 450px) {
  .piechart.piechart h2 {
    font-size: 17px;
  }
}


.three-percent .piechart-inner {
  stroke-dasharray: 3 100;
}

.twenty-percent .piechart-inner {
  stroke-dasharray: 20 100;
}

.point-zero-three-percent .piechart-inner {
  stroke-dasharray: .03 100;
}
.two-point-seven-percent .piechart-inner {
  stroke-dasharray: 2.7 100;
}

.five-percent .piechart-inner {
  stroke-dasharray: 5 100;
}
.five-point-three-percent .piechart-inner {
  stroke-dasharray: 5.3 100;
}
.six-percent .piechart-inner {
  stroke-dasharray: 6 100;
}
.seven-point-five-percent .piechart-inner {
  stroke-dasharray: 7.5 100;
}
.six-percent .piechart-outer {
  transform: rotate(-45deg);
}
.six-point-eight-percent .piechart-inner {
  stroke-dasharray: 6.8 100;
}
.three-percent .piechart-outer,
.two-point-five-percent .piechart-outer,
.two-point-seven-percent .piechart-outer,
.two-point-eight-percent .piechart-outer {
  transform: rotate(-38deg);
}
.five-percent .piechart-outer,
.four-percent .piechart-outer {
  transform: rotate(-43deg);
}
.four-tenths-percent .piechart-outer {
  transform: rotate(-34deg);
}
.seven-point-five-percent .piechart-outer,
.six-point-three-percent .piechart-outer {
  transform: rotate(-46deg);
}
.four-tenths-percent .piechart-inner {
  stroke-dasharray: .4 100;
}
.two-point-five-percent .piechart-inner {
  stroke-dasharray: 2.5 100;
}
.two-point-eight-percent .piechart-inner {
  stroke-dasharray: 2.8 100;
}
.four-point-three-percent .piechart-inner {
  stroke-dasharray: 4.3 100;
}
.six-point-three-percent .piechart-inner {
  stroke-dasharray: 6.3 100;
}
.four-point-eight-percent .piechart-inner {
  stroke-dasharray: 4.8 100;
}
.forty-percent .piechart-inner {
  stroke-dasharray: 40 100;
}
.piechart .dotted-line {
  position: absolute;
  width: 80px;
  height: 0;
  top: 40px;
  left: 270px;
  border-top: 2px dashed black;
  transform: rotate(-38deg);
}
.piechart .label {
  position: absolute;
  left: 347px;
  top: -7px;
  font-size: 24px;
}
.piechart h2 {
  font-size: 20px;
}
@media (max-width: 450px) {
  .piechart .label {
    left: 277px;
    top: 43px;
    font-size: 18px;
  }
  .piechart .dotted-line {
    display: none;
  }
}
.piechart .description {
  width: 300px;
  text-align: center;
}
.about {
  visibility: hidden;
  transition: opacity .7s;
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.65);
}
.about.open {
  visibility: visible;
  opacity: 1;
}
.modal-inner {
  opacity: 1;
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translate(-50%, 0);
  height: 0;
  width: 0;
  overflow: scroll;
  transition: height .7s, width .7s;
  background-color: white;
}
.modal-text {
  width: calc(90vw - 40px);
  height: calc(95vh - 40px);
  overflow: visible;
  padding: 20px;
}
.about.open .modal-inner,
.about.open .modal-inner {
  height: 95vh;
  width: 90vw;
}

@media (max-width: 450px) {
  h3 {
    /*font-size: 14px;*/
  }
}
.cares .chart {
  text-align: center;
}

.all-of-them .title {
  width: 370px;
}
@media (max-width: 450px) {
  .all-of-them .title {
    width: 340px;
  }
}
.instructions {
  transition: opacity 300ms;
  margin-top: 40px;
  max-width: 80%;
  color: black;
  font-size: 14px;
  opacity: 0;
}
.instructions.show {
  opacity: 1;
}
@media (max-width: 450px) {
  .instructions {
    display: none;
  }
}
.medical-chart {
  text-align: center;
}
