* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.container {
  width: 90%;
  max-width: 750px;
  padding: 30px;
  margin-bottom: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
}

h1 {
  margin-bottom: 18px;
}

textarea {
  width: 100%;
  height: 120px;
  margin-bottom: 20px;
  padding: 12px;
  font-size: 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  resize: none;
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.textInput {
  filter: none;
  transition: filter 0.2s ease;
}

.blurred {
  filter: blur(4px);
}

.controls {
  margin: 15px 0;
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

#speedValue {
  font-weight: bold;
  font-size: 18px;
  color: #6dd5fa;
}

.buttons {
  margin: 20px 0;
}

button {
  padding: 10px 22px;
  margin: 5px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all .2s ease;
}

button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.container-for-text {
  width: 100%;
  height: 90px;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 20px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.15);
}

#line_display {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: clamp(28px, 6vw, 60px);
  font-weight: bold;
  will-change: transform;
}

@keyframes tickerScroll {
  from {
    transform: translateX(var(--ticker-start));
  }

  to {
    transform: translateX(var(--ticker-end));
  }
}