/* Some personal resets */
html {
	box-sizing: border-box;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

body {
	margin: 0;
}

/* Responsive Images */

embed,
iframe,
img,
object,
video {
	max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
li,
p,
pre,
blockquote,
figure,
hr {
	margin: 0;
	padding-right: 0;
	padding-left: 0;
}

a {
	text-decoration: none;
}

a:focus {
	outline: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	display: block;
}

/* Removes all decimals and discs from lists */

ol,
ul {
	list-style: none;
}

input,
textarea,
button {
	border: 0;
	border-radius: 0;
	background-color: transparent;
	font-size: inherit;
	font-family: inherit;
	font-weight: inherit;
	outline: none;
	appearance: none;
	text-align: left;
}
button:hover,
button:active,
button:focus {
	outline: solid 2px black; /*  for non-webkit browsers */
	outline: auto 5px -webkit-focus-ring-color; /*  for webkit browsers */
}
input:hover,
input:active,
input:focus,
textarea:hover,
textarea:active,
textarea:focus {
	outline: none;
}

:root {
	font-family: Helvetica, Arial, sans-serif;
}

html {
	font-size: 175%;
	font-weight: 300;
	line-height: 1.3;
}

body {
	align-items: center;
	background-image: linear-gradient(236deg, #74ebd5, #acb6e5);
	display: flex;
	height: 100vh;
	justify-content: center;
}

.container {
	max-width: 20em;
}

.container > p {
	text-align: center;
}

.calculator {
	border-radius: 12px;
	box-shadow: 0 0 40px 0px rgba(0, 0, 0, 0.15);
	margin-left: auto;
	margin-right: auto;
	margin-top: 2em;
	max-width: 15em;
	overflow: hidden;
}

.calculator__display__main {
	background-color: #222222;
	color: #fff;
	min-height: 5em;
	text-align: right;
	padding-top: 1em;
	padding-right: 0.5em;
	position: relative;
}
::-webkit-scrollbar {
	display: none;
}
.calcs {
	padding-right: inherit;
	scrollbar-width: none;
	scroll-behavior: auto;
	height: 50%;
	font-size: 44px;
	position: absolute top;
	overflow-y: hidden;
	overflow-x: scroll;
	display: flex;
	flex-direction: row-reverse;
}
.curr {
	padding-right: inherit;
	height: 50%;
	position: absolute bottom;
}

.calculator__keys {
	background-color: #999;
	display: grid;
	grid-gap: 1px;
	grid-template-columns: repeat(4, 1fr);
}

.calculator__keys > * {
	background-color: #fff;
	padding: 0.5em 1.25em;
	position: relative;
	text-align: center;
}

.calculator__keys > *:active::before,
.calculator__keys > .is-depressed::before {
	background-color: rgba(0, 0, 0, 0.2);
	bottom: 0;
	box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.5) inset;
	content: "";
	left: 0;
	opacity: 0.3;
	position: absolute;
	right: 0;
	top: 0;
	z-index: 1;
}

.key--operator {
	background-color: #eee;
}

.key--equal {
	background-image: linear-gradient(to bottom, #fe886a, #ff7033);
	grid-column: -2;
	grid-row: 2 / span 4;
}
