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

body {
  background: #000;
  color: #fff;
  font-family: 'Orbitron', monospace;
  overflow-x: hidden;
  user-select: none;
}

.container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  text-align: center;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

#nameInput {
  width: 80%;
  max-width: 400px;
  padding: 0.75rem;
  font-size: 1.2rem;
  background: #111;
  border: 2px solid #333;
  color: #fff;
  border-radius: 8px;
  outline: none;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  text-transform: lowercase;
  font-family: 'Orbitron', monospace;
}

#nameInput:focus {
  border-color: #0ff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.keyboard {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.5rem auto;
  max-width: 500px;
}

.row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.key {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  font-family: 'Orbitron', monospace;
  font-size: 0.9rem;
  color: #aaa;
}

.key:hover {
  background: #222;
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
  color: #fff;
}

.key.neon-highlight {
  background: #000;
  color: #0ff;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.8),
              0 0 30px rgba(0, 255, 255, 0.4),
              inset 0 0 10px rgba(0, 255, 255, 0.6);
  border-color: #0ff;
  transform: scale(1.1);
  animation: neonPulse 1.5s infinite alternate;
}

@keyframes neonPulse {
  0% {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8),
                0 0 30px rgba(0, 255, 255, 0.4),
                inset 0 0 10px rgba(0, 255, 255, 0.6);
  }
  100% {
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.9),
                0 0 40px rgba(0, 255, 255, 0.5),
                inset 0 0 15px rgba(0, 255, 255, 0.8);
  }
}

.controls {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.controls button,
.controls a {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #111;
  color: white;
  text-decoration: none;
  font-family: 'Orbitron', monospace;
  font-weight: 500;
  letter-spacing: 1px;
}

.controls button:hover,
.controls a:hover {
  background: #0ff;
  color: #000;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.7);
}

#viewOnGitHub {
  background: #333;
  border: 1px solid #555;
}

#viewOnGitHub:hover {
  background: #555;
  color: #fff;
}

#neonCanvas {
  display: block;
  margin: 2rem auto;
  background: transparent;
  border: none;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}