@charset "utf-8";
/* CSS Document */

#cal {
	position: absolute;
	/*border: 5px solid gray;*/
	padding: 10px;
	width: 240px;
	height: 310px;
	font-family:Arial,Helvetica,sans-serif;
	z-index: 3;
}
#calcShowButton {
	left: 50px;
	position: absolute;
	top: 555px;
	width: 139px;
	height: 39px;
	background: url('../images/calculator.png') no-repeat;
	background-position: 0 0;
	cursor: pointer;
}
.calLogo {
	background:url('../images/calcLogo.png') no-repeat top left;
	display:inline-block;
	margin: 5px 0 3px 0;
	height:40px;
	width:80px;
}
#calcShowButton:hover {
	background-position:0 -39px;
}
#calClose {
	background:url('../images/icon_close.png') no-repeat top left;
	display:inline-block;
	height:42px;
	width:42px;
	cursor:pointer;
	right: 0px;
	position: absolute;
	top: 0px;
}
h2 {
	text-align:center;
	text-decoration:underline;
}
.display {
	background-color:#222;
	width:220px;
	position:relative;
	left:15px;
	top:20px;
	height:40px;
	width:211px;
}


/* Finally adding some IE9 fallbacks for gradients to finish things up */

/* A nice BG gradient */


/* Using box shadows to create 3D effects */
#cal{
	width: 163px;
	height: auto;
	padding: 5px 15px 0px;
	border-radius: 7px;
	box-shadow: 0px 4px 4px #DADADA, 0px 5px 10px rgba(0, 0, 0, 0.9);
	background: #ffffff; /* Old browsers */
	background: -moz-linear-gradient(top,  #ffffff 1%, #cccccc 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(1%,#ffffff), color-stop(100%,#cccccc)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #ffffff 1%,#cccccc 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #ffffff 1%,#cccccc 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #ffffff 1%,#cccccc 100%); /* IE10+ */
	background: linear-gradient(to bottom,  #ffffff 1%,#cccccc 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#cccccc',GradientType=0 ); /* IE6-9 */
}

#calDrag {
	position: absolute;
	top: 0;
	left: 0;
	width: 193px;
	height: 62px;
}

/* Top portion */
.topdisp span.calClear {
	float: left;
}

.topdisp .disp {
	left: 0px;
	top: 16px;
	color: black;
	background-color: #ffffde;
	height: 30px;
	width: 106px;
	float: right;
	padding: 0 6px;
	font-size: 17px;
	line-height: 30px;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
	text-align: right;
	letter-spacing: 1px;
	border: 1px solid #BBB;
	border-top-width: 3px;
	border-left-width: 3px;
	font-weight: bold;
}

/* Clear floats */
.keys, .topdisp {overflow: hidden;}

/* Applying same to the keys */
.keys span, .topdisp span.calClear {
	font-weight: bold;
	
	float: left;
	position: relative;
	top: 0;
	
	cursor: pointer;
	
	width: 35px;
	height: 30px;
	
	background: #696969;
	border-radius: 3px;
	box-shadow: 0px 2px rgba(0, 0, 0, 0.2);
	
	margin: 0 7px 11px 0;
	
	color: #FFF;
	line-height: 30px;
	text-align: center;
	
	/* prevent selection of text inside keys */
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	
	/* Smoothing out hover and active states using css3 transitions */
	transition: all 0.2s ease;
}

/* Remove right margins from operator keys */
/* style different type of keys (operators/evaluate/clear) differently */
.keys span.operator {
	background: #0077C0;
	margin-right: 0;
}

.keys span.eval {
	background: #0077C0;
	box-shadow: 0px 2px rgba(0, 0, 0, 0.2);
	color: #FFF;
}

.topdisp span.calClear {
	background: #EF7B21;
	box-shadow: 0px 4px #ab5513;
	color: white;
	margin-right: 1px !important;
}

.topdisp span.calClear:hover {
	background: #33ff00;
	box-shadow: 0px 4px #180;
	color: white;
}

/* Some hover effects */
.keys span:hover, .keys span.eval:hover, topdisp span.calClear:hover {
	background: #33ff00;
	box-shadow: 0px 2px #180;
	color: white;
}

/* Simulating "pressed" effect on active state of the keys by removing the box-shadow and moving the keys down a bit */
.keys span:active {
	box-shadow: 0px 0px #6b54d3;
	top: 4px;
}

.keys span.eval:active {
	box-shadow: 0px 0px #717a33;
	top: 4px;
}

.topdisp span.calClear:active {
	top: 4px;
	box-shadow: 0px 0px #d3545d;
}
