:root {
  --win-gray: #c0c0c0;
  --win-dark: #000080;
  --win-light: #ffffff;
  --win-shadow: #808080;
  --win-black: #000000;
  --hot-pink: #ff4fd8;
  --cyan: #37f7ff;
  --purple: #6b2cff;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  font-family: "Less Perfect DOS VGA";
  font-size: 16px;
  color: #000;
  background: #008080;
  image-rendering: pixelated;
}

button, input, select, textarea {
  font: inherit;
}

.desktop {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.wallpaper {
    position: absolute;
    inset: 0 0 30px;
    overflow: hidden;
}

.wallpaper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
    pointer-events: none;
}

#wallpaper-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    user-select: none;
    pointer-events: none;
}

.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.018) 0,
    rgba(255,255,255,.018) 1px,
    rgba(0,0,0,.035) 2px,
    rgba(0,0,0,.035) 3px
  );
}

.desktop-icons {
  position: absolute;
  top: 10px;
  left: 8px;
  display: grid;
  gap: 15px;
  width: 96px;
  z-index: 2;
}

.desktop-icon {
  width: 90px;
  min-height: 74px;
  padding: 4px;
  border: 1px solid transparent;
  background: transparent;
  color: #fff;
  text-shadow: 1px 1px #000;
  cursor: default;
}
.desktop-icon:focus,
.desktop-icon:hover {
  border: 1px dotted #fff;
  background: rgba(0,0,128,.34);
}
.desktop-icon span:last-child {
  display: block;
  margin-top: 4px;
  line-height: 1.15;
}

.pixel-icon, .menu-icon {
  display: inline-block;
  position: relative;
}
.pixel-icon {
  width: 34px;
  height: 31px;
  margin: 0 auto;
}

