/* Windows 98 Desktop Styles */

body {
  background-color: #008080; /* Windows 98 Teal */
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: 'Pixelated MS Sans Serif', 'Arial', sans-serif;
  -webkit-font-smoothing: none;
}

/* Desktop Container */
.desktop {
  width: 100vw;
  height: calc(100vh - 28px);
  position: relative;
  overflow: hidden;
}

/* Desktop Icons */
.desktop-icon {
  width: 75px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: white;
  cursor: pointer;
  padding: 5px;
  border: 1px dotted transparent;
  position: absolute;
  z-index: 5;
}

.desktop-icon:active {
  background-color: #000080;
  border: 1px dotted white;
}

.desktop-icon img {
  width: 32px;
  height: 32px;
  margin-bottom: 5px;
  pointer-events: none;
}

.desktop-icon span {
  font-size: 11px;
  background-color: transparent;
  padding: 2px;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.8);
}

/* Windows System */
.window {
  position: absolute;
  display: none;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  z-index: 100;
  background: #c0c0c0;
}

.window-body {
  margin: 0;
  padding: 10px;
  background: #c0c0c0;
  color: black;
  max-height: 450px;
  overflow-y: auto;
}

/* About Me & Project Fixes */
.window-content h1 {
  font-size: 18px;
  margin-bottom: 10px;
}

.window-content p {
  font-size: 12px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.window-content img {
  max-width: 120px; /* Prevents About Me images from taking over */
  height: auto;
  border: 2px solid white;
  box-shadow: 1px 1px 0 #000;
}

.project-card {
  margin-bottom: 15px;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080; /* Sunken effect */
  padding: 10px;
  background: #fff;
  overflow: hidden;
}

.project-image {
  width: 80px !important; /* Forces GitHub images to stay small */
  height: 80px !important;
  object-fit: cover;
  float: right;
  margin-left: 10px;
  border: 1px solid #000;
}

.project-card h4 {
  margin: 0 0 5px 0;
  font-size: 14px;
}

/* Asteroids Game Styles */
#asteroidsCanvas {
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  display: block;
  margin: 0 auto;
  background: black;
}

.status-bar {
  display: flex;
  gap: 2px;
  margin-top: 2px;
}

.status-bar-field {
  box-shadow: inset -1px -1px #fff, inset 1px 1px #808080;
  flex: 1;
  padding: 2px 5px;
  margin: 0;
  font-size: 10px;
  white-space: nowrap;
}

/* Minesweeper Styles */
.minesweeper-grid {
  display: grid;
  grid-template-columns: repeat(9, 20px);
  gap: 0;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  background: #808080;
}

.mine-cell {
  width: 20px;
  height: 20px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: bold;
  cursor: default;
  user-select: none;
}

.mine-cell.revealed {
  border: 1px solid #7b7b7b;
  background: #bdbdbd;
}

.mine-cell.mine {
  background: red;
}

/* Notepad Fix */
#window-notepad textarea {
  flex: 1;
  width: 100%;
  height: 100%;
  resize: none;
  border: none;
  font-family: 'Courier New', monospace;
  padding: 5px;
  box-sizing: border-box;
  background: white;
  color: black;
}

/* Taskbar & Start Menu */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 28px;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  display: flex;
  align-items: center;
  padding: 2px;
  z-index: 9999;
}

.taskbar-item {
  height: 22px;
  min-width: 50px;
  max-width: 150px;
  background: #c0c0c0;
  box-shadow: inset 1px 1px #fff, inset -1px -1px #000;
  margin: 0 2px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  font-size: 11px;
  cursor: pointer;
}

.taskbar-item.active {
  box-shadow: inset -1px -1px #fff, inset 1px 1px #000;
  background: #e0e0e0;
  font-weight: bold;
}

.start-menu {
  position: fixed;
  bottom: 28px;
  left: 2px;
  width: 180px;
  background: #c0c0c0;
  border: 2px solid #fff;
  border-right-color: #000;
  border-bottom-color: #000;
  display: none;
  flex-direction: row;
  z-index: 10000;
}

.start-menu-sidebar {
  width: 25px;
  background: linear-gradient(to top, #000080, #1084d0);
  color: white;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 5px;
  font-weight: bold;
  text-align: center;
}

/* Visualizer */
.visualizer {
  height: 40px;
  background: black;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding: 2px;
}

.visualizer .bar {
  width: 8px;
  background: #0f0;
  height: 10%;
}

/* Startup Screen */
#startup-screen {
  position: fixed;
  inset: 0;
  background: black;
  z-index: 1000000;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}
