:root {
  --bg: #f7f7f7;
  --panel: #ffffff;
  --text: #333;
  --muted: #666;
  --accent: #4CAF50;
  --orange: #FFA500;
  --blue: #2563eb;
  --border: #ddd;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#gms-typing-root { 
  font-family: Arial, sans-serif; 
  color: var(--text); 
  background: var(--bg);
  margin: 20px;
  padding: 0;
}

.gms-tt-container {
  display: flex;
  width: 100%;
  height: auto;
  gap: 20px;
}

.gms-tt-left-panel {
  width: 30%;
  padding: 20px;
  background: var(--panel);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.gms-tt-right-panel {
  width: 70%;
  padding: 20px;
  background: var(--panel);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.gms-tt-header {
  text-align: center;
  color: var(--text);
  margin-bottom: 20px;
}

.gms-tt-level-buttons {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.gms-tt-level-button {
  padding: 10px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  text-align: center;
  width: 30%;
  transition: all 0.3s ease;
}

.gms-tt-level-button.active {
  background: var(--orange);
}

.gms-tt-level-button:hover {
  background: var(--orange);
  transform: scale(1.1);
}

.gms-tt-lesson-select {
  margin-bottom: 20px;
}

.gms-tt-lesson-select select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid var(--border);
}

.gms-tt-stats {
  font-size: 20px;
  margin-bottom: 10px;
}

.gms-tt-start-btn, .gms-tt-reset-btn {
  width: 100%;
  padding: 15px;
  font-size: 20px;
  margin-top: 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gms-tt-start-btn {
  background: var(--accent);
  color: white;
}

.gms-tt-reset-btn {
  background: var(--orange);
  color: white;
}

.gms-tt-start-btn:hover, .gms-tt-reset-btn:hover {
  background: #e65100;
  transform: scale(1.05);
}

.gms-tt-target {
  font-family: "Fuzzy Bubbles", serif;
  font-size: 1.5em;
  line-height: 1.3em;
  white-space: pre-wrap;
  word-wrap: break-word;
  text-align: justify;
  margin-bottom: 20px;
}

.gms-tt-input {
  width: 97%;
  height: 200px;
  font-size: 1.5em;
  padding: 10px;
  border: 2px solid var(--border);
  border-radius: 5px;
  margin-top: 20px;
  display: none;
}

.gms-tt-target span.ok { color: var(--accent); }
.gms-tt-target span.bad { color: #dc2626; text-decoration: underline; }
.gms-tt-target span.todo { color: #999; }

.gms-tt-login {
  margin-bottom: 20px;
  padding: 15px;
  background: #f0f8ff;
  border-radius: 8px;
  border: 1px solid var(--blue);
}

.gms-tt-login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gms-tt-login-form input {
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.gms-tt-login-btn {
  background: var(--blue);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.gms-tt-logout-btn {
  background: var(--orange);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .gms-tt-container {
    flex-direction: column;
  }
  
  .gms-tt-left-panel, .gms-tt-right-panel {
    width: 100%;
  }
}


