/**
* Text
**/

html {
  height: 100%;
  overflow-y: scroll;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 1em;
  color: #222;
  line-height: 1.5em;
  font-weight: 400;
  text-align: center;
}

body * {
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: 750px;
  display: inline-block;
  text-align: left;
  padding: 30px 30px 40px;
  box-sizing: border-box;
}

/**
* Factor buttons
**/

.factor-buttons {
  font-family: courier;
  text-align: center;
  font-size: 15px;
}

.factor-button {
  display: inline-block;
  margin: 5px 0;
  width: 90px;
  padding: 16px 3px 11px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0);
  cursor: pointer;
}

.factor-button.active {
  background: #f1f1f1;
  border: 1px solid #9f9f9f;
}

.factor-button img {
  width: 45px;
}

/**
* Chart scrolls
**/

.chart {
  max-width: 100%;
  overflow: auto;
}

/**
* Tooltip
**/

.tooltip {
  position: absolute;
  z-index: -1;
  opacity: 0;
  background: #efefef;
  box-sizing: border-box;
  padding: 15px;
  text-align: center;
}

.tooltip * {
  display: inline-block;
}

.tooltip .value {
  color: #52beda;
  font-weight: 800;
  font-size: 24px;
  vertical-align: bottom;
}

/**
* Chart axes
**/

.domain {
  fill: none;
  stroke: darkgray;
}

text {
  font-family: 'courier';
  font-size: 15px;
  fill: #666;
}

/**
* Steam chart
**/

.steam-chart-container {
  position: relative;
}

#steam-chart-tooltip {
  width: 340px;
}

#steam-chart {
  cursor: default;
  margin: 20px 0 10px;
  text-align: center;
}
