:root {
  --dark-bg: #121212;
  --dark-surface: #1e1e1e;
  --light-gray: #a0a0a0;
  --lighter-gray: #e0e0e0;
  --passion-red: #e63946;
  --passion-red-hover: #ff4d5e;
  --accent-gray: #2a2a2a;
  --text-primary: #f5f5f5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  padding: 20px;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.container {
  max-width: 800px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  background-color: var(--dark-surface);
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--passion-red);
  text-align: center;
}

.input-section {
  width: 100%;
  margin-bottom: 1.5rem;
}

#textInput {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 6px;
  background-color: var(--accent-gray);
  color: var(--text-primary);
  font-size: 1rem;
  resize: vertical;
  min-height: 100px;
  outline: none;
  transition: all 0.3s ease;
}

#textInput:focus {
  box-shadow: 0 0 0 2px var(--passion-red);
}

.button-section {
  margin-bottom: 2rem;
}

#playButton {
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  background-color: var(--passion-red);
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

#playButton:hover {
  background-color: var(--passion-red-hover);
  transform: translateY(-2px);
}

#playButton:active {
  transform: translateY(0);
}

.visualization {
  width: 100%;
  padding: 1.5rem;
  background-color: var(--accent-gray);
  border-radius: 8px;
  min-height: 150px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.char-block {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  margin: 4px;
  border-radius: 4px;
  background-color: var(--accent-gray);
  color: var(--light-gray);
  font-size: 1.2rem;
  transition: all 0.1s ease-out;
}

.char-block.active {
  background-color: var(--passion-red);
  color: white;
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(230, 57, 70, 0.7);
}

.char-block.played {
  background-color: #333;
  color: var(--lighter-gray);
}

.hint {
  margin-top: 1.5rem;
  color: var(--light-gray);
  font-size: 0.9rem;
  text-align: center;
}
a{
    color:#fff;
}