@import url('https://fonts.googleapis.com/css?family=Roboto');
@import url('https://fonts.googleapis.com/css?family=Domine:400,700&display=swap');

* {
  box-sizing: border-box;
}

body {
    background-color: rgb(245, 244, 241);
    font-family: 'Roboto', sans-serif;
    margin: 0;
}


header {
  display: inline-block;
  margin: 0;
  background-image: url('./images/bg_pic.jpg');
  background-repeat: no-repeat;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

header h1 {
  text-align: center;
  text-transform: uppercase;
  font-weight: 800;
  line-height: 60px;
  font-size: 45px;
  margin-top: 50px;
  margin-left: 12vw;
  margin-right: 12vw;
  padding-top: 2vh;
  padding-bottom: 2vh;
  word-spacing: 0.08em;
  background-color: rgba(245, 244, 241, 0.6);
}

.credit {
  position: relative; 
  z-index: 2;
  text-align: right;
  margin-right: 5px;
  margin-bottom: 2px;
  margin-left: auto;
  color: white;
}

header p {
  text-align: center;
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  background-color: rgba(245, 244, 241, 0.7);
}

a.home-link {
   color: #204251;
   text-decoration: none;
   border-bottom: 1px dotted;
   margin-left: 4px;
   margin-right: 4px;
   font-style: normal;
}

a.home-link:hover {
  color: #1AA6CF;
  text-decoration: none;
}

@media screen and (min-width: 850px) {

  header p {
    margin: auto;
    margin-bottom: 50px;
    padding: 2rem;
    width: 65%;
  }

  .graphic {
    position: relative;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    background-color: rgb(245, 244, 241);
    padding: 1rem;
    margin-bottom: 10vh;  /* add some space after each 'section' */
  }

  #graphic_1, #graphic_3{  /*order elements from right to left*/
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: row-reverse;
  }

  #graphic_2 { 
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }


  .step:last-child {
    margin-bottom: 20rem;
  }

  #graphic_3 {
    margin-bottom: 5vh;
  }

  .graphic > * {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
  }

  .sections {
    display: block;
    position: relative;
    padding: 0 1rem;
    max-width: 25rem;
    padding-top: 20vh;  /* to add some space before first step so that alignment with figure is nice */
    font-family: "Domine";
  }

  .vis {
    position: sticky;
    width: 100%;
    margin: 0 auto;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    /*background-color: #8a8a8a;*/
    z-index: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    align-items: center;
    padding-left: 3vh;
    padding-right: 3vh;
  }

  .svg_1 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    justify-content: center;
  }
  .svg_map {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    justify-content: center;
  }
  .svg_3 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    justify-content: center;
  }

  .step {
    margin: 0 auto 15rem auto;
  }

  .step {
    background-color: rgba(238, 240, 238, 0.9);
    border-left: thick solid rgba(212, 215, 212, 0.9);
    opacity: 0.1;
  }
  
  .step.is-active {
    opacity: 1;
  }


}

@media screen and (max-width: 850px) {

  header p {
    margin: auto;
    padding: 20px;
    margin-bottom: 20px;
    width: 90%;
}

  .graphic {
    position: relative;
    background-color: rgb(245, 244, 241);
    padding: 1rem;
    margin-bottom: 5vh;  /* add some space after each 'section' */
  }

  .sections {
    position: relative;
    padding: 0 1rem;
    width: 100%;
    font-family: "Domine";
  }
  
  .vis {
    position: -webkit-sticky; /* Required for Safari */
    position: sticky;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    z-index: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    align-items: center;
    background: rgba(245, 244, 241, 1);
  }

  .svg_1 {
    max-height: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: block;
  }
  .svg_map {
    max-height: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: block;
  }
  .svg_3 {
    max-height: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: block;
  }

  .step {
    margin: 0 auto 50vh auto;
  }

  .step {
    background-color: rgba(238, 240, 238, 0.9);
    border-left: thick solid rgba(212, 215, 212, 0.9);
    opacity: 1;
  }
  
  .step.is-active {
    opacity: 1;
  }
  
  .step:last-child {
    margin-bottom: 60vh;
  }
  
}

.closure {
  position: relative;
  padding: 1vw 1vw 1vw 1vw;
  margin-left: 15vw;
  margin-right: 15vw;
  margin-bottom: 15vh;
  font-family: "Domine";
  background-color: rgba(238, 240, 238, 0.9);
  border-left: thick solid rgba(212, 215, 212, 0.9);
}

.methodologie {
  position: relative;
  padding: 1vw 1vw 1vw 1vw;
  margin-left: 10vw;
  margin-right: 10vw;
  margin-bottom: 25vh;
  font-family: 'Roboto', sans-serif;
}


.step h2 {
  text-align: center;
  padding-top: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 3rem;
}

.step p {
  text-align: center;
  padding: 1rem;
  font-size: 1rem;
}

.legend-label {
  font-size: 1.6rem;
  font-family: 'Roboto', sans-serif;
}

.tooltip {
    position: fixed;
    background-color: rgba(0, 93, 93, 0.85);
    color: white;
    padding: 0.4em 0.4em 0.4em 0.4em;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    z-index: 100;
}

#map_note {
  font-family: 'Roboto', sans-serif;
  font-size: 30px;
}

.selected {
  fill: red;
}

.title_fig {
  font-family: "Domine";
  font-size: 40px;
}

.legend_fig {
  font-family: "Domine";
}

