/* ML Part 2 page-specific styles */

#resolution-disclaimer {
  display: none;
}

@media (max-width: 1023px) and (max-height: 767px) {
  #resolution-disclaimer {
    z-index: 10000;
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    background: rgba(0,0,0,0.85);
  }

  #disclaimer-wrapper {
    width: 95vw;
    margin: 20px auto;
    color: #fff;
  }

  #dismiss-disclaimer {
    text-decoration: underline;
    cursor: pointer;
    color: #777;
  }
}

body {
  overflow-x: hidden;
  padding-top: 0;
  counter-reset: footnote;
}

#recap {
  width: 22em;
  line-height: 1.1em;
  position: absolute;
  top: 100px;
}

#recap span {
  font-size: 0.8em;
}

#set-up {
  height: 100vh;
  position: relative;
}

#title-text {
  position: absolute;
  bottom: 0;
  width: 75%;
  min-width: 500px;
}

#title-text h1 {
  font-size: 4.5em;
  margin: 0;
  width: 160%;
}

#sub-title {
  display: block;
  font-size: 0.8em;
  font-weight: bold;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 1em;
}

#trade-off-trees .treeErrorIndicator,
#trade-off-trees .singleNodeHighlight,
#intro-graphic .treeErrorIndicator,
#intro-graphic .singleNodeHighlight {
  display: none
}

.game-canvas-container canvas {
  width: 100%;
  height: auto;
}

.radial-tree-path {
  --progress: 10000;
  stroke: #ccc;
  stroke-width: 1px;
  stroke-dasharray: 1,1;
  stroke-dasharray: var(--progress), 10000;
}

.second-tree-SVG,
.game-canvas-container {
  transition: transform 0.2s;
}

.shift .second-tree-SVG,
.shift .game-canvas-container {
   transform: translate(0, -45vh);
}

#main p {
  background: rgba(255,255,255, 0.8);
}

.unsampledDots {
  transition: opacity 0.5s;
  opacity: 1;
}

.hideUnsampledDots .unsampledDots {
  opacity: 0;
}

.MiniTreeGroup, .SamplingGroup {
  transition: opacity 1s;
}

.footnote-anchor-v2 {
  position: relative;
}

.footnote-anchor-v2 span {
  position: absolute;
  padding: 0.9em;
  letter-spacing: 0;
  font-weight: normal;
  font-size: 0.6em;
  line-height: 1.6em;
  border: 1px solid #888;
  background: rgba(255,255,255,0.9);
  border-radius: 3px;
  width: 20em;
  display: none;
  top: 3em;
  left: 0;
}

.footnote-anchor-v2:hover span {
  display: block;
}

.footnote-anchor-v2:before {
  counter-increment: footnote;
  content: counter(footnote);
  font-weight: bold;
  color: #333;
  border: 1px solid #333;
  border-radius: 3px;
  font-size: 0.7em;
  padding: 0.1em 0.3em;
  cursor: pointer;
}

@keyframes singleNodeFadeIn {
  from { transform: translate(9px, 0); }
  to   { transform: translate(0, 0); }
}
