/* style.css */
body {
  margin: 0;
  background-color: #121212;
  color: #e0e0e0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
}

h1 {
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 32px;
  text-align: center;
}

#mainContainer {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  justify-content: center;
  max-width: 960px;
  width: 100%;
  background: #1e1e1e;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 100, 255, 0.3);
}

#controls {
  background-color: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  color: #ccc;
  flex-shrink: 0;
  width: 280px;
}

#controls label {
  font-weight: bold;
  font-size: 1rem;
  display: block;
  margin: 12px 0 6px;
  color: #bbb;
}

#controls input[type="range"] {
  width: 100%;
  margin-top: 8px;
  cursor: pointer;
  accent-color: #64b5f6;
  background-color: #333;
  border-radius: 4px;
}

#vectorToggles label {
  font-weight: 500;
  font-size: 0.95rem;
  color: #ccc;
  cursor: pointer;
  user-select: none;
  margin-bottom: 10px;
}

#vectorToggles input[type="checkbox"] {
  cursor: pointer;
  accent-color: #64b5f6;
  margin-right: 8px;
}

#canvasContainer {
  border: 2px solid #64b5f6;
  border-radius: 6px;
  box-sizing: border-box;
  width: 600px;
  height: 600px;
  background-color: #121212;
  box-shadow: none;
}

canvas {
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}

/* Responsive tweak: stack on narrow screens */
@media (max-width: 720px) {
  #mainContainer {
    flex-direction: column;
    gap: 30px;
  }
  #controls, #canvasContainer {
    width: 90vw;
    max-width: none;
    height: auto;
  }
  #canvasContainer {
    height: 400px;
  }
}

/* Floating Info Button */
#infoBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #64b5f6;
  color: #121212;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  transition: background-color 0.2s ease-in-out;
  z-index: 1001;
}
#infoBtn:hover {
  background-color: #90caf9;
}

/* Info Panel Overlay */
#infoPanel {
  display: none;
  position: fixed;
  top: 50px;
  right: 50px;
  width: 400px;
  max-height: 80vh;
  background-color: #1e1e1e;
  color: #ccc;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 100, 255, 0.3);
  overflow-y: auto;
  z-index: 1000;
}

#closeInfo {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #bbb;
  cursor: pointer;
}
#closeInfo:hover {
  color: #fff;
}

#infoPanel h2, #infoPanel h3 {
  margin-top: 1em;
  color: #90caf9;
}
#infoPanel ul {
  margin-left: 20px;
  margin-bottom: 1em;
}
#infoPanel strong {
  color: #e0e0e0;
}
