:root {
  --taskbar-height: 30px;
}

html {
  background-image: url('../bg.jpg');
  background-image: image-set(
    url('../ktna.webp') type('image/webp'),
    url('../bg.jpg') type('image/jpeg')
  );
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  overflow: hidden;
  height: 100%;
}

body {
  height: 100%;
  margin: 0;
}

/* The desktop: everything above the taskbar. */
.viewport {
  width: 100%;
  height: calc(100% - var(--taskbar-height));
  display: flex;
  justify-content: center;
  align-items: center;
}

/* dynamic viewport unit so mobile browser chrome doesn't clip the window */
@supports (height: 100dvh) {
  .viewport {
    height: calc(100dvh - var(--taskbar-height));
  }
}

.window {
  max-width: 800px;
  width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
}

/* Browser chrome (menu, toolbar, address bar) stays put; only the page
   viewport below it scrolls, like a real IE window. */
.window-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 3px;
  margin: 0;
}

.title-bar-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Minimize sends the window to the taskbar (its task button restores it);
   Close removes it entirely until Quick Launch's IE icon reopens it. */
.window.minimized,
.window.closed {
  display: none;
}

/* Maximize puts the page in fullscreen; fill it edge to edge like a
   maximized XP window (square corners). Phones always get this look. */
html:fullscreen .window {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
}

html:fullscreen .title-bar {
  border-radius: 0;
}

@media only screen and (max-width: 650px) {
  .window {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
  }

  .title-bar {
    border-radius: 0;
  }
}

/* IE chrome */
.ie-bar {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  font-family: 'Pixelated MS Sans Serif', Arial;
  -webkit-font-smoothing: antialiased;
  font-size: 11px;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #aca899;
}

.menu-bar {
  min-height: 22px;
  padding-left: 2px;
  cursor: default;
}

.menu-bar span {
  padding: 3px 6px;
}

.menu-bar span:hover {
  background: #316ac5;
  color: #fff;
}

.menu-bar .throbber {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  align-self: stretch;
  width: 38px;
  padding: 0;
  background: #fff;
  border-left: 1px solid #aca899;
}

.menu-bar .throbber:hover {
  background: #fff;
}

.throbber img {
  width: 20px;
  height: 20px;
}

.toolbar {
  gap: 1px;
  padding: 2px;
  flex-wrap: wrap;
}

/* Flat XP toolbar buttons: borderless until hovered. Selectors are doubled
   up on .tool to outrank XP.css's own button rules. */
.tool.tool {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  height: auto;
  padding: 3px 5px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: none;
  box-shadow: none;
  color: #000;
  font-family: 'Pixelated MS Sans Serif', Arial;
  font-size: 11px;
  text-decoration: none;
  cursor: default;
}

/* IE6's "Small icons" toolbar setting: real XP icons at their native 16px. */
.tool img {
  width: 16px;
  height: 16px;
}

/* Back reuses the real XP green arrow, mirrored. */
.tool img.flip {
  transform: scaleX(-1);
}

.tool.tool:not(:disabled):hover {
  border-color: #cecec3;
  background: linear-gradient(180deg, #fff, #f4f3ee 60%, #e6e4da);
  box-shadow: none;
}

.tool.tool:not(:disabled):active,
.tool.tool[aria-pressed='true'] {
  border-color: #9d9d92;
  background: #e3e3db;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.tool.tool:focus-visible {
  outline: 1px dotted #000;
  outline-offset: -3px;
}

.tool:disabled {
  color: #aca899;
}

.tool:disabled img {
  filter: grayscale(1);
  opacity: 0.5;
}

.toolbar-separator {
  align-self: stretch;
  width: 1px;
  margin: 2px 3px;
  background: #aca899;
  border-right: 1px solid #fff;
}

.address-bar {
  gap: 4px;
  padding: 2px 4px;
}

.address-bar label {
  color: #444;
}

.address-field {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  height: 21px;
  box-sizing: border-box;
  border: 1px solid #7f9db9;
  background: #fff;
}

.address-field .icon {
  padding: 0 3px;
}

.address-field input[type='text'] {
  flex: 1 1 auto;
  min-width: 0;
  height: 19px;
  padding: 0 2px;
  border: none;
}

.address-dropdown {
  flex: 0 0 auto;
  width: 15px;
  height: 17px;
  margin-right: 1px;
  background: url('../icons/dropdown.svg') no-repeat center / 15px 17px;
}

.tool.go-button,
.tool.links-band {
  padding: 1px 4px;
}

/* The page area IE renders into: a sunken client edge with its own scrollbar,
   white like an unstyled page in IE rather than the cream of the chrome. */
.page-viewport {
  flex: 1 1 auto;
  background: #fff;
  min-height: 0;
  overflow: auto;
  margin: 2px 1px 0;
  border: 1px solid;
  border-color: #404040 #d4d0c8 #d4d0c8 #404040;
  box-shadow:
    -1px -1px 0 #808080,
    1px 1px 0 #fff;
  padding-bottom: 5px;
}

.status-bar {
  flex: 0 0 auto;
  margin-top: 3px;
}

.status-bar-field {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 16px;
}

.status-bar-field.status-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

#status-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-blank {
  width: 22px;
}

.status-zone {
  width: 110px;
}

.window-content {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  box-sizing: border-box;
  padding: 10px;
  gap: 5px;
}

/* The content box owns the gap above the footer, so drop XP.css's trailing
   fieldset margin to keep that gap the same on every page. */
.window-content fieldset:last-child {
  margin-bottom: 0;
}

.current-page {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  flex-basis: 600px;
  flex-grow: 10;
}

