body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: normal;
  background-color: lightgray;
}

h1 {
  text-align: left;
  font-size: 28px;
  font-weight: 600;
  padding-bottom: 5px;
  margin: 0;
}

a:link {
  color: black;
  line-height: 2em;
  font-size: 24px;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:visited {
  color: black;
}

.main-content {
  max-width: 1200px;
  width: 95%;
  margin: 0 auto;
  padding: 20px;
}

.containers-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  align-items: flex-start;
}

.column {
  flex: 1;
  min-width: 350px;
  max-width: 450px;
}

.column:first-child {
  flex: 2;
}

.column:last-child {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 150px);
}

.column:last-child .connect-container {
  margin: 0;
  margin-bottom: 15px;
}

.column:last-child .connect-container:nth-child(2) {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.connect-container {
  margin: 0;
  margin-bottom: 15px;
  padding: 10px;
  border: 4px solid rgb(0, 0, 0);
  border-radius: 5px;
  background-color: rgb(244, 244, 244);
}

.console-container {
  flex: 1;
  margin: 10px 0;
  padding: 10px;
  background-color: #1e1e1e;
  color: #ffffff;
  font-family: monospace;
  font-size: 14px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  min-height: 35vw;
  max-height: 55vh;
  display: flex;
  flex-direction: column;
}

.container {
  display: flex;
}

.container-title {
  font-weight: 600;
  padding-bottom: 5px;
}

#version {
  text-align: left;
  padding-bottom: 5px;
}

.button.black {
  margin: 3px;
  border: none;
  color: white;
  background: #3b3b3b;
  padding: 8px 16px;
  outline: none;
  border-radius: 5px;
}

.button.black:hover {
  background: #676767;
}

.button.black:active {
  background: #080808;
}

.testbutton {
  margin: 3px;
  max-width: 35px;
  max-height: 30px;
  width: 7%;
  height: 35px;
  border-radius: 8px;
  border: none;
  transition: all 0.15s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.testbutton:hover {
  scale: 1.05;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.testbutton:active {
  scale: 0.95;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.testbutton.red {
  background: rgb(254, 85, 85);
}

.testbutton.green {
  background: rgb(0, 128, 0);
}

.testbutton.blue {
  background: rgb(75, 75, 253);
  color: white;
}

.testbutton.yellow {
  background: rgb(251, 251, 83);
}

.testbutton.black {
  background: rgb(69, 69, 69);
  color: white;
}

.testbutton.white {
  background: white;
  color: black;
}

label {
  color: black;
  font-size: 1em;
}

textarea {
  margin-top: 10px;
  width: 300px;
  height: 100px;
  padding: 6px 6px;
  box-sizing: border-box;
  border: 4px solid #ccc;
  border-radius: 5px;
  background-color: white;
}

select {
  margin-top: 10px;
  width: 300px;
  padding: 6px 6px;
  border: 4px solid #ccc;
  border-radius: 5px;
  color: black;
  background-color: white;
}

input[type='number'] {
  margin-top: 10px;
  width: 50px;
  padding: 6px 6px;
  border: 4px solid #ccc;
  border-radius: 5px;
  color: black;
  background-color: white;
}

.led-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 5px;
  padding: 8px;
}

.led-controls {
  display: flex;
  justify-content: left;
  gap: 10px;
}

.led {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  margin: 3px;
  background: #000000;
  color: black;
  font-size: 10px;
  font-weight: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: none;
  border: none;
  box-shadow: inset 0 5px 5px 2px #666;
}

/* LED color states */
.led.black {
  background: #000;
  color: white;
}

.led.white {
  background: #fff;
  color: black;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.led.red {
  background: #ff0000;
  box-shadow: 0 0 10px #ff0000;
  color: white;
}

.led.green {
  background: #00ff00;
  box-shadow: 0 0 10px #00ff00;
}

.led.blue {
  background: #0000ff;
  box-shadow: 0 0 10px #0000ff;
  color: white;
}

.led.magenta {
  background: #ff00ff;
  box-shadow: 0 0 10px #ff00ff;
}

.led.yellow {
  background: #ffff00;
  color: black;
  box-shadow: 0 0 10px #ffff00;
}

.led.cyan {
  background: #00ffff;
  color: black;
  box-shadow: 0 0 10px #00ffff;
}

.led.orange {
  background: #ffa500;
  box-shadow: 0 0 10px #ffa500;
}

.led.purple {
  background: #800080;
  box-shadow: 0 0 10px #800080;
}

.led.pink {
  background: #ff69b4;
  box-shadow: 0 0 10px #ff69b4;
}

/* Blinking animation */
@keyframes blink {
  0%,
  45%,
  100% {
    opacity: 1;
  }
  50%,
  95% {
    opacity: 0.2;
  }
}

.led.blink {
  animation: blink 1s step-end infinite;
}

/* Pulsing animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.7);
  }
  100% {
    transform: scale(1);
  }
}

.led.pulse {
  animation: pulse 2s infinite;
}

.console-message {
  margin: 4px 0;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.console-message.in {
  background-color: rgba(221, 221, 221, 0.4);
}

.console-message.out {
  background-color: rgba(243, 252, 254, 0.2);
}

.console-message.warn {
  background-color: rgba(255, 255, 33, 0.3);
}

.console-message.message {
  background-color: rgba(228, 228, 228, 0.2);
}

.console-message.code {
  background-color: rgba(211, 211, 211, 0.2);
  padding: 8px;
  font-family: 'Consolas', 'Monaco', monospace;
}

.console-emoji {
  margin-right: 8px;
  font-size: 1.2em;
}

.connection-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.status-text {
  font-weight: bold;
  font-size: 14px;
}

.status-text.connected {
  color: lightgreen;
}

.status-text.disconnected {
  color: lightgray;
}

.state-display {
  font-family: monospace;
  font-size: 14px;
  padding: 10px;
  background-color: #1e1e1e;
  color: #ffffff;
  border-radius: 4px;
  text-align: left;
}

.code-preview {
  background-color: #1e1e1e;
  color: #d4d4d4;
  padding: 12px;
  border-radius: 6px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  line-height: 1.4;
  margin: 15px 0;
  white-space: pre-wrap;
  word-break: break-all;
  border: 1px solid #404040;
}

.code-preview::before {
  content: 'Code:';
  display: block;
  color: #888;
  margin-bottom: 8px;
  font-style: italic;
}

/* GitHub link */
.github-link {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #515152;
  transition: color 0.2s;
}

.github-link:hover {
  color: #515152;
}

.credit-line {
  text-align: left;
  font-size: 14px;
  color: #666;
  margin: 20px 20px 10px 0;
}

.credit-line a {
  color: #666;
  font-size: 14px;
  text-decoration: underline;
}

.credit-line a:hover {
  color: #000;
}
