.calculator{
    text-align: center;
}

.types{
    display: inline-block;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.25rem;
}

.types span{
    background-color: #00b277;
    display: inline-block;
    color: #fff;
    border: 2px solid #00b277;
    padding: 0.25rem 0.75rem;
    float: left;
    font-size: 0.6rem;
    cursor: pointer;
}

.types span.on{
    background-color: #fff;
    color: #00b277;
}

.calculator li{
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    border-left: 1px solid #fff;
    border-bottom: 1px solid #fff;
}


.standard-main,
.science-main,
.programmer-main {
    background-color: #F2F2F2;
    margin: 1rem auto 0 auto;
    border: 0.2rem solid #795548;
    border-top:0;
    border-radius: 3px;
    overflow: hidden;
    width: 100%;
    max-width: 17.5rem;
}

.calculator ul {
    list-style: none;
    margin: 0px;
    padding: 0px;
}

.calculator li {
    float: left;
    text-align: center;
    cursor: pointer;
}

.calculator  li img {
    height: 0.7rem;
}
.calculator .title {
    height: 2rem;
    line-height: 2rem;
    background-color: #795648;
    color: #fff;
    font-size: 0.7rem;
}

.result {
    text-align: right;
    box-shadow: 0 1px 3px rgba(0,0,0,0.37) inset, 0 1px 1px rgba(0,0,0,0.13);
    background: #fcfdea;
    margin: 0.5rem;
    padding-top: 0.4rem;
}

.second {
    font-size: 2rem;
    font-weight: bold;
    padding-right: 0.5rem;
}

.pre {
    color: #A7A7A7;
    padding-right: 0.5rem;
}

#std-top-symbol {
    border-top: 1px #A7A7A7 solid;
    height: 2.6rem;
    overflow: hidden;
}

#std-top-symbol li{
    width: calc(100%/4);
    line-height: 2.6rem;
    position: relative;
}

#std-top-symbol li i{
    font-size: 0.6rem;
    position: absolute;
    top: 0.6rem;
    line-height: 0.8rem;
    vertical-align: sub;
}

#std-num-symbol {
    background-color: #E6E6E6;
    height: 13.5rem;
    font-size: 1rem;
}

#std-num-symbol li {
    width: calc(100%/4);
    line-height: 2.6rem;
}

.science-main {
    display: none;
}

.sci-result {
    text-align: right;
    box-shadow: 0 1px 3px rgba(0,0,0,0.37) inset, 0 1px 1px rgba(0,0,0,0.13);
    background: #fcfdea;
    margin: 0.5rem;
    padding-top:0.4rem;
}

#sci-top-symbol {
    border-top: 1px #A7A7A7 solid;
    height: 6.75rem;
}

#sci-top-symbol li i{
    font-size: 0.6rem;
    position: absolute;
    top: 0.3rem;
    line-height: 0.8rem;
    vertical-align: sub;
}

#sci-top-symbol li,
#sci-num-symbol li {
    line-height: 2.25rem;
    width: calc(100%/5);
    position: relative;
}

#sci-top-symbol li{
    background-color: rgb(242, 242, 242);
}

#sci-num-symbol {
    height: 11.75rem;
    background-color: #E6E6E6;
}

.programmer-main {
    display: none;
}

.pro-result {
    text-align: right;
    box-shadow: 0 1px 3px rgba(0,0,0,0.37) inset, 0 0px 0px rgba(0,0,0,0.13);
    background: #fcfdea;
    margin: 0.5rem;
    padding-top: 0.4rem;
    border-bottom: 0;
}

#pro-top-symbol {
    border-top: 1px #A7A7A7 solid;
    height: 2.25rem;
}

#pro-top-symbol li {
    line-height:2.25rem;
    width:calc(100%/6);
}

#pro-num-symbol li {
    line-height:2.25rem;
    width:calc(100%/5);
}

#pro-num-symbol {
    height: 11.75rem;
    background-color: #E6E6E6;
}

#pro-scales {
    padding: 0.25rem;
    border: 1px solid #d5d6c5;
    border-radius: 3px;
    background-color: #f2f2f2;
    padding-left: 0.5rem;
}

#pro-scales div {
    text-align: left;
    cursor: pointer;
    font-size: 0.6rem;
    height: 1.2rem;
    line-height:1.2rem;
}

.scale-active {
    color: #FF9800;
}

.disable-btn {
    color: #CACACA;
}

.night .types span{
    background-color: #181a1b;
    border: 0.1rem solid #181a1b;
    color: #ddd;
}

.night .types span.on {
    background-color: #444;
    color: #ddd;
}

.night .standard-main, .night .science-main, .night .programmer-main{
    border: 0.2rem solid #181a1b;
    background-color: transparent;
    border-left: 0.4rem solid #181a1b;
    border-right: 0.4rem solid #181a1b;
}

.night .calculator .title{
    background-color: #181a1b;
}

.night .result,.night .sci-result,.night .pro-result{
    background-color: #444;
    color: #ddd;
}

.night #std-num-symbol li,.night #sci-top-symbol li,.night #sci-num-symbol li{
    background-color: #444 !important;
}

.night #sci-top-symbol{
    border-top:1px solid #181a1b;
}

.night #pro-top-symbol{
    border-top:1px solid #181a1b;
}

.night #sci-num-symbol{
    background-color: #444;
}

.night #pro-num-symbol li{
    background-color: #444 !important;
}

.night #pro-num-symbol{
    background-color: #181a1b;
}

.night .calculator li{
    border-left: 1px solid #181a1b;
    border-bottom: 1px solid #181a1b;
}

.night #std-num-symbol{
    background-color: #181a1b;
}

.night #std-top-symbol{
    border-top: 1px #181a1b solid;
}

.night #sci-num-symbol {
    background-color: #181a1b;
}

.night #pro-scales{
    background-color: #333;
    border: 1px solid #333;
    color: #ddd;
}

.night #std-top-symbol li:first-child{
    border-left: 1px solid #242627;
}

.night #std-num-symbol li:first-child{
    border-left: 1px solid #444;
}

.night #std-num-symbol li:nth-child(4n + 1){
    border-left: 1px solid #444;
}

.night #sci-top-symbol li:nth-child(5n + 1){
    border-left: 1px solid #444;
}

.night #sci-num-symbol li:nth-child(5n + 1){
    border-left: 1px solid #444;
}

.night #pro-top-symbol li:first-child{
    border-left: 1px solid #242627;
}

.night #pro-num-symbol li:nth-child(5n + 1){
    border-left: 1px solid #444;
}