:root {
	--black: #111;
	--white: #eee;
	--red: #48000a;
	--green: #a2f5d2;	
	--yellow: #faf5ca;
	--blue: #a8dfff;
	--pink: #ffcbf5;
	--purple: #23052c;
	--violet: #10043f;
	--greenTransp: rgba(52, 205, 47, 0.125);
	--greenTransp: rgba(238, 238, 238, 0.125);
	
	--sansSerif: "Printerlight", "Arial Narrow", "Helvetica Nueue", sans-serif;
}

@font-face {
	font-family: "Printerlight";
	font-weight: regular;
	src: url("fonts/printerlight.ttf") format("truetype");
}
@font-face {
	font-family: "Spaceicons";
	font-weight: regular;
	src: url("fonts/spaceicons.ttf") format("truetype");
}
html {
	color: var(--white);
	background: var(--black);
	font-family: var(--sansSerif);
}
* {
	position: relative;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	letter-spacing: .025em;
}
html {
	padding: 0 .5rem;
}
header {
	margin: 0 auto;
	max-width: 768px;
	padding-top: .5rem;
}
footer {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: calc(100vh - 13rem);
	padding-bottom: 1rem;
}
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
	font-family: var(--sansSerif);
	text-transform: uppercase;
}
h1, .h1 {
	margin-bottom: 1.5rem;
	font-size: 1.75rem;
}
h2, .h2 {
	margin-top: 1.25rem;
	margin-bottom: .125rem;
	font-size: 1.31rem;
}
h3, .h3 {
	font-size: 1.02rem;
}
h4, .h4 {
	font-size: 1rem;
}
h5, .h5 {
	font-size: .83rem;
}
h6, .h6 {
	font-size: .75rem;
}
ul {
	list-style: none;
}
table {
	margin: 1.5rem auto;
	border-collapse: collapse;
}
td {
	margin: 0;
	padding: .25rem .375rem;
	border: 1px solid var(--white);
}
a, a:visited {
	color: var(--white);
	
}
button, .btn {
	padding: .75rem .75rem .65rem;
	color: var(--black);
	background: var(--white);
	font-size: 1rem;
	font-family: var(--sansSerif);
	font-weight: bold;
	letter-spacing: 1px;
	text-transform: uppercase;
	border: none;
	border-radius: .25rem;
}
button:active, .btn:active {
	background: var(--yellow);
}
@media (hover: hover) {
	button:hover, .btn:hover {
		background: var(--greenTransp);
	}
}

