#boot-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  background-color: #000 !important;
  color: #00ff00 !important;

  font-family: "Courier New", monospace;
  font-size: 18px;

  padding: 20px;
  box-sizing: border-box;

  z-index: 999999;

  overflow: hidden;
}

#boot-text {
  color: #00ff00 !important;
  margin: 0;
  white-space: pre-wrap;
}

body {
  margin: 0;
  padding: 0;
  background: black;
  color: white;
  font-family: "Courier New", monospace;
}

    .title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: navy;
  color: white;

  padding: 2px 3px;

  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 12px;
  font-weight: bold;
}

.window-controls {
  display: flex;
  gap: 2px;
}

.btn-min,
.btn-max,
.btn-close {
  width: 18px;
  height: 18px;

  padding: 0;
  margin: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #c0c0c0;
  color: black;

  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;

  box-sizing: border-box;

  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
  font-weight: bold;

  cursor: pointer;
}

.btn-min {
  align-items: flex-start;
  padding-top: 1px;
}

.btn-max {
  font-size: 10px;
}

.btn-close {
  font-size: 13px;
  line-height: 1;
}

.btn-min:active,
.btn-max:active,
.btn-close:active {
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;

  padding-top: 1px;
  padding-left: 1px;
}

    .terminal {
      background-color: black;
      color: #00ff00;
      font-family: monospace;
      padding: 10px;
      height: 300px;
      overflow-y: auto;
      border-top: 2px solid #000;
    }

    form {
      margin-top: 10px;
    }

    input[type="text"] {
      background-color: black;
      color: #00ff00;
      border: none;
      width: 100%;
      font-family: monospace;
      outline: none;
    }

    .output {
      white-space: pre-wrap;
    }
    .desktop {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  padding: 16px;
}
.window {
  background: #c0c0c0;
  border: 2px solid #000;
  box-shadow: inset -2px -2px #fff, inset 2px 2px #fff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  height: auto;
}

.p5-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.p5-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  height: 28px;
  background: #c0c0c0;

  display: flex;
  align-items: center;

  padding: 2px;
  gap: 6px;

  border-top: 2px solid #ffffff;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 12px;
}

.start-button {
  display: flex;
  align-items: center;
  gap: 4px;

  background: #c0c0c0;

  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;

  padding: 2px 6px;
  font-weight: bold;
  cursor: pointer;
}

.start-button:active {
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
}

.win-logo {
  display: flex;
  align-items: center;
}

.start-menu {
  position: absolute;
  bottom: 30px;
  left: 2px;

  width: 180px;
  background: #c0c0c0;

  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;

  padding: 4px;
  z-index: 9999;
}

.start-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.start-menu li {
  margin: 0;
}

.start-menu a {
  display: block;
  padding: 4px 6px;
  color: black;
  text-decoration: none;
}

.start-menu a:hover {
  background: navy;
  color: white;
}

.hidden {
  display: none;
}

.taskbar-status {
  margin-left: auto;
  padding: 2px 6px;

  border-top: 2px solid #808080;
  border-left: 2px solid #808080;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;

  font-size: 11px;
}

.browser-toolbar {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: #c0c0c0;
  border-bottom: 2px solid #808080;
}

.browser-toolbar input {
  flex: 1;
  font-family: monospace;
}

.browser-layout {
  position: relative;
  height: 100%;
}

/* actual page area */
.browser-content {
  background: white;
  color: black;
  font-family: Verdana, sans-serif;
  border: 2px inset #c0c0c0;

  margin: 8px 120px 8px 8px;
  padding: 12px;

  min-height: 140px;

  overflow: auto;

  box-sizing: border-box;
}

/* floating ads */
.browser-ads {
  position: absolute;

  top: 12px;
  right: 6px;

  width: 100px;

  display: flex;
  flex-direction: column;
  gap: 8px;

  z-index: 50;
}

.ad {
  border: 2px outset #fff;

  padding: 6px;

  font-size: 10px;
  font-weight: bold;
  text-align: center;

  box-shadow: 2px 2px 0 black;

  transform: rotate(-1deg);
}

.ad:nth-child(1) {
  background: yellow;
  color: blue;
  transform: rotate(0.5deg);
  margin-right: 10px;
}

.ad:nth-child(2) {
  background: red;
  color: white;
  transform: rotate(-0.5deg);
  margin-right: 10px;
}

.ad:nth-child(3) {
  background: lime;
  color: black;
  transform: rotate(1.5deg);
  margin-right: -2px;
}

.mail-toolbar {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #c0c0c0;
  border-bottom: 2px solid #808080;
}

.mail-toolbar button {
  font-family: sans-serif;
  border: 2px outset white;
  background: #c0c0c0;
  cursor: pointer;
}

.mail-client {
  display: flex;
  height: 300px;
  background: #d4d0c8;
}

.mail-sidebar {
  width: 180px;
  border-right: 2px inset #808080;
  overflow-y: auto;
  background: white;
  color: black;
}

.mail-item {
  padding: 6px;
  border-bottom: 1px solid #c0c0c0;
  cursor: pointer;
  font-size: 12px;
}

.mail-item:hover {
  background: #000080;
  color: white;
}

.mail-viewer {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: white;
  color: black;
  font-family: "Times New Roman", serif;
}

.mail-viewer h3 {
  margin-top: 0;
}

.taskbar-status {

  margin-left: auto;
  margin-right: 12px;

  color: black;

  font-size: 12px;

  font-family: "Courier New", monospace;

  padding: 2px 6px;

  border: 2px inset #808080;

  background: #c0c0c0;

  min-width: 120px;

  text-align: center;
}

body::after {
  content: "";

  position: fixed;
  inset: 0;

  pointer-events: none;

  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.03) 0px,
      rgba(255,255,255,0.03) 1px,
      transparent 2px,
      transparent 4px
    );

  mix-blend-mode: overlay;

  z-index: 99999;
}

@keyframes scanmove {
  from { transform: translateY(0); }
  to { transform: translateY(4px); }
}

body::after {
  animation: scanmove 0.2s linear infinite;
}

@keyframes blink {
  from { opacity: 1; }
  to { opacity: 0.7; }
}