body {
  background-color: ;
  text-align: center;
  font-family: sans-serif;
}

canvas {
  border: 1px solid #000;
  margin-top: 10px;
}


#legendBox {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(5, 38, 203, 0.087); 
  backdrop-filter: blur(8px); /* this is for the glassmorphism blur */
  -webkit-backdrop-filter: blur(8px); 
  border: 1px solid rgba(175, 25, 140, 0.4); 
  border-radius: 6px;
  padding: 10px;
  font-family: sans-serif;
  font-size: 16px;
  width: 200px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 10;
}


#legendBox h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
}

#legendBox p {
  margin: 4px 0;
}

#p1{color: red;}
#p2{color: orange;}
#p3{color: green;}
#p4{color: blue;}
#p5{color: lightgray;}


button {
  padding: 8px 16px;
  margin: 6px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  background: rgba(0, 123, 255, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease-in-out;
  cursor: pointer;
}

/* for Hover effect */
button:hover {
  background: rgba(0, 123, 255, 0.6);
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.5), 0 0 20px rgba(0, 123, 255, 0.3);
  transform: translateY(-2px);
}

/* for Active (pressed) effect */
button:active {
  transform: scale(0.97);
  box-shadow: inset 1px 1px 4px rgba(0, 0, 0, 0.2);
}
#tips{
  font-weight: bold;
}
