body {
	-webkit-perspective: 1000px;
	perspective: 1000px;
}

.calculator {
	border: 1px solid black;
	height: 460px;
	width: 300px;
	margin: auto;
	background-color: #ff5c33;
	border-radius: 10px;
	box-shadow: inset 0 0 30px #222;
	transform: rotateX(30deg);
}

.base {
	display: block;
	content: '';
	height: 20px;
	width: 332px;
	background-color: #330a00;
	margin: 0 auto;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
	margin-top: -12px;
}

input {
	background-color: #eeffee;
	width: 70%;
	float: right;
	height: 50px;
	border-radius: 10px;
	box-shadow: inset 0 0 10px black;
	margin: 10px 7px 10px 0;
	border: 3px solid #4d4d4d;
	font-family: "Atomic Age", "Courier New", sans-serif;
	font-size: 30px;
	text-align: right;
	outline: none;
}

.buttons {
	clear: right;
	margin-left: 5px;
}

span {
	font-size: 22px;
	text-transform: uppercase;
	text-align: center;
	position: relative;
	bottom: 3px;
}

button {
	border: 1px solid #555;
	background-color: #333340;
	color: white;
	border-radius: 7px;
	width: 21%;
	height: 70px;
	font-family: "Atomic Age", "Courier New", sans-serif;
	font-size: 35px;
	margin-bottom: 8px;
	margin-right: 8px;
	border-bottom: 6px solid black;
	cursor: pointer;
}

#equals {
	width: 95%;
	height: 50px;
}

hr {
	display: block;
	position: relative;
	bottom: 4px;
}

#latter {
	top: -10px;
}

#clear {
	margin-left: 5px;
	margin-top: 5px;
}

button:focus {
	outline: 0;
}

button:active {
	background-color: #22222a;
	position: relative;
	bottom: -5px;
	border-bottom-width: 1px;
	margin-top: -5px;
}

#equals:active {
	bottom: -8px;
}

@media screen and (min--moz-device-pixel-ratio:0) {
	input {
		width: 69%;
	}
} /* from http://browserhacks.com/ */

img {
	width: 40px;
	height: 40px;
	cursor: pointer;
	margin-bottom: 10px;
	float: left;
}