.back-button {
  margin-bottom:3em;
}

.btn-group-toggle>.btn input[type=checkbox], .btn-group-toggle>.btn input[type=radio], .btn-group-toggle>.btn-group>.btn input[type=checkbox], .btn-group-toggle>.btn-group>.btn input[type=radio] {
  position: absolute;
  clip: rect(0,0,0,0);
  pointer-events: none;
}

#toptriplechart,
#canton-select,
#year-select {
  padding-top: 6rem;
}
#toptriplechart,
#year-select {
  padding-bottom: 6rem;
  border-bottom: 1px solid rgba(0,0,0, .1);
}

#toptriplechart > div.text-formatted,
#canton-select > div.text-formatted,
#year-select > div.text-formatted {
  margin-bottom: 2em;
}


h2.chart-section-title {
  margin-top: 0;
  margin-bottom: 3rem;
  font-size: 1.5em;
  font-weight: 700;
}

.chart-row-top-space {
  padding-top: 2rem;
}

.chart-section.chart-tall {
  height: 1000px;
}

.year-range-filters {
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
}

.year-range-filter {
  margin-right: 3rem;
}

#canton-select .year-select {
  margin-bottom: 3rem;
}

.country-select {
  margin-bottom: 2rem !important;
}

.canton-select {
  margin-bottom: 2rem !important;
}

.bund-select {
  margin-bottom: 4rem !important;
}

.year-select label,
.country-select label,
.canton-select label,
.bund-select label {
  font-weight: 700;
}

.country-select a,
.canton-select a,
.bund-select a {
  display: inline-block;
  padding-right: 1rem;
  margin-right: 1rem;
  margin-bottom: .5rem;
  color: #676767;
  border: 1px solid rgba(0,0,0,.3);
  border-radius: 3px;
  overflow: hidden;
  width:5.5em;
}

.canton-select a {
  padding-right: 0.1rem;
}

.bund-select a {
  width:21em;
}

@media (max-width: 992px) {
  .country-select a,
  .canton-select a {
    width:6em;
  }
  .bund-select a {
    width:23em;
  }
}

@media (max-width: 768px) {
  .bund-select a {
    width:27em;
  }
}

.country-select a {
  width:auto;
}

.country-select a.active,
.canton-select a.active,
.bund-select a.active {
  color: #000;
  background-color: lightgrey;
  opacity: 1;
}

.country-select a img,
.canton-select a img,
.bund-select a img {
  width: 3rem;
  height: 3rem;
  margin-right: .5rem;
  opacity: .5;
  z-index: 1000;
}

#canton-select .country-select a.active img,
#canton-select .canton-select a.active img,
#canton-select .bund-select a.active img {
  opacity: 1;
}

#canton-select .country-select a:hover,
#canton-select .canton-select a:hover,
#canton-select .bund-select a:hover {
  background-color: rgba(0,0,0, .1);
  text-decoration: none;
}

#canton-select .country-select a:hover img,
#canton-select .canton-select a:hover img,
#canton-select .bund-select a:hover img {
  opacity: 1;
}

#canton-select .country-select a:focus,
#canton-select .canton-select a:focus,
#canton-select .bund-select a:focus {
  text-decoration: none;
}

.map-switzerland {
  margin-bottom: 3rem !important;
  width:100%;
  padding-top: calc(643 / 1000 * 100%);
  position: relative;
}
.map-switzerland div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.map-switzerland .on {
  fill:green;
}
.map-switzerland path:hover {
  cursor:pointer;
  fill:red;
}

.chartjs-render-monitor {
  margin-bottom: 2rem;
}
.chart-text {
  font-size:85%;
}
