:root {
	--u1-width: 76px;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "cascadia code";
	/* font-family: 'trebuchet ms'; */
}

body {
	display: flex;
	justify-content: center;
	align-items: center;
	/* min-height: 100vh; */
	background: #232323;
	height: 100vh;
	width: 100vw;
}

.main {
	position: relative;
}

.container {
	position: relative;
}

.text {
	width: 100%;
	height: 90px;
	margin-bottom: 30px;
	border: none;
	border-radius: 10px;
	outline: none;
	font-size: 26px;
	background-color: #343434;
	padding: 24px;
	transition: 0.2s;
	color: white;
}

/* Basic styles for the virtual keyboard */
.keyboard {
	user-select: none;
	-moz-user-select: none; /* Firefox */
	-ms-user-select: none; /* Internet Explorer/Edge */
	-webkit-user-select: none; /* Safari */
	border-radius: 8px;
	padding-top: 19px;
	padding-left: 20px;
	padding-bottom: 56px;
	padding-right: 40px;
	background: linear-gradient(180deg, #282828, #202020);
	box-shadow: inset -8px 0 8px rgba(0, 0, 0, 0.15),
		inset 0 -8px 8px rgba(0, 0, 0, 0.25), 0 0 2px rgba(0, 0, 0, 0.75),
		10px 20px 25px rgba(0, 0, 0, 0.4);
	overflow: hidden;
}

.keyboard::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 4px;
	bottom: 28px;
	right: 24px;
	background: linear-gradient(90deg, #343434, #4a4a4a);
	border-radius: 8px;
	box-shadow: 10px 5px 10px rgba(0, 0, 0, 0.15);
	border-left: 1px solid #0004;
	border-bottom: 1px solid #0004;
	border-top: 1px solid #0009;
}

.row {
	display: flex;
	align-items: center;
}

.key {
	justify-content: center;
	align-items: center;
	position: relative;
	display: inline-block;
	height: 80px;
	padding: 8px 15px;
	margin: 4px 2px;
	border-radius: 10px;
	background: linear-gradient(180deg, #282828, #202020);
	box-shadow: inset -8px 0 8px rgba(0, 0, 0, 0.15),
		inset 0 -8px 8px rgba(0, 0, 0, 0.25), 0 0 2px rgba(0, 0, 0, 0.75),
		10px 20px 25px rgba(0, 0, 0, 0.4);
	overflow: hidden;
	color: aqua;
	cursor: pointer;
}

.key::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 4px;
	bottom: 14px;
	right: 12px;
	background: linear-gradient(90deg, #232323, #4a4a4a);
	border-radius: 10px;
	box-shadow: -10px -10px 10px rgba(255, 255, 255, 0.25),
		10px 5px 10px rgba(0, 0, 0, 0.15);
	border-left: 1px solid #0004;
	border-bottom: 1px solid #0004;
	border-top: 1px solid #0009;
}

.key.active {
	transform: translate(0px, 2px) scale(0.9) perspective(1000px);
  animation: flash forwards;
}

.key.remove {
	transform: translate(0px, 2px) scale(1) perspective(1000px);
  animation: flash backwards;
}

@keyframes flash {
	from {
		filter: brightness(1);
	}
	to {
		filter: brightness(1.75);
	}
}

.accent {
	background: linear-gradient(180deg, aqua, #00cccc);
	color: #282828;
}

.accent::before {
	background: linear-gradient(90deg, aqua, #66ffff);
	border-left: 1px solid #00cccc;
	border-bottom: 1px solid #00cccc;
	border-top: 1px solid #009999;
}

.key i {
	position: relative;
	font-style: normal;
	font-size: 1.1em;
	/* text-transform: lowercase; */
}

.knob {
	position: relative;
	display: inline-block;
	width: 80px;
	height: 80px;
	padding: 8px 15px;
	margin: 8px 4px;
	border-radius: 40px;
	background: linear-gradient(180deg, aqua, #00cccc);
	overflow: hidden;
}

.knob::before {
	content: "";
	position: absolute;
	top: 2px;
	left: 3px;
	bottom: 10px;
	right: 8px;
	border-radius: 40px;
	background: linear-gradient(90deg, aqua, #66ffff);
	border-left: 1px solid #00cccc;
	border-bottom: 1px solid #00cccc;
	border-top: 1px solid #009999;
}

.display {
	margin-left: 16px;
	position: relative;
	align-items: center;
	justify-content: center;
	display: flex;
	width: 120px;
	height: 65px;
	/* padding: 8px 15px; */
	/* margin: 8px 4px; */
	border-radius: 4px;
	background: black;
	overflow: hidden;
}

.display-inner {
	width: 110px;
	height: 55px;
	border-radius: 2px;
	background: white;
	padding: 6px;
	font-size: 1.3em;
	overflow: hidden;
}

.u1 {
	width: var(--u1-width);
}

.u1-25 {
	width: calc(var(--u1-width) * 1.25);
}

.u1-5 {
	width: calc(var(--u1-width) * 1.5);
}

.u1-75 {
	width: calc(var(--u1-width) * 1.75);
}

.u2 {
	width: calc(var(--u1-width) * 2);
}

.u2-25 {
	width: calc(var(--u1-width) * 2.25);
}

.u6-25 {
	width: calc(var(--u1-width) * 6.25);
}

.r5 {
	margin-bottom: 16px;
}

.mr16 {
	margin-right: 16px;
}

.mr20 {
	margin-right: 20px;
}

.mr24 {
	margin-right: 24px;
}

.ml16 {
	margin-left: 16px;
}

.ml32 {
	margin-left: 32px;
}

.ml12 {
	margin-left: 12px;
}

.ml10 {
	margin-left: 10px;
}

.ml36 {
	margin-left: 36px;
}

.ml39 {
	margin-left: 39px;
}

.mr12 {
	margin-right: 12px;
}

.mt12 {
	transform: translate(0px, 12px);
}

.mr32 {
	margin-right: 32px;
}

.mr36 {
	margin-right: 36px;
}

.hidden {
	visibility: hidden;
}

/* .l {
	margin-left: calc(var(--u1-width) * 1);
} */

/* 
.arrow-up {
  margin-left: calc(var(--u1-width) * 0.5);
}

.arrow-left {
	margin-left: calc(var(--u1-width) * 0.5);
	margin-top: calc(var(--u1-width) * 0.5);
}

.arrow-down {
	margin-top: calc(var(--u1-width) * 0.5);
}

.arrow-right {
  margin-top: calc(var(--u1-width) * 0.5);
} */
