/* calliope_serial.css (Highcharts-Variante) | by T. Meinike 07/26 */

:root {
  --c-border: #CCC;
  --c-bg: #FFF;
  --c-text: #000;
  --c-danger: #C00;
  --c-success: #090;
  --c-svg: #F39;
  --c-csv: #39F;
  --c-link: #00C;
  --c-link-hover: #EEE;
}

* { font-family: sans-serif; }

h1 {
  font-size: 1.8em;
  margin: 0 auto -0.25em auto;
}

fieldset {
  max-width: max-content;
  border-top-right-radius: 1em;
  border: 1px solid var(--c-border);
  box-shadow: 0.2em 0.2em var(--c-border);
}

legend {
  border: 1px solid var(--c-border);
  padding: 0.3em;
}

button {
  display: inline-block;
  margin: 0.25em 0 0.75em 0;
  padding: 0.3em;
  width: 11em;
  font-weight: bold;
}

button:hover { opacity: 0.7; }

fieldset > button:nth-of-type(1) {
  color: var(--c-bg);
  background-color: var(--c-success);
}

fieldset > button:nth-of-type(2) {
  color: var(--c-bg);
  background-color: var(--c-danger);
  float: right;
}

div > button:nth-of-type(1) {
  color: var(--c-bg);
  background-color: var(--c-svg);
  margin: -0.5em 0 0 0;
}

div > button:nth-of-type(2) {
  color: var(--c-bg);
  background-color: var(--c-csv);
  margin: -0.5em 0 0 0;
}

span:first-of-type {
  display: inline-block;
  font-size: 1.3em;
  margin-left: 0.2em;
  margin-right: 0.75em;
  padding-bottom: 0;
  color: var(--c-danger);
  background-color: var(--c-bg);
  vertical-align: middle;
}

span:last-of-type {
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  width: 26.5em;
}

img {
  display: inline-block;
  vertical-align: bottom;
  height: 1.2em;
}

a {
  color: var(--c-link);
  background-color: var(--c-bg);
}

a:hover {
  color: var(--c-danger);
  background-color: var(--c-link-hover);
  text-decoration: none;
}

div#gaugechart {
  width: 800px;
  height: 380px;
  margin: 0 0 -0.75em 0;
  border-top: 1px solid var(--c-border);
}

div#linechart {
  width: 800px;
  height: 380px;
}

div:not([id]) {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1em 0 0 0;
  height: 1em;
}

div > p > span:first-child {
  color: var(--c-text);
  font-size: 1em;
  text-align: center;
  display: inline-block;
  margin: -0.5em 0 0 0;
}

.status-anim { animation: pulsieren 1.2s ease-in-out infinite; }

@keyframes pulsieren {
  0%, 100% { color: var(--c-success); }
  50% { color: var(--c-bg); }
}

text, .highcharts-title, .highcharts-label text { font-family: Calibri, sans-serif !important; }