/* Base */
body {
    margin: 0;
    font-family: 'Tahoma', sans-serif;
    background: url('../images/retro.jpg') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    overflow: hidden;
    user-select: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Desktop Icons */
#desktop {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 0;
}

.desktop-icon {
    width: 80px;
    text-align: center;
    cursor: pointer;
    color: white;
    font-size: 12px;
    text-shadow: 1px 1px #000;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.desktop-icon img {
    width: 50px;
    height: 50px;
}
.desktop-icon-large img {
    width: 60px;
    height: 60px;
}
.desktop-icon-large {
    font-size: 14px;
}
.desktop-icon:focus {
    outline: none;
}

/* Windows */
.window {
    width: 900px;
    height: 700px;
    background: #c0c0c0;
    border: 2px solid #fff;
    box-shadow: 4px 4px 0px #000;
    position: absolute;
    display: none;
    z-index: 10;
}
.window-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, #0a64ad, #0a4a8c);
    color: white;
    padding: 3px 5px;
    cursor: move;
    font-weight: bold;
}
.window-controls button {
    width: 20px;
    height: 20px;
    font-size: 12px;
    padding: 0;
    cursor: pointer;
    border: 1px solid #fff;
    background: #e0e0e0;
    box-shadow: 1px 1px 0 #000 inset;
}
.window-controls button:hover,
.window-controls button:focus {
    background: #c0c0c0;
    outline: 1px solid #000;
}
.window-content {
    padding: 10px;
    overflow: auto;
    height: calc(100% - 30px);
    box-sizing: border-box;
}
#resumeWindow .window-content {
    height: calc(100% - 30px);
    display: flex;
    flex-direction: column;
}

/* Scrollbars */
.window-content::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}
.window-content::-webkit-scrollbar-track {
    background: #c0c0c0;
    border: 1px solid #808080;
}
.window-content::-webkit-scrollbar-thumb {
    background: #808080;
    border: 1px solid #fff;
    box-shadow: inset 1px 1px 0 #000;
}
.window-content::-webkit-scrollbar-thumb:hover {
    background: #606060;
}

/* About Window */
.about-window-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}
.about-text {
    width: 70%;
    max-width: 760px;
    text-align: left;
}
.window[data-maximized="true"] .about-text {
    max-width: 70%;
}
.window[data-maximized="true"] .about-window-content {
    max-width: 1200px;
    margin: 0 auto;
}
.about-title {
    font-size: 28px;
    margin: 10px 0 4px 0;
    color: #111;
}
.about-subtitle {
    font-size: 12px;
    color: #444;
}
.about-tagline {
    font-size: 12px;
    margin-bottom: 16px;
}
.about-section {
    font-size: 16px;
    margin: 18px 0 8px 0;
}
.about-window-content a {
    color: #c0392b;
    text-decoration: none;
}
.about-window-content a:hover {
    text-decoration: underline;
}

/* Resume Buttons */
.resume-buttons {
    margin-bottom: 10px;
    height: 40px;
    display: flex;
    align-items: center;
}
.resume-buttons button {
    background: #e0e0e0;
    border: 1px solid #aaa;
    padding: 5px 10px;
    margin-right: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}
.resume-buttons button:hover {
    background: #cfcfcf;
}
.resume-buttons .icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

/* Start Button */
#startButton {
  display: flex;
  align-items: center;
  justify-content: center;

  /* fixed size */
  height: 40px !important;
  width: 100px !important;
  flex: 0 0 auto !important; /* prevents flexbox from resizing */
  padding: 0 12px;
  border-radius: 10px;

  /* text */
  font-size: 16px !important;
  color: #ffffff !important;
  font-weight: bold !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.9) !important;
  font-family: 'Tahoma', sans-serif !important;
  line-height: 40px; /* text stays vertically centered */

  /* default green */
  background: linear-gradient(135deg, #33c533 0%, #29a329 50%, #1f7a1f 100%) !important;
  border: 2px outset #007f00 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2),
              0 2px 4px rgba(0,0,0,0.4);

  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

/* Active (clicked: brighter green + pressed look) */
#startButton:active {
  background: linear-gradient(135deg, #00cc00 0%, #00aa00 50%, #008800 100%) !important;
  border: 2px inset #009900 !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.4),
              0 0 6px rgba(0,255,0,0.4);
  transform: translateY(1px);
}


/* Start Menu */
#startMenu {
    position: fixed;
    bottom: 40px; /* match button height */
    left: 0;
    width: 240px; /* slightly wider */
    background: linear-gradient(135deg, #ececec 0%, #c8c8c8 40%, #a8a8a8 100%);
    border: 2px outset #c0c0c0;
    box-shadow: 4px 4px 8px rgba(0,0,0,0.5),
                inset 1px 1px 0 #fff,
                inset -1px -1px 0 #808080;
    display: none;
    z-index: 1000;
    padding: 0; /* reset so banner fits flush */
    animation: slideUp 0.2s ease-out;
    font-family: 'Tahoma', sans-serif;
    border-radius: 3px; /* subtle round corners */
    overflow: hidden;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Top Banner --- */
#startMenu .banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: linear-gradient(135deg, #4a82d6 0%, #2f5daa 100%);
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    border-bottom: 2px solid #1e3a8a;
}

/* Banner image (logo or user pic) */
#startMenu .banner img {
    width: 34px;
    height: 34px;
    border-radius: 4px;
    border: 1px solid #fff;
    background: #ccc;
    object-fit: cover;
}

