.calculator {
  position: absolute;
  width: 100%;
  height: 80%;
  overflow: hidden;
  background-color: #fafafa;
}
.calculator .calc-screen {
  position: absolute;
  width: 100%;
  height: 20%;
  font-size: .4rem;
}
.calc-screen .calc-result {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  width: 96%;
  margin: auto;
  min-height: .4rem;
  text-align: right;
  white-space: nowrap;
  color: #666;
  
}
.calc-result .data {
  display: inline-block;
  position: absolute;
  right: 0;
  transform-origin: right bottom;
  transition: transform 200ms ease-in-out;
}
.calculator .calc-buttons {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 80%;
  display: flex;
  flex-wrap: wrap;
}
.calc-buttons .buttons {
  flex: 1 25%;
  width: 25%;
  height: 20%;
  outline: 0;
  font-size: 20px;
  font-family: 'Microsoft YaHei', Helvetica, Arial, sans-serif;
  color: #666;
  background: #fff;
  border: 1px solid #eee;
  cursor: pointer;
  -webkit-appearance: none;
}
.calc-buttons .buttons:active {
  background-color: #77ff89;
  color: #fff;
}
.calc-buttons .buttons.equals {
  color: #fff;
  background-color: #0d1;
}
.calc-buttons .buttons.equals:active {
  background-color: #77ff89;
}
@media screen and (min-width: 1025px) {
  .calculator {
    max-width: 500px;
    left: 50%;
    margin-left: -250px;
    box-shadow: 0 4px 20px 10px rgba(238, 238, 238, .75);
  }
}
	#drag {
			position: absolute;
			top: 0px;
			left: 0px;
			width: 510px;
			height: 300px;
			background: #e9e9e9;
			border: 1px solid #444;
			border-radius: 5px;
			box-shadow: 0 1px 3px 2px #666;
		}
		
		#drag .title {
			position: relative;
			height: 27px;
			margin: 5px;
		}
		
		#drag .title h2 {
			font-size: 14px;
			height: 27px;
			line-height: 24px;
			border-bottom: 1px solid #A1B4B0;
		}
		
		#drag .title div {
			position: absolute;
			height: 19px;
			top: 2px;
			right: 0;
		}
		
	
		
		a.open:hover {
			background-position: 0 -29px;
		}
		
		#drag .title a.close {
			background-position: -89px 0;
		}
		
		#drag .title a.close:hover {
			background-position: -89px -29px;
		}
		
		#drag .content {
			overflow: auto;
			margin: 0 5px;
		}
		
		#drag .resizeBR {
			position: absolute;
			width: 14px;
			height: 14px;
			right: 0;
			bottom: 0;
			overflow: hidden;
			cursor: nw-resize;
		
		}
		
		#drag .resizeL,
		#drag .resizeT,
		#drag .resizeR,
		#drag .resizeB,
		#drag .resizeLT,
		#drag .resizeTR,
		#drag .resizeLB {
			position: absolute;
			background: #000;
			overflow: hidden;
			opacity: 0;
			filter: alpha(opacity=0);
		}
		
		#drag .resizeL,
		#drag .resizeR {
			top: 0;
			width: 5px;
			height: 100%;
			cursor: w-resize;
		}
		
		#drag .resizeR {
			right: 0;
		}
		
		#drag .resizeT,
		#drag .resizeB {
			width: 100%;
			height: 5px;
			cursor: n-resize;
		}
		
		#drag .resizeT {
			top: 0;
		}
		
		#drag .resizeB {
			bottom: 0;
		}
		
		#drag .resizeLT,
		#drag .resizeTR,
		#drag .resizeLB {
			width: 8px;
			height: 8px;
			background: #FF0;
		}
		
		#drag .resizeLT {
			top: 0;
			left: 0;
			cursor: nw-resize;
		}
		
		#drag .resizeTR {
			top: 0;
			right: 0;
			cursor: ne-resize;
		}
		
		#drag .resizeLB {
			left: 0;
			bottom: 0;
			cursor: ne-resize;
		}