#chartspace {
}

.svg-con {
  display: inline-block;
  position: relative;
  width: 100%;
  height: auto;
  vertical-align: top;
  overflow: hidden;
}

.svg-responsive {
  display: inline-block;
  position: absolute;
  top: 10px;
  left: 0;
}

g {
  z-index: 1;
}

#chart {
  width: 100%;
  height: 100%;
  display: block;
  max-width: 720px;
  max-height: 300px;
}

#menu-header {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  height: 100%;
}

.menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 45%;
  color: #A2A2A2;
  font-size: 18px;
  font-weight: 500;
  transition: all .2s;
  padding-bottom: 10px;
}

.loader {
border: 16px solid #f3f3f3; /* Light grey */
 border-top: 16px solid #3498db; /* Blue */
 border-radius: 50%;
 width: 120px;
 height: 120px;
 animation: spin 2s linear infinite;
 display: none;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

rect {
  fill: none;
}

#dlabel {
  text-transform: uppercase;
  font-size: .7rem;
}

.form-control {
	width: 150px;
	font-size: 15px;
	border-radius: 5px;
	margin: 2px 3px;
}


.citybutton {
  width: 19%;
  padding: 5px 0;
  font-family: 'Roboto', sans-serif;
  font-size: .85rem;
  font-weight: 100;
  border-radius: 10px;
  color: #111;
  background-color: transparent;
  border-color: #ccc;
  text-shadow: none;
  margin: 0 0 3px 5px;
  border-radius: 5px;
  overflow: hidden;
}

.activebtn {
  color: #FFF;
  background-color: #000;
  cursor: pointer;
}

#legendbox {
  display: flex;
  width: 100%;
}

.legend, #c-0 {
  color: #A5A5A5;
  font-size: .856rem;
  font-weight: 600;
}

#c-0 {
  width: 100%;
  margin-left: 5px;
}

.legend {
  margin: 5px;
}

.domain {
  display: none;
}

.tick {
  color: #A1A1A1;
  font-size: .8rem;
  z-index: 1;
}

line {
  color: #D9D9D9;
}

.firstline, .secondline, .thirdline, .fourthline, .fline, .sline, .tline {
  fill: none;
  stroke-linecap: round;
  z-index: 10;
  stroke-width: 4px;
  opacity: .8;
}

.firstline {
  stroke: #114488;
  color: #114488;
}

.secondline {
  stroke: #F2BE79;
  color: #DA8C25;
}

.thirdline {
  stroke: #556677;
  color: #556677;
}

.fourthline {
  stroke: #2B2B2B;
  color: #2B2B2B;
}

.fline {
  stroke: #838383;
}

.sline {
  stroke: #C71E1D;
}

.tline {
  stroke: #1D81A2;
}

#summary {
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  font-weight: 400;
  margin: 20px 0;

}


@media (max-width:400px) {
  .svg-con {
    width: 100%;
  }

  #chart {
    max-width: 330px;
    max-height: 280px;
  }

  #menuheader {
    display: flex;
    align-items: center;
  }

  #countymenu{
    appearance: menulist;
    -webkit-appearance: menulist;
  }

  .menu {
    width: 40%;
    margin: 0 5%;
  }

  .citybutton {
    width: 32%;
    font-size: .7rem;
    margin: 0 0 2px 2px;
  }

  #c-0{
    margin-left: 15px;
  }

  #legendbox, svg {
    margin-left: 10px;
  }
}
