body, #inner-content{
  font-family: 'HaasText';
}


#first-block{
  width: 100%;
}

#first-block div{
  width: calc(50% - 20px);
  display: inline-block;
}
#first-block :first-child{
  margin-right: 30px;
}

#first-block h1{
  display: inline-block;
  margin-bottom: -20px;
  margin-top: 15px;
}

.body-text{
  font-size: 15px;
  font-family: 'HaasText';
  max-width: 825px;
}

.dek{
  max-width: 935px;
}

@media only screen and (max-width: 900px){
  #first-block div{
    width: 100%;
    margin-right: 0px !important;
  }
}

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

.axis line{
  stroke: white;
}

.domain{
  display: none;
}

.dot {
  stroke: #000;
}

div.tooltip {
  top: -1000px;
  position: absolute;
  padding: 10px;
  background: rgba(255, 255, 255, .90);
  border: 1px solid lightgray;
  pointer-events: none;
}
.tooltip.tooltip-hidden{
  opacity: 0;
}


#sm-graph{
  min-width: 400px;
  margin: 0px auto;
}

@media only screen and (max-width: 400px){
  #sm-graph{
    margin-left: -12px;
  }
}


#sm-brand div{
  text-align: left;
}


#sm-brand .y text{
  fill: white;
  opacity: 0;
}
#sm-brand .brand:nth-child(6n+1) .y text{
  fill: black !important;
  opacity: 1;
  opacity: 0;
  /*display: none;*/
}

#sm-brand .brand:first-child .y text{
  opacity: 1;
}

.brand{
  display: inline-block;
  width: 178px;
  margin-bottom: 20px;
  margin-right: 20px;
  padding-right: 8px;
  border: 1px solid lightgray;
  /*overflow: hidden;*/
  vertical-align: top;
  min-height: 187px;
  position: relative;
}
.brand.double{
  width: 376px;
}


.img-brand{
  display: inline-block;
  position: relative;
  width: 49%;
}
.img-brand:hover img{
  /*opacity: .3;*/
}

.overlay-text{
  position: absolute;
  top: -62px;
  /*left: 10px;*/
  /*padding-right: 10px;*/
  color: black;
  text-align: center;
}

.brand.double .overlay-text h3{
  /*text-align: left;*/
  padding-left: 0px;
  padding-right: 0px;
}

h3{
  text-align: center;
}

.brand.double h3{
  padding-right: 200px;
}

.img-brand:hover .overlay-text{
  opacity: 1;
}


.overlay-text.active h3{
  color: rgb(64,204,204);
  /*text-decoration: underline;*/
  font-weight: bold;
}


.year circle{
  stroke: black;
  opacity: .3;
  fill: none;
}

path.model{
  stroke: black;
  fill: none;
}

.year .brand-active circle{
  stroke: #555;
  opacity: 1;
  fill: #555;
}

.brand-active path.model{
  stroke: #555;
}

.year .active circle{
  stroke: rgb(64,204,204);
  opacity: 1;
  fill: rgb(64,204,204);
  stroke: 3px;
}

.active path.model{
  stroke: rgb(64,204,204);
  stroke-width: 4px;
}

rect.model.brand-active{
  fill: #999;
}
rect.model.active{
  fill: rgb(64,204,204);
}

.connector{
  fill: none;
  opacity: .4
}

.connector.brand-active{
  stroke: #555;
}
.connector.active{
  stroke: rgb(64,204,204);
}

text.brand-active{
  fill: #555;
  font-size: 10px;
  text-shadow: 0 2px 0 #fff, 2px 0 0 #fff, 0 -2px 0 #fff, -2px 0 0 #fff;
}
text.active{
  fill: rgb(64,204,204);
}


#graph, #seg-chart{
  font-family: 'HaasText';
}

#inner-content{
  /*width: 1200px;*/
  max-width: 1200px;
}

.copyblock{
  margin-bottom: 30px !important;
}

svg{
  overflow: visible !important;
}

body, h3{
  background: rgba(0,0,0,0) !important;
}
h1{
  /*padding: 10px;*/
  overflow: hidden;
  margin-top: 50px;
  margin-bottom: 0px;
  font-size: 18px;
  font-family: 'BWHaasHead-75Bold';
}

h3{
  padding: 10px;
}

#inner-content{
  overflow: visible;
}

div.tooltip{
  opacity: .9;
  box-shadow: 0px 0px 0px lightgray; 
  min-width: 150px;
  width: auto;
}

#last-block{
  display: inline-block;
  width: calc(100% - 450px);
  max-width: 750px;
}


#buttons{
  width: 360px;
  display: inline-block;
  text-align: right;
  position: relative;
  top: 60px;
  /* float: right; */
  position: absolute;
  right: 34px;  /*float: right;*/
}

@media only screen and (max-width: 990px){
  #last-block{
    width: auto;
  }

  #buttons{
    position: relative;
    top: auto;
    right: auto;
    margin-bottom: 20px;
  }
}



#buttons :first-child{
  margin-right: 10px;
}

.button{
  /*margin-bottom: 30px;*/
  text-align: center;
  font-family: 'HaasDisplayBold';
  font-size: 15px;
  text-align: center;
  padding: 5px;
  border: 1px solid lightgray;
  background: white;
  box-shadow: 6px 6px 0px -2px #ccc;
  cursor: pointer;
  display: inline-block;
  width: 48%;
}

#buttons div:hover{
  box-shadow: 6px 6px 0px -2px #000;
  border-color: #000;
}

#buttons div.selected{
  box-shadow: 6px 6px 0px -2px #000;
  border-color: #000;
  background-color: #dfdfdf;
}