/* Inner menu list */
#startMenu ul {
    list-style: none;
    padding: 6px;
    margin: 0;
    background: linear-gradient(135deg, #dcdcdc 0%, #c0c0c0 50%, #b0b0b0 100%);
    border: 1px inset #c0c0c0;
    box-shadow: inset 1px 1px 0 #808080,
                inset -1px -1px 0 #fff;
}

/* Menu items */
#startMenu ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    border: 1px solid transparent;
    min-height: 34px;
    font-size: 13px;
    color: #000;
    background: transparent;
    margin: 2px 0;
    border-radius: 3px;
    transition: background 0.15s ease, transform 0.1s ease;
}

/* Hover effect (blue highlight like XP) */
#startMenu ul li:hover {
    color: #fff;
    background: linear-gradient(135deg, #4a82d6 0%, #2f5daa 100%);
    border: 1px solid #2f5daa;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.6);
}

/* Active click effect */
#startMenu ul li:active {
    background: linear-gradient(135deg, #2f5daa 0%, #4a82d6 100%);
    border: 1px inset #1e3a8a;
    transform: translateY(1px);
}

/* Icons inside menu items */
#startMenu ul li img {
    width: 20px;
    height: 20px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}



/* Taskbar */
#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(135deg, #4a9eff 0%, #0066cc 50%, #004499 100%);
    border-top: 2px outset #4a9eff;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2px 0 0 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3),
                inset 0 -1px 0 rgba(0,0,0,0.3);
    z-index: 999;
}
#taskbar-windows {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    margin-left: 5px;
    overflow-x: auto;
}
#taskbar button {
    height: 24px;
    padding: 0 8px;
    background: linear-gradient(135deg, #e0e0e0, #c0c0c0);
    border: 1px outset #c0c0c0;
    font-size: 10px;
    cursor: pointer;
}
#taskbar button:hover {
    background: linear-gradient(135deg, #f0f0f0, #d0d0d0);
}
#taskbar button:active,
#taskbar button.active {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    border: 1px inset #a0a0a0;
}

/* === Classic Music Player (Windows XP Style) === */
.music-window {
    width: 400px !important;
    height: 650px !important;
    min-width: 400px;
    min-height: 650px;
    background: #c0c0c0;
    border: 2px solid #808080;
    box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #808080;
}

/* XP-style music window layout */
.music-xp-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin-top: 12px;
}

/* === Album Art Frame === */
.music-xp-album-frame {
    width: 350px;
    height: 350px;
    background: #000;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
}

.music-xp-album-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === Track Info === */
.music-xp-track-info {
    text-align: center;
    margin-bottom: 16px;
}

.music-xp-title {
    font-size: 12px;
    font-family: 'Tahoma', sans-serif;
    font-weight: bold;
    color: #000;
    margin-bottom: 2px;
}

.music-xp-artist {
    font-size: 11px;
    font-family: 'Tahoma', sans-serif;
    color: #000;
    opacity: 0.85;
}

/* Music Controls Layout */
.music-xp-controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.music-xp-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Time Labels */
.xp-time {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #000;
    min-width: 32px;
    text-align: center;
}

/* Progress Bar (retro style) */
#xpProgressBar {
    flex: 1;
    height: 6px;
    background: #c0c0c0;
    border: 2px inset #808080;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

#xpProgressBar::-webkit-slider-runnable-track {
    height: 6px;
    background: #c0c0c0;
    border: 2px inset #808080;
}

#xpProgressBar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 8px;
    height: 16px;
    background: #e0e0e0;
    border: 2px outset #fff;
    cursor: pointer;
    margin-top: -6px;
}

#xpProgressBar::-moz-range-track {
    height: 6px;
    background: #c0c0c0;
    border: 2px inset #808080;
}

#xpProgressBar::-moz-range-thumb {
    width: 8px;
    height: 16px;
    background: #e0e0e0;
    border: 2px outset #fff;
    cursor: pointer;
}

/* Play Button (square retro style) */
.xp-play-btn {
    min-width: 44px;
    height: 40px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #000 #000 #fff; /* light top/left, dark bottom/right */
    font-size: 20px;
    cursor: pointer;
    box-shadow: inset -1px -1px 0 #808080, inset 1px 1px 0 #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'MS Sans Serif', 'Tahoma', sans-serif;
}

.xp-play-btn:hover {
    background: #dcdcdc;
}

.xp-play-btn:active {
    border-color: #000 #fff #fff #000; /* invert for pressed */
    background: #b0b0b0;
    box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #fff;
}

/* Wide Buttons (Previous / Next) */
.xp-wide-btn {
    min-width: 180px;
    height: 56px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #000 #000 #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: inset -1px -1px 0 #808080, inset 1px 1px 0 #fff;
    font-family: 'MS Sans Serif', 'Tahoma', sans-serif;
}

.xp-wide-btn:hover {
    background: #dcdcdc;
}

.xp-wide-btn:active {
    border-color: #000 #fff #fff #000;
    background: #b0b0b0;
    box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #fff;
}
