* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #000;
  font-family: "Chicago", "Geneva", "Courier New", Courier, monospace;
  font-size: 12px;
  line-height: 1.4;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Classic Macintosh window --- */

.terminal {
  width: 512px;
  max-width: 90vw;
  border: 2px solid #000;
  background: #fff;
  position: relative;
  box-shadow: 2px 2px 0 #000;
}

/* Title bar */
.terminal-titlebar {
  background: #fff;
  border-bottom: 2px solid #000;
  padding: 0;
  height: 20px;
  display: flex;
  align-items: center;
  position: relative;
}

/* Close box */
.close-box {
  width: 13px;
  height: 13px;
  border: 1px solid #000;
  margin: 0 4px 0 5px;
  flex-shrink: 0;
}

/* Horizontal title bar lines */
.title-lines-left,
.title-lines-right {
  flex: 1;
  height: 13px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 1px,
    #000 1px,
    #000 2px,
    transparent 2px,
    transparent 3px
  );
}

.terminal-title {
  padding: 0 8px;
  font-size: 12px;
  font-weight: bold;
  color: #000;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Terminal body */
.terminal-body {
  background: #000;
  color: #00ff00;
  padding: 12px;
  min-height: 300px;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  margin-left: 2px;
  margin-right: 15px;
  margin-bottom: 15px;
}

.terminal-line {
  display: flex;
  align-items: baseline;
}

#brand {
  font-size: 14px;
  font-weight: normal;
  white-space: pre;
}

/* Block cursor */
.cursor {
  font-size: 14px;
  color: #00ff00;
  animation: blink 0.6s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Vertical scrollbar (right side) */
.terminal-scrollbar.vertical {
  position: absolute;
  top: 20px;
  right: 0;
  bottom: 15px;
  width: 15px;
  background: #fff;
  border-left: 1px solid #000;
  display: flex;
  flex-direction: column;
}

.vertical .scroll-arrow {
  width: 100%;
  height: 15px;
  background: #fff;
  border-bottom: 1px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  color: #000;
  cursor: default;
}

.vertical .scroll-arrow.down {
  border-top: 1px solid #000;
  border-bottom: none;
  margin-top: auto;
}

.vertical .scroll-track {
  flex: 1;
  background: repeating-linear-gradient(
    45deg,
    #fff 0px,
    #fff 1px,
    #aaa 1px,
    #aaa 2px
  );
  position: relative;
}

.vertical .scroll-thumb {
  width: 100%;
  height: 40px;
  background: #fff;
  border: 1px solid #000;
  position: absolute;
  top: 0;
}

/* Horizontal scrollbar (bottom) */
.terminal-scrollbar.horizontal {
  position: absolute;
  bottom: 0;
  left: 2px;
  right: 15px;
  height: 15px;
  background: #fff;
  border-top: 1px solid #000;
  display: flex;
  flex-direction: row;
}

.horizontal .scroll-arrow {
  width: 15px;
  height: 100%;
  background: #fff;
  border-right: 1px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  color: #000;
  cursor: default;
}

.horizontal .scroll-arrow.right {
  border-left: 1px solid #000;
  border-right: none;
  margin-left: auto;
}

.horizontal .scroll-track {
  flex: 1;
  background: repeating-linear-gradient(
    45deg,
    #fff 0px,
    #fff 1px,
    #aaa 1px,
    #aaa 2px
  );
  position: relative;
}

.horizontal .scroll-thumb {
  height: 100%;
  width: 60px;
  background: #fff;
  border: 1px solid #000;
  position: absolute;
  left: 0;
}

/* Bottom-right grow box */
.terminal-grow-box {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 15px;
  height: 15px;
  background: #fff;
  border-left: 1px solid #000;
  border-top: 1px solid #000;
}
