* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 25px auto;
  color: #333;
}

.container *{
  box-sizing: border-box;
}

header {
  text-align: center;
  margin-bottom: 25px;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 5px;
}

header  p{
  font-size: 1rem;
  opacity: 0.9;
  max-width: 95%;
  margin: 0 auto;
}

.content {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.control-panel {
  flex: 1;
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.preview-panel {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.section-title {
  font-size: 1.3rem;
  margin-bottom: 20px;
  line-height: 1;
  color: #2c3e50;
}

.control-group {
  margin-bottom: 20px;
}

.control-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 500;
}

.control-label span{
  opacity: 0.85;
}
input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e0e0e0;
  outline: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #4a6bff;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input[type="color"] {
  width: 100%;
  height: 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.value-display {
  display: inline-block;
  min-width: 50px;
  text-align: right;
  font-weight: bold;
  color: #439cff;
}

select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  font-size: 1rem;
}

.preview-area {
  background: white;
  padding: 90px 20px;
  border-radius: 15px;
  border: 1px solid #eee;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
}

.preview-box {
  width: 400px;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-size: 1.3rem;
  font-weight: 500;
  color: #2c3e50;
  text-align: center;
  padding: 20px;
}

.preview-box span{
  margin-top: 15px;
  font-size: 0.95rem;
  opacity: 0.7;
}

.code-area {
  background: #2c3e50;
  color: #f8f9fa;
  padding: 20px;
  border-radius: 15px;
  font-family: 'Consolas', monospace;
  white-space: pre;
  overflow: auto;
  height: 200px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  line-height: 1.75;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.btn {
  padding: 14px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-copy {
  background: linear-gradient(to right, #00b09b, #96c93d);
  color: white;
}

.btn-reset {
  background: linear-gradient(to right, #ff416c, #ff4b2b);
  color: white;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(1px);
}

.about {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 25px;
}

.about h2 {
  margin-bottom: 20px;
  color: #2c3e50;
  font-size: 1.3rem;
  line-height: 1;
}

.about-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid #4a6bff;
}

.feature-card h3 {
  margin-bottom: 10px;
  color: #4a6bff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

footer {
  text-align: center;
  padding: 10px;
  color: #7f8c8d;
  font-size: 0.9rem;
}
