/**
 * @file global.css
 * @description CSS resets and desktop environment foundations.
 */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-silver);
  color: var(--text-main);
  font-family: var(--font-ui);
  overflow: hidden; /* Prevents scrollbars on the desktop */
  user-select: none; /* Prevents accidental text selection while dragging */
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Desktop Environment */
.desktop {
  position: relative;
  width: 100vw;
  height: 100vh;
  padding-top: 32px; /* Offset for topbar */
}

.desktop-item {
  position: absolute;
  top: 48px; /* Below the topbar */
  right: 16px; /* Right side, under clock */
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  text-align: center;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.1s ease;
}

.desktop-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}

.desktop-item span {
  font-size: 12px;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5); /* Helps text readability on desktop */
}

.desktop-item:hover {
  background-color: rgba(0, 0, 0, 0.05); /* Subtle highlight */
}
