/* === RESET & BASE === */
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var, b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}

body {
  font-family: "MS Sans Serif", "Microsoft Sans Serif", Arial, sans-serif;
  font-size: 13px;
  line-height: 1;
}

/* === DESKTOP === */
#desktop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: url('https://jacy.neocities.org/images/MARBLE.png') repeat top left;
  overflow: hidden;
  z-index: 9999;
}

/* === WINDOWS === */
.window {
  position: absolute;
  border: 2px solid #000;
  background: #ffdfa6;
  z-index: 1000;
}
.window.closed,
.window.minimizedWindow {
  display: none;
}
.window.fullSizeWindow {
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 32px !important;
}
.fullSizeWindow .ui-resizable-handle {
  display: none;
}

/* === WINDOW HEADERS === */
.windowHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 28px;
  padding: 2px 6px;
  background-color: #c8bfad;
  border-bottom: 2px solid #fff;
  cursor: move;
}
.activeWindow .windowHeader {
  background-color: #3971ac;
}
.windowHeader-left,#window1 .wincontent 
.windowHeader-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.windowHeader-right {
  gap: 4px;
}
.windowIcon {
  width: 16px;
  height: 16px;
}
.windowHeader strong {
  font-size: 15px;
  line-height: 28px;
  font-weight: normal;
}
#window3 .windowHeader strong {
  font-family: "Microsoft Sans Serif", Arial, sans-serif;
  color: black;
  text-shadow: none;
}

/* === CONTROL BUTTONS === */
.winminimize,
.winmaximize,
.winclose {
  width: 20px;
  height: 20px;
  background: center center / contain no-repeat transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}
.winminimize { background-image: url('https://jacy.neocities.org/images/min.png'); }
.winmaximize { background-image: url('https://jacy.neocities.org/images/max.png'); }
.winclose    { background-image: url('https://jacy.neocities.org/images/close.png'); }
.winminimize:hover,
.winmaximize:hover,
.winclose:hover {
  filter: brightness(1.2);
}

/* === WINDOW CONTENT === */
.wincontent {
  box-sizing: border-box;
  position: relative;
  padding: 10px;
  margin: 2px;
  min-width: 200px;
  min-height: 140px;
  overflow: hidden;
}

/* === GALLERY IMAGE === */
#window1 .wincontent {
  width: 300px;
  height: 300px;
  padding: 0;
  margin: 0;
}
.gallery-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  margin: 0;
}

/* === TASKBAR === */
#taskbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background-color: #d7cebc;
  border-top: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}
#taskbar-panels {
  display: flex;
  gap: 10px;
}
.taskbarPanel {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  font-size: 14px;
  border: 2px solid #fff;
  background-color: #e5dbc7;
  cursor: pointer;
}
.taskbarPanel img {
  width: 20px;
  height: 20px;
  margin-right: 6px;
}
.taskbarPanel.activeTab { background: #c8bfad; }
.taskbarPanel.minimizedTab { background: #aaa; }
.taskbarPanel.minimizedTab:hover { background: #ddd; }
.taskbarPanel.closed { display: none; }

/* === CLOCK === */
#clock {
  padding: 4px 8px;
  border: 2px solid #fff;
  background-color: #e5dbc7;
  font-family: 'Perfect DOS VGA 437', monospace;
  font-size: 14px;
  color: black;
  z-index: 10000;
}

/* === ICONS === */
#icons {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
}
#icons a {
  display: block;
  padding: 2px 10px;
  cursor: pointer;
}
#icons a:hover {
  background: transparent;
}

/* === WINDOW POSITIONS & COLORS === */
#window0 { top: 20px; left: 140px; background: #f5b76e; }
#window1 { top: 140px; left: 600px; background: #33382f; }
#window2 { top: 250px; left: 250px; background: #6fafca; }
#window3 { top: 85px;  left: 222px; background: #171717; }

#window0 .wincontent { width: 400px; height: 450px; }
#window2 .wincontent { width: 250px; height: 250px; }
#window3 .wincontent {
  width: 510px;
  height: 277px;
  font-family: 'Perfect DOS VGA 437', monospace;
  font-size: 16px;
  color: #eca409;
}
#window3 .wincontent p {
  color: #eca409;
  text-shadow: 0 0 5px #f99a12;
  white-space: normal;
  word-break: break-word;
  margin: 0;
}

/* === BLINKING CURSOR === */
@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75%      { opacity: 0; }
}
.blinking-cursor {
  animation: blink 2s step-end infinite;
}

/* === MEDIA PLAYER === */
.media-player-window {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 360px;
  background-color: #b0bfcf;
  border: 2px solid #000;
  box-shadow: inset 2px 2px #fff, inset -2px -2px #808080;
  z-index: 500;
  font-family: Tahoma, sans-serif;
}
.mp95-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #5becee, #f19cf3);
  padding: 2px 6px;
  font-family: 'Perfect DOS VGA 437', monospace;
  font-weight: bold;
  border-bottom: 2px solid #000;
}
.mp95-title {
  font-family: 'W95FA', sans-serif;
  font-size: 14px;
  letter-spacing: 0.5px;
}
.mp95-window-body {
  padding: 10px;
}
.mp95-now-playing {
  margin-bottom: 10px;
  padding: 4px;
  background: #94b882;
  border: 2px inset #fff;
  text-align: center;
  font-size: 13px;
}
.mp95-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}
.mp95-controls button {
  background: none;
  border: none;
  width: 60px;
  height: 30px;
  font-size: 16px;
  cursor: pointer;
}
.mp95-volume-control {
  text-align: center;
 