@font-face {
	font-family: Fira Code;
	font-weight: 600;
	src: url('fonts/FiraCode-SemiBold.ttf');
}
@font-face {
	font-family: Fira Code;
	font-weight: 700;
	src: url('fonts/FiraCode-Bold.ttf');
}
@font-face {
	font-family: JetBrains Mono;
	font-weight: 600;
	src: url('fonts/JetBrainsMono-SemiBold.ttf');
}

::selection {background-color: #44e !important;}
::-moz-selection {background-color: #44e !important;}

html, body.primbonto {
	background: #000;
	height: 100svh;
	max-height: 100svh;
}
body.toplevel {
	margin: 24px 22px;
}
@media only screen and (max-width: 600px) {
	body.toplevel {margin: 6px 3px;}
}
body.embedded {margin: 6px 1px;}
body, input, table, button {font: 600 20px/21.985px Fira Code;}

main {
	transform: scale(1);
	transform-origin: left top;
}

input {border: none; margin: 0}
input:focus {outline: none}
#main-input-container {
	display: table;
	padding: 2px;
}

#main-input-container {
	background: #000;
	margin-right: 15px;
}
#main-input-container, #main-input {border: solid #98d 2px;}
#main-input {
	margin: 0;
	padding: 0 1px;
	box-sizing: content-box;
	text-align: right;
	background: transparent;
	color: #fff;
	width: 216px;
}
#main-input-container::after {
	content: '';
	display: block;
	width: 214px;
	height: 7px; /* 6px valójában, de 7px kell mert telefonon nem ér le */
	position: absolute;
	margin-top: -4px;
	margin-left: 4px;
	background: url(rivet.gif) repeat;
}

#formula-box, #result {
	margin-top: 24px;
}

#formula-box {
	display: inline-flex;
	gap: 16px;
	visibility: hidden;
}
@media (max-width: 360px) {
	#formula {
		width: 100%;
	}
}
#formula-box.spc {
	gap: 25px;
}

#formula-box .copy {
	margin-top: 1px;
	width: 14px;
	height: 16px;
	cursor: pointer;
}
#formula-box .copy span {
	display: block;
	background: #000;
	border: solid 2px #98d;
	width: 10px;
	height: 12px;
	position: absolute;
}
#formula-box .copy:hover span {
	border-color: #fff;
}
#formula-box .copy span:nth-child(1) {
	margin-left: 4px;
	margin-top: 4px;
}

#formula {color: #98d;}
#formula num {color: #fff;}
	
#formula caret {
	display: inline-block;
	transform: translateY(3px);
}

table {border-collapse: collapse}
#result {
	clear: left;
	display: table;
	border: double 6px #434445;
	padding: 2px 3px;
}
#result td {padding: 0; white-space: nowrap; vertical-align: bottom; line-height: 25px;}
#result:hover {border-color: transparent;}

.pt td.num {text-align: right;}
.pt td:first-child {font-weight: 500}

a {text-decoration: none;}
a.nip, a#switch {color: #44e;}
td.num a {color: #98d;}
td.value {color: #434445;}
td.num a:hover {color: #fff;}
td.num a.modify:hover {background-color: #fff; color: #000}
.pt, .pt .dots a, .pt .amount {color: #7b1;}
.gy, .gy .dots a, .gy .amount {color: #c42;}

.gy td.num a {float: right;}

.dots a:hover {color: #ee2014;}

#result form {display: inline}

#result input {
	position: absolute;
	background: #98d;
	color: #000;
	border: none;
	padding: 0 1px;
	transform: translateX(-1px);
	margin-top: 2px;
	text-align: right;
	z-index: 1;
	display: none;
}

a.nip {
	position: relative;
	top: -2px;
	left: -1px;
	font-weight: 700;
}

a#switch {
	position: absolute;
	margin-left: -3px;
	margin-top: 6px;
	font: 28px Verdana;
	color: #44e;
}
a#switch:hover, a.nip:hover {color: #fff;}

form {margin: 0;}
iframe {display: none;}


#test {
	clear: left;
}

#blapp {
	position: fixed;
	left: 6px;
	bottom: 6px;
	filter: grayscale(.95) brightness(.466) hue-rotate(-50deg);
}
#blapp.hover {filter: none}