.text-center {
	text-align: center;
}
.text-left {
	text-align: left;
}
.text-right {
	text-align: right;
}
.text-small {
	font-size: .78125rem;
}
.text-capitalize {
	text-transform: capitalize;
}
.transparent {
	opacity: 0;
}
.flex-row {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
}
.flex-row > * {
	flex-grow: 1;
}
.flex-row > button {
	flex-basis: 50%;
}
.flex-row > button:first-child {
	margin-right: 1px;
}
.flex-row > button:last-child {
	margin-left: 1px;
}
.hiding {
	display: none;
	opacity: 0;
}
.hiding.active {
	display: block;
	opacity: 1;
}
.prevent-select {
  -webkit-touch-callout: none; /* iOS Safari */
	-webkit-user-select: none; /* Safari */
	 -khtml-user-select: none; /* Konqueror HTML */
	   -moz-user-select: none; /* Old versions of Firefox */
		-ms-user-select: none; /* Internet Explorer/Edge */
			user-select: none; /* Non-prefixed version */
}
.invert {
	filter: invert(1);
}
.space-icon {
	font-family: "Spaceicons";
}
.pet {
	transform: scaleX(1);
	animation: 4s ease-in-out 0s infinite alternate breathe;
	transition: scaleX 4s ease-in-out, transform 4s ease-in-out, animation 2s;
}
.pet.pressure {
	animation: .125s linear 0s infinite alternate shake;
}
.pet.small {
	margin: 4rem auto;
}
.pet.medium {
	margin: 3rem auto;
}
.pet.large {
	margin: 2rem auto;
}
.modal {
	position: absolute;
	top: 16rem;
	right: 0;
	left: 0;
	max-width: calc(100vw - 2rem);
	max-width: 500px;
	margin: 0 auto;
	padding: 1.85rem 1rem;
	background: var(--black);
	border: 1px solid var(--white);
	z-index: 10;
}
.btn-outline {
	color: var(--white);
	background: transparent;
	border: 1px solid var(--white);
}
.btn-close {
	position: absolute;
	top: -3rem;
	right: 0rem;
	padding-top: .5rem;
	padding-bottom: .25rem;
	font-size: 1.75rem;
}
.visit-item * {
	pointer-events: none;
}
.visit-item css-doodle {
	margin-bottom: .25rem;
}
#toolbar {
	position: absolute;
	top: 16rem;
	right: 0;
	left: 0;
	max-width: 500px;
	margin-right: auto;
	margin-left: auto;
	z-index: 1;
}
#toolbar ul {
	margin: 1rem auto;
	padding: 0;
	list-style: none;
}
#toolbar ul li {
	margin: 0 .25rem;
	text-align: center;
}
#toolbar ul li button {
	height: 3.5rem;
	width: 3.5rem;
	padding: .75rem;
}
#toolbar ul li button:after {
	content: " ";
	position: absolute;
	z-index: -1;
	top: 4px;
	left: 4px;
	right: 4px;
	bottom: 4px;
	border: 1px solid var(--white);
	border-radius: 3px;
}
#name-table {
	margin-bottom: 0;
}
#name-table + p {
	margin-top: .25rem;
}
#name-table #pet-name {
	font-size: 1.5rem;
}
#look-meter, #hymn-meter, #touch-meter {
	width: 87px;
	font-family: "Spaceicons";
}
#look-meter.mark:after, #hymn-meter.mark:after, #touch-meter.mark:after {
	content: "";
	display: block;
	position: absolute;
	top: 10px;
	right: -15px;
	height: 4px;
	width: 4px;
	background: var(--white);
	border-radius: 2px;
}
#look-meter.mark.large:after, #hymn-meter.mark.large:after, #touch-meter.mark.large:after {
	top: 10px;
	right: -16px;
	height: 6px;
	width: 6px;
	border-radius: 3px;
}

#keyboard {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-gap: .375rem;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}
#keyboard > * {	
	margin: 0;
	padding: 0;
}
#keyboard .key {
	height: 18vw;
	max-height: 5rem;
	width: 100%;
	padding: .125rem;
	border: 1px solid var(--white);
}
#keyboard .key:hover {
	background: var(--white);
}
#keyboard .key.active {
	background: var(--greenTransp);
}
#touch-hand {
	display: block;
	position: absolute;
	right: 0;
	bottom: 2rem;
	left: 0;
	margin: 0 auto;
	font-size: 2.25rem;
	text-align: center;
	z-index: 10;
}
#touch-hand span {
	display: inline-block;
}
#touch-hand span:first-child {
	transform: scaleX(-1);
}
#touch-hand.medium {
	bottom: 1rem;
}
#touch-hand.large {
	bottom: 0;
}
#confirm-leave-modal p {
	margin-bottom: .5rem;
}
#visit-list {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	row-gap: .5rem;
	column-gap: .5rem;
	margin-bottom: .5rem;
}
#white-overlay {
	position: absolute;
	top: 0;
	right: -1rem;
	bottom: 0;
	left: -1rem;
	z-index: 100;
	background: var(--white);
}

@keyframes breathe { 
	from { transform: scaleX(1) } 
	to { transform: scaleX(1.125) }
}
@keyframes shake {
	from { transform: translateX(.25rem) }
	to { transform: translateX: (-.25rem) }
}