/* Overlay scoped to the parent, not the whole page */
#message-overlay {
  position: absolute;   /* not fixed */
  inset: 0;             /* top:0; right:0; bottom:0; left:0; fills parent */
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;         /* high inside the parent, not global */
}

#message-overlay.hidden { display: none; }

#message-window {
  min-width: 220px;
  background: #2e82e6;
  color: #000;
  border-radius: 8px;
  box-shadow: 0 2px 18px #0002;
  padding: 22px 24px 16px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}


#message-window.negative {
  background: rgb(255, 255, 255);
  border: 2px solid #b22;
}

#message-window.positive {
  background: #ffffff;
  border: 2px solid #24c647;
}

#message-close-btn {
  align-self: center;
  min-width: 170px;
}

#message-timer {
  font-size: 13px;
  color: #444;
  opacity: 0.7;
}
