:root {
  --site-font: 'FireSans', sans-serif;
  --site-background-color: #f5f5f5; /* fallback */
}

@font-face {
  font-family: 'FireSans';
  font-weight: 400;
  src:  url('./fonts/firasans-regular-webfont.woff2') format('woff2'),
        url('./fonts/firasans-regular-webfont.woff') format('woff');
}

body {
    background-color: var(--site-background-color);
    font-family: var(--site-font);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    
  }
  #chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  #table-content {
    display: block;
    margin-top: 2rem;
    max-width: 100%;
    overflow-x: scroll;
  }
  .tooltip {
    position: absolute;
    text-align: center;
    padding: .3rem .5rem;
    /*background: lightsteelblue;*/
    font-family: var(--site-font);
    border: 0;
    border-radius: .35rem;
    pointer-events: none;
  }
  .date-small {
    font-size: .7rem;
  }
  .tick-text {
    font-family: var(--site-font);
  }

.oelpreisBrent {
    color: SaddleBrown;
}
.ttfErdgas {
    color: gold;
}
.eexCo2Futures {
    color: MediumSeaGreen;
}
.eexStromFutures {
    color: red;
}

table {
  border-collapse: collapse;
  background: #ddd;
  width: 100%;
}
th, td {
  padding: 1rem;
}
tr:nth-of-type(2n) {
  background: #eee;
}
#Datum {
  /* background-color: #f5f5f5; */
  /*background-color: hsla(0%, 0%, 96%, 1);
    has to be set, otherwise background-color of table
  */
  background-color: var(--site-background-color);
}
#eex-Strom-Futures {
  background-color: red;
  color: white;
}
#TTF-Erdgas {
  background-color: gold;
  color: black;
}
#Oelpreis-Brent {
  background-color: SaddleBrown;
  color: white;
}
#eex-CO2-Futures {
  background-color: MediumSeaGreen;
  color: black;
}

@media (min-width: 80rem){
  #chart-container, #table-content {
    width: 80rem;
  }
}

/*

Toggle Switch

*/

#toggle-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem; /* muss größer sein als outline von .slider */
  background-color: #eee;
  color: grey;
}

#toggle-container .toggle-label {
  line-height: 1rem;
  padding: calc(2.125rem / 2 - .5rem); /* Height of switch / 2 (top and bottom) - Half of the line height */
  -webkit-transition: .4s;
  transition: .4s;
}
#toggle-container .toggle-label:nth-of-type(1) {
  padding-right: 1rem; /* muss größer sein als outline von .slider */
}

#toggle-container .toggle-label:last-of-type {
  padding-left: 1rem; /* muss größer sein als outline von .slider */
  /*background-color: #2196F3;*/
  
}

.aktuell {
  background-color: #2196F3;
  color: var(--site-background-color);
}
.allTime {
  background-color: mediumpurple;
  color: var(--site-background-color);
}

.switch {
  position: relative;
  display: inline-block;
  width: 3.75rem;
  height: 2.125rem;

}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: mediumpurple;
  -webkit-transition: .4s;
  transition: .4s;
  outline: var(--site-background-color) solid .5rem;
}

.slider:before {
  position: absolute;
  content: "";
  height: 1.625rem;
  width: 1.625rem;
  left: .25rem;
  bottom: .25rem;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(1.625rem);
  -ms-transform: translateX(1.625rem);
  transform: translateX(1.625rem);
}

.slider.round {
  border-radius: 2.125rem;
}

.slider.round:before {
  border-radius: 50%;
}