* {
	box-sizing: border-box;
}

body {
	font-family: Roboto, "Roboto Mono", monospace, sans-serif;
	font-weight: 300;
	background-color: rgb(58, 58, 58);
	width: 100vw;
	min-height: 100vh;
}

.window {
	background-color: lightgray;
	box-shadow: 5px 5px 7px #00000040;
	opacity: 0.9;
}

#app-container {
	background-color: black;
	width: 375px;
	height: 814px;
	border: solid 5px #969595;
	border-radius: 38px;
	position: absolute;
	top: 60px;
	left: 200px;
	padding: 0px 6px 6px 6px;
}

#device-header {
	background-color: black;
	width: 50%;
	height: 26px;
	border-radius: 0 0 15px 15px;
	text-align: center;
	color: white;
	margin-left: 25%;
	position: absolute;
	z-index: 10;
}

#screen {
	background-color: rgb(19, 19, 19);
	border-radius: 30px;
	position: absolute;
	z-index: 5;
	width: 353px;
	margin-top: 5px;
	color: white;
}

#screen-header {
	height: 34px;
	opacity: 0.5;
	text-align: center;
}

#screen-main {
	margin: 0;
	height: 730px;
	padding: 5px 5px 20px 5px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: repeat(8, 1fr);
	gap: 15px;
	justify-items: stretch;
}

#input-display,
#output-display {
	text-align: right;
	margin-right: 16px;
}

.input-display {
	grid-column: 1 / 5;
	font-size: 1.25em;
	align-self: end;
}

.output-display {
	grid-column: 1 / 5;
	font-size: 2em;
	font-family: Roboto, "Roboto Mono", monospace, sans-serif;
	min-height: 80px;
	display: flex;
	justify-content: flex-end;
}

#output-display span {
	font-size: 2.25em;
}

#output-display span.thnd {
	font-size: 2em;
}

#output-display span.mil {
	font-size: 1.75em;
}

#output-display span {
	align-self: flex-end;
	justify-self: flex-end;
}

button {
	border: none;
}

.button {
	display: flex;
	border-radius: 50px;
	text-align: center;
	justify-content: center;
	align-items: center;
	font-size: 2.5em;
	background-color: rgb(51, 51, 51);
	color: #ffffff;
	font-family: Roboto, "Roboto Mono", monospace, sans-serif;
	font-weight: 400;
	cursor: pointer;
	transition: all 0.3s;
	user-select: none;
	-webkit-user-select: none;
}

.button:hover,
.button:focus {
	opacity: 0.7;
	transition: all 0.3s;
}

.button-function,
#paren-l,
#paren-r {
	background-color: lightgray;
	color: black;
	font-family: Roboto, "Roboto Mono", monospace, sans-serif;
	font-weight: 700;
	font-size: 2em;
}

.button-function:active,
.button-operator:active,
.button-operator:focus {
	opacity: 1;
	transition: all 0.1s;
	background-color: #f2c778;
	transition: all 0.3s;
}

.button-operator {
	background-color: orange;
	color: white;
	font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
	font-weight: normal;
	font-size: 3em;
	font-weight: 300;
}

button-input:active {
	box-shadow: 0px 0px 8px gray;
	opacity: 1;
	transition: all 0.1s;
}

sup {
	font-size: 0.75em;
}

sub {
	font-size: 0.85em;
}

.house {
	transform: rotate(270deg);
	font-size: 2em;
	line-height: 1em;
	font-weight: 100;
	padding-left: 0px;
	transform-origin: 19px 32px;
	font-family: none;
}

.del-x {
	transform: translate(-18px, -1px);
	font-size: 0.8em;
}

#plus-minus span {
	transform: translate(-2px, 1px);
}

#equals {
	grid-column: 4 / span 1;
	grid-row: 7/9;
}

#zero {
	grid-column: 1/3;
}

#screen-footer {
	height: 29px;
	padding: 5px;
	text-align: center;
}

#screen-footer hr {
	background: #ffffff;
	width: 50%;
	border: 3px solid white;
	border-radius: 10px;
}

@keyframes slide {
	from {
		left: 100%;
		transform: translate(+100%, 0);
	}
	to {
		left: -100%;
		transform: translate(-100%, 0);
	}
}
@-webkit-keyframes slide {
	from {
		left: 100%;
		transform: translate(+100%, 0);
	}
	to {
		left: -100%;
		transform: translate(-100%, 0);
	}
}

.slide-area {
	width: 100%;
	overflow: hidden;
	position: relative;
	font-size: 1.5em;
}

.slide-text {
	display: block;
	animation-name: slide;
	animation-duration: 6s;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
	-webkit-animation-name: slide;
	-webkit-animation-duration: 6s;
	-webkit-animation-timing-function: linear;
	-webkit-animation-iteration-count: infinite;
	width: 200%;
}
