:root {
  --height: 40px;
  --speed: 45s;
}

* {
  margin: 0;
  padding: 0;
}

.ticker-tape {
  display: flex;
  font-family: 'Encode Sans Expanded';
  width: 100%;
  overflow: hidden;
  height: var(--height);
  padding-left: 100%;
}

.ticker-tape .ticker {
  display: flex;
  height: var(--height);
  line-height: var(--height);
  white-space: nowrap;
  padding-right: 100%;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
  -webkit-animation-name: ticker;
  -webkit-animation-duration: var(--speed);
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  animation-name: ticker;
  animation-duration: var(--speed);
  animation-play-state: running;
}

.ticker-tape:hover .ticker {
  animation-play-state: paused;
}

.ticker-tape .ticker__item {
  display: inline-block;
  padding: 0 2rem;
  font-size: .8rem;
  font-weight: 700;
  /*letter-spacing: 1.5rem;*/
  color: #234e9c;
  position: relative;
}

.ticker-tape .ticker__item .notification {
  position: absolute;
  top: 0px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
}

.ticker-tape:hover .ticker {
  animation-play-state: paused;
}

.ticker-tape .ticker__item .notification.green {
  background-color: green;
}

.ticker-tape .ticker__item .notification.red {
  background-color: red;
}

.ticker-tape .ticker__item .notification.yellow {
  background-color: yellow;
  color: #000;
}

.ticker-tape .ticker__item .notification.white {
  background-color: var(--bs-border-color-translucent);
  color: var(--bs-border-color-translucent);
}

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

