@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro');

/********** Document wide **********/
* {font-family: 'Source Sans Pro' , 'Arial'; }

/********** Navigation bar **********/
nav {
  z-index:1;
  height: 35px;
  top: 0px;
  left: 0px;
  background-color: #000;
  width: 100%;
  position: fixed;
}

nav p{
  color: #fff;
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/********** Header (initial image) **********/
header {
  background-color: #fff;
  /*background-color: #000;*/
  /*height: 100vh;*/
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #000;
  /*color: #fff;*/
  margin: 0px auto;
}

header h1, h2, h3 {
  text-align: center;
  margin: 0px 0px 5px 0px;
}

/********** Headings **********/
h2, h3, h4 {
  text-align: center;
}

h2 {font-size:120%;}
h3 {font-size:100%}

/********** Body **********/
body {
  margin: 40px 0px;
}

p {
  margin: 0px;
  line-height: 1.4em;
  margin-bottom: 15px;
}

#content {
  max-width: 940px;
  margin: auto;
  width: 70%;
}

a { text-decoration: none;}

/********** Table **********/

table {
  font-size: 90%;
  width: 75%;
  text-align: right;
  margin: auto;
  border-spacing: 00px;
}

th {
  text-align: center;
  border-bottom: 1px solid ;
  }

.greyHeader {
  background-color: #e0e0e0; ;
}

.greyHeaderTwo {
  text-align: right;
}

tr.bottomRow td {
  border-bottom: 1px solid ;
}

td.rowLeft, th.rowLeft {
  text-align: left; 
}

td.rowLeftIndent {
    text-align: left;
    text-indent: 15px;
}

/********** D3 **********/

.xaxis, .yaxis, .label {
  font-size: 90%;
}

text {
  font-size: 80%;
}

.graphFootnote {
  line-height: 1.5em;
  margin: 10px;
  text-align: center;
  font-size: 80%
}

.axis path,
.axis line {
  shape-rendering: crispEdges;
}

.path {
  fill: #c7eae5;  
}

.line {
  fill: none;
  stroke: #8c510a;
  stroke-width: 2;
}

/*.bar:hover {
  fill: #bcbcbc ;
}*/

/********** Mobile compatibility **********/
@media only screen and (max-width: 960px) {

  #content {
    /*font-size: 70%*/
    width: 80%;
    margin: auto;
    line-height: 2em;
  }

  table {
  width: 85%;
  text-align: right;
  margin: auto;
}
  
}

@media only screen and (max-width: 500px) {

  nav p { display: none; }

  #content {
    /*font-size: 90%;*/
    width: 94%;
    margin: auto;
    line-height: 2em;
  }

  table {
  font-size: 75%;
  width: 95%;
  text-align: right;
  margin: auto;
}

text { font-size: 70%; }

}
