.keysrow{width:100%;display: flex;justify-content: space-between;margin:8px 0px}

/* Calculator */
#calculator {
	width: 325px;
	height: auto;
	margin: auto;
	padding: 20px 20px 9px;
	background: #4c8de3;
    background: linear-gradient(61deg, #5a3d9e 0%, #4cbde3 100%);
	border-radius: 15px;
	color: white;
	zoom: 0.85;
}

#calculator .top{display:flex;padding:10px;border-radius:5px}

/* Top */
.top  span.clear{
	float: left;
}

/* Screen styling */

.top {
font-size: 30px;
background: rgba(255,255,255,0.2);
margin-bottom:10px;	
}

.top .screen, .top .currency{
line-height: 40px;
height:40px;
}

.top .screen {
  
	width: 100%;
	padding: 0 10px;
		
    	
	text-align: right;
  overflow:auto;
}

/* Clear floats */
.keys  {
  overflow: hidden;
}

/* Keys */
.keys span, .top span.clear {
	float: left;
	position: relative;
	top: 0;
	background: rgb(81 148 205 / 50%);
	font-size:27px;
	cursor: pointer;
	width: 30%;
	height: 46px;
	border-radius: 5px;
	box-shadow: 0px 4px 5px rgb(0 0 0 / 25%);
	line-height: 46px;
	text-align: center;
	user-select: none;
  outline: 0 solid;
	/* hover and active state transitions */
	transition: all 0.2s ease;
}

/* Unique key styling */
.keys span.operator {
	background: #536ea5;
	margin-right: 0;
}

.keys span.operator sup {
  font-size: 50%;
  vertical-align: top;
  color:#f1c851;
}

.keys span.eval {
	background: #d6643f;
	box-shadow: 0px 4px #c3502b;
	color: #f1c851;
  width: 212px;
}

span.clear {
	background: #523d98;
	box-shadow: 0px 4px rgba(0, 0, 0, 0.2);
}

/* hover effects */
.keys span:hover {
	background: rgb(123 181 231);
	color: white;
}

.keys span.eval:hover {
	background: #f37c4c;
	box-shadow: 0px 4px #d65f3d;
	color: #ffffff;
}

.keys span.operator:hover {
	background: #5d7bba;
	color: #ffffff;
}

.top span.clear:hover {
	background: #f68991;
	box-shadow: 0px 4px #d3545d;
	color: white;
}

/* Simulating "pressed" effect */
.keys span:active {
	box-shadow: 0px 0px #6b54d3;
	top: 4px;
}

.keys span.eval:active {box-shadow: 0px 0px #717a33;top: 4px;}

.top span.clear:active {
	top: 4px;
	box-shadow: 0px 0px #d3545d;
}

    