@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Anton&family=Montserrat+Alternates:wght@700&family=Bebas+Neue&family=Rubik+Mono+One&display=swap');

#crazy_coder-brat-wrapper {
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle, #6F79FF 0%, #ffffff 85%);
  padding: 50px 15px;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  box-sizing: border-box;
}

.crazy_coder-container {
  background: rgba(255, 255, 255, 0.3);
  border: 1.5px solid rgba(111,121,255,0.35);
  border-radius: 28px;
  box-shadow: 0 0 40px rgba(111,121,255,0.3);
  padding: 40px 32px;
  max-width: 920px;
  width: 100%;
  text-align: center;
  backdrop-filter: blur(6px);
  animation: fadeIn 0.7s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.crazy_coder-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #121212;
  margin-bottom: 8px;
}

.crazy_coder-subtitle {
  color: #4e4e4e;
  font-size: 1rem;
  margin-bottom: 25px;
}

.crazy_coder-section {
  background: rgba(255,255,255,0.55);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 0 12px rgba(111,121,255,0.2);
  margin-bottom: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.crazy_coder-section:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(111,121,255,0.3);
}

.crazy_coder-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.crazy_coder-label {
  display: block;
  font-weight: 600;
  text-align: left;
  color: #1a1a1a;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.crazy_coder-input,
.crazy_coder-select {
  padding: 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(111,121,255,0.4);
  background: rgba(255,255,255,0.9);
  font-size: 1rem;
  color: #000;
  width: 100%;
  box-sizing: border-box;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.crazy_coder-input:focus,
.crazy_coder-select:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(111,121,255,0.6);
  transform: scale(1.02);
}

input[type="color"].crazy_coder-input {
  width: 60px;
  height: 50px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.crazy_coder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

/* ✅ Updated font size for small labels (Glow, Blur, Border Radius) */
.crazy_coder-grid small {
  display: block;
  font-size: 0.95rem; /* matched size */
  font-weight: 600;
  margin-bottom: 6px;
  color: #1a1a1a;
}

.crazy_coder-slider {
  width: 100%;
  accent-color: #6F79FF;
  cursor: pointer;
}

.crazy_coder-slider-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.crazy_coder-slider-value {
  font-size: 0.9rem;
  color: #333;
  font-weight: 500;
  min-width: 50px;
  text-align: right;
}

.crazy_coder-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.crazy_coder-btn,
.crazy_coder-btn-outline {
  position: relative;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
}

.crazy_coder-btn {
  background: linear-gradient(135deg, #6F79FF, #B4B8FF);
  color: white;
  border: none;
  box-shadow: 0 0 16px rgba(111,121,255,0.4);
}

.crazy_coder-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 24px rgba(111,121,255,0.55);
}

.crazy_coder-btn-outline {
  background: transparent;
  border: 2px solid #6F79FF;
  color: #6F79FF;
}

.crazy_coder-btn-outline:hover {
  background: #6F79FF;
  color: white;
  transform: scale(1.05);
}

/* Loader Animation */
.crazy_coder-loader {
  display: none;
  border: 2px solid rgba(255,255,255,0.3);
  border-top: 2px solid #fff;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  animation: spin 0.7s linear infinite;
  margin-left: 6px;
}

@keyframes spin {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

.crazy_coder-preview {
  margin-top: 35px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.25);
  box-shadow: 0 0 25px rgba(111,121,255,0.25);
  transition: all 0.4s ease;
}

#crazy_coder-canvas {
  border-radius: 14px;
  width: 100%;
  max-width: 800px;
  background: rgba(255,255,255,0.15);
  animation: fadeCanvas 0.6s ease;
}

@keyframes fadeCanvas {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}
