body { margin: 0; font-family: sans-serif; }
svg { width: 100%; height: auto; max-height: 600px; }
#tooltip {
  position: absolute;
  background: white;
  border: 1px solid #333;
  padding: 4px 8px;
  border-radius: 4px;
  pointer-events: none;
  display: none;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 1;
}
.st0 {
  transition: fill 1s ease; /* smooth transition for fill color */
}
#weekSlider {
  margin-left: 1%;
  margin-right: 1%;
  width: 98% !important;
}
#weekSlider::-webkit-slider-runnable-track {
  height: 6px;
  background: #ddd;
  border-radius: 3px;
}
#weekSlider::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  background: #333;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -5px;
}
#weekTicks {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 16px;
  margin-top: 4px;
  text-align: center;
}
#controls{
  padding-top: 20px;
}
div#weekTicks span {
    text-align: center;
}
.ffmMain, .mapTitle{
  position: relative;
}
.mapTitle h2{
  position: absolute;
  right: 0;
  font-size: 24px;
}
.stageList {
background: #fff;
border: 1px solid #ccc;
padding: 12px 16px;
font-size: 14px;
border-radius: 6px;
box-shadow: 0 2px 6px rgba(0,0,0,0.15);
display: inline-block;
line-height: 1.8;
position: absolute;
right: 0;
bottom: 100%;
}

.stage-item {
display: flex;
align-items: center;
margin-bottom: 4px;
}

.stage-item:last-child {
margin-bottom: 0;
}

.stage-item .color {
display: inline-block;
width: 14px;
height: 14px;
margin-right: 8px;
border: 1px solid #333;
border-radius: 2px;
}
@media (max-width: 768px) {
  .stageList {
    display: flex;
    position: unset;
    flex-wrap: wrap;
    justify-content: space-evenly;
  }
  .stage-item{
    margin-right: 20px;
  }
  #weekTicks span{
    font-size: 14px;
  }
}
.RangeDiv{
    width: 100%;
    border-radius: 50px;
    color: #fff;
    background: linear-gradient(to right, #386d3e, /* No Change */ #cedb51, /* Minimal */ #fae94e, /* Patches */ #eea941, /* Partial */ #e17238, /* Almost Peak */ #dc4e33, /* Peak */ #78211e /* Past Peak */);
    outline: none;
    padding: 0px 5px 5px 5px;
}

/* Track reset */
input[type=range]::-webkit-slider-runnable-track {
  height: 20px;
  border-radius: 50px;
  background: transparent;
  color: #fff;
}
input[type=range]::-moz-range-track {
  height: 20px;
  border-radius: 50px;
  background: transparent;
  color: #fff;
}
input[type="range" i] {
  color: #fff !important;
}

/* Thumb */
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #333;
  cursor: pointer;
  margin-top: -4px; /* centers the thumb */
}
input[type=range]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #333;
  cursor: pointer;
}
