body {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  background: linear-gradient(135deg, #0f0f0f, #1a1a2e);
  color: #eaeaea;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  width: 700px;
  padding: 30px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 40px rgba(0,0,0,0.6);
  text-align: center;
}

h1 {
  margin-bottom: 20px;
}

.text-wrapper {
  position: relative;
}

/* SCROLL SYSTEM */
.text-viewport {
  overflow: hidden;
  width: 100%;
}

#text-display {
  display: inline-block;
  white-space: nowrap;
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 20px;
  padding: 20px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
}

#text-display span {
  opacity: 0.4;
}

#text-display span.active {
  opacity: 1;
}

.correct { color: #00ff9f; }
.wrong { color: #ff4d4d; }

.current {
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}

#caret {
  position: absolute;
  width: 2px;
  height: 1.6em;
  background: #00ff9f;
  animation: blink 1s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

#input-box {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.info {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

button {
  margin-top: 20px;
  padding: 10px 25px;
  border-radius: 10px;
  background: #00ff9f;
  border: none;
  cursor: pointer;
}

.result {
  margin-bottom: 20px;
}

.hidden {
  display: none;
}