body{
background: radial-gradient(circle, #fff 20%, #ccc);
}

.container {
  width: 30%;
  margin: 75px auto;
  padding: 30px;
  background: radial-gradient(aquamarine, darkcyan);
  border-radius: 5%;
  box-shadow: 0px 4px lime, 0px 10px 15px rgba(0, 0, 0, 0.2);
  font-family: sans-serif;
}

span {
height: 25px;
/*width: 40px;*/
padding-top: 20px;
margin: 10px;
border: none;
border-radius: 6px;
background-color: white;
box-shadow: 0px 4px rgba(0, 0, 0, 0.2);
text-align: center;
color: #888;
user-select: none;
position: relative;
}

#toprow {
  display: flex;
}

#clear {
  background: #ff9fa8;
  box-shadow: 0px 4px #ff7c87;
	color: white;
  text-transform: uppercase;
  flex: 1 1 60%;
}

#modulo, #root {
  background-color: aquamarine;
}

#toprow #display {
  flex: 1 1 80%;
  background-color: rgba(0, 0, 0, 0.2);
	border-radius: 3px;
	box-shadow: inset 0px 4px rgba(0, 0, 0, 0.2);
  border: none;
  height: 75px;
  margin: 10px;
  text-align: right;
  color: white;
  font-size: 24px;
  overflow: scroll;
}

.row {
  display: flex;
}

.row > span {
  flex: 1 1 25%;
}

.operator {
  background-color: aquamarine;

}

#eval {
  background-color: #f1ff92;
  box-shadow: 0px 4px #9da853;
  border-radius: 6px;
}

/********  Adding Hover Effects  *********/

 span:hover {
	background: #9c89f6;
	box-shadow: 0px 4px #6b54d3;
	color: white;
  cursor: pointer;
}

 #eval:hover {
	background: #abb850;
	box-shadow: 0px 4px #717a33;
	color: #ffffff;
}

#clear:hover {
	background: #f68991;
	box-shadow: 0px 4px #d3545d;
	color: white;
}

#modulo:hover, #root:hover {
  background-color: #9c89f6;
}

/******** Adding active effects ********/

span:active {
	box-shadow: 0px 0px #6b54d3;
	top: 4px;
}

#eval:active {
	box-shadow: 0px 0px #717a33;
	top: 4px;
}

#clear:active {
	top: 4px;
	box-shadow: 0px 0px #d3545d;
}

p {
  padding: 25px 15px;
  margin-bottom: 0px;
  border-bottom: 2px solid aquamarine;
}

/*******************************
       Mobile styling
*******************************/

@media (max-width: 800px) {

* {
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}
body {
  width: 100%;
  height: 100%;
}

.container {
  border-radius: 3px;
  box-shadow: none;
  height: 100%;
  margin: 0;
  padding: 0;
  padding-top: 5px;
  width: 100%;
}

#toprow {
height: 20%;
}

#display {
  height: 100px;
}

p {
  padding: 36px 15px;
}

.row {
  height: 15%;
  margin: 0px auto;
  width: 95%;
}

#clear {
  flex: 0 0 49%;
}

span {
  font-size: 32px;
  height: 65%;
  margin: 3px;
  margin-bottom: 5px;
}
} /* end of mobile media query */
