html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f2f5;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  background-color: #ffffff;
  padding: 24px 28px;
  width: 100%;
  min-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

input,
textarea {
  padding: 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 3px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: #007bff;
  outline: none;
}

.button-group {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

button {
  flex: 1;
  padding: 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

button:hover {
  background-color: #0056b3;
}

button:active {
  transform: scale(0.98);
}

textarea[readonly] {
  background-color: #f9f9f9;
  color: #333;
}

#outputText {
  height: 420px;
  resize: vertical;
  white-space: pre-wrap;
  overflow-y: auto;
  font-family: monospace;
}

.output-container {
  position: relative;
  width: 100%;
}

.copy-button {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  transition: background-color 0.2s ease;
}

.copy-button:hover {
  background-color: rgba(0, 123, 255, 0.1);
  border-radius: 3px;
}

@media (max-width: 600px) {
  .container {
    padding: 16px;
    margin: 0 12px;
  }

  #outputText {
    height: 200px;
  }
}
