body {
	width: 100%;
	margin: auto;
	font-family: arial;
	font-size: 0.9em;
	max-width: 100%;
	min-width: 280px;
}

/* Prevents double tap from zooming in */
* {
	touch-action: manipulation;
}

/* Main Wrapper for all elements */
.outer-wrapper {
	margin: auto;	
	margin-top:10px;
	max-width:600px;
	border:1px solid black;
	border-radius: 25px;
	padding: 5px;
	background-color: #d9d9d9;
	display: -webkit-flex;
	display: flex;
	flex-direction: column;
	overflow: auto;
	margin-bottom: 0px;
	padding-bottom: 0px;
}

h2 {
	margin: auto;
}

#title {
	font-size: 1.1em;
}


.row {
	display: -webkit-flex;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

.underline {
	border-bottom:1px solid black;
	padding-bottom: 5px;
}

.bold {
	font-weight: bold;
}

.gap {
	margin-bottom: 5px;
}

.gap-md {
	margin-bottom: 10px;
}

.gap-lg {
	margin-bottom: 20px;
}

.checkbox-btn-item, .radio-btn-item{
	display: -webkit-flex;
	display: flex;
	align-items: center;;
}

.radio-label {
	padding-top: 2px;
}


.inner-wrapper {
	margin-top: 8px;
	padding-top: 10px;
	display: -webkit-flex;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: space-evenly;
	border-top:1px solid black;
	margin-bottom:0px;
	margin-bottom:0px;
}

.column-1 {
	width: 0%;
	margin-top: 25%;
}



.column-2 {
	width: 60%;
	min-width: 100px;
	margin: 5px;
	display: -webkit-flex;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: visible;
}

.equation {
	border-bottom: 2px solid black;
}

.top-num {
	display: -webkit-flex;
	display: flex;
	justify-content: flex-end;
	text-align: right;
}

.column-3 {
	width: 40%;
	margin-right: 15px;
	margin-top:3px;
	margin-bottom: 0px;
	font-size: 25px;
	display: -webkit-flex;
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
	align-items: top;
}

.score-output {
	padding-right: 5px;
	padding-top: 5px;
	width: 80px;
	height: 35px;
	background-color: #d9d9d9;
	border-radius:  10px;
	border: 1px solid grey;
	text-align: right;
	justify-content: flex-start;
}

.score-label {
	font-size: 0.7em;
	display: -webkit-flex;
	display: flex;
	align-items: center;
	padding: 0px;
}

#answer {
	background-color: dimgray;
	border-radius:  10px;
	margin-top: 5px;
	width: 100px;
	height: 50px;
	margin-right:15px;
	padding-right:15px;
	text-align:right;
}

.number, #operator {
	width: 50px;
	height: 50px;
	font-size: 40px;
	display: -webkit-flex;
	display: flex;
	align-items: center;
	justify-content: center;
}

.button {
	overflow: hidden;
	margin: 0;
	margin-right: 15px;
	padding: 0;
	width: 120px;
	height: 50px;
	border-radius: 12px;
	background-color: #0040ff; /*blue*/
	color:  #ffffff;	/*white*/
}

#message {
	margin: 5px;
	font-size: 1.5em;
	color: red;
	text-align: right;
}


/* Remove the increment/decriment arrows 
	in number input field */
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

.keyboard {
	margin-top:5px;
	display:flex;
	justify-content:center;
	align-items:row;
	font-size:1.4em;
	
}

.keyboard .row-bot{
	margin-top:-5px;
}

.keyboard button {
	font-weight: bold;
}

#bs-btn {
	height:72px;
}

[name="answer"] {
	color:black;
	-webkit-text-fill-color: black;
	opacity: 1; /* required on iOS */
}

@media screen and (max-width: 330px) {
	.keyboard {
		margin-top:10px;
		display:flex;
		justify-content:center;
		align-items:row;
		font-size:1.2em;
	}

	#bs-btn {
	height:62px;
	}
}
