/**
 * Effects Component
 * Snow, glitch text, rotating, and other visual effects.
 */

#Snow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  background: rgba(125, 137, 95, 0);
  pointer-events: none;
}

.rotating {
  animation: rotating 3s linear infinite;
}

.center-text {
  margin: auto;
  font-family: 'Noto Sans SC';
  font-size: 80px;
  text-transform: none;
  font-weight: var(--global-font-weight);
}

/* Glitch text effect */
.glitch {
  position: relative;
}

.glitch:after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0);
  clip: rect(0, 0, 0, 0);
  left: 1px;
  text-shadow: -1px 0 #00a7e0;
}

.glitch:before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0);
  clip: rect(0, 0, 0, 0);
  left: -1px;
  text-shadow: 1px 0 #ff3f1a;
  margin-top: initial;
  visibility: visible;
  height: initial;
}

.glitch:hover:before {
  animation: glitch-loop-1 .8s infinite ease-in-out alternate;
}

.glitch:hover:after {
  animation: glitch-loop-2 .8s infinite ease-in-out alternate;
}

.bb-comment {
  border: 1px solid var(--article-theme-highlight, var(--theme-skin-matching));
  min-width: 30px;
  display: inline-block;
  text-align: center;
  font-size: 12px;
  color: var(--article-theme-highlight, var(--theme-skin-matching));
  border-radius: 6px;
  padding: 1px 3px;
  font-weight: var(--global-font-weight, 400);
}

.itempic {
  min-height: 280px;
  max-height: 300px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.finish-icon-container {
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.skill div {
  display: flex;
  align-items: center;
}

.skill-list {
  list-style: none;
  padding: 0;
}

.skill {
  position: relative;
}

.skill ::-webkit-progress-value {
  background: var(--theme-skin-matching, #a4cdf6);
}

.skill-1::-webkit-progress-value {
  background: var(--theme-skin-matching, #a4cdf6);
}

/* Preload spinner */
#preload li.active {
  position: absolute;
  top: 49%;
  left: 49%;
  list-style: none;
}
