* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: #000;
  color: #fff;
  font-family: 'Orbitron', 'Arial', sans-serif;
  overflow-x: hidden;
  height: 100vh;
  touch-action: manipulation;
}

.glass-card, .nav-glass, .controller-glass {
  background: rgba(10, 10, 30, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 255, 255, 0.2);
}

.theme-controller {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}
.controller-glass {
  padding: 1rem;
  width: 220px;
}
.controller-glass h3 { 
  color: #00ffff; 
  text-align: center; 
  margin-bottom: 10px;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 1rem;
}
nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
}
nav a {
  color: #00ffff;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
}
nav a.active, nav a:hover { 
  text-shadow: 0 0 20px #00ffff; 
  transform: scale(1.1);
}

main { padding-top: 80px; }
.page {
  display: none;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.page.active { display: flex; }

h1 {
  font-size: 3rem;
  background: linear-gradient(90deg, #00ffff, #ff00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-bottom: 1rem;
}

.neon-frame {
  position: absolute;
  border: 4px solid #00ffff;
  box-shadow: 0 0 20px #00ffff;
  pointer-events: none;
  transition: all 0.4s;
}
.adjustable { cursor: move; }

#canvas {
  border: 2px solid;
  border-radius: 12px;
  touch-action: none;
  margin: 20px 0;
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  nav ul { flex-wrap: wrap; gap: 1rem; }
  .theme-controller { position: relative; top: 0; right: 0; margin: 20px auto; }
}
/* EPIC FULLSCREEN ART STUDIO */
#epic {
  position: fixed !important;
  inset: 0;
  padding: 0 !important;
  background: transparent;
  z-index: 5;
}

#epicCanvas {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  touch-action: none;
  cursor: crosshair;
  z-index: 1;
}

.epic-tools {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  background: rgba(10,10,40,0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0,255,255,0.3);
  border-radius: 20px;
  padding: 15px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 0 40px rgba(0,255,255,0.4);
}

.epic-tools button, .epic-tools select, .epic-tools input {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--neon, #00ffff);
  color: white;
  padding: 10px;
  border-radius: 10px;
  font-family: 'Orbitron', sans-serif;
  box-shadow: 0 0 15px var(--neon);
}

@media (max-width: 768px) {
  .epic-tools {
    top: auto;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 90%;
    padding: 12px;
  }
}