* {
	margin: 0;
	padding: 0;
	border: 0;
	box-sizing: border-box;
}
*:focus {
	outline: none;
}
html {
	background-color: #fff;
}
body {
	font-family: 'Open Sans', sans-serif;
	font-size: 12px;
	color: #000;
}
html, body {
	height: 100%;
	overflow: hidden;
}
a {
	color: #1e88e5;
	text-decoration: underline;
}
a:hover {
	color: #000;
}
#container {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: auto 1fr auto;
	gap: 0;
	grid-auto-flow: row;
	grid-template-areas: 'header' 'content' 'footer';
	min-height: 100%;
}
#header {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-template-rows: 1fr;
	gap: 0;
	grid-auto-flow: row;
	grid-template-areas: 'header-left header-center header-right';
	grid-area: header;
	border-bottom: 1px var(--gray200) solid;
}
#header-left {
	grid-area: header-left;
}
#header-center {
	grid-area: header-center;
}
#header-center h1 {
	display: none;
}
#header-center p {
	font-size: 36px;
	line-height: 1.5;
	text-align: center;
	display: block;
	padding: 20px;
}
#header-center p a {
	color: var(--black);
	text-decoration: none;
}
#header-right {
	grid-area: header-right;
}
#content {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: repeat(6, 1fr);
	grid-gap: 3px;
	grid-area: content;
	padding: 3px;
	background-color: var(--gray50);
}
#content #result {
	grid-column: span 4;
}
#content .zero {
	grid-column: span 2;
}
#content .equal {
	grid-row: span 2;
}
#content input, #content button {
	font-family: inherit;
	font-size: 36px;
	font-weight: inherit;
	color: var(--black);
	text-align: center;
	width: auto;
	height: auto;
	box-sizing: border-box;
	appearance: none;
	outline: 0;
	box-shadow: none;
	border-radius: 0;
	touch-action: none;
	background-color: var(--gray100);
	border: 1px var(--gray200) solid;
	line-height: 1.5;
}
#content input {
	color: var(--blue600);
	text-align: right;
	padding: 20px;
	background-color: var(--white);
}
#content button {
	cursor: pointer;
}
#content button:active {
	color: var(--white);
	background-color: var(--blue600);
}
#content button:hover {
	box-shadow: 0 0 3px var(--gray800);
}
#footer {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-template-rows: 1fr;
	gap: 0;
	grid-auto-flow: row;
	grid-template-areas: 'footer-left footer-center footer-right';
	grid-area: footer;
	border-top: 1px var(--gray200) solid;
}
#footer-left {
	grid-area: footer-left;
}
#footer-left p {
	display: block;
	padding: 20px;
	text-align: left;
	line-height: 1.5;
}
#footer-center {
	grid-area: footer-center;
}
#footer-center ul {
	display: block;
	font-size: 0;
	letter-spacing: 0;
	word-spacing: 0;
	padding: 20px;
	text-align: center;
	list-style: none outside none;
}
#footer-center ul li {
	display: inline-block;
	font-size: 12px;
	margin: 0 2px;
}
#footer-center ul li a {
	text-decoration: none;
}
#footer-center ul li a span {
	font-size: inherit;
}
#footer-right {
	grid-area: footer-right;
}
#footer-right p {
	display: block;
	padding: 20px;
	text-align: right;
	line-height: 1.5;
}
@media screen and (max-width: 1200px) {
	#header {
		grid-template-columns: 1fr;
		grid-template-rows: 1fr;
		grid-template-areas: 'header-center';
	}
	#header-left {
		display: none;
	}
	#header-center p {
		font-size: 24px;
	}
	#header-right {
		display: none;
	}
	#content input, #content button {
		font-size: 24px;
	}
	#footer {
		grid-template-columns: 1fr;
		grid-template-rows: 1fr;
		grid-template-areas: 'footer-left';
	}
	#footer-left p {
		text-align: center;
	}
	#footer-center {
		display: none;
	}
	#footer-right {
		display: none;
	}
}