@font-face {
	font-family: "Inter Custom";
	src: url("fonts/InterVariable.woff2");

	font-feature-settings: "tnum" 1;
}

@property --color1 {
	syntax: "<color>";
	inherits: false;
	initial-value: black;
}

@property --color2 {
	syntax: "<color>";
	inherits: false;
	initial-value: black;
}

@property --color3 {
	syntax: "<color>";
	inherits: false;
	initial-value: black;
}

:root {
	--panel-height: 32px;
	--img-width: 17px;
	--hover-border-radius: 128px;
}

* {
	margin: 0;
	padding: 0;
}

body {
	font-family: "Inter";
	overflow: hidden;
	font-size: 15px;
	font-family: "Inter Custom", sans-serif;

	user-select: none;
	-webkit-user-select: none;
}

button {
	app-region: no-drag;
}

.transparent_button {
	background: transparent;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

img {
	filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.9));
}

.icon {
	width: 2em;
	height: 2em;
	vertical-align: -0.125em;
	color: #48614a;
}

.wallpaper {
	width: 100%;
	height: 100vh;
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;

	background-size: cover;
	background-position: repeat;
	background-repeat: no-repeat;
}

.wallpaper_loading {
	filter: brightness(0%);
}

#top_panel {
	color: white;
	display: flex;
	gap: 5px;
	flex: 1;
	align-items: center;
	justify-content: space-between;
	app-region: drag;

	left: env(titlebar-area-x, 0);
	top: env(titlebar-area-y, 0);
	width: env(titlebar-area-width, 100%);
	height: env(titlebar-area-height, var(--panel-height));

	text-shadow: 0px 1px 2px rgba(0, 0, 0, 1);

	background: linear-gradient(
		to bottom,
		var(--color1) 0%,
		var(--color2) 60%,
		var(--color3) 100%
	);
	transition: 0.3s;
	transition-property: --color1, --color2, --color3;
}

.regular_panel {
	--color1: black;
	--color2: black;
	--color3: black;
}

.transparent_panel {
	--color1: rgba(0, 0, 0, 0.5);
	--color2: rgba(0, 0, 0, 0.1);
	--color3: transparent;
}

.column {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: space-between;
}

.grid {
	display: grid;
	grid-template-columns: repeat(3, 100px);
	gap: 20px;
}

.grid_img {
	border: 2px solid transparent;
	aspect-ratio: 16 / 9;
	width: 100%;
	object-fit: cover;
	display: block;
	border-radius: 4px;
}

.grid_img_selected {
	border-color: #69696c;
}

.panel-section {
	display: flex;

	gap: 3px;
	min-height: 24px;

	padding-top: 1px;
	padding-bottom: 1px;

	padding-left: 12px;
	padding-right: 12px;

	align-items: center;
	border-radius: var(--hover-border-radius);

	background-color: rgba(60, 60, 60, 0);
	transition: background-color 100ms linear;

	box-sizing: border-box;
}

.panel-right:hover {
	background-color: rgba(60, 60, 60, 0.6);
}

.panel-left {
	justify-content: flex-start;
	margin-left: calc(16px - 12px);
}

.panel-center {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	justify-content: center;
}

.panel-right {
	justify-content: flex-end;
	margin-right: calc(16px - 6px);
	padding-left: 6px;
	padding-right: 6px;
}

.panel-section img {
	width: var(--img-width);
}

hr {
	background-color: #4a4a4d;
	border: none;
	height: 1px;
	margin-top: 5px;
	margin-bottom: 5px;
}

/* https://www.geeksforgeeks.org/html/how-to-create-popup-box-using-html-and-css/ */
.popup {
	display: none;
	background: rgba(0, 0, 0, 0);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	/*justify-content: center;
	align-items: center;*/

	justify-content: flex-end;
	align-items: flex-start;
	padding-top: calc(5px + var(--panel-height));
	padding-right: 5px;
	box-sizing: border-box;
}

.popup_content {
	background: #36363a;
	box-shadow: 1px 10px 32px -15px rgba(0, 0, 0, 0.9);
	color: white;
	padding: 20px;
	border-radius: 32px;
	text-align: left;
	min-height: 100px;
	min-width: 350px;
}

.popup_fadein {
	animation: fadeIn 0.1s ease-in-out 0s 1 normal forwards;
}

@keyframes fadeIn {
	0% {
		opacity: 0;
		transform: scale(0);
		transform-origin: 50% 0%;
	}

	100% {
		opacity: 1;
		transform: scale(1);
		transform-origin: 50% 0%;
	}
}

.popup_fadeout {
	animation: fadeOut 0.1s ease-in-out 0s 1 normal forwards;
}

@keyframes fadeOut {
	0% {
		opacity: 1;
		transform: scale(1);
		transform-origin: 50% 0%;
	}

	100% {
		opacity: 0;
		transform: scale(0);
		transform-origin: 50% 0%;
	}
}

.workspace_pill {
	height: 6px;
	width: 6px;
	background-color: rgba(255, 255, 255, 0.45);
	border-radius: 50%;
	font-size: 1px;
	transition: all 0.2s ease-in-out 0s;
	position: relative;
}

.pill_end::before {
	content: "";
	position: absolute;

	top: -10px;
	bottom: -10px;
	left: -3px;
	right: -10px;
}

.pill_wide {
	height: 8px;
	width: 26px;
	background-color: white;
	border-radius: 128px;
	transition: all 0.2s ease-in-out 0s;
}

.workspace_pill::after {
	content: "";
	opacity: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	width: 100%;
	transition: opacity 0.2s ease-in-out 0s;
}

.pill_wide::after {
	content: "×";
	color: #f24526;
	text-shadow: 0px 0px 0px;
	font-size: 26px;
	transform: translateY(-2px);
}

.pill_wide:not(:first-child):hover {
	height: 22px;
	width: 22px;
	background-color: #211614;
	border-radius: 6px;
	transition-delay: 400ms;
}

.pill_wide:not(:first-child):hover::after {
	opacity: 1;
	transition-delay: 400ms;
}

.pill_end:hover {
	border-radius: 30%;
	height: 20px;
	width: 20px;
}

.pill_end:hover::after {
	opacity: 1;
	content: "+";
	color: white;
	font-size: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	width: 100%;
	transform: translateY(-2px);
}

/* https://codeconvey.com/css-toggle-switch-with-two-labels/ */
.toggleSwitch span span {
	display: none;
}
.toggleSwitch {
	display: inline-block;
	height: 18px;
	position: relative;
	overflow: visible;
	padding: 0;
	cursor: pointer;
	width: 150px;
	background-color: #444447;
	border-radius: 8px;
	height: 34px;
	user-select: none;
	-webkit-user-select: none;
}
.toggleSwitch * {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
.toggleSwitch label,
.toggleSwitch > span {
	line-height: 20px;
	height: 20px;
	vertical-align: middle;
}
.toggleSwitch input:focus ~ a,
.toggleSwitch input:focus + label {
	outline: none;
}
.toggleSwitch label {
	position: relative;
	z-index: 3;
	display: block;
	width: 100%;
}
.toggleSwitch input {
	position: absolute;
	opacity: 0;
	z-index: 5;
}
.toggleSwitch > span {
	position: absolute;
	left: 0;
	width: calc(100% - 6px);
	margin: 0;
	text-align: left;
	white-space: nowrap;
	margin: 0 3px;
}
.toggleSwitch > span span {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 5;
	display: block;
	width: 50%;
	margin-left: 50px;
	text-align: left;
	font-size: 0.9em;
	width: auto;
	left: 0;
	top: -1px;
	opacity: 1;
	width: 40%;
	text-align: center;
	line-height: 34px;
}
.toggleSwitch a {
	position: absolute;
	right: 50%;
	z-index: 4;
	display: block;
	top: 3px;
	bottom: 3px;
	padding: 0;
	left: 3px;
	width: 50%;
	background-color: #69696c;
	border-radius: 6px;
	-webkit-transition: all 0.2s ease-out;
	-moz-transition: all 0.2s ease-out;
	transition: all 0.2s ease-out;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.toggleSwitch > span span:first-of-type {
	color: #fff;
	opacity: 1;
	left: 0;
	margin: 0;
	width: 50%;
}
.toggleSwitch > span span:last-of-type {
	left: auto;
	right: 0;
	color: #fff;
	margin: 0;
	width: 50%;
}
.toggleSwitch > span:before {
	content: "";
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0;
	top: -2px;
	/* background-color: #fafafa;
	border: 1px solid #ccc; */
	border-radius: 30px;
	-webkit-transition: all 0.2s ease-out;
	-moz-transition: all 0.2s ease-out;
	transition: all 0.2s ease-out;
}
.toggleSwitch input:checked ~ a {
	left: calc(50% - 3px);
}
.toggleSwitch input:checked ~ span span:first-of-type {
	left: 0;
	color: #fff;
}
.toggleSwitch input:checked ~ span span:last-of-type {
	/* opacity: 1;
	color: #fff;	 */
	color: #fff;
}
/* Switch Sizes */
.toggleSwitch.large {
	width: 210px;
}
