:root {
  --globe-width: 12px;
  --globe-height: 28px;
  --globe-spacing: 40px;
  --globe-spread: 3px;
  --light-off-opacity: 0.2;
  --speed-multiplier: 3; /* Increase to make slower, decrease to make faster */
}

ul.lightrope {
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  position: absolute;
  z-index: 1;
  margin: -15px 0 0 0;
  padding: 0;
  pointer-events: none;
  width: 100%;

  li {
    position: relative;
    animation-fill-mode: both; 
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    list-style: none;
    padding: 0;
    width: var(--globe-width);
    height: var(--globe-height);
    border-radius: 50%;
    margin: calc(var(--globe-spacing) / 2);
    display: inline-block;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0px calc(var(--globe-height) / 6) calc(var(--globe-width) * 2) var(--globe-spread) rgba(255, 255, 255, 1);
    animation-name: flash;
    animation-duration: calc(2s * var(--speed-multiplier));

    &:nth-child(2n+1) {
      animation-duration: calc(1.5s * var(--speed-multiplier));
    }
    &:nth-child(4n+2) {
      animation-duration: calc(1.7s * var(--speed-multiplier));
    }
    &:nth-child(odd) {
      animation-duration: calc(2.2s * var(--speed-multiplier));
    }
    &:nth-child(3n+1) {
      animation-duration: calc(1.9s * var(--speed-multiplier));
    }
    &:before {
      content: "";
      position: absolute;
      background: #222;
      width: calc(var(--globe-width) - 2px);
      height: calc(var(--globe-height) / 3);
      border-radius: 3px;
      top: calc(0px - (var(--globe-height) / 6));
      left: 1px;
    }
    &:after {
      content: "";
      top: calc(0px - var(--globe-height) / 2);
      left: calc(var(--globe-width) - 3px);
      position: absolute;
      width: calc(var(--globe-spacing) + 12px);
      height: calc(var(--globe-height) / 3 * 2);
      border-bottom: solid #222 2px;
      border-radius: 50%;
    }
    &:last-child:after {
      content: none;
    }
    &:first-child {
      margin-left: calc(var(--globe-spacing) * -1);
    }
  }
}

@keyframes flash { 
  0%, 100% { 
    background: rgba(255, 255, 255, 1);
    box-shadow: 0px calc(var(--globe-height) / 6) calc(var(--globe-width) * 2) var(--globe-spread) rgba(255, 255, 255, 1);
  } 
  50% { 
    background: rgba(255, 255, 255, var(--light-off-opacity));
    box-shadow: 0px calc(var(--globe-height) / 6) calc(var(--globe-width) * 2) var(--globe-spread) rgba(255, 255, 255, var(--light-off-opacity));
  }
}