/* EXACT BASE STYLES FROM ball.php */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Share+Tech+Mono&family=Exo+2:wght@300;400;500;600;700&family=Source+Code+Pro:wght@400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
  overflow-x: hidden;
  touch-action: pan-x pan-y;
  -ms-touch-action: pan-x pan-y;
}

body {
  font-family: 'Rajdhani', sans-serif;
  background-color: #0a0a12;
  color: #e0e0ff;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

/* Selection styling */
::selection {
  background: rgba(0, 243, 255, 0.3);
  color: #f0f5ff;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a12;
}

::-webkit-scrollbar-thumb {
  background: #00d9ff;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00f3ff;
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #00d9ff #0a0a12;
}

/* Prevent text selection on non-input elements */
* {
  -webkit-text-size-adjust: none;
  -webkit-touch-callout: none;
}

/* Allow text selection in inputs */
input, textarea, select {
  -webkit-user-select: auto;
  -moz-user-select: auto;
  -ms-user-select: auto;
  user-select: auto;
}

/* Focus styles */
:focus {
  outline: none;
}

/* Link styles */
a {
  color: #00d9ff;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #00f3ff;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

/* Code font */
code, pre {
  font-family: 'Source Code Pro', monospace;
}

/* Hidden utility */
.hidden {
  display: none !important;
}
