html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  min-width: 100vw;
  margin: 0;
  background: url("./win7_bg.webp") no-repeat center center fixed;
  background-size: cover;
  position: relative;
  font-family: "Segoe UI", "Lucida Console", monospace;
}
.window.active {
  max-width: 61.5vw;
  position: absolute;
  left: 20px;
  top: 60px;
  transform: none;
  z-index: 10;
}

/* Notepad textarea */
#editor {
  max-width: 60vw;
  width: 40vw;
  height: 50vh;
  min-width: 20vh;
  max-height: 80vh;
  font-size: 24pt;
}

/* Terminal window */
#terminalWindow {
  width: 35vw;
  height: 60vh;
  position: absolute;
  right: 20px;
  top: 60px;
  transform: none;
}

#terminalWindow .window-body.has-space {
  background: #111;
  color: #eee;
  padding: 0;
  display: flex;
  height: 56.5vh;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

#terminalOutput {
  margin: 0;
  white-space: pre-wrap;
  background: #111;
  color: #fff;
  font-family: "Fira Mono", "Consolas", "monospace";
  font-size: 1.1em;
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  padding: 12px 8px 0 8px;
}

.taskbar {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 48px;
  background: linear-gradient(to top, #406080 80%, #7eb6f7 100%);
  border-top: 1.5px solid #b6c7e3;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  z-index: 100;
}
.start-btn {
  width: 46px;
  height: 46px;
  margin: 0 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: filter 0.2s;
}
.start-btn:hover {
  filter: brightness(1.1);
}
.start-btn img {
  width: 42px;
  height: 42px;
}
.taskbar-apps {
  display: flex;
  align-items: center;
  margin-left: 12px;
  flex: 1;
}

/* Taskbar app icons */
.taskbar-apps img {
  width: 32px;
  height: 32px;
  margin: 0 8px;
  border-radius: 4px;
}

.taskbar-clock {
  color: #fff;
  font-size: 16px;
  margin-right: 18px;
  font-family: "Segoe UI", Arial, sans-serif;
  text-shadow: 1px 1px 2px #0008;
}

#aboutDialog {
  display: none;
  position: fixed;
  left: 50%;
  top: 30%;
  transform: translate(-50%, -30%);
  min-width: 340px;
  z-index: 200;
}

ul[role="menubar"] > li > a[href$="documentation.pdf"] {
  color: inherit;
  text-decoration: none;
  font-weight: normal;
}
ul[role="menubar"] > li > a[href$="documentation.pdf"]:hover {
  text-decoration: underline;
}
