:root {
	--danger: #ffd2ce;
	--success: #ddffdf;
	--subtle: #f8f8f8;
	--font: sans-serif;
}

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

body {
	height: 100vh;
	width: 100vw;
	font-family: var(--font);
	margin: 0;
}

.flex {
	display: flex;
}

.center {
	justify-content: center;
	align-items: center;
}

.column {
	flex-direction: column;
}

.pos-rel {
	position: relative;
}

.blurp {
	margin-bottom: 50px;
	max-width: 700px;
}

.blurp p {
	line-height: 1.4;
}

code.banner {
	width: 100%;
	height: 40px;
	align-items: center;
	background: var(--subtle);
	padding-left: 11px;
}

code {
	font-size: 15px;
	position: relative;
	bottom: 1px;
	margin: 0 3px;
}

.margin-neg {
	margin-top: -30px;
}

.inputs, .outputs {
	flex-direction: column;
	justify-content: space-between;
}

.outputs {
	justify-content: center;
}

.add4 {
	width: 350px;
	height: 200px;
	background: var(--subtle);
	border: 3px solid #a2a2a2;
	border-radius: 7px;
	padding: 10px;
}

#pins-a, #pins-b, #pins-z, #pins-c {
	position: absolute;
	height: 71px;
	width: 20px;
}

#pins-a {
	top: 1px;
	left: 3px;
}

#pins-b {
	bottom: 4px;
	left: 3px;
}

#pins-z {
	top: 35px;
	right: 4px;
}

#pins-c {
	bottom: -25px;
	right: -7px;
}

.pin {
	font-size: 13px;
	transition: 0.3s ease;
}

.wires {
	width: 100px;
	height: 72px;
	flex-direction: column;
	justify-content: space-around;
	position: relative;
	top: 5px;
}

#wires-b {
	top: -5px;
}

#wires-z {
	top: 5px;
}

#wires-c {
	height: 20px;
	margin-top: 40px;
}

.wire {
	height: 1px;
	width: 100%;
	background: #ccc;
	display: block;
	transition: 0.3s ease;
}

.wire[data-v="0"] {
	background: #cccccc;
}

.wire[data-v="1"] {
	background: #333;
}

.pin[data-v="0"] {
	color: #9e9e9e;
}

.pin[data-v="1"] {
	color: #333;
}

#input-a, #input-b {
	height: 70px;
	width: 100px;
	border: 2px solid #a2a2a2;
	border-radius: 5px;	
	padding: 15px 10px 10px 40px;
	font-size: 20px;
	outline: none;
	position: relative;
	transition: 0.3s ease;
}

.scale-up {
	transform: scale(1.2);
}

#input-a {
	top: 5px;
}

#input-b {
	top: -5px;
}

.input-label {
	transition: 0.3s ease;
	position: absolute;
	left: 10px;
	z-index: 2;
	font-size: 20px;
	color: #939393;
}

.input-label-a {
	top: 10px;
}

.input-label-b {
	top: 5px;
}

#output-z {
	height: 70px;
	width: 70px;
	border-radius: 70px;
	position: relative;
	top: 5px;
	right: 14px;
	font-size: 26px;
	border-width: 2px;
	border-style: solid;
	transition: 0.3s ease;
}

#output-z[data-correct="true"] {
	background: var(--success);
	border-color: #4CAF50;
	color: #4CAF50;
}

#output-z[data-correct="false"] {
	background: var(--danger);
	border-color: #e74c3c;
	color: #e74c3c;
}
