
/* rev 04/06/2025 paulfjujo */
/* V.O. Complete project details: https://randomnerdtutorials.com */
/* esp32-plot-readings-charts-multiple  */

html {
  font-family: Arial, Helvetica, sans-serif;
  display: inline-block;
  text-align: center;
}
h1 {
  font-size: 1.8rem;
  color: white;
}
h2 {
  font-size: 0.8rem;
  color: blue;
}
h3 {
  font-size: 0.4rem;
  color: blue;
}
p {
  font-size: 1.4rem;
}
.topnav {
  overflow: hidden;
  background-color: #0a1128;
}
body {
  margin: 5;
}
.content {
  padding: 5%;
}
.card-grid {
  max-width: 100px;
  margin: 0 auto;
  display: grid;
  grid-gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.card {
  background-color: white;
  box-shadow: 0px 0px 0px 0px rgba(140, 140, 140, 0.5);
}
.card-title {
  font-size: 1rem;
  font-weight: bold;
  color: #034078;
}
.chart-container {
  padding-right: 2%;
  padding-left: 2%;
  width: null;
}
.gauge-container {
  padding-right: 2%;
  padding-left: 2%;
  width: 200px;
  height: 200px;
}

.state1 {
  font-size: 1.2rem;
  color: #1282a2;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #034078;
  cursor: pointer;
}
.slider::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #034078;
  cursor: pointer;
}
.switch {
  padding-left: 5%;
  padding-right: 5%;
}
.content {
  padding: 40px;
}
.card-grid {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 1.0rem;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.card {
  background-color: white;
  box-shadow: 2px 2px 12px 2px rgba(160, 160, 160, 0.5);
}
.card-title {
  font-size: 1.0rem;
  font-weight: bold;
  color: #034078;
}
.state {
  font-size: 1rem;
  color: #3282a2;
}

.switch1 {
  position: relative;
  display: inline-block;
  width: 120px;
  height: 30px;
}

.switch1 input {
  display: none;
}
.slider1 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 30px;
  width: 80%;
  height: 32px;
}
.slider1:before {
  position: absolute;
  content: '';
  height: 25px;
  width: 25px;
  left: 4px;
  bottom: 4px;
  background-color: #fff;
  -webkit-transition: 0.4s;
  transition: 1.4s;
  border-radius: 30px;
}
input:checked + .slider1 {
  background-color: #0000ff;
}
input:checked + .slider1:before {
  -webkit-transform: translateX(64px);
  -ms-transform: translateX(64px);
  transform: translateX(64px);
}

.slider2 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 30px;
  width: 80%;
  height: 32px;
}

.slider2:before {
  position: absolute;
  content: '';
  height: 25px;
  width: 25px;
  left: 4px;
  bottom: 4px;
  background-color: #fff;
  -webkit-transition: 0.4s;
  transition: 1.4s;
  border-radius: 20px;
}
input:checked + .slider2 {
  background-color: #00ff00;
}
input:checked + .slider2:before {
  -webkit-transform: translateX(64px);
  -ms-transform: translateX(64px);
  transform: translateX(64px);
}

.slider3 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 30px;
  width: 80%;
  height: 32px;  
}
.slider3:before {
  position: absolute;
  content: '';
  height: 25px;
  width: 25px;
  left: 4px;
  bottom: 4px;
  background-color: #fff;
  -webkit-transition: 0.4s;
  transition: 1.4s;
  border-radius: 20px;
}
input:checked + .slider3 {
  background-color: #ff0000;
}
input:checked + .slider3:before {
  -webkit-transform: translateX(64px);
  -ms-transform: translateX(64px);
  transform: translateX(64px);
}
