/* Общие стили */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}
body {
  font-family: Tahoma, sans-serif;
  background: #008080; /* типичный темно-зеленый фон рабочего стола Win98 */
  overflow: hidden;
}

/* Рабочий стол */
#desktop {
  position: relative;
  width: 100%;
  height: calc(100% - 25px); /* оставляем место для панели задач */
  background: #008080; /* можно поставить картинку-обои */
}

/* Иконки на рабочем столе */
.icon {
  position: absolute;
  width: 60px;
  text-align: center;
  color: black;
  cursor: default;
  user-select: none;
}
.icon img {
  width: 48px;
  height: 48px;
}

/* Панель задач */
#taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25px;
  background: #C0C0C0;
  border-top: 2px solid #FFF; 
  border-top: 2px solid #808080;
  display: flex;
}
#taskbar-windows {
  flex: 1;
  display: flex;
  align-items: center;
  overflow-x: auto;
}
#taskbar-clock {
  width: 60px;
  text-align: center;
  border-left: 2px solid #FFF;
  border-left: 2px solid #808080;
  line-height: 25px;
  font-weight: bold;
}

/* Кнопки окон в панели задач */
.taskbar-button {
  margin: 0 2px;
  padding: 0 5px;
  height: 21px;
  background: #C0C0C0;
  border: 2px solid #FFF;
  border: 2px outset #FFF;
  line-height: 21px;
  cursor: pointer;
  white-space: nowrap;
}
.taskbar-button.active {
  background: #000080;
  color: #FFF;
  border: 2px inset #FFF;
}

/* Окна */
.window {
  position: absolute;
  width: 300px;
  background: #C0C0C0;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #FFF, -2px -2px 0 #000;
}
.window .title-bar {
  background: #000080;
  color: #FFF;
  padding: 2px;
  cursor: move;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.window .title-bar .title {
  margin-left: 4px;
  font-weight: bold;
}
.window .title-bar .controls button {
  width: 18px;
  height: 16px;
  margin-left: 2px;
  padding: 0;
  background: #C0C0C0;
  border: 2px outset #FFF;
  font-size: 12px;
  line-height: 12px;
  text-align: center;
}
.window .content {
  padding: 5px;
  background: #FFF;
  overflow: auto;
}
