@keyframes blink {
  0% {
    opacity: 1;
  }
  10% {
    opacity: 1;
  }
  50% {
    opacity: .3;
  }
  90% {
    opacity: 1;
  }
}

@keyframes blinkLighter {
  0% {
    opacity: .6;
  }
  10% {
    opacity: .6;
  }
  50% {
    opacity: .2;
  }
  90% {
    opacity: .6;
  }
}

body {
  font-family: Proxima Nova, sans-serif;

}

.chart {
  font-family: Proxima Nova, sans-serif;
  width: 100%;
  height: 500px;
  position: relative;
}

  .chart, .chart * {
    user-select: none;
    -webkit-user-select: none;
    cursor: default;
  }
 
 .chart svg g * {
   transition: opacity .5s;
 }
 
 .chart.dim .mouseRect, .chart.dim .x.axis .tick line  {
   opacity: 0;
   transition: all .5s;
 }
  
 .chart.dim .dot.first {
   opacity: 1;
 }
 
 .chart.dim .borderline {
   opacity: 1;
 }
  
.opener {
  position: absolute;
  width: calc(50% - 55px);
  font-size: 24px;
  text-align: center;
  line-height: 1.1em;
  margin-left: calc(25% + 55px);
  top: calc(50% - 15px);
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}  


.dot {
  fill: #fafafa;
  stroke: #EE2A24;
  stroke-width: 3;
} 

.dot.hidden {
  opacity: 0;
}

.dot.first {
  cursor: pointer;
  stroke-width: 10;
  stroke: #EE2A24;
}

.dot.first.blinking {
  animation: blink 1s infinite;
}
  
.mouseRect {
  opacity: 1;
  fill: #fafafa;
}

.userLine, .realLine {
  fill: none;
  stroke: #ddd;
  stroke-width:3px;
  stroke-dasharray: 3,3;
}

.userLine {
  stroke: #EE2A24;
}

  .userLine.filled {
    stroke-dasharray: 0;
    transition: all .5s;
  }

.realLine {
  stroke: purple;
  stroke-width: 10px;
}

.axis path, .tick line {
  stroke-width: 1px;
  stroke: #999;
}

.tick {
  font-family: Proxima Nova, sans-serif;
  font-size: 14px;
  fill: #999;
}

.y.axis .tick text {
  font-weight: normal;
  fill: #666;
  font-size: 13px;
}

.x.axis .tick text {
  font-weight: normal;
  fill: #666;
  font-size:13px;
}

.x.axis path {
  display: none;
}

.x.axis line {
  stroke-dasharray:1,1;
}

.y.axis line {
  fill: #666;
  stroke-width: 1px;
}

.y.axis path {
  display: none;
}

.tick:first-of-type {
  display: none;
}

.borderline {
  stroke-width: 1px;
  stroke: #999;
}

.borderline.bottom {
  stroke: #333;
}

.finishLine {
  stroke: #EE2A24;
  stroke-width: 8px;
  opacity: 0!important;
}

  .finishLine.blinking {
      animation: blinkLighter 1s infinite;
      opacity: .6!important;
  }

.hidden {
  transition: opacity .5s;
  opacity: 0;
}

.label {
  font-size: 15px;
  fill: #666;
}

.in-chart-label {
  font-size: 14px;
  font-weight: bold;

}

  .in-chart-label.real {
    fill: purple;  
  }

  .in-chart-label.guess {
    fill: #EE2A24;  
  }
  
.endNote {
  font-size: 20px;
  text-align: center;
  margin-top: 10px;
}

.averageLine {
  fill: none;
  stroke: #003A63;
  stroke-width: 10px;
}

.button {
  display: inline-block;
  margin-left: 10px;
  border-radius: 5px;
  background-color: #EE2A24;
  color: white;
  font-size: 14px;
  padding: 6px 10px;
  cursor: pointer;
  position: relative;
  top: -3px;
  white-space: nowrap;
  margin-top:10px;
}

.button.disabled {
  background-color: #eee;
  color: #ccc;
  cursor: default;
}


@media screen and (max-width: 600px){
  
  .opener {
    font-size:16px;
    width: calc(80% - 95px);
    margin-left: calc(10% + 59px);
  }
  
  .x.axis g.tick:nth-child(2n+1) {
    display: none;
  }
 
 .chart {
   height: 300px;
 }
 
 .button {
   width: 80%;
   padding: 10px 0px;
   font-size:16px;
   margin: 20px 0 0;
 }
 
 .endNote {
   font-size:16px;
 }
 
 .dot.first {
   cursor: pointer;
   stroke-width: 10;
   stroke: #EE2A24;
   fill: #EE2A24;
   fill-opacity: .1;
 }
 
 .in-chart-label {
   font-size: 12px;
   font-weight: bold;

 }
  
}