@media only screen and (max-width: 650px) {
  /* Phones keep the desktop model (the window is maximized above): only the
     page viewport scrolls, and it mustn't rubber-band the page behind it. */
  .page-viewport {
    overscroll-behavior: contain;
  }

  .tool.links-band,
  .status-blank {
    display: none;
  }
}

.icon {
  height: 16px;
  vertical-align: middle;
  padding-right: 5px;
}

/* Header */
.header {
  height: 80px;
  background-image: url('../header.jpg');
  background-image: image-set(
    url('../header.webp') type('image/webp'),
    url('../header.jpg') type('image/jpeg')
  );
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom;
  display: flex;
  flex-direction: row;
  padding: 5px;
  box-sizing: border-box;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.header div {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-self: center;
  gap: 3px;
  flex-basis: auto;
  align-items: flex-start;
  justify-content: center;
}

.header h1,
h2 {
  color: #ffffff;
  margin: 0px;
  text-shadow: 1px 1px 5px black;
}

.logo {
  width: 90px;
  height: 90px;
}

.logo img {
  width: 100%;
  height: 100%;
}

/* Sidebar */
.sidebar {
  flex-grow: 1;
}

/* Hidden by the Favorites toolbar button; the phone layout's
   `display: contents` would otherwise override the [hidden] attribute. */
.sidebar[hidden] {
  display: none !important;
}

.sidebar li {
  margin: 6px 0 !important;
}

/* Footer */
.footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer p {
  margin: 0px;
  font-size: 10px;
}

.banner-wrapper {
  display: flex;
  height: 70px;
  width: 500px;
  max-width: 100%;
  max-height: 100%;
  align-items: center;
  justify-content: center;
  padding-bottom: 5px;
  box-sizing: border-box;
}

.banner-wrapper img {
  max-width: 100%;
  max-height: 100%;
}

/* Windows XP taskbar (Luna blue), pinned to the bottom of the screen. */
.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: stretch;
  height: var(--taskbar-height);
  background: linear-gradient(
    180deg,
    #3168d5 0,
    #4993e6 3%,
    #2157d7 10%,
    #2663e0 50%,
    #245fdc 90%,
    #1941a5 100%
  );
  border-top: 1px solid #0c37a4;
  box-sizing: border-box;
  font-family: Tahoma, 'Pixelated MS Sans Serif', Arial;
  font-size: 11px;
  color: #fff;
  user-select: none;
  cursor: default;
}

.start-button {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 0 22px 2px 10px;
  border-radius: 0 10px 10px 0;
  background: linear-gradient(
    180deg,
    #3c9a3c 0,
    #5fbb5f 8%,
    #3c9a3c 20%,
    #3a943a 75%,
    #2b7c2b 100%
  );
  box-shadow:
    inset -2px 0 3px rgba(0, 0, 0, 0.35),
    inset 1px 1px 2px rgba(255, 255, 255, 0.35);
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 18px;
  font-style: italic;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.start-button:hover {
  filter: brightness(1.1);
}

.start-button:active {
  filter: brightness(0.85);
}

.start-button img {
  width: 16px;
  height: 16px;
  filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.5));
}

.quick-launch {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 1px;
  padding: 0 6px 0 8px;
  margin-right: 4px;
  border-right: 1px solid #1c42a4;
  box-shadow: 1px 0 0 #3f80e8;
}

.quick-launch-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 2px;
  background: none;
  box-shadow: none;
}

.quick-launch-item img,
.task img,
.tray img {
  width: 16px;
  height: 16px;
}

.quick-launch-item:hover {
  border-color: #6aa1f0 #0d3a9e #0d3a9e #6aa1f0;
  background: rgba(255, 255, 255, 0.15);
}

.quick-launch-item:active {
  border-color: #0d3a9e #6aa1f0 #6aa1f0 #0d3a9e;
  background: rgba(0, 0, 0, 0.15);
}

.task-list {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 6px;
}

.task {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 160px;
  min-width: 0;
  height: 24px;
  min-height: 0;
  padding: 0 8px;
  border: none;
  border-radius: 3px;
  background: linear-gradient(180deg, #4a8ff6, #3c81f3 15%, #3a7cf0);
  box-shadow:
    inset -1px -1px 0 rgba(0, 0, 0, 0.3),
    inset 1px 1px 0 rgba(255, 255, 255, 0.3);
  color: #fff;
  font: inherit;
  text-align: left;
}

.task[hidden] {
  display: none;
}

.task span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task:hover {
  background: linear-gradient(180deg, #6aa9fb, #53a0fb 15%, #4c97f8);
}

.task[aria-pressed='true'] {
  background: #1e52b7;
  box-shadow:
    inset 1px 1px 1px rgba(0, 0, 0, 0.5),
    inset -1px -1px 0 rgba(255, 255, 255, 0.15);
  font-weight: bold;
}

.task[aria-pressed='true']:hover {
  background: #2a62cc;
}

.taskbar :focus-visible {
  outline: 1px dotted #fff;
  outline-offset: -3px;
}

.tray {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 4px;
  padding: 0 10px 0 12px;
  background: linear-gradient(
    180deg,
    #0c59b9 0,
    #139ee9 5%,
    #18b5f2 10%,
    #139beb 15%,
    #1290e8 50%,
    #0d8dea 90%,
    #0d64c0 100%
  );
  border-left: 1px solid #1042af;
  box-shadow: inset 1px 0 1px #18bbff;
}

.tray-clock {
  margin-left: 4px;
  white-space: nowrap;
}

@media only screen and (max-width: 650px) {
  .start-button {
    padding-right: 14px;
  }
}
