html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: monospace;
  transition: background 0.5s, color 0.5s;
  display: flex;
  align-items: center;
  justify-content: center;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

.ascii-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.ascii {
  white-space: pre;
  text-align: center;
  font-size: 14px;
  padding: 20px;
}

.terminal-box {
  background-color: rgba(0, 0, 0, 0.85);
  border: 2px solid #00ff00;
  box-shadow: 0 0 20px #00ff00;
  border-radius: 8px;
  padding: 40px;
  width: 90%;
  max-width: 900px;
  font-family: monospace;
  font-size: 16px;
  color: #00ff00;
  display: flex;
  flex-direction: column;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid currentColor;
  margin-bottom: 10px;
}

.window-controls {
  display: flex;
  gap: 8px;
}

.control {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
}

.control.red {
  background-color: #ff5f56;
}

.control.yellow {
  background-color: #ffbd2e;
}

.control.green {
  background-color: #27c93f;
}

.title {
  font-weight: bold;
  font-size: 16px;
}

.terminal-body {
  white-space: pre-wrap;
  font-size: 16px;
  line-height: 1.6;
}

.cursor {
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.toggle-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  background: transparent;
  border: 2px solid currentColor;
  color: inherit;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  font-family: monospace;
}

body.dark {
  background: black;
  color: lime;
}

body.bright {
  background: white;
  color: black;
}

body.bright .terminal-box {
  background-color: rgba(255, 255, 255, 0.9);
  border: 2px solid #000;
  box-shadow: 0 0 20px #aaa;
  color: #000;
}

body.bright .terminal-header {
  border-bottom: 1px solid #000;
}

body.bright .cursor {
  color: #000;
}

body.bright .control.red {
  background-color: #e0443e;
}
body.bright .control.yellow {
  background-color: #e1a500;
}
body.bright .control.green {
  background-color: #1aab29;
}
