
*,
*::after,
*::before {
	
	box-sizing: border-box;
}

html,
body {
	
	width: 100%;
	height: 100%;
	user-select: none;
}

body {
	
	font-family: -apple-system, sans-serif;
	
	color: var(--text);
	
	&.blurred {
		
		background-color: #f6f6f6;
		
		--accent: rgba(0,0,0,.025);
		--accent-light: rgba(0,0,0,.2);
	}
}

::placeholder {
	
	opacity: .6;
	transition: opacity .2s;
}

:focus::placeholder {
	
	opacity: 0;
}

input,
textarea { background: transparent; }

button.ui-button {
	
	padding: 3px 14px;
	color: var(--button-color);
	background: var(--button);
	border: 1px solid var(--button-border);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
	background-clip: border-box;
	font-size: 13px;
	border-radius: 5px;
	
	&.small {
		
		font-size: 11px;
		border-radius: 3px;
		padding: 2px 12px;
	}
	
	&:focus {
		
		color: #fff;
		background: var(--accent);
		background-image: linear-gradient(var(--accent-light),var(--accent));
		border: 1px solid var(--accent);
		outline: none;
	}
	
	&:active {
		
		color: #fff;
		background: var(--accent-dark);
		background-image: linear-gradient(var(--accent),var(--accent-dark));
		border: 1px solid var(--accent-dark);
	}
	
	&:disabled { opacity: .5; }
}

[data-theme^="dark"] {
	
	::placeholder { color: #fff; }
	
	body {
		
		&.blurred {
			
			background-color: rgb(57, 57, 57);
			
			--accent: rgba(255,255,255,.05);
			--accent-light: rgba(255,255,255,.2);
		}
	}
}
