/* Optional fonts; if blocked by WP, it still works with system fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Patrick+Hand&display=swap');

#crazy_coder-trace-wrapper {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #000;
  color: #fff;
  min-height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 12px;
  box-sizing: border-box;
}

#crazy_coder-trace-wrapper .crazy_coder-container {
  text-align: center;
  background: rgba(20, 20, 20, 0.92);
  border: 1px solid rgba(74, 58, 253, 0.35);
  border-radius: 20px;
  padding: 28px 22px;
  box-shadow: 0 0 26px rgba(74, 58, 253, 0.3);
  width: 100%;
  max-width: 980px;
  box-sizing: border-box;
}

#crazy_coder-trace-wrapper .crazy_coder-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0 0 6px;
}

#crazy_coder-trace-wrapper .crazy_coder-subtitle {
  color: #bdbdbd;
  margin: 0 0 18px;
  font-size: 0.98rem;
}

#crazy_coder-trace-wrapper .crazy_coder-input-group {
  display: grid;
  grid-template-columns: repeat(6, minmax(90px, 1fr));
  gap: 10px;
  align-items: center;
  justify-items: center;
  margin-bottom: 18px;
}

#crazy_coder-trace-wrapper .crazy_coder-label {
  font-size: 0.85rem;
  color: #cfcafc;
  justify-self: end;
  opacity: 0.9;
}

#crazy_coder-trace-wrapper .crazy_coder-input,
#crazy_coder-trace-wrapper .crazy_coder-select,
#crazy_coder-trace-wrapper .crazy_coder-color {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(124, 104, 255, 0.45);
  background: #0f0f10;
  color: #fff;
  font-size: 0.96rem;
  width: 100%;
  min-width: 120px;
  text-align: center;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

#crazy_coder-trace-wrapper .crazy_coder-input::placeholder { color: #9a9a9a; }

#crazy_coder-trace-wrapper .crazy_coder-input:focus,
#crazy_coder-trace-wrapper .crazy_coder-select:focus {
  outline: none;
  border-color: #7C68FF;
  box-shadow: 0 0 10px rgba(124, 104, 255, 0.7);
}

#crazy_coder-trace-wrapper .crazy_coder-color {
  cursor: pointer;
  height: 44px;
  width: 54px;
  padding: 0;
  border-radius: 8px;
  border: 2px solid #4A3AFD;
  background: none;
}

#crazy_coder-trace-wrapper .crazy_coder-select {
  cursor: pointer;
  color: #4A3AFD;
  background: #fff;
  font-weight: 600;
}

#crazy_coder-trace-wrapper .crazy_coder-btn {
  grid-column: 1 / -1;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(90deg, #4A3AFD, #7C68FF);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(124, 104, 255, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#crazy_coder-trace-wrapper .crazy_coder-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 0 24px rgba(124, 104, 255, 0.9);
}

#crazy_coder-trace-wrapper .crazy_coder-output {
  margin-top: 16px;
}

#crazy_coder-trace-wrapper canvas {
  display: block;
  margin: 0 auto;
  background: #fff;           /* white sheet look for contrast */
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(0,0,0,0.35);
  max-width: 100%;
  height: auto;
}
