@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20,400,0,0');

html, body {
	background: rgb(10, 10, 10);
	color: rgb(226, 226, 186);

	padding: 0px;
	margin: 0px;
	width: 100vw;
	height: 100vh;

	overflow: hidden;
}

@keyframes crt-on {
	from {
		box-shadow: 0 0 15px 5px #000;
		clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
		opacity: 0;
	}

	to {
		box-shadow: 0 0 15px 5px #868585;
		opacity: 1;
	}
}

@keyframes crt-off {
	from {
		clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
		opacity: 1;
	}

	to {
		clip-path: polygon(0% 50%, 100% 50%, 100% 50%, 0% 50%);
		opacity: 0;
	}
}

window-manager {
	width: 800px;
	height: 600px;
	opacity: 0;
}

window-manager.on {
	animation: 2s linear 1 forwards crt-on;
}

window-manager.off {
	animation: 0.1s linear 1 forwards crt-off;
}

.centre-container {
	display: flex;
	align-items: center;
	justify-content: center;

	position: absolute;
	top: 0px;
	left: 0px;

	width: 100vw;
	height: 100vh;
}

@keyframes move-stars {
	from {
		background-position: 0px 0px;
	}

	to {
		background-position: 1024px 1024px;
	}
}

.stars {
	position: absolute;
	width: 100vw;
	height: 100vh;

	background-size: 1024px 1024px;
	background-repeat: repeat;
}

.stars.stars-bg {
	background-image: url('./images/stars_bg.png');
	animation: 20s linear infinite move-stars;
}

.stars.stars-fg {
	background-image: url('./images/stars_fg.png');
	animation: 10s linear infinite move-stars;
}

#container {
	width: 100%;
	height: 100%;
}

#pc-container {
	min-width: 800px;
	min-height: 600px;

	border: 100px solid #101010;
	background: radial-gradient(circle at top 100px right 150px, #333, #000);

	border-image: url('data:image/svg+xml,%3Csvg width="1e3" height="800" version="1.1" viewBox="0 0 1e3 800" xmlns="http://www.w3.org/2000/svg"%3E%3Cg stroke-linejoin="round"%3E%3Crect y="6.4e-7" width="1e3" height="800" stroke-width="16" style="paint-order:stroke markers fill"/%3E%3Cg fill="%23fff" stroke-width="15"%3E%3Cpath d="m7.9e-6 0 100 100v600l-100 100z" fill-opacity=".27" style="paint-order:stroke markers fill"/%3E%3Cpath d="m1e3 800-100-100v-600l100-100z" fill-opacity=".41" style="paint-order:stroke markers fill"/%3E%3Cpath d="m100 700h800l100 100h-1e3z" fill-opacity=".22" style="paint-order:stroke markers fill"/%3E%3Cpath d="m900 100h-800l-100-100h1e3z" fill-opacity=".46" style="paint-order:stroke markers fill"/%3E%3C/g%3E%3C/g%3E%3Crect x="80" y="80" width="840" height="640" fill-opacity=".27" stroke-linejoin="round" stroke-width="16" style="paint-order:stroke markers fill"/%3E%3Crect x="2.5" y="2.5" width="995" height="795" fill="none" stroke="%23fff" stroke-opacity=".34" stroke-width="5" style="paint-order:stroke markers fill"/%3E%3C/svg%3E%0A');
	border-image-slice: 100;
}

#pc-container .error {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #eee;

	font-family: monospace;
	font-size: 30px;

	width: 800px;
	height: 600px;
}

#power-button {
	position: absolute;
	margin-top: 710px;
	margin-left: 600px;

	width: 50px;
	height: 30px;
	box-sizing: content-box;

	color: #222;
	background-color: #555;

	padding: 0px;
	border: 5px solid #444;
	border-top: 5px solid #666;
	border-right: 5px solid #666;

	cursor: pointer;
	filter: brightness(100%);
	transition: filter 0.25s;
}

#power-button:active {
	filter: brightness(75%);
}

#pc-stand {
	background-color: #0c0c0c;
	background-image: radial-gradient(circle at bottom left, #333, #0c0c0c, #0c0c0c, #0c0c0c);
	height: 600px;
	width: 373px;
	margin-top: 600px;
	clip-path: polygon(25% 0%, 75% 0%, 75% 80%, 100% 100%, 50% 90%, 0% 100%, 25% 80%);
}

#table {
	position: absolute;

	width: 2000px;
	margin-top: 1050px;
	height: 500px;
	clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);

	background-color: #775130;
	background-image:
		repeating-linear-gradient(
			to top,
			transparent, transparent 30px,
			#0001 30px, #0001 50px
		),

		radial-gradient(circle at bottom right, #0003, transparent),
		radial-gradient(circle at top left, #fff1, transparent)
}

#room-container {
	display: flex;
	flex-direction: row;
	position: absolute;

	width: 2000px;
	height: 1550px;
}

#room-middle {
	width: 60%;
	background-color: #93a8ae;
}

#room-left,
#room-right {
	flex: 1;
}

#room-left,
#room-middle,
#room-right {
	background-image: repeating-linear-gradient(
		to right,
		transparent, transparent 30px,
		#0001 30px, #0001 50px
	);
}

#room-left {
	background-color: #b2c9cf;
	clip-path: polygon(0% 20%, 100% 0%, 100% 100%, 0% 100%);
}

#room-right {
	background-color: #738388;
	clip-path: polygon(0% 0%, 100% 20%, 100% 100%, 0% 100%);
}

@media (orientation: portrait) {
	#room-container,
	#table,
	#pc-stand {
		display: none;
	}
}

@media (max-width: 800px) {
	.centre-container {
		display: none;
	}
}
