#scrolly-teller-app {
  max-width: 2000px;
  margin: 0 auto;
}

.narration .intro {
  margin: 0;
}

#publicConfidenceApp {
  width: 98%;
  margin: 0 1%;
}

.left {
  margin: 0;
  text-align: left;
  width: 70%;
}

.narration-content {
  z-index: 1000;
}
svg {
  overflow: hidden;
}

.axis .tick {
  fill: none;
  stroke: #3f3d56;
}
.axis path {
  fill: none;
  stroke: #3f3d56;
}

.inner-axis .tick {
  fill: none;
  stroke: #50413c;
  stroke-opacity: 0.1;
}
.inner-axis path {
  fill: none;
  stroke: none;
}
.y-title,
.x-title {
  color: #433e38;
  font-size: 0.5em;
  font-weight: 200;
  line-height: 20px;
  letter-spacing: -1px;
  margin-bottom: 5%;
}

.flex_vertical_column_all_centered,
.graph_container,
.graph_default {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  justify-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}
.scroll {
  width: 100%;
  padding: 1%;
}
.section {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: reverse;
  -ms-flex-direction: row-reverse;
  flex-direction: row-reverse;
}
.narration_list {
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  /*margin: 0;*/
  margin-left: 10%;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  min-width: 35%;
  max-width: 30rem;
}
.graph_container {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  position: fixed;
  position: sticky;
  opacity: 0;
  top: 15vh;
  height: 80vh;
  /*padding: 0;*/
  margin: 0;
  /*min-width: 50%;*/
  padding-right: 15%;
  padding-left: 5%;
}
.graph_container.active {
  position: sticky;
}

.line_year_label {
  font-size: 6rem;
}

.line_annot_label {
  font-size: 1.4rem;
}

.line_axis_tick_label {
  font-size: 1rem;
}

.graph_title {
  font-size: 1.1rem;
  max-width: 70%;
}

.graph_caption {
  font-size: 0.9rem;
  max-width: 80%;
}
.graph_default {
  opacity: 1;
  width: 100%;
  height: 100%;
}
.narration,
.narration.active {
  text-align: left;
  /*opacity:0.3;*/
}
.narration.active {
  opacity: 1;
}

.narration p,
.narration a,
.narration .prettyprint {
  padding: 0.5rem 5% 0.5rem 5%;
  font-size: 1rem;
}

#tooltip {
  position: absolute;
  width: 200px;
  height: auto;
  padding: 10px;
  background-color: white;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border-radius: 6px;
  -webkit-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
  -moz-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index:1000;
}

#tooltip.hidden {
  display: none;
}

#tooltip p {
  margin: 0;
  font-family: sans-serif;
  font-size: 16px;
  line-height: 20px;
}

@media only screen and (max-width: 1200px) {
    .narration-content h2 {
    font-size:24px;
    margin-bottom:0;
}
  .section {
    display: block !important;
  }
  .intro .narration-content {
    background-color:rgba(255,255,255,0.925);
    box-shadow: 0 6px 12px rgba(0,0,0,0.09),0 2px 4px rgba(0,0,0,0.12);
    border-left: 5.5px solid #5e5f89;
    padding: 3%;
    -webkit-transform: translateY(-1%);
    transform: translateY(-1%);
    border-radius: 3px;
  }
  .narration_list {
    /*margin-left: 0;*/
    margin: 0;
    margin-top:-80%;
    max-width: 80% !important;
    position:relative;
  }
  
  .graph_container {
    margin: 0;
    padding: 0;
  }
  #tooltip {
    opacity:0;
  }
}

.empty_narration {
  opacity: 0 !important;
}

ol {
  counter-reset: list;
  list-style: none;
}
li {
  counter-increment: list;
  position: relative;
}

#graph_templateLineChart {
  background-color: transparent;
}

#codeSnippet,
#graph_templateLineChart svg,
#codeSnippet img {
  width: 90%;
  position: absolute;
  top: auto;
  left: auto;
}

#codeSnippet {
  overflow-x: auto;
}

#graph_templateLineChart svg,
#codeSnippet img {
  /*pointer-events: none;*/
}

#graph_templateLineChart .imageDiv {
  position: absolute;
  top: auto;
  left: auto;
  width: 100%;
  height: 100%;
}
#graph_templateLineChart .imageDiv img {
  width: 90%;
  height: 90%;
}
