html,body{
    margin: 0px;
    padding: 0px;
    height: 100%;
    /* border: 1px solid black; */
}

body{
    display: flex;
    justify-content: center;
    align-items: center;
}

.bar-container {
    /* border: 10px solid blue; */
    /* border-bottom: 0px; */
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 1000px;
    height: 800px;
    margin: 20px auto;
}
.point{
    position: absolute;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background-color: black;
    z-index: 22;
}
.bar {
    border: 1px solid black;
    height: 100px;
    width: 1000px;
    /* border: .5px solid black; */
}
.red {
    background-color: red;
}
.yellow {
    background-color: yellow;
}
.green {
    background-color: green;
}
svg {
    position: absolute;
    top: 0;
    left: 0;
}
.lightbulb {
    position: absolute;
    right: 0px;
    /* margin-right: auto; */
    font-size: 30px;;
    background-color: red;
}

/* Safer, low-frequency fade for the bulb */
#lightbulb {
  display: inline-block;
  line-height: 1;
  transition: opacity .4s ease;   /* smooth state changes when toggling classes */
}

/* Strong red pulse + size growth */
.bulb-pulse {
  animation: bulbStrongPulse 1.5s ease-in-out infinite alternate;
  display: inline-block; /* ensures scaling works properly */
}

@keyframes bulbStrongPulse {
  0% {
    opacity: 1;
    color: rgba(255, 0, 0, 0.6);
    filter: drop-shadow(0 0 2px rgba(255, 0, 0, 0.3));
    transform: scale(1);       /* normal size */
  }
  100% {
    opacity: 1;
    color: rgba(255, 0, 0, 1);
    filter: drop-shadow(0 0 25px rgba(255, 0, 0, 1));
    transform: scale(5.0);     /* grows 60% bigger */
  }
}



/* Optional: message styling that avoids big red blocks */
#errorMsg {
  font-weight: bold;
}

/* overlay “canvas” sized to the bars (6 × 100px = 600px) */
#points-div {
  position: absolute;
  top: 0; left: 0;
  width: 1000px;
  height: 600px;
  pointer-events: none;   /* don’t block clicks */
  z-index: 22;           /* dots are above the line */
}

/* line layer below points */
#linesLayer {
  position: absolute;
  top: 0; left: 0;
  width: 1000px;
  height: 600px;
  pointer-events: none;
  z-index: 21;
}
