
body {
	font-family: Sans-Serif;
	margin: 0;
	background: linear-gradient(to left, rgba(255,0,0,0.3), rgba(255,0,0,0) 70.71%),linear-gradient(to top, rgba(0,255,0,0.3), rgba(0,255,0,0) 70.71%),linear-gradient(to bottom, rgba(0,255,0,0.3), rgba(0,255,0,0) 70.71%),linear-gradient(to right, rgba(0,0,255,0.3), rgba(0,0,255,0) 70.71%);
	background-attachment: fixed;
	
	/* max-height: 100%; */
	position: fixed;
	left: 0; right: 0; top: 0; bottom: 0;
}
#page {
	justify-content: center;
	/* align-items: center; */
	display: flex;
	max-height: 100%;
	/* height: 100vh; */
}
#content {
	width: 700px;
	max-width: 100vw;
	margin: 15px 0;
	display: flex;
	flex-direction: column;
}

@media (max-width:700px) {
	/* this is mostly for mobile: removing the gap at the bottom when #content takes the whole width */
	#content {
		margin-bottom: 0 !important;
	}
}

#dicts {
	background-color: rgba(255,255,255,0.6);
	max-width: 100%;
}

#dictdiv {
	margin-bottom: 10px;
	
	text-align: center;
}
#tablediv {
	overflow: auto;
	
	margin-top: 10px;
	flex: 0 1 auto;
}

table {
	font-family: Arial, Helvetica, sans-serif;
	border-collapse: collapse;
	width: 100%;
	height: 100%;
}

table td, table th {
	border: 1px solid rgba(255,255,255,0.8);
	padding: 8px;
}

table tr:nth-child(even){ background-color: rgba(255,255,255,0.3);}
table tr:nth-child(odd){ background-color: rgba(255,255,255,0.5);}

table tr:hover {background-color: #fff;}

table thead, table tfoot {
	padding-top: 12px;
	padding-bottom: 12px;
	/* text-align: left; */
}

table tbody th {
	font-weight: normal;
}

table thead th, table tfoot th {
	position: sticky;
	
	background-color: #04AA6D;
	color: white;
}

table thead th { top: 0; }
table tfoot th { bottom: 0; }


#input {
	width: 100%;
	
	font-size:24px;
	box-sizing: border-box;
	padding: 8px;
	text-align: center;
	border: 1px solid #000;
    box-shadow: inset 0 0 7px #aaa;
}

#resultCount {
	color: #666;
	text-align: center;
}
#resultCount:empty::before {
	content: "\A0";
}
