body {
  font-family: Arial, monospace, sans-serif;
  margin: 2em;
  background-color: rgb(71, 71, 71);
  color: #f0f0f0;
}

h2 {
  margin-top: 0;
  color: #fff;
}

.title {
  text-align: center;
}

.mode-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5em;
}

.instructions-content {
  display: inline-block;
  vertical-align: top;
  width: 48%;
  margin-right: 2%;
  text-align: left;
}

.instructions-content:last-child {
  margin-right: 0;
}

.toggle-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #fff;
  font-weight: bold;
}

.toggle-text {
  margin-left: 10px;
}

.toggle-slider {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
  background-color: #4c7aaf;
  border-radius: 30px;
  margin-right: 10px;
  transition: background-color 0.3s;
}

.toggle-slider:before {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: white;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
}

#mode-toggle {
  display: none;
}

#mode-toggle:checked + .toggle-slider {
  background-color: #4caf50;
}

#mode-toggle:checked + .toggle-slider:before {
  transform: translateX(30px);
}

.container {
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  align-items: stretch;
  justify-content: center;
  background-color: rgb(51, 51, 51);
  margin: 0 auto;
  padding: 1.5em;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.coder {
  display: flex;
  gap: 1.5em;
  align-items: flex-start;
  justify-content: center;
}

.section {
  flex: 1 1 0;
  border: 1px solid #555;
  border-radius: 8px;
  padding: 1.5em;
  background: #5a5a5a;
  min-width: 350px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

textarea {
  width: 95%;
  min-height: 10em;
  resize: vertical;
  font-family: monospace;
  background: #454545;
  color: #fff;
  border: 1px solid #666;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 0.5em;
}

.output-group {
  margin-bottom: 1.2em;
  border-radius: 6px;
}

button {
  margin: 0.5em 0;
  padding: 8px 16px;
  background: #4c7aaf;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}

button:hover {
  background: #5d8ec9;
}

button:active {
  background: #3b6ea8;
}

label {
  font-weight: bold;
  display: block;
  margin-bottom: 0.5em;
  color: #ddd;
}

.tweak-box {
  border: 1px solid #666;
  border-radius: 6px;
  padding: 1.2em;
  margin-bottom: 1.5em;
  background: #525252;
}

.tweak-title {
  font-size: 1.1em;
  margin-bottom: 0.8em;
  color: #fff;
  font-weight: bold;
}

.small-label {
  font-size: 0.95em;
  font-weight: normal;
  color: #ccc;
}

select {
  width: 100%;
  padding: 10px;
  margin-bottom: 1.2em;
  background: #363636;
  color: #ffffff;
  border: 1px solid #333333;
  border-radius: 4px;
  font-size: 1em;
}

.bottom {
  text-align: center;
  margin-top: 1.5em;
  color: #fff;
}

.instructions {
  background: #525252;
  padding: 1em;
  border-radius: 6px;
  margin-bottom: 1.5em;
  border: 1px solid #666;
  width: 90%;
  background-color: rgb(51, 51, 51);
  margin: 0 auto;
  padding: 1.5em;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.instructions h3 {
  margin-top: 0;
  color: #4c7aaf;
}

.copy-btn {
  background: #4c7aaf;
  margin-left: 0.5em;
}

.copy-btn:hover {
  background: #5d8ec9;
}

.convert-btn {
  background: #4caf50;
  margin-left: 0.5em;
}

.convert-btn:hover {
  background: #5dbf60;
}

.beautify-controls {
  display: flex;
  align-items: center;
  margin-top: 0.5em;
  gap: 0.5em;
}

.beautify-controls select {
  width: auto;
  margin-bottom: 0;
  margin-right: 0.5em;
}
