/* CSS for keypad */

/* The wrapper overlays the entire view to capture touches outside the keypad */
#keypad_wrapper {
	position: fixed;
	z-index: 1000;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background-color: var(--main-wrapper-haze);
	display: flex; justify-content: center; align-items: flex-end;
}

/* The keypad is hidden off the bottom of the view and transitions upward */
#keypad {
	background-color: var(--nav-header-bg-color);
	border-radius: 8px;
	border-radius: 8px;
}
.keypad-hide {
	animation: keypadOut 200ms ease-out forwards;
}
.keypad-show {
	/*transition: transform 200ms ease-out;*/
	animation: keypadIn 200ms ease-out forwards;
}
@keyFrames keypadIn {
	from {
		transform: translateY(100%);
	}
	to {
		transform: translateY(0%);
	}
}
@keyFrames keypadOut {
	from {
		transform: translateY(0%);
	}
	to {
		transform: translateY(100%);
	}
}

/* the header contain the value and buttons */
#keypad_headerBar {
	padding: 2px 4px;
	display:flex; justify-content: space-between; align-items: center;
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
}
/* A container for the value and units */
#keypad_valueBar {
	padding: 6px;
	display: flex;
}
/* the current numeric value */
#keypad_value {
	font-size: 120%;
	font-weight: bold;
	background-color: white;
	text-align: center;
	box-sizing: content-box;
	min-height: 1.2em;
	padding: 4px;
	flex-basis: 100%;
}
/* flag for invalid values */
.keypad_value-error {
	color: red;
}
/* the units designator */
#keypad_units {
	font-size: 120%;
	font-weight: bold;
	color: white;
	text-align: center;
	margin: 4px;
}
/* header Done/Cancel buttons */
#keypad_cancel, #keypad_done {
	font-weight: bold;
	min-width: 6ch;
	min-height: 40px;
	margin: 0;
	text-align: center;
}

/* container for keypad keys */
#keypad_pad {
	width: 100%;
	border-collapse: separate;
	border-spacing: 2px;	/* border width */
}
/* each key */
.keypad_key {
	font-size: 200%;
	font-weight: 600;
	min-width: 50px;
	min-height: 50px;
	width: 2.1em;		/* allow keys with 3 letters, e.g. VRB */
	height: 2.1em;
	background-color: rgb(230,230,230);
	text-align: center;
	border-radius: 12px;
	padding: 0;
	margin: 0;
}
