body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;                                          
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

canvas {
  display: block;
  touch-action: none;
}

input, button {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 8px;
}

.font-geist-mono {
  font-family: monospace;
  letter-spacing: -0.03em;
}

#canvasContainer {
  background: linear-gradient(135deg, #0f1016 0%, #151825 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  touch-action: none;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple 0.8s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

.transition {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Mobile-specific fixes */
@media (max-width: 768px) {
  #wordInput {
    font-size: 16px;  /* Prevent iOS zoom on input focus */
  }
  
  /* Ensure there's room for the keyboard on mobile */
  body.keyboard-open #canvasContainer {
    height: 300px;
  }
}
