/* 
If you change any min-width threshold, make sure you also change the innerWidth threshold in the html file 
to the same value
*/
* {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
@media (min-width: 38em) {
  html {
    font-size: 20px;
  }
}

body {
  color: #515151;
  background-color: #fff;
  -webkit-text-size-adjust: 100%;
      -ms-text-size-adjust: 100%;
}


/* mobile */
.graph-area {
  position: fixed;
  text-align: center;
  top: 0;
  left: 10px;
  right: 10px;
  color: #555;
  background: #eee;
  font-size: 0.8rem;
  z-index: 600;
}
/* desktop */
@media (min-width: 800px) {
  .graph-area {
    position: fixed;
    top: 0;
    right: 20px;
    left: 900px;
    color: #555;
    background: white;
    width: 550px;
    text-align: center;
    z-index: 600;
  }
}

/* mobile */
.main-area {
  position:relative;
  top: 250px;
  bottom: 0px;
  margin-left: 20px;
  margin-right: 20px;
}
/* desktop */
@media (min-width: 800px) {
  .main-area {
    max-width: 38rem;
    left: 2rem;
    right: 6px;
    position:relative;
    top: 0px;
    bottom: 0px;

  }
}


.axis path,
.axis line {
  fill: none;
  stroke: black;
  shape-rendering: crispEdges;
}

.axis text {
  font-family: sans-serif;
  font-size: 11px;
}


.axis_label {
  font-family: sans-serif;
  font-size: 12px;
}

.economist {
  fill: rgb(58,195,242);
  stroke: rgb(255, 255, 255);

}
.user {
  fill: rgb(237,38,133);
  stroke: rgb(255, 255, 255);
}

.deviating_response{
  background: rgb(255,255,0);
}


#matrix_container {
  display: block; 
  color: #555;
  font-size: 20px;
  position: absolute;
  left: 90px;
  width: 630px;
  text-align: center;
}


#closest_economist {
  font-family:"Courier New", Courier, monospace;
  font-size: 14px;
  font-weight: bold;
  position:relative;
  line-height: 0.5
}
@media (min-width: 800px) {
  #closest_economist {
    font-family:"Courier New", Courier, monospace;
    font-size: 20px;
    font-weight: bold;
    position:relative;
    line-height: 1.0
  }
}

#highlight_button_container_under_graph {
  display: None; /* hidden */
  position:relative;
}
@media (min-width: 800px) {
  #highlight_button_container_under_graph {
    display: block; 
    position:relative;
  }
}

#highlight_button_container_under_questions {
  display: block;
  position:relative;
  text-align: center;
}
@media (min-width: 800px) {
  #highlight_button_container_under_questions {
    display: None; /* hidden */
    position:relative;
  }
}

a {
  text-decoration:none;
  color:rgb(58,195,242);
}

.question_link {
  text-decoration:none;
  color: #555;
}

.background {
  fill: #eee;
}

line {
  stroke: #fff;
}

.text {
  color: #555;
  font-size: 14px;
  text-align:justify;
}

.question-text {
  color: #555;
  font-size: 14px;
}

.date-text {
  color: #888;
  font-size: 10px;
}

.h1 { 
  margin-top: 1em;
  color: #555;
  font-size: 24px;
}


.h3 { 
  margin-top: 1.5em;
  color: #555;
  font-size: 20px;
}

.matname_text {
  color: #555;
  font-size: 18px;
  text-align:justify;
  cursor: pointer;
}

.matname_text.active {
  fill: rgb(58,195,242);
}


#title {
  font-size: 24px;
}

.caption {
    color: #555;
    font-size: 8px;
    text-align: center;
}
@media (min-width: 800px) {
  .caption {
    color: #555;
    font-size: 16px;
    text-align: center;
  }
}

.all-done {
  color: #555;
  font-size: 12px;
  text-align: center;
}

.radioset {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.ui-button-text {
  font-size: 8px;
}
@media (min-width: 800px) {
  .ui-button-text {
    font-size: 12px;
  }
}

.highlights-button {
  font-size: 10px;
}
@media (min-width: 800px) {
  .highlights-button {
    font-size: 14px;
  }
}

