/* ------------- reset ------------- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* ------------- end reset ------------- */

* {
	box-sizing: border-box;
	font-family: 'Nunito Sans', sans-serif;
	font-size: 2em;
}

body {
	background: #2E3030;
}

.container {
	max-width: 400px;
	width: 100%;
	/*max-height: 70vh;*/
	/*height: auto;*/
	margin: 5% auto;
	border: 1px solid white;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	    flex-wrap: wrap;
}

.input-container {
	background: #474646;
	width: 100%;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align:center;
	    -ms-flex-align:center;
	        align-items:center;
}

input {
	width: 100%;
	background: #474646;
	border: none;
	color: white;
	text-align: right;
	padding-right: 10px;
	font-size: 3em;
}

.sub-container {
	width: 100%;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
}

button {
	-ms-flex-preferred-size: 25%;
	    flex-basis: 25%;
	border: 1px solid #a2a1a1;
	margin: 0;
	padding: 5px 0;
}

button:focus {
	outline: none; 
}

.numbtn, .dot {
	background: #E3E1E1;
}

.numbtn:active, .dot:active {
	background: #cccaca;
}

.ac, .ce {
	background: #B5B3B3;
}

.ac:active, .ce:active {
	background: #a2a1a1;
}

.equal, .operbtn {
	background: #E07B16;
	color: white;
}

.operbtn:active {
	border: 1px solid black;
}

.ac {
	-webkit-box-flex: 10;
	    -ms-flex-positive: 10;
	        flex-grow: 10;
}

.zero {
	-webkit-box-flex: 10;
	    -ms-flex-positive: 10;
	        flex-grow: 10;
}

/* Landscape */
@media (max-height: 500px)  { 
	* {
		font-size: 1.5em;
	}
	.container {
		margin: 1% auto;
	}
}