@font-face {
  font-family: "Open Sans Local";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("./fonts/open-sans-latin-300-normal.woff2") format("woff2");
  unicode-range: U+0000-024F, U+1E00-1EFF, U+20A0-20CF;
}
@font-face {
  font-family: "Open Sans Local";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("./fonts/open-sans-latin-ext-300-normal.woff2") format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20CF;
}

:root {
    --bg: #3C6EA6;
    --err: #cc2020;
    --text: #fff;
    --muted: #ccc;
    color-scheme: dark;
    font: 16px system-ui, sans-serif;
    --winfont: "Tahoma", "Open Sans Local", "Open Sans", sans-serif !important;
    background: var(--bg);
    color: var(--text);
}

body {
    margin: 0;
    min-height: 100vh;
    background: url('bg.png');
}

/* Use the classic Windows UI font for the playlist and scrolling marquee. */
#webamp #playlist-window .playlist-tracks,
#webamp #playlist-window .track-cell,
#webamp #playlist-window .playlist-track-titles,
#webamp #playlist-window .playlist-track-durations,
#webamp #marquee,
#webamp #marquee * {
  font-family: "Open Sans Local", "Open Sans", sans-serif;
  font-size: 11px;
}

#status {
    max-width: 1000px;
    margin: auto;
    padding: .5rem 1rem;
    color: var(--muted);
    font-size: 8px;
    display: none;
}

#status.error {
    color: var(--err);
}

#player {
    position: relative;
    z-index: 10;
    min-height: 430px;
    pointer-events: none;
}

#player #webamp {
    pointer-events: auto;
}

#player #webamp {
    position: relative !important;
    inset: auto !important;
    margin: 1rem auto;
    transform: none !important;
}


