* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Courier New", monospace;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #008080;
}

body {
  position: relative;
}

.desktop {
  width: 100%;
  height: 100%;
  position: relative;
  padding-bottom: 44px; /* leaves room for taskbar */

  background:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    #008080;
  background-size: 24px 24px;
}

/* Desktop icons */
.icon {
  width: 90px;
  text-align: center;
  color: white;
  cursor: pointer;
  margin: 20px;
  user-select: none;
}

.icon-image {
  font-size: 34px;
  margin-bottom: 6px;
}

.icon-label {
  font-size: 14px;
  line-height: 1.2;
  text-shadow: 1px 1px 0 #000;
}

/* Windows */
.window {
  width: 320px;
  position: absolute;
  background: #c0c0c0;
  border: 2px solid #000;
  box-shadow: 4px 4px 0 #222;
  z-index: 10;
}

.hidden {
  display: none;
}

.title-bar {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: white;
  padding: 6px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
  font-weight: bold;
  font-size: 14px;
}

.close-btn {
  background: #c0c0c0;
  border: 2px solid #000;
  width: 24px;
  height: 24px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:active {
  transform: translate(1px, 1px);
}

.window-content {
  padding: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: black;
  background: #f5f5f5;
  min-height: 160px;
}

/* Taskbar */
.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;

  background: #c0c0c0;
  border-top: 2px solid #fff;

  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;

  z-index: 9999;
}

.start-button {
  background: #c0c0c0;
  border: 2px solid #000;
  padding: 4px 14px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.taskbar-text {
  font-size: 14px;
  color: black;
}
