Calculator

<br /> Calculator<br />

body
{
background-color: none;
}
.box
{
background-color: black;
height: 360px;
width: 270px;
border-radius: 10px;
position: relative;
top: 0px;
left: 10%;
}
.display
{
background-color: #222;
width: 220px;
position: relative;
left: 26px;
top: 17px;
height: 40px;
}
.display input
{
position: relative;
left: 2px;
top: 2px;
height: 35px;
color: black;
background-color: #bccd95;
font-size: 21px;
text-align: left;
}
.keys
{
position: relative;
top: 30px;
}
.button
{
width: 40px;
height: 40px;
border: none;
border-radius: 8px;
margin-left: 19.5px;
cursor: pointer;
border-top: 2px solid transparent;
}
.button.gray
{
color: black;
font-color: black;
background-color: #6f6f6f;
border-bottom: black 2px solid;
border-top: 2px #6f6f6f solid;
}
.title:hover {
color: #fff;
}
.title {
margin-bottom: 10px;
margin-top: 30px;
padding: 5px 0;
font-size: 40px;
font-weight: bold;
text-align: center;
color: black;
font-family: ‘Cookie’, cursive;
}

.button.pink
{
color: black;
background-color: #ff4561;
border-bottom: black 2px solid;
}
.button.black
{
color: black;
background-color: 303030;
border-bottom: black 2px solid;
border-top: 2px 303030 solid;
font-weight: bold;
}
.button.orange
{
color: black;
background-color: FF9933;
border-bottom: black 2px solid;
border-top: 2px FF9933 solid;
}
.gray:active
{
border-top: black 2px solid;
border-bottom: 2px #6f6f6f solid;
}
.pink:active
{
border-top:black 2px solid;
border-bottom:#ff4561 2px solid;
}
.black:active
{
border-top: black 2px solid;
border-bottom: #303030 2px solid;
}
.orange:active
{
border-top: black 2px solid;
border-bottom: FF9933 2px solid;
}
p
{
line-height: 10px;
}

function c(val)
{
document.getElementById(“d”).value=val;
}
function v(val)
{document.getElementById(“d”).value+=val;
}
function e()
{
try
{
c(eval(document.getElementById(“d”).value))
}
catch(e)
{
c(‘Error’) }
}