* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Tahoma', 'Arial', sans-serif;
  user-select: none;
}

body {
  overflow: hidden;
}

#desktop {
  position: relative;
  width: 100vw;
  height: 100vh;
  background-image: url('https://d7hftxdivxxvm.cloudfront.net/?quality=80&resize_to=width&src=https%3A%2F%2Fartsy-media-uploads.s3.amazonaws.com%2F2RNK1P0BYVrSCZEy_Sd1Ew%252F3417757448_4a6bdf36ce_o.jpg&width=910');
  background-size: cover;
  background-position: center;
}

/* Desktop Icons */
#icons-container {
  display: grid;
  grid-template-columns: repeat(1, 80px);
  grid-gap: 10px;
  padding: 10px;
}

.icon {
  width: 80px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
  padding: 5px;
  border-radius: 3px;
}

.icon:hover {
  background-color: rgba(49, 106, 197, 0.2);
}

.icon.selected {
  background-color: rgba(49, 106, 197, 0.4);
}

.icon img {
  width: 40px;
  height: 40px;
  margin-bottom: 5px;
}

.icon span {
  font-size: 12px;
  color: white;
  text-shadow: 1px 1px 1px black;
}

/* Taskbar */
#taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom, #2a5abb 0%, #1c3e7c 100%);
  display: flex;
  align-items: center;
  padding: 0 5px;
  z-index: 1000;
}

#start-button {
  display: flex;
  align-items: center;
  padding: 0 10px;
  height: 36px;
  background: linear-gradient(to bottom, #3e9c3e 0%, #215121 100%);
  border-radius: 3px;
  margin-right: 5px;
  cursor: pointer;
}

#start-button:hover {
  background: linear-gradient(to bottom, #4aad4a 0%, #276927 100%);
}

#start-button img {
  width: 24px;
  height: 24px;
  margin-right: 5px;
}

#start-button span {
  color: white;
  font-weight: bold;
}

#clock {
  margin-left: auto;
  color: white;
  font-size: 12px;
  padding: 0 10px;
}

#taskbar-apps {
  display: flex;
  flex-grow: 1;
  height: 100%;
  align-items: center;
}

.taskbar-item {
  height: 36px;
  min-width: 160px;
  max-width: 200px;
  background: linear-gradient(to bottom, #4a98ff 0%, #0c59a6 100%);
  margin-right: 5px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.taskbar-item.active {
  background: linear-gradient(to bottom, #7cb9ff 0%, #2982e5 100%);
}

.taskbar-item img {
  width: 16px;
  height: 16px;
  margin-right: 5px;
}

.taskbar-item span {
  color: white;
  font-size: 12px;
}

/* Start Menu */
#start-menu {
  position: fixed;
  bottom: 40px;
  left: 0;
  width: 320px;
  background: linear-gradient(to bottom, #3169c5 0%, #235ac1 100%);
  border-radius: 0 5px 0 0;
  z-index: 1001;
  box-shadow: 2px -2px 5px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

#start-menu.hidden {
  display: none;
}

#start-menu-header {
  height: 80px;
  background-color: #2a5abb;
  padding: 10px;
  display: flex;
  align-items: center;
}

#user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#user-info img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
}

#user-info span {
  color: white;
  font-weight: bold;
  margin-top: 5px;
}

#start-menu-items {
  padding: 5px;
  display: flex;
  flex-direction: column;
  background-color: white;
  height: 320px;
  overflow-y: auto;
}

.menu-item {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  cursor: pointer;
}

.menu-item:hover {
  background-color: #e9eff9;
}

.menu-item img {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

.menu-item span {
  font-size: 14px;
}

#start-menu-footer {
  height: 40px;
  background-color: #2a5abb;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 10px;
}

