:root {
  --white: #ffffff;
  --black: #000;
  --col1: #C757A1;
  --col2: #e0a3c7;
  --col3: #005336;
  --col4: #3f8565;
  --col5: #74bb98;
  --col0: #ffffff;
  --main: #3f8565;
  --secondary: #005336;
  --text: #000;
  --background: #e4e9e0; 
}

@font-face {
  font-family: LilitaOne;
  src: url(../assets/fonts/LilitaOne-Regular.ttf) format('truetype');
}
@font-face {
  font-family: WorkSans;
  src: url(../assets/fonts/WorkSans-VariableFont_wght.ttf) format('truetype');
}
@font-face {
  font-family: Sriracha;
  src: url(../assets/fonts/Sriracha-Regular.ttf) format('truetype');
}

body {
  text-align: center;
  background-color: var(--background);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1400px 2100px;
  margin: 0;
  padding: 0;
}
main {
  margin-top: 0;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  padding: 30px;
  width: 720px;
}
.sub-section {
  padding-left: 20px;
  padding-right: 20px;
}
.about {
  padding-top: 36px;
  font-size: 12px;
  text-align: center;
  color: var(--main);
}
a {
  color: var(--secondary);
  text-decoration: none;
}
.link {
  border-bottom: 1px solid var(--secondary);
}
.link:hover {
  color: var(--main);
  border-bottom: 1px solid var(--main);
}
h1{
  margin: 0px;
  color: var(--main);
  font-family: LilitaOne;
  font-size: 36px;
  line-height: 1em;
  text-transform: uppercase;
}
h2 {
  color: var(--main);
  font-family: Sriracha;
  font-size: 20px;
  padding-top: 10px;
  margin: 0;
  text-align: left;
  /* text-transform: uppercase; */
}
h3{
  color: var(--main);
  font-family: Sriracha;
  font-size: 20px;
  margin: 0px;
  padding-bottom: 20px;
}
#building, #group {
  width: 100%;
}
#logo {
  width: 60%;
  max-width: 220px;
  padding-bottom: 10px;
}
#swish {
  width: 60%;
  max-width: 150px;
}
.swish-number {
  color: var(--text);
  text-decoration: none;
}
.social-media {
  height: 40px;
  padding: 5px;
}
p {
  color: var(--text);
  font-family: 'WorkSans', sans-serif;
  font-weight: 300;
  font-size: 14px;
  text-align: left;
}
#page-title{
  display: inline;
}
/* figure progress */
h3, h6 {
  margin: 0;
  line-height: 1em;
}
h6 {
  font-size: .8em;
  padding: 0 0 .5em;
  color: #919191;
}
figure {
  margin: 0 auto;
  max-width: 1100px;
  position: relative;
}
.row {
  margin-bottom: 1.5em;
}
.graphic {
  /* padding-left: 30px; */
  font-family: WorkSans, sans-serif;
  font-weight: 300;
  /* background-color: ; */
  color: white;
  line-height: 1em;
  /* padding: 2em; */
}
@keyframes expand {
  from {width: 0%;}
  to {width: 100%;}
}
@media screen and (min-width: 768px) {
  @keyframes expand {
    from {width: 0%;}
    to {width: calc(100%);}
  }
}
.chart {
  overflow: hidden;
  width: 0%;
  animation: expand 1.5s ease forwards;
}
.row + .row .chart {
  animation-delay: .2s;
}
.block {
  display: block;
  height: 100px;
  color: var(--background);
  font-size: .75em;
  float: left;
  background-color: var(--col0);
  position: relative;
  overflow: hidden;
  opacity: 1;
  transition: opacity, .3s ease;
  cursor: pointer;
}
.block:nth-of-type(1),
.legend li:nth-of-type(1):before {
  background-color: var(--col1);
}
.block:nth-of-type(2),
.legend li:nth-of-type(2):before {
  background-color: var(--col2);
}
.block:nth-of-type(3),
.legend li:nth-of-type(3):before {
  background-color: var(--col3); 
  /*  #962D3E*/
}
.block:nth-of-type(4),
.legend li:nth-of-type(4):before {
  background-color: var(--col4);
}
.block:nth-of-type(5),
.legend li:nth-of-type(5):before {
  background-color: var(--col5);
}
.block:hover {
  opacity: .65;
}
.value {
  display: block;
  white-space: nowrap;
  line-height: 1em;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%) rotate(270deg);
}
.x-axis {
  text-align: center;
  font-family: WorkSans, sans-serif;
  font-size: 12px;
  font-weight: 300;
}
.legend {
  margin: 0 auto;
  padding-left: 20px;
  font-size: .9em;
}
.legend li {
  color: var(--text);
  display: inline-block;
  padding-right: 20px;
  line-height: 1em;
}
.legend li:before {
  content: "";
  margin-right: .5em;
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--col0);
}
@media screen and (min-width: 768px) {
  h6 {
    padding: 0;
    width: 75px;
    float: left;
    line-height: 100px;
  }
  .block {
    font-size: 1em;
  }
  .legend {
    width: 60%;
  }
}

@media only screen and (min-device-width: 375px) and (max-device-width: 667px),
  only screen and (min-device-width: 375px) and (max-device-width: 720px) {
  body {
    background-size: 800px 1200px;
  }
  h1 {
    font-size: 36px;
  }
  h2 {
    font-size: 16px;
  }
  main {
    width: 100vw;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 30px;
    padding-bottom: 30px;
  }
  p {
    font-size: 12px;
  }
}

/* IPHONE 5S/SE*/
@media only screen and (min-device-width: 320px) and (max-device-width: 667px) {
  body {
    background-size: 800px 1200px;
  }
  h1 {
    font-size: 36px;
  }
  h2 {
    font-size: 16px;
  }
  main {
    width: 100vw;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 30px;
    padding-bottom: 30px;
  }
  p {
    font-size: 12px;
  }
}
