#night-dimmer-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  pointer-events: none;
  z-index: 999999;
  opacity: 0;
  transition: opacity .2s ease;
}

/* button */
#night-dimmer-btn {
    position: fixed;
    top: 5px;
    width: 32px;
    right: 20px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000000;
    color: var(--bord);
    font-size: 20px;
    transition: background .2s ease, transform .15s ease;
}

#night-dimmer-btn:hover {
  background: rgba(0,0,0,.85);
  transform: scale(1.05);
}

/* modal */
#night-dimmer-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.4);
  z-index: 1000001;
}

#night-dimmer-box {
  position: relative;
  background: #111;
  padding: 22px 24px;
  border-radius: 14px;
  width: 260px;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
  color: #fff;
  text-align: center;
}

#night-dimmer-title {
  margin-bottom: 14px;
  font-size: 14px;
  letter-spacing: .5px;
  opacity: .8;
  text-transform: lowercase;
}

#night-dimmer-slider {
  width: 100%;
  margin: 10px 0;
}

#night-dimmer-percent {
  font-size: 13px;
  opacity: .7;
  margin-top: 6px;
}

#night-dimmer-close {
  position: absolute;
  top: 10px;
  right: 14px;
  cursor: pointer;
  opacity: .6;
  font-size: 18px;
  transition: opacity .2s ease;
}

#night-dimmer-close:hover {
  opacity: 1;
}