@use '../../shared/styles/theme';
@use '../../shared/styles/tokens';
@use '../../shared/styles/utils';

@include utils.dark-theme {
	--popover-bg: var(--color-background--lighten-15);
	--gl-walkthrough-hover-background: color-mix(in lab, var(--vscode-sideBar-background) 100%, #fff 4%);
}

@include utils.light-theme {
	--popover-bg: var(--color-background--darken-15);
	--gl-walkthrough-hover-background: color-mix(in lab, var(--vscode-sideBar-background) 100%, #000 2%);
}

* {
	box-sizing: border-box;
}

// avoids FOUC for elements not yet called with `define()`
:not(:defined) {
	visibility: hidden;
}

[hidden] {
	display: none !important;
}

html {
	height: 100%;
	overflow: hidden;
	font-size: 62.5%;
	text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	height: 100%;
	min-height: 100%;
	padding: 0;
	font-family: var(--font-family);
	font-size: var(--vscode-font-size);
	line-height: 1.4;
	color: var(--color-view-foreground);
	background-color: var(--color-background);
}
