body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
}

.container {
  max-width: 1000px;
  margin: auto;
  padding: 15px;
}

/* HEADER */

.headers {
  background: linear-gradient(219deg, #FB0E76 0%, #910694 100%) !important;
  color: white;
  text-align: center;
  padding: 25px;
  border-radius: 12px;
}

.headers h1 {
  font-size: 45px !important;
  font-weight: 700 !important;
  margin-bottom: 10px;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.headers p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* 🔥 CONTROLS (GRID BASED CLEAN LAYOUT) */

.controls {
  box-shadow: 0 1px 3px rgba(233, 30, 140, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  border: 1.5px solid #fce7f3 !important;

  margin-top: 20px;
  background: #fff;
  padding: 25px;
  border-radius: 14px;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

/* 🔥 EACH CONTROL */

.control {
  display: flex;
  flex-direction: column;
}

/* 🔥 FIRST (TEXTAREA FULL WIDTH) */

.control:first-child {
  grid-column: 1 / -1;
}

/* LABEL */

.control label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

/* INPUT + TEXTAREA */

.control input,
.control textarea {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #fce7f3 !important;
}

/* TEXTAREA LOOK */

.control textarea {
  min-height: 90px;
  resize: none;
}

/* 🔥 RANGE SLIDER */

input[type="range"] {
  height: 6px;
  border-radius: 10px;
  cursor: pointer;
}

/* 🔥 COLOR PICKER (FIX SMALL SIZE ISSUE) */

input[type="color"] {
	
  border-radius: 45px !important;
    width: 37%;
    height: 49px;
  border: none !important;
  border-radius: 10px;
  cursor: pointer;
  padding: 0 !important;
}

/* 🔥 BUTTONS */

.buttons {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.buttons button {
  flex: 1;
}

/* BUTTON STYLE (unchanged colors) */

button {
  padding: 12px;
  border: none;
  background: #5f2dee;
  color: white;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

button:hover {
  background: #4a23c9;
}

/* 🔥 PREVIEW BOX */

.preview-box {
  margin-top: 20px;
  background: white;
  padding: 40px 20px;
  border-radius: 12px;
  text-align: center;
  min-height: 200px;

  overflow-x: auto;
  overflow-y: hidden;
}

/* 🔥 PREVIEW TEXT */

#preview {
  font-size: 80px;
  font-family: 'UnifrakturCook', cursive !important;

  white-space: pre-wrap;
  text-align: center;

  width: 100%;
  display: block;

  word-break: break-all;
  overflow-wrap: break-word;

  line-height: 1.2;
  letter-spacing: 2px;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 📱 TABLET */

@media (max-width: 1024px) {
  .controls {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

/* 📱 MOBILE */

@media (max-width: 768px) {
  .controls {
    grid-template-columns: 1fr;
  }

  #preview {
    font-size: 50px;
  }

  .buttons {
    flex-direction: column;
  }
}