.card,
body {
  padding: 20px;
}
.card,
canvas {
  background: #fff;
  border-radius: 12px;
}
#realtime,
.card,
h1 {
  text-align: center;
}
body {
  font-family: Arial;
  background: #f5f5f5;
  margin: 0;
}
h1 {
  margin-bottom: 10px;
}
.cards {
display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    flex-direction: row;
    justify-content: center;
}
.card {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 15%;
  transition: background 0.3s;
}
.good {
  background: #c8f7c5;
}
.moderate {
  background: #fff9c4;
}
.bad {
  background: #ffcdd2;
}
#charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  max-width: 1200px;
  width: 100%;
  margin: auto;
}
canvas {
  padding: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  max-width: 100%;
}
@media (max-width: 768px) {
  .cards .card {
      width: calc(50% - 65px);
              font-size: 11px;


  }
  #charts {
    grid-template-columns: 1fr;
  }

  canvas {
  }
}