/* Windows 95-style taskbar */
.taskbar {
  position: fixed;
  z-index: 10000;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  height: 28px;
  padding: 2px 3px;
  box-sizing: border-box;
  color: #000;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  font-family: var(--winfont);
  font-size: 12px;
  image-rendering: pixelated;
}
.start-button, .taskbar-window {
  display: flex;
  align-items: center;
  height: 22px;
  box-sizing: border-box;
  color: #000;
  background: #c0c0c0;
  border: 1px solid #fff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  font-family: var(--winfont);
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
}
.start-button {
  gap: 3px;
  min-width: 57px;
  padding: 1px 5px 1px 3px;
  cursor: default;
  font-size: 14px;
}
.start-button:active, .start-button.pressed, .taskbar-window.active {
  border-color: #404040 #fff #fff #404040;
}
.taskbar-window {
  gap: 4px;
  width: 245px;
  min-width: 0;
  margin-left: 4px;
  padding: 1px 5px;
  overflow: hidden;
}
.taskbar-window-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.window-icon img { width: 16px; height: 16px; image-rendering: pixelated; display: block; }
.window-icon {
  flex: 0 0 auto;
  color: #000080;
  font-size: 13px;
  line-height: 1;
}
.windows-logo {
  padding: 1px;
}
.windows-logo img {
  padding-top: 2px;
}
.system-tray {
  display: flex;
  align-items: center;
  height: 22px;
  min-width: 86px;
  margin-left: auto;
  box-sizing: border-box;
  background: #c0c0c0;
  border: 1px solid #808080;
  border-right-color: #fff;
  border-bottom-color: #fff;
}
.taskbar-tray-icon {
  display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin: 0 1px; flex: 0 0 20px;
}
.taskbar-tray-icon img { width: 16px; height: 16px; image-rendering: pixelated; display: block; }
.taskbar-tray-icon[hidden] { display: none; }
.taskbar-mute {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 20px;
  padding: 0;
  color: #000;
  background: transparent;
  border: 1px solid transparent;
  font: 13px sans-serif;
  line-height: 20px;
  cursor: default;
}
.taskbar-mute:hover { background: #d4d4d4; }
.taskbar-mute:active { border-color: #404040 #fff #fff #404040; }
.taskbar-mute[aria-pressed="true"] { background: #b0b0b0; }
.taskbar-clock {
  min-width: 62px;
  height: 20px;
  margin-left: 0;
  padding: 0 8px 0 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  line-height: 20px;
  border: 0;
  background: transparent;
  font-family: var(--winfont);
  font-size: 13px;
  font-weight: normal;
  text-align: right;
  position: relative;
}
#player { padding-bottom: 30px; box-sizing: border-box; }


.taskbar-app-button {
  border: 1px solid #fff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  cursor: default;
}
.taskbar-app-button.selected { border-color: #404040 #fff #fff #404040; }
.classic-window {
  position: fixed;
  z-index: 9000;
  top: 70px;
  left: 330px;
  width: 720px;
  height: 520px;
  min-width: 360px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 2px;
  background: #c0c0c0;
  border: 1px solid #fff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  box-shadow: 1px 1px 0 #000;
  font-family: var(--winfont);
  font-size: 12px;
}
.classic-window[hidden] { display: none; }
.classic-titlebar {
  display: flex;
  align-items: center;
  height: 24px;
  padding: 0 2px 0 5px;
  color: #fff;
  background: linear-gradient(45deg, #0A246A, #A6CAF0);
  cursor: default;
  user-select: none;
  touch-action: none;
}
.classic-title { display: flex; align-items: center; gap: 4px; flex: 1; font-weight: bold; }
.classic-title-icon { width: 16px; height: 16px; image-rendering: pixelated; cursor: default; }
.classic-titlebar.inactive { background: linear-gradient(45deg, #808080, #C0C0C0); color: #D4D0C8; }
.classic-window-controls { display: flex; gap: 2px; align-items: center; }
.classic-control {
  width: 20px;
  height: 20px;
  padding: 0;
  color: #000;
  background: #c0c0c0;
  border: 1px solid #fff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  font-size: 14px;
  font-family: var(--winfont);
  line-height: 14px;
  cursor: default;
}
.classic-control:active { border-color: #404040 #fff #fff #404040; }
.classic-close {
  width: 16px;
  height: 16px;
  padding: 0;
  color: #000;
  background: #c0c0c0;
  border: 1px solid #fff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  font: bold 13px Arial, sans-serif;
  line-height: 12px;
  cursor: default;
}
.classic-close:active { border-color: #404040 #fff #fff #404040; }
.classic-window.maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: calc(100vh - 28px) !important;
  padding: 0;
  border: 0;
  box-shadow: none;
}
.classic-window-body {
  flex: 1;
  min-height: 0;
  margin-top: 3px;
  border: none;
  border-right-color: #fff;
  border-bottom-color: #fff;
  background: #fff;
}
.classic-window-body iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.classic-resize-handle {
  position: absolute;
  z-index: 2;
  touch-action: none;
}
.classic-window:not(.maximized) .classic-resize-handle { display: block; }
.classic-window.maximized .classic-resize-handle { display: none; }
.resize-n, .resize-s { left: 8px; right: 8px; height: 6px; }
.resize-n { top: -3px; cursor: ns-resize; }
.resize-s { bottom: -3px; cursor: ns-resize; }
.resize-e, .resize-w { top: 8px; bottom: 8px; width: 6px; }
.resize-e { right: -3px; cursor: ew-resize; }
.resize-w { left: -3px; cursor: ew-resize; }
.resize-ne, .resize-nw, .resize-se, .resize-sw { width: 9px; height: 9px; }
.resize-ne { top: -4px; right: -4px; cursor: nesw-resize; }
.resize-nw { top: -4px; left: -4px; cursor: nwse-resize; }
.resize-se { right: -4px; bottom: -4px; cursor: nwse-resize; }
.resize-sw { left: -4px; bottom: -4px; cursor: nesw-resize; }


.desktop-icons { position: fixed; inset: 0; z-index: 1; display: block; pointer-events: none; }
.desktop-icon { position: fixed; z-index: 1; width: 74px; min-height: 66px; padding: 4px; display: flex; flex-direction: column; align-items: center; gap: 3px; box-sizing: border-box; color: #fff; background: transparent; border: 1px solid transparent; font: 12px var(--winfont); text-shadow: 1px 1px #000; cursor: default; touch-action: none; pointer-events: auto; will-change: transform; contain: layout paint; user-select: none; -webkit-user-drag: none; }
.desktop-icon img { width: 32px; height: 32px; image-rendering: pixelated; }
.desktop-icon:focus, .desktop-icon:active { color: #fff; background: #000080; border: 1px dotted #fff; }
.taskbar-window.active { border-color: #404040 #fff #fff #404040; }
.taskbar-window[hidden] { display: none; }

.start-menu {
  position: fixed;
  z-index: 11000;
  left: 0;
  bottom: 30px;
  width: 225px;
  padding: 2px;
  box-sizing: border-box;
  background: #c0c0c0;
  border: 2px solid #fff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  box-shadow: 1px 1px 0 #000;
  font: 12px var(--winfont);
  display: flex;
  align-items: stretch;
}
.start-menu[hidden] { display: none; }
.start-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 45px !important;
  min-height: 45px !important;
  max-height: 45px !important;
  box-sizing: border-box;
  padding: 2px 6px;
  color: #000;
  background: transparent;
  border: 1px solid transparent;
  font-family: var(--winfont);
  font-size: 13px;
  line-height: 16px;
  text-align: left;
  cursor: default;
  overflow: hidden;
}
.start-menu-item img { width: 32px; height: 32px; image-rendering: pixelated; flex: 0 0 auto; }
.start-menu-item:hover, .start-menu-item:focus { color: #fff; background: #000080; outline: none; }

.start-menu-sidebar {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 24px;
  min-width: 24px;
  margin: -1px 5px -1px -1px;
  color: #fff;
  background: linear-gradient(to top, #0A246A, #A6CAF0);
  overflow: hidden;
}
.start-menu-sidebar span {
  margin-bottom: 7px;
  font: bold 12px Arial, sans-serif;
  letter-spacing: 1px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.start-menu-items {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}
.start-menu-items .start-menu-item {
  flex: 0 0 45px !important;
  width: 100%;
  height: 45px !important;
}

.start-menu-separator {
  height: 1px;
  margin: 3px 4px;
  border-top: 1px solid #808080;
  border-bottom: 1px solid #fff;
}
.start-menu-item-spacer {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}