.footer-item {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.footer-item span {
  color: white;
  font-size: 12px;
}

/* Windows */
.window {
  position: absolute;
  min-width: 400px;
  min-height: 300px;
  background-color: #ece9d8;
  border: 1px solid #0c59a6;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.window.active {
  z-index: 900;
}

.window-header {
  height: 30px;
  background: linear-gradient(to bottom, #2a5abb 0%, #1c3e7c 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  cursor: move;
}

.window-title {
  display: flex;
  align-items: center;
}

.window-title img {
  width: 16px;
  height: 16px;
  margin-right: 5px;
}

.window-title span {
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.window-controls {
  display: flex;
}

.window-control {
  width: 24px;
  height: 24px;
  margin-left: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 3px;
  cursor: pointer;
}

.window-control:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.window-control.close:hover {
  background-color: #e81123;
}

.window-content {
  flex: 1;
  padding: 10px;
  overflow: auto;
  position: relative;
}

/* IE */
.ie-window .window-content {
  background-color: white;
}

.ie-toolbar {
  height: 40px;
  background-color: #f1f1f1;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid #ccc;
}

.ie-address-bar {
  flex: 1;
  height: 24px;
  margin: 0 10px;
  padding: 0 5px;
  border: 1px solid #999;
}

.ie-iframe {
  width: 100%;
  height: calc(100% - 40px);
  border: none;
}

/* Notepad */
.notepad-textarea {
  width: 100%;
  height: 100%;
  resize: none;
  border: none;
  outline: none;
  font-family: 'Lucida Console', monospace;
  font-size: 14px;
  background-color: white;
  padding: 5px;
}

/* Paint */
.paint-canvas {
  background-color: white;
  border: 1px solid #999;
}

.paint-tools {
  display: flex;
  margin-bottom: 10px;
}

.paint-tool {
  width: 30px;
  height: 30px;
  margin-right: 5px;
  background-color: #f1f1f1;
  border: 1px solid #999;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.paint-tool.active {
  background-color: #ddd;
  border-color: #444;
}

.paint-colors {
  display: flex;
  flex-wrap: wrap;
  max-width: 200px;
}

.paint-color {
  width: 20px;
  height: 20px;
  margin: 2px;
  border: 1px solid #000;
  cursor: pointer;
}

/* Calendar */
.calendar-container {
  background-color: white;
  padding: 10px;
  height: 100%;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar-day {
  border: 1px solid #ccc;
  height: 40px;
  padding: 5px;
  text-align: center;
}

.calendar-day.header {
  background-color: #f1f1f1;
  font-weight: bold;
}

.calendar-day.other-month {
  color: #aaa;
}

/* Minesweeper */
.minesweeper-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  background-color: #c0c0c0;
}

.minesweeper-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 5px;
  background-color: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
}

.minesweeper-counter, .minesweeper-timer {
  background-color: black;
  color: red;
  font-family: 'Digital', monospace;
  padding: 2px 5px;
  width: 50px;
  text-align: center;
}

.minesweeper-reset {
  width: 30px;
  height: 30px;
  background-color: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.minesweeper-grid {
  display: grid;
  grid-template-columns: repeat(9, 20px);
  grid-template-rows: repeat(9, 20px);
  gap: 1px;
  border: 3px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  padding: 5px;
  background-color: #c0c0c0;
}

.minesweeper-cell {
  width: 20px;
  height: 20px;
  background-color: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
}

.minesweeper-cell.revealed {
  border: 1px solid #808080;
  background-color: #d9d9d9;
}

.minesweeper-cell.flagged:before {
  content: "🚩";
  font-size: 14px;
}

/* File Explorer */
.file-explorer-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.file-explorer-toolbar {
  height: 40px;
  background-color: #f1f1f1;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid #ccc;
}

.file-explorer-sidebar {
  width: 200px;
  background-color: #f9f9f9;
  border-right: 1px solid #ccc;
  padding: 10px;
}

.file-explorer-content {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
}

.file-item {
  width: 80px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
  padding: 5px;
  margin: 5px;
}

.file-item:hover {
  background-color: #e9eff9;
}

.file-item img {
  width: 32px;
  height: 32px;
  margin-bottom: 5px;
}

.file-item span {
  font-size: 12px;
}

/* Recycle Bin */
.recycle-bin-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.recycle-bin-toolbar {
  height: 40px;
  background-color: #f1f1f1;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid #ccc;
}

.recycle-bin-content {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.recycle-bin-empty {
  text-align: center;
  margin-top: 50px;
  color: #666;
}

.recycle-bin-item {
  display: flex;
  align-items: center;
  padding: 5px;
  border-bottom: 1px solid #eee;
}

.recycle-bin-item:hover {
  background-color: #f5f5f5;
}

.recycle-bin-item img {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

