/* ============================================
   HOME PAGE
   ============================================ */

/* Nav needs fixed height on home to contain the announcement bar */
nav.nav-home {
  height: 100px;
  overflow: hidden;
}

/* --- ANNOUNCEMENT BAR --- */
.announcement {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  overflow: hidden;
  white-space: nowrap;
}

.announcement-text {
  display: inline-block;
  font-family: 'SimSong', serif;
  font-size: 18px;
  line-height: 18px;
  color: #000;
  background-color: #fff;
  animation: scroll-left 30s linear infinite;
}

.announcement-text:hover {
  animation-play-state: paused;
}

.announcement-text a {
  font-family: 'SimSong', serif;
  font-size: 18px;
  line-height: 18px;
  letter-spacing: normal;
  text-decoration: underline;
  text-decoration-style: solid;
  text-decoration-thickness: 7%;
  text-underline-offset: auto;
  text-decoration-skip-ink: auto;
  border: none;
  border-radius: 0;
  padding: 0;
  background-color: transparent;
  background-image: linear-gradient(transparent 50%, #6eff81 50%);
  background-size: 100% 210%;
  background-position: 0% 0%;
  background-repeat: no-repeat;
  transition: background-position 0.4s ease;
}

.announcement-text a:hover {
  text-decoration: none;
  background-position: 0% 100%;
}

@keyframes scroll-left {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-100%); }
}

.announcement.hidden {
  display: none;
}
