* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

                .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem;
}

header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  background:linear-gradient(219deg, #FB0E76 0%, #910694 100%);
  color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(233, 30, 99, 0.1);
}

header h1 {
  font-size: 45px !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem;
	    color: white !important;
/*     font-family: inherit; */
	}

/* .title {
  font-size: 3em;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
} */

.subtitle {
  font-size: 1.2em;
  color: #fff;
  opacity: 0.95;
}

.main-content {
display: block;
}

.controls-section {
background:linear-gradient(135deg, #ffb3c626 0%, #ff8fab00 100%);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(255, 107, 157, 0.15);
}

.preview-section {
  background: linear-gradient(135deg, #ffb3c626 0%, #ff8fab00 100%);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(255, 107, 157, 0.15);
}

.preview-section h3 {
  color: #C9184A;
  font-size: 1.5em;
  margin-bottom: 20px;
  text-align: center;
}
/* FOUR PREVIEW GRID */
.four-previews {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 columns */
  grid-template-rows: auto auto; /* 2 rows */
  gap: 35px;
  margin-top: 20px;
}


/* Single preview box */
.preview-box {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 0 15px #dcdcdc;
}

.preview-box canvas {
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: white;
  border: 1px solid #eee;
  margin-bottom: 10px;
}

.form-group {
  margin-bottom: 25px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #C9184A;
  font-size: 1.05em;
}

input[type="text"] {
  width: 100%;
  padding: 12px 15px !important;
  border: 2px solid #FF6B9D !important;
  border-radius: 8px !important;
  font-size: 1em;
  transition: all 0.3s ease;
  background-color: #ffffff;
}

input[type="text"]:focus {
  outline: none !important;
  border-color: #C9184A !important;
  box-shadow: 0 0 0 3px rgba(201, 24, 74, 0.1);
}

input[type="range"] {
  width: 100%;
  height: 8px !important;
  border-radius: 5px !important;
  background: #ffffff !important;
  outline: none !important;
	padding:0px !important;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #C9184A;
  cursor: pointer;
  transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: #A01639;
  transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50% !important;
  background: #C9184A;
  cursor: pointer;
  border: none !important;
  transition: all 0.3s ease;
}

input[type="range"]::-moz-range-thumb:hover {
  background: #A01639;
  transform: scale(1.1);
}

.color-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 5px;
  border-radius: 8px;
  border: 2px solid #FF6B9D;
}

input[type="color"] {
  width: 60px;
  height: 40px;
  border: none !important;
  border-radius: 5px !important;
  cursor: pointer;
	padding:3px !important;
}

.color-value {
  font-family: monospace;
  font-size: 0.95em;
  color: #666;
  font-weight: 600;
}

.preview-container {
  background: #ffffff;
  border-radius: 12px !important;
  padding: 20px !important;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

#previewCanvas {
  max-width: 100%;
  height: auto;
  display: block;
}

.download-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
/* Download Buttons */
.download-row {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn {
 padding: 14px 24px !important;
  border: none !important;
  border-radius: 10px !important;
 background:linear-gradient(219deg, #FB0E76 0%, #910694 100%);
  cursor: pointer;
	color: white;
}





#fontSizeValue {
  color: #C9184A;
  font-weight: 700;
}

@media (max-width: 968px) {
  .main-content {
    grid-template-columns: 1fr;
  }

	 .four-previews {
    grid-template-columns: 1fr !important; /* 1 column on mobile */
  }
  .title {
    font-size: 2.2em;
  }

  .subtitle {
    font-size: 1em;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0px;
  }

  header {
    padding: 20px 15px;
    margin-bottom: 25px;
  }

  .title {
    font-size: 35px !important;
  }

  .subtitle {
    font-size: 0.9em;
  }
.download-row {
  display: block;
 gap:15px;
  justify-content: center;
}
  .controls-section,
  .preview-section {
    padding: 20px;
  }

  .download-buttons {
    flex-direction: column;
  }

/*   .btn {
    min-width: 100%;
  } */
}
