body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  color: #333;
}

header {
  text-align: center;
  padding: 20px 10px;
  background: #6c63ff;
  color: white;
}

header h1 {
  margin: 0;
  font-size: 2em;
}

header p {
  margin: 5px 0 0 0;
  font-size: 1em;
}

.fileconverter-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 20px auto;
  padding: 15px;
  background: #fff;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  border-radius: 10px;
}

/* Side panel for sliders and options */
.controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.controls label {
  font-weight: bold;
  margin-bottom: 5px;
}

.controls input[type="file"],
.controls select,
.controls input[type="range"] {
  width: 100%;
  padding: 5px;
  box-sizing: border-box;
}

/* Canvas area */
.canvas-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.canvas-container div {
  text-align: center;
}

canvas {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* Download button */
.btn {
  display: inline-block;
  background: #6c63ff;
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 10px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #574fd6;
}

/* Footer */
footer {
  text-align: center;
  padding: 15px;
  background: #eee;
  margin-top: 30px;
  font-size: 0.9em;
}

/* Responsive */
@media screen and (max-width: 900px) {
  .fileconverter-container {
    grid-template-columns: 1fr;
  }

  canvas {
    max-height: 400px;
  }
}
