* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  margin: 0;
  padding: 2rem;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  text-align: center;
}

main {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  justify-content: center;
  width: 100%;
  max-width: 900px;
}

.encoder-input,
.output {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 400px;
}

select {
  padding: 0.5rem;
  font-size: 1rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

textarea {
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  resize: vertical;
  min-height: 180px;
  font-size: 1rem;
  background-color: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  resize: none;
}

h2.output-box {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #555;
}

.btn-copy {
  align-self: flex-end;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #222;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.btn-copy:hover {
  background-color: #444;
}
