body
{
	margin: 0;
}

.selectRect
{
	fill: none;
	stroke-width: 1px;
	stroke: darkgrey;
	stroke-dasharray: 1px;
}

#center-dot
{
	fill: lightgrey;
}

#canvasContainer
{
	position: fixed;
	width: 100vw;
	height: 100vh;
	left: 0;
	top: 0;
}

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

.sideBox
{
	width: 300px;
	position: absolute;
	right: 20px;
	bottom: 20px;
	border: 2px solid black;
	background-color: white;
	padding: 10px;
	max-height: 90%;
	overflow-y: auto;
}

.sideBox > p
{
	margin: 0 0 0.75em 0;
}

.sideBox > h1
{
	font-size: 1.3em;
	font-weight: bold;
}

.sideBox > h2
{
	font-size: 1em;
	font-weight: bold;
}

.component
{
	fill-rule: evenodd;
}

.component.wire
{
	fill: silver;
}

.component.power
{
	fill: red;
}

.component.ground
{
	fill: blue;
}

.component.transistor
{
	fill: purple;
}

.transistor.invalid
{
	stroke: red;
	stroke-width: 2px;
	stroke-dasharray: 2px;
}

.drain-source
{
	stroke: #d0a1d0;
	stroke-width: 2px;
	stroke-linecap: round;
}

.component.bridge, .endpoint
{
	stroke-width: 1px;
	stroke: grey;
	stroke-dasharray: 1px;
	fill: silver;
	fill-opacity: 0.5;
}

.connected > .component
{
	stroke: lightgreen;
	stroke-width: 2px;
	stroke-dasharray: 2px;
}

.high > .component
{
	stroke: pink;
}

.low > .component
{
	stroke: lightblue;
}

.unstable > .component
{
	stroke: brown;
	stroke-width: 2px;
	stroke-dasharray: 0px;
}

.high > .wire
{
	fill: pink;
}

.low > .wire
{
	fill: lightblue;
}

.high.pinned > .wire
{
	stroke: #ff7d7d;
	stroke-width: 2px;
}

.low.pinned > .wire
{
	stroke: #6d6dff;
	stroke-width: 2px;
}

.label
{
	font-size: 28px;
	user-select: none;
	font-family: sans-serif;
}
