<head>
  <style>
    body {
      color: #ffffff;
    }
  </style>
</head>

/* Main Taskbar Container */
.win98-taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background-color: #c0c0c0;
  display: flex;
  align-items: center;
  padding: 2px 4px;
  box-sizing: border-box;
  font-family: "MS Sans Serif", Tahoma, Arial, sans-serif;
  font-size: 12px;
  z-index: 9999;
  
  /* Windows 98 classic 3D top border */
  border-top: 2px solid #ffffff;
  box-shadow: inset 0 1px 0 #dfdfdf, 0 -1px 0 #808080;
}

/* Start Button styling */
.start-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 2px 6px;
  background-color: #c0c0c0;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #808080;
  border-bottom: 2px solid #808080;
  box-shadow: 1px 1px 0px #000000;
  cursor: pointer;
}
.start-btn img {
  width: 16px;
  height: 16px;
}
.start-btn:active {
  border-top: 2px solid #808080;
  border-left: 2px solid #808080;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  box-shadow: none;
  padding: 3px 5px 1px 7px; /* Shifts text slightly down-right when clicked */
}

/* Navigation Links Window Tabs */
.taskbar-links {
  display: flex;
  gap: 4px;
  margin-left: 8px;
  flex-grow: 1;
}
.task-item {
  display: block;
  height: 28px;
  min-width: 80px;
  max-width: 150px;
  line-height: 24px;
  padding: 0 8px;
  background-color: #c0c0c0;
  color: #000000 !important; /* Force text to be black regardless of body styles */
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  
  /* Unclicked window border */
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #808080;
  border-bottom: 2px solid #808080;
}
/* Highlighted active tab */
.task-item.active {
  background-color: #e0e0e0;
  font-weight: bold;
  background-image: radial-gradient(#ffffff 25%, transparent 25%), radial-gradient(#ffffff 25%, transparent 25%); /* Adds old checkerboard texture */
  background-size: 4px 4px;
  background-position: 0 0, 2px 2px;
  border-top: 2px solid #808080;
  border-left: 2px solid #808080;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
}

/* System Tray (Clock Area) */
.system-tray {
  background-color: #c0c0c0;
  padding: 4px 8px;
  height: 28px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  
  /* Inset bevel border */
  border-top: 2px solid #808080;
  border-left: 2px solid #808080;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
}

<script>
  function updateClock() {
    const now = new Date();
    let hours = now.getHours();
    const minutes = String(now.getMinutes()).padStart(2, '0');
    const ampm = hours >= 12 ? 'PM' : 'AM';
    hours = hours % 12;
    hours = hours ? hours : 12; // convert 0 to 12
    document.getElementById('taskbar-clock').textContent = `${hours}:${minutes} ${ampm}`;
  }
  setInterval(updateClock, 1000);
  updateClock(); // Run immediately
</script>
