@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300&display=swap');

body {
	background: var(--whiteColour);
	overflow: hidden;
	--websiteFont: "Montserrat";
	--whiteColour: rgb(250, 250, 250);
	--lightGreyColour: rgb(240, 240, 240);
	--blackColour: rgb(13, 13, 13);
	--imageFilter: 0%;
	--buttonColour: rgba(0, 0, 0, 0.4);
	touch-action: none;
	user-select: none;
	-ms-user-select: none;
	-moz-user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
	transition: 0.15s linear;
}

nav {
	top: 0;
	left: 0;
	position: fixed;
	background: var(--lightGreyColour);
	height: 55px;
	width: 100vw;
	margin: 0;
	padding: 0;
	padding-left: 10px;
	padding-top: 15px;
	z-index: 200;
	display: flex;
	flex-direction: row;
}

nav > select {
	width: 170px;
	height: 40px;
	background: var(--whiteColour);
	color: var(--blackColour);
	border: 1px solid rgb(130, 130, 130);
	border-radius: 2px;
	outline: none;
	text-align: left;
	padding-left: 10px;
	cursor: pointer;
	font-family: var(--websiteFont), sans-serif;
	font-size: 14px;
	font-weight: 100;
	letter-spacing: 0.6px;
}

nav > button {
	width: 150px;
	height: 40px;
	background: var(--buttonColour);
	color: white;
	border-radius: 2px;
	outline: none;
	border: none;
	cursor: pointer;
	transition: 0.1s linear;
	font-family: var(--websiteFont), sans-serif;
	font-size: 14px;
	font-weight: 100;
	letter-spacing: 0.6px;
	margin-left: 10px;
}

nav > button:hover {
	background: rgb(130, 160, 250);
}

nav > #mode-toggle {
	width: 100px;
	margin-right: 10px;
}

nav > #save-drogic {
	width: 45px;
}

nav > .info-pannel {
	width: 45px;
	margin-left: 0;
}

.info-pannel:focus + .info-div, .info-div:hover {
	transform: translate(-50%, 50px) scale(1);
}

@media screen and (max-width: 800px) {
	.info-pannel:hover + .info-div {
		transform: translate(-50%, 50px) scale(1);
}
}

.info-div {
	position: absolute;
	width: 80vw;
	height: 80vh;
	z-index: 200;
	pointer-events: all;
	background: var(--lightGreyColour);
	left: 50%;
	top: 50%;
	transform: translate(-50%, 50px) scale(0);
	padding: 10px;
	border: 1px solid var(--blackColour);
	border-radius: 3px;
	cursor: help;
	transition: 0.3s linear;
	overflow-x: hidden;
	overflow-y: auto;
}

.info-div > h1 {
	color: var(--blackColour);
	font-family: var(--websiteFont), sans-serif;
	font-size: 30px;
	font-weight: 100;
	letter-spacing: 0.6px;
	text-align: center;
	width: 100%;
}

.info-div > ul {
	width: 85%;
	list-style: circle;
	margin-top: 50px;
	transform: translateX(5%);
}

.info-div > ul > li {
	color: var(--blackColour);
	font-family: var(--websiteFont), sans-serif;
	font-size: 14px;
	font-weight: 100;
	letter-spacing: 1px;
	width: 100%;
	margin-top: 20px;
}

.save-drogic-url {
	position: absolute;
	width: 80vw;
	height: 120px;
	z-index: 200;
	pointer-events: all;
	background: var(--lightGreyColour);
	left: 50%;
	top: 50%;
	transform: translate(-50%, 50px) scale(0);
	padding: 10px;
	border: 1px solid var(--blackColour);
	border-radius: 3px;
	cursor: default;
	transition: 0.3s linear;
	overflow-x: hidden;
	overflow-y: auto;
}

.save-drogic-url > p {
	color: var(--blackColour);
	font-family: var(--websiteFont), sans-serif;
	font-size: 14px;
	font-weight: 100;
	letter-spacing: 0.6px;
	text-align: center;
	width: 100%;
}

.save-drogic-url > input {
	color: var(--blackColour);
	background: rgba(0, 0, 0, 0.3);
	font-family: var(--websiteFont), sans-serif;
	font-size: 14px;
	font-weight: 100;
	letter-spacing: 0.6px;
	text-align: left;
	margin-left: 9%;
	width: 80%;
	height: 40px;
	outline: none;
	border: none;
	padding-left: 10px;
	border-radius: 3px;
}

.logic-gate-holder {
	width: 100vw;
	height: 100vh;
	top: 0;
	left: 0;
	position: absolute;
	pointer-events: none;
}

.logic-gate-holder > div {
	width: 60px;
	height: 60px;
	user-select: none;
}

.logic-gate-holder > div > div {
	width: 70px;
	height: 70px;
	background: var(--whiteColour);
	color: rgb(13, 13, 13);
	top: 100px;
	left: 10px;
	position: absolute;
	z-index: 100;
	border: 1px solid rgb(90, 90, 90);
	border-radius: 3px;
	user-select: none;
	display: flex;
	flex-direction: column;
	pointer-events: all;
	cursor: move;
	outline-offset: 5px;
}

.logic-gate-holder > div > div:hover {
	border: 1px solid rgb(60, 60, 60);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.logic-gate-holder > div > div > h2 {
	pointer-events: none;
	width: 100%;
	text-align: center;
	height: 100%;
	padding-top: 0px;
	color: var(--blackColour);
	font-family: var(--websiteFont), sans-serif;
	font-size: 14px;
	font-weight: 100;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	margin: 0;
}

.logic-gate-holder > div > div > img {
	pointer-events: none;
	width: 50px;
	height: 50px;
	justify-self: center;
	align-self: center;
	margin: 0;
	stroke-width: 2;
	filter: invert(var(--imageFilter));
}

.logic-gate-holder > div > span {
	display: block;
	position: absolute;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(81, 135, 169, 0);
	border: 2px solid #82A0FA;
	transform: translate(30px, 0);
	cursor: pointer;
	transition: background 0.1s linear;
	top: 130px;
	left: 55px;
	pointer-events: all;
}

.logic-gate-holder > div > span:hover {
	background: rgba(140, 160, 250, 1);
}

.textBox {
	position: absolute;
	display: flex;
	flex-direction: row;
	width: 150px;
	height: 30px;
	user-select: none;
	pointer-events: all;
	text-align: center;
	padding-top: 0px;
	margin: 0;
	background: var(--whiteColour);
	border: 1px solid rgb(90, 90, 90);
	border-radius: 3px;
	left: 0;
	top: 0;
}

.textBox > h2 {
	transform: translateY(-16px);
	width: 80%;
	height: 30px;
	min-height: 30px;
	padding: 10px;
	padding-left: 5px;
	color: var(--blackColour);
	font-family: var(--websiteFont), sans-serif;
	font-size: 14px;
	font-weight: 100;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	cursor: text;
	outline: none;
	border: none;
	overflow: hidden;
	white-space: nowrap;
	-webkit-user-select: text;
	-webkit-touch-callout: text;
	user-select: text;
}

.textBox > span {
	display: block;
	width: 20%;
	height: 30px;
	background: var(--buttonColour);
	cursor: move;
	transition: 0.1s linear;
}

.textBox > span:hover {
	background: #82A0FA;
}