@keyframes slide-left {
  from {
    opacity: 0%;
    margin-right: -1000px;
    padding-left: 1000px;
  }
  to {
    opacity: 100%;
    margin-right: 0px;
    padding-left: 0px;
  }
}

@keyframes slide-right {
  from {
    opacity: 0%;
    margin-left: -1000px;
    padding-right: 1000px;
  }
  to {
    opacity: 100%;
    margin-left: 0px;
    padding-right: 0px;
  }
}

@keyframes fade {
  from {
    opacity: 0%;
    transform: scale(1, 0.5);
  }
  to {
    opacity: 100%;
    transform: scale(1, 1);
  }
}

html {
  background: transparent !important;
  background-color: rgba(0, 0, 0, 0) !important;
}

body {
  margin: 0;
  overflow: hidden;
  height: 100vh;
  position: relative;
  background: transparent !important;
  background-color: rgba(0, 0, 0, 0) !important;
}

#info_container {
  position: absolute;
  bottom: 10px;
  margin: 0 auto;
  pointer-events: none;
  align-items: center;
  display: flex;
  width: 100%;
  z-index: 1;
}

#info_text {
  background-color: transparent;
  padding: 10px;
  color: white;
  margin: 0 auto;
  font-family: "Noto Sans", sans-serif;
  opacity: 0;
}

#chat_container {
  width: 100%;
  padding: 0 0 0 3px;
  margin: 0;
  position: absolute;
  bottom: 0;
  overflow: hidden;
  background-color: transparent;
  color: white;
  font-weight: 800;
  word-break: break-word;
}

.user_info {
  display: inline-block;
}

.badge {
  vertical-align: middle;
  border-radius: 10%;
}

.zero-width_container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  position: relative;
}

.zero-width_container .emote {
  margin: 0 !important;
}

.cheer_bits {
  font-size: 0.8em;
}

.message_line {
  background: transparent !important;
  margin: 5px 0;
}

.user_part {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mod_badge {
  display: inline-flex;
  vertical-align: middle;
  flex-shrink: 0;
}

.mod_badge svg {
  width: 14px;
  height: 14px;
}

.user_name {
  font-weight: bold;
  background: transparent;
}

.colon {
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}

.message {
  background: transparent !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.emote {
  vertical-align: middle;
  height: 1.75em;
  margin: 0 2px;
}

.zero-width {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.emoji {
  vertical-align: middle;
}

.reply_tag {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.85em;
  color: #aaf;
  margin-right: 3px;
}

.hidden {
  display: none;
}

.paint {
  background-size: cover;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.nopaint {
  filter: none !important;
  -webkit-text-fill-color: unset !important;
  text-shadow: unset !important;
  background-image: none !important;
}

.animate-slide-left {
  animation-name: slide-left;
  animation-duration: 0.3s;
  animation-timing-function: ease-in-out;
}

.animate-slide-right {
  animation-name: slide-right;
  animation-duration: 0.3s;
  animation-timing-function: ease-in-out;
}

.animate {
  animation-name: fade;
  animation-duration: 0.2s;
  animation-timing-function: ease-in-out;
}

/* System toast overlay */
#system_toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#system_toast.visible {
  opacity: 1;
}

#system_toast_text {
  background-color: rgba(0, 0, 0, 0.65);
  color: #cccccc;
  font-family: "Noto Sans", sans-serif;
  font-size: 0.8em;
  font-style: italic;
  font-weight: normal;
  padding: 5px 12px;
  border-radius: 6px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}