@font-face {
  font-family: "Pixelated MS Sans Serif";
  font-style: normal;
  font-weight: 400;
  src: url(../assets/font/ms_sans_serif.woff) format("woff");
  src: url(../assets/font/ms_sans_serif.woff2) format("woff2");
}
@font-face {
  font-family: "Pixelated MS Sans Serif";
  font-style: normal;
  font-weight: 700;
  src: url(../assets/font/ms_sans_serif_bold.woff) format("woff");
  src: url(../assets/font/ms_sans_serif_bold.woff2) format("woff2");
}
body {
	margin: 0;
	background: url('../assets/bg.png') repeat;
	font-family: "Pixelated MS Sans Serif";
	-webkit-font-smoothing: none;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: geometricPrecision;
	height: 100vh;
	overflow: hidden;
	position: relative;
}

#desktop {
	position: relative;
	width: 100vw;
	height: 100vh;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	align-items: flex-start;
	padding: 32px;
	gap: 24px 0;
	height: calc(100vh - 50px);
	max-height: calc(100vh - 50px);
	overflow-y: auto;
}

.icon {
	width: 90px;
	text-align: center;
	cursor: pointer;
	user-select: none;
	transition: filter 0.2s;
	background: none;
	border: none;
	box-shadow: none;
	padding: 0;
	margin: 0 8px;
}

.icon img {
	width: 64px;
	height: 64px;
	margin-bottom: 6px;
	filter: drop-shadow(1px 1px 0 #000);
	image-rendering: pixelated;
}

.icon span {
	display: block;
	font-size: 1rem;
	font-family: "Pixelated MS Sans Serif";
	font-weight: 400;
	color: #fff;
	margin-top: 2px;

	white-space: nowrap;
}

.icon {
	position: relative;
}

.icon-tooltip {
	position: fixed;
	left: 0;
	top: 0;
	margin-left: 0;
	background: #ffffe1;
	color: #000;
	border: 1px solid #000;
	padding: 6px 8px;
	font-size: 0.85rem;
	box-shadow: 2px 2px 0 #000;
	white-space: nowrap;
	z-index: 100;
	display: none;
	pointer-events: none;
}

.icon.selected {
	background: rgba(110, 168, 255, 0.308);
	outline: 2px dotted #fff;
	outline-offset: 4px;
}

.dragging {
    cursor: move !important;
}

@media (max-width: 600px) {
	#desktop {
		padding: 8px;
		gap: 8px;
	}

	.window {
		width: 95vw;
		left: 2vw;
		top: 60px;
		min-width: 180px;
	}
}

#taskbar {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 30px;
	/* adjust as needed */
	background-color: #C0C0C0;
	/* Windows 95 gray */
	border-top: 2px solid #808080;
	/* darker gray border */
	display: flex;
	align-items: center;
	padding: 0 5px;
	box-sizing: border-box;
	z-index: 1000;
}

#start-btn {
	background-image: url(../assets/icons/start-button.png);
	background-repeat: no-repeat;
	background-position-x: center;
	background-position-y: center;
	background-blend-mode: normal;
	image-rendering: pixelated;
	width: 45px;
	padding: 2px;
	border: 2px outset #fff;
	cursor: pointer;
	box-shadow: 1px 1px 0 #000;
	height: 16px;
	display: flex;
	align-items: center;
}

#taskbar-clock {
	font-family: "Pixelated MS Sans Serif";
	font-weight: 400;
	padding-top: 1px;
}

#taskbar-windows {
	display: flex;
	align-items: center;
	flex: 1;
	height: 100%;
	overflow-x: auto;
}

.taskbar-window-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0 2px;
}