.computer-icon::before {
  content: "";
  position: absolute;
  left: 4px; top: 2px;
  width: 25px; height: 18px;
  border: 2px solid #111;
  background: linear-gradient(135deg, #a9e7e7, #266d92);
  box-shadow: inset 2px 2px #fff, inset -2px -2px #777;
}
.computer-icon::after {
  content: "";
  position: absolute;
  left: 10px; top: 23px;
  width: 16px; height: 5px;
  background: #d8d8d8;
  border: 1px solid #111;
}

.monitor-icon::before {
  content: "";
  position: absolute;
  left: 3px; top: 2px;
  width: 27px; height: 21px;
  border: 2px solid #111;
  background: #001b54;
  box-shadow: inset 2px 2px #fff, inset -2px -2px #777;
}
.monitor-icon::after {
  content: "";
  position: absolute;
  left: 12px; top: 25px;
  width: 11px; height: 4px;
  background: #ccc;
  border: 1px solid #111;
}

.folder-icon::before {
  content: "";
  position: absolute;
  left: 2px; top: 8px;
  width: 30px; height: 20px;
  background: #ffe16b;
  border: 1px solid #222;
  box-shadow: inset 2px 2px #fff3a7, inset -2px -2px #b68c00;
}
.folder-icon::after {
  content: "";
  position: absolute;
  left: 4px; top: 4px;
  width: 13px; height: 7px;
  background: #ffe16b;
  border: 1px solid #222;
  border-bottom: 0;
}

.document-icon::before {
  content: "";
  position: absolute;
  left: 7px; top: 2px;
  width: 21px; height: 28px;
  background:
    linear-gradient(#333 0 0) 5px 9px/12px 1px no-repeat,
    linear-gradient(#333 0 0) 5px 14px/12px 1px no-repeat,
    linear-gradient(#333 0 0) 5px 19px/9px 1px no-repeat,
    #fff;
  border: 1px solid #222;
  box-shadow: inset -3px -3px #d3d3d3;
}

.power-icon::before {
  content: "⏻";
  font-size: 20px;
  color: #222;
}

.window {
  position: absolute;
  z-index: 5;
  min-width: 260px;
  background: var(--win-gray);
  border-top: 2px solid var(--win-light);
  border-left: 2px solid var(--win-light);
  border-right: 2px solid var(--win-black);
  border-bottom: 2px solid var(--win-black);
  box-shadow: 1px 1px 0 var(--win-shadow), 9px 12px 22px rgba(0,0,0,.30);
}

.window.active .title-bar {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
}

.title-bar {
  height: 25px;
  margin: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 5px;
  background: #7f7f7f;
  color: #d8d8d8;
  font-weight: 200;
  letter-spacing: .1px;
  user-select: none;
  cursor: move;
}

.window-controls {
  display: flex;
  gap: 2px;
  padding-right: 2px;
}
.control, .classic-button, .start-button {
  background: var(--win-gray);
  border-top: 2px solid var(--win-light);
  border-left: 2px solid var(--win-light);
  border-right: 2px solid var(--win-black);
  border-bottom: 2px solid var(--win-black);
  box-shadow: inset -1px -1px var(--win-shadow);
  color: #000;
}
.control {
  width: 20px;
  height: 18px;
  padding: 0;
  line-height: 13px;
  font-weight: 900;
}
.control:active, .classic-button:active, .start-button:active {
  border-top-color: var(--win-black);
  border-left-color: var(--win-black);
  border-right-color: var(--win-light);
  border-bottom-color: var(--win-light);
  box-shadow: inset 1px 1px var(--win-shadow);
}

.menu-bar {
  padding: 1px 5px 3px;
  border-bottom: 1px solid #888;
}
.menu-bar button {
  border: 0;
  background: transparent;
  padding: 2px 8px;
}
.menu-bar button:hover { background: #000080; color: #fff; }

.window-body {
  padding: 14px;
}

.hero-panel {
  display: grid;
  grid-template-columns: 75px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 15px;
  padding: 12px;
  background: linear-gradient(90deg, #241064, #a322a6, #ff5cb8);
  color: #fff;
  border: 2px inset #fff;
  text-shadow: 1px 1px #3d005e;
}
.hero-panel h1 {
  margin: 0 0 7px;
  font-size: clamp(21px, 4vw, 34px);
  letter-spacing: 1px;
}
.hero-panel p { margin: 0; line-height: 1.4; }

.guac-logo {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  background: #c0c0c0;
  border: 2px outset white;
  font-size: 42px;
  text-shadow: none;
}
.guac-logo.large { width: 76px; height: 76px; font-size: 52px; }

fieldset {
  margin: 0 0 14px;
  border: 2px groove #fff;
}
legend { padding: 0 5px; }

.connection-grid {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 7px 10px;
  align-items: center;
}
.sunken-field {
  padding: 6px 8px;
  background: white;
  border-top: 2px solid #555;
  border-left: 2px solid #555;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  font-family: "Courier New", monospace;
  overflow-wrap: anywhere;
}
.classic-button {
  min-width: 95px;
  padding: 6px 13px;
}
.classic-button.primary {
  margin-top: 10px;
  font-weight: 200;
}

.dialog-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 9px;
  align-items: center;
}
.dialog-row p { margin: 0; }

.dialog-text p {
    margin: 0 0 10px;
}

.dialog-text p:last-child {
    margin-bottom: 0;
}

.info-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #0000c9;
  color: white;
  border: 2px solid white;
  box-shadow: 1px 1px #555;
  font: italic bold 22px Georgia, serif;
}

.status-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px;
  padding: 2px;
}
.status-bar span {
  padding: 3px 6px;
  border-top: 1px solid #777;
  border-left: 1px solid #777;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
}

.status-list {
  display: grid;
  gap: 7px;
}
.status-list > div {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  background: #fff;
  border: 2px inset #fff;
}
.led {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid #222;
}
.led.online { background: #25d35f; box-shadow: 0 0 5px #25d35f; }
.led.neutral { background: #f2c94c; }
.small-note { color: #444; margin-bottom: 0; }

.file-view {
  min-height: 180px;
  background: #fff;
  border: 2px inset #fff;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.file-item {
  text-align: center;
  padding: 8px;
}
.file-item strong, .file-item small { display: block; }
.file-item small { margin-top: 4px; color: #555; line-height: 1.25; }
.mini-folder {
  display: block;
  width: 46px; height: 30px;
  margin: 0 auto 7px;
  background: #ffe16b;
  border: 1px solid #222;
  box-shadow: inset 2px 2px #fff3a7, inset -2px -2px #b68c00;
}

.about-box {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: center;
}
.about-box h2 { margin: 0; font-size: 25px; }
.about-box p { margin: 5px 0; }
hr { border: 0; border-top: 1px solid #777; border-bottom: 1px solid #fff; }

.taskbar {
  position: absolute;
  z-index: 100;
  left: 0; right: 0; bottom: 0;
  height: 30px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 4px;
  align-items: center;
  padding: 2px;
  background: var(--win-gray);
  border-top: 2px solid white;
}
.start-button {
  height: 26px;
  padding: 2px 8px;
  font-weight: 200;
}
.windows-mark {
  color: #ff1493;
  text-shadow: 8px 0 #21e6ff, 4px -3px #ffe75c;
  margin-right: 7px;
}
.task-buttons {
  display: flex;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
}
.task-button {
  min-width: 120px;
  max-width: 190px;
  height: 25px;
  padding: 2px 8px;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.task-button.active {
  background: #ddd;
  border-top: 2px solid #555;
  border-left: 2px solid #555;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
}
.tray {
  height: 25px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 2px 8px;
  border-top: 2px solid #777;
  border-left: 2px solid #777;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
}
.tray-icon { font-size: 12px; }

.start-menu {
  position: absolute;
  z-index: 120;
  left: 2px;
  bottom: 30px;
  width: 260px;
  min-height: 280px;
  display: grid;
  grid-template-columns: 33px 1fr;
  background: var(--win-gray);
  border-top: 2px solid white;
  border-left: 2px solid white;
  border-right: 2px solid black;
  border-bottom: 2px solid black;
  box-shadow: 5px 5px 18px rgba(0,0,0,.35);
}
.start-side {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 10px 0;
  background: #7b7b7b;
  color: #d6d6d6;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 4px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.start-items { padding: 5px; }
.start-items button {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 5px 8px;
}
.start-items button:hover {
  background: #000080;
  color: white;
}
.menu-icon { width: 30px; height: 30px; }
.menu-separator {
  margin: 4px 2px;
  border-top: 1px solid #777;
  border-bottom: 1px solid #fff;
}

.shutdown-dialog {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.55);
}
.shutdown-dialog .window { position: relative; width: min(420px, 86vw); }
.button-row { text-align: right; margin-top: 15px; }

.hidden { display: none !important; }
.maximized {
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: calc(100% - 30px) !important;
}

@media (max-width: 650px) {
  .desktop-icons {
    grid-template-columns: repeat(4, 72px);
    width: auto;
    gap: 5px;
  }
  .desktop-icon { width: 70px; font-size: 11px; }
  .window {
    left: 5vw !important;
    top: 88px !important;
    width: 90vw !important;
    max-height: calc(100vh - 130px);
    overflow: auto;
  }
  .file-view { grid-template-columns: 1fr; }
  .connection-grid { grid-template-columns: 1fr; }
  .hero-panel { grid-template-columns: 1fr; text-align: center; }
  .guac-logo { margin: 0 auto; }
  .task-button { min-width: 90px; }
}
@font-face {
    font-family: "Less Perfect DOS VGA";
    src:
        url("../fonts/LessPerfectDOSVGA.woff2") format("woff2"),
        url("../fonts/LessPerfectDOSVGA.ttf") format("truetype");
    font-display: swap;
}

