body {
    background-color: black;
    position: relative;
}

#windy {
    width: 90vw;
    height: 90vh;
    position: absolute;
    top: 0;
    left: 0;
}


input[type=range][orient=vertical] {
  writing-mode: vertical-lr;
  direction: rtl;
  appearance: slider-vertical;
  width: 16px;
  vertical-align: bottom;
}


.volume-control-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

#audioVolumeSlider {
  display: none;
}

#musicControlPanel {
 display: none;
}

#musicVolumeSlider {
  display: none;
}

.toggle-button {
  background: rgba(0,0,0,0);
  border-style: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box; 
  padding: 0;             
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.toggle-button.on {
  color: #0800ff; /* Green when playing */
}


#controlPanel {
  display: flex;
  flex-direction: row;
  gap: 16px;
  position: absolute;
  top: 64px;
  left: 32px;
}



.intersection-container {
    position: relative;
    width: 32px;
    height: 32px;
}
  
.progress-canvas {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.intersection-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background-color: lime;
    border: 2px solid green;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: background-color 0.2s, border-color 0.2s;
}

.intersection-dot.fetching {
    background-color: orange;
    border-color: red;
    animation: blink 1s infinite;
}

.intersection-dot.flash {
    animation: flash 0.4s ease-in-out;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.2; }
}

@keyframes flash {
    0% { background-color: yellow; border-color: gold; }
    100% { background-color: lime; border-color: green; }
}


/* Flash effect on the body or #map container */
.hue-flash {
    animation: hueShiftFlash 0.4s ease-in-out;
}
  
@keyframes hueShiftFlash {
    0%   { filter: hue-rotate(0deg); }
    30%  { filter: hue-rotate(90deg); }
    70%  { filter: hue-rotate(-60deg); }
    100% { filter: hue-rotate(0deg); }
}
  
  
