html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #000000;
  color: rgba(255, 255, 255, 0.87);
}

#app-container {
  display: flex;
  width: 100vw;
  height: 100%;
}

#game-container {
  width: 50%;
  height: 100%;
  background-color: #2d2d2d;
  position: relative;
  border-right: 4px solid #444;
}

#blockly-container {
  width: 50%;
  height: 100%;
  background-color: #f0f0f0;
  display: block;
}

#controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  gap: 10px;
}

#run-button {
  background-color: #4caf50; /* Green */
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
}

#run-button:hover {
  background-color: #45a049;
}

#reset-button {
  background-color: #f44336; /* Red */
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
}

#reset-button:hover {
  background-color: #d32f2f;
}

.blocklyToolboxCategory{
  color: #000
}

/* --- Log Console --- */
#log-console {
  position: absolute;
  bottom: 70px;
  left: 10px;
  width: calc(50% - 24px);
  max-height: 180px;
  background: rgba(20, 20, 30, 0.92);
  border: 1px solid #444;
  border-radius: 8px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

#log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: rgba(40, 40, 55, 0.95);
  border-bottom: 1px solid #555;
  font-size: 13px;
  font-weight: bold;
  color: #ccc;
}

#log-clear-button {
  background: transparent;
  border: 1px solid #666;
  color: #aaa;
  padding: 2px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.2s;
}
#log-clear-button:hover {
  background: #555;
  color: #fff;
}

#log-output {
  overflow-y: auto;
  padding: 6px 12px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12px;
  color: #ddd;
  max-height: 140px;
}

#log-output .log-entry {
  padding: 2px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  white-space: pre-wrap;
  word-break: break-all;
}

#log-output .log-entry:nth-child(odd) {
  background: rgba(255,255,255,0.03);
}

#log-output .log-step {
  color: #888;
  margin-right: 6px;
  font-size: 11px;
}

#log-output .log-label {
  color: #ffcc80;
}

#log-output .log-value {
  color: #7ecfff;
}