@import url('ticker-text.css');

.news {
  height: 100px;
  margin: 24px 0 24px 0;
}

#clock {
  color: var(--main-color-one);
  display: inline;
  font-size: 32px;
  padding: 10px 0 10px 0;
  font-weight: normal;
  text-shadow: 1px 1px 2px var(--main-color-one);
}

.ticker {
  overflow: hidden;
  width: 100%;
}

.ticker-logo-channel {
  position: absolute;
  top: -112px;
  left: 20px;
  font-size: 160px;
  font-weight: 900;
}

.ticker-logo {
  position: absolute;
  z-index: 10;
}

.ticker-logo:before {
  display: table;
  content: "";
  width: 175px;
  height: 101px;
  border-right: 10px solid var(--main-color-one);
  position: absolute;
  background: var(--light-gray);
}

.ticker-title {
  width: 1310px;
  white-space: nowrap;
  color: #dab178;
  font-size: 20px;
  text-transform: uppercase;
  background: var(--main-color-one);
  border-bottom: 5px solid var(--light-gray);
  overflow: hidden;
}

.ticker-title span::before {
  content: var(--ticker-text-breaking-news);
}

.ticker-title > * {
  display: inline-block;
  margin-right: 50px;
  -webkit-animation: title 100s infinite linear;
  animation: title 100s infinite linear;
}

@-webkit-keyframes title {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  100% {
    -webkit-transform: translateX(-4000px);
    transform: translateX(-4000px);
  }
}

@keyframes title {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  100% {
    -webkit-transform: translateX(-4000px);
    transform: translateX(-4000px);
  }
}

.ticker-news {
  width: 1290px;
  max-height: 60px;
  white-space: nowrap;
  padding: 10px;
  color: #ffffff;
  font-size: 30px;
  text-transform: uppercase;
  text-shadow: 1px 1px 4px black;
  background: var(--main-color-two);
  overflow: hidden;
}

.ticker-news span::before {
  content: var(--ticker-text-news);
}

.ticker-news > * {
  display: inline-block;
  -webkit-animation: news 50s infinite linear;
  animation: news 50s infinite linear;
}

@-webkit-keyframes news {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  100% {
    -webkit-transform: translateX(-4135px);
    transform: translateX(-4135px);
  }
}

@keyframes news {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  100% {
    -webkit-transform: translateX(-9000px);
    transform: translateX(-9000px);
  }
}
