html, body {
  cursor: url('cursor.cur'), auto;
}

a:hover, button:hover {
  cursor: url('cursor.cur'), pointer;
}
/* -------------------------
   BODY / DESKTOP BACKGROUND
-------------------------- */
body {
  font-family: "MS Sans Serif", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #008080; /* classic Win98 teal */
  color: #000;
  overflow-x: hidden; /* prevent horizontal scroll */
}

/* -------------------------
   TASKBAR
-------------------------- */
#taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 32px;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #808080;
  display: flex;
  align-items: center;
  padding-left: 5px;
  z-index: 9999;
}

/* -------------------------
   START BUTTON
-------------------------- */
#start-btn {
  background: #c0c0c0;
  border: 2px outset #fff;
  font-size: 14px;
  font-weight: bold;
  padding: 3px 12px;
  cursor: pointer;
}

#start-btn:active {
  border: 2px inset #fff;
}

/* -------------------------
   START MENU
-------------------------- */
#start-menu {
  position: absolute;
  bottom: 32px;
  left: 5px;
  width: 140px;
  background: #c0c0c0;
  border: 2px outset #fff;
  box-shadow: 2px 2px 0 #000;
  z-index: 9999;
}

#start-menu ul {
  list-style: none;
  margin: 0;
  padding: 4px;
}

#start-menu li {
  padding: 4px 6px;
  cursor: pointer;
}

#start-menu li:hover {
  background: navy;
  color: white;
}

/* -------------------------
   WINDOWS / CV CONTENT
-------------------------- */
.window {
  width: 90%;            /* scales on desktop */
  max-width: 600px;      /* original width cap */
  min-width: 300px;      /* prevents too small on tiny screens */
  margin: 50px auto;
  padding: 0;
  box-sizing: border-box;
  position: relative;
  background: #c0c0c0;
  border: 2px solid #fff;
  box-shadow: 2px 2px 0 #000;
}

.window .title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000080;  /* classic blue title bar */
  color: white;
  padding: 2px 6px;
  font-weight: bold;
  user-select: none;
}

.window .title-bar-text {
  flex: 1;
}

.window .title-bar-controls button {
  width: 16px;
  height: 16px;
  padding: 0;
  margin-left: 2px;
  font-size: 12px;
  cursor: pointer;
}

.window .window-body {
  padding: 10px;
  line-height: 1.3em;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;

  /* ensure text always fits inside window on desktop */
  max-height: calc(100vh - 120px); /* adjusts for taskbar + window title */
  overflow-y: auto; /* adds scrollbar if needed */
}

/* -------------------------
   IFRAME (Winamp / preview)
-------------------------- */
iframe {
  width: 100%;
  height: auto;
}

/* -------------------------
   IDLE SCREEN
-------------------------- */
#idle-screen {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #008080;
  color: white;
  font-family: 'Tahoma', sans-serif;
  font-size: 2em;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
}

/* -------------------------
   TASKBAR CLOCK
-------------------------- */
#taskbar-clock {
  margin-right: 10px;
  font-weight: bold;
  font-size: 0.9em;
}

/* -------------------------
   MINIMIZED WINDOWS
-------------------------- */
#minimized-container {
  display: flex;
  gap: 5px;
  align-items: center;
}

/* -------------------------
   FLOATING AD (optional)
-------------------------- */
#floating-ad {
  position: fixed;
  z-index: 10000;
  cursor: pointer;
}