* { box-sizing: border-box; }

@-webkit-keyframes ticker {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
    visibility: visible;
  }

  100% {
    -webkit-transform: translate3d(-100%, 0, 0);
            transform: translate3d(-100%, 0, 0);
  }
}

@keyframes ticker {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
    visibility: visible;
  }

  100% {
    -webkit-transform: translate3d(-100%, 0, 0);
            transform: translate3d(-100%, 0, 0);
  }
}

.ticker-wrap {
  position: fixed;
  bottom: 0;
  width: 100%;
  overflow: hidden;
  height: 3.5rem;
  background-color: rgba(0, 0, 0, 0.88);
  padding-left: 100%;
  box-sizing: content-box;
  z-index: 1200;
}

/* When mounted inside a fullscreen element we position absolutely near the top */
.ticker-wrap.fullscreen-mounted {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  right: 8px !important;
  bottom: auto !important;
  width: auto !important;
  z-index: 2000 !important;
}

.ticker {
  display: inline-block;
  height: 3.5rem;
  line-height: 3.5rem;
  white-space: nowrap;
  padding-right: 100%;
  box-sizing: content-box;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
          animation-timing-function: linear;
  -webkit-animation-name: ticker;
          animation-name: ticker;
  -webkit-animation-duration: 240s;
          animation-duration: 240s;
}

.ticker__item {
  display: inline-block;
  padding: 0 2rem;
  font-size: 1.2rem; /* slightly larger text */
  color: white;
  white-space: pre;
}

.pct-pos { color: #ef4444; font-weight:700; }
.pct-neg { color: #16a34a; font-weight:700; }

/* ensure content above footer isn't obscured */
body { padding-bottom: 5rem; }